#include <MultiHead.hh>
- Author
 - bjung 
 
Definition at line 17 of file MultiHead.hh.
 
◆ MultiHead()
◆ ~MultiHead()
  
  
      
        
          | virtual MultiHead::~MultiHead  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
◆ find() [1/2]
  
  
      
        
          | const_iterator MultiHead::find  | 
          ( | 
          const uuid_t &  | 
          uuid,  | 
         
        
           | 
           | 
          const bool  | 
          useCache = false  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
inline   | 
  
 
Find header with given UUID. 
Note: The parameter useCache can be toggled on for faster lookup.
 This should not be used if your MultiHead object is modified between look-ups.
- Parameters
 - 
  
    | uuid | header UUID  | 
    | useCache | use caching for faster look-up  | 
  
   
- Returns
 - header with given UUID 
 
Definition at line 47 of file MultiHead.hh.
   54       Cache() { uuid_clear(this->uuid); }
 
   62       for (cache.it = this->cbegin(); cache.it != this->cend(); ++cache.it) {
 
   64         const Head& head     = *cache.it;
 
   67         uuid_str.erase(remove_if(uuid_str.begin(), uuid_str.end(), ::isspace), uuid_str.end());
 
   69         uuid_parse(uuid_str.c_str(), cache.uuid);
 
   71         if (uuid_compare(uuid, cache.uuid) == 0) {
 
   80       if (uuid_compare(uuid, cache.uuid) == 0) {
 
   83         return find(uuid, 
false);
 
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
 
const_iterator find(const uuid_t &uuid, const bool useCache=false) const
Find header with given UUID.
 
 
 
 
◆ find() [2/2]
  
  
      
        
          | const_iterator MultiHead::find  | 
          ( | 
          const Evt &  | 
          event,  | 
         
        
           | 
           | 
          const bool  | 
          useCache = false  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
inline   | 
  
 
Find the header corresponding to the given event. 
Note: The parameter useCache can be toggled on for faster lookup.
 This should not be used if your MultiHead object is modified between look-ups.
- Parameters
 - 
  
    | event | event  | 
    | useCache | use caching for faster look-up  | 
  
   
- Returns
 - header corresponding to the given event 
 
Definition at line 98 of file MultiHead.hh.
uuid_t header_uuid
UUID of header containing the event-weight information.
 
 
 
 
◆ insert()
  
  
      
        
          | bool MultiHead::insert  | 
          ( | 
          const Head &  | 
          header | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Insert the given header. 
- Parameters
 - 
  
  
 
- Returns
 - true if insertion was successful; else false 
 
Definition at line 111 of file MultiHead.hh.
  116     uuid_str.erase(remove_if(uuid_str.begin(), uuid_str.end(), ::isspace), uuid_str.end());
 
  119     uuid_parse(uuid_str.c_str(), uuid);
 
  121     if (uuid_is_null(uuid) == 0 && 
find(uuid) == this->cend()) {
 
  123       this->push_back(header);
 
 
 
 
◆ join()
  
  
      
        
          | size_t MultiHead::join  | 
          ( | 
          const MultiHead &  | 
          multiHead | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Join given MultiHead object with this MultiHead object. 
- Parameters
 - 
  
  
 
- Returns
 - number of inserted headers 
 
Definition at line 138 of file MultiHead.hh.
  144     for (const_iterator i = multiHead.cbegin(); i != multiHead.cend(); ++i) {
 
  145       n += (size_t) this->
insert(*i);
 
bool insert(const Head &header)
Insert the given header.
 
 
 
 
◆ actionAtFileOpen()
  
  
      
        
          | static void MultiHead::actionAtFileOpen  | 
          ( | 
          int  | 
          version | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Action method at file open. 
- Parameters
 - 
  
  
 
Definition at line 157 of file MultiHead.hh.
static int ROOT_IO_VERSION
Streamer version as obtained from ROOT file.
 
 
 
 
◆ ClassDef()
◆ ROOT_IO_VERSION
  
  
      
        
          | int MultiHead::ROOT_IO_VERSION = -1 | 
         
       
   | 
  
static   | 
  
 
Streamer version as obtained from ROOT file. 
Definition at line 163 of file MultiHead.hh.
 
 
The documentation for this struct was generated from the following files: