3 |
|
// |
4 |
|
// FillerMetaInfos |
5 |
|
// |
6 |
+ |
// Implementation of a filler that stores all of the meta information, as well as the L1 and HLT |
7 |
+ |
// trigger info into the corresponding bambu objects. |
8 |
+ |
// |
9 |
|
// Authors: C.Loizides |
10 |
|
//-------------------------------------------------------------------------------------------------- |
11 |
|
|
12 |
|
#ifndef MITPROD_TREEFILLER_FILLERMETAINFOS_H |
13 |
|
#define MITPROD_TREEFILLER_FILLERMETAINFOS_H |
14 |
|
|
12 |
– |
#include "FWCore/ParameterSet/interface/ParameterSet.h" |
13 |
– |
#include "MitProd/TreeFiller/interface/BaseFiller.h" |
15 |
|
#include "HLTrigger/HLTcore/interface/HLTConfigProvider.h" |
16 |
< |
#include "MitAna/DataTree/interface/Collections.h" |
16 |
> |
#include "MitAna/DataTree/interface/L1TriggerMaskFwd.h" |
17 |
> |
#include "MitAna/DataTree/interface/TriggerObjectBaseFwd.h" |
18 |
> |
#include "MitAna/DataTree/interface/TriggerObjectRelFwd.h" |
19 |
> |
#include "MitProd/TreeFiller/interface/BaseFiller.h" |
20 |
|
|
21 |
|
class THashTable; |
22 |
|
|
25 |
|
class RunInfo; |
26 |
|
class EventHeader; |
27 |
|
class LAHeader; |
28 |
+ |
class TriggerMask; |
29 |
|
|
30 |
|
class FillerMetaInfos : public BaseFiller |
31 |
|
{ |
32 |
|
public: |
33 |
< |
FillerMetaInfos(const edm::ParameterSet &cfg, bool active=1); |
33 |
> |
FillerMetaInfos(const edm::ParameterSet &cfg, const char *name="MetaInfos", bool active=1); |
34 |
|
~FillerMetaInfos(); |
35 |
|
|
36 |
< |
void BookDataBlock(TreeWriter &tws); |
37 |
< |
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es); |
33 |
< |
void FillRunInfo(const edm::Event &e, const edm::EventSetup &es); |
34 |
< |
// void FillL1Info(const edm::Event &e, const edm::EventSetup &es); |
35 |
< |
// void FillL1Trig(const edm::Event &e, const edm::EventSetup &es); |
36 |
< |
void FillHltInfo(const edm::Event &e, const edm::EventSetup &es); |
37 |
< |
void FillHltTrig(const edm::Event &e, const edm::EventSetup &es); |
36 |
> |
void BookDataBlock(TreeWriter &tws, const edm::EventSetup &es); |
37 |
> |
void FillDataBlock(const edm::Event &e, const edm::EventSetup &es); |
38 |
|
|
39 |
|
private: |
40 |
< |
std::string evtName_; //event branch name |
41 |
< |
std::string runName_; //run info branch name |
42 |
< |
std::string lahName_; //look-ahead header branch name |
43 |
< |
Bool_t l1Active_; //=true if L1 info are filled |
44 |
< |
std::string l1TableName_; //L1 trigger table branch name |
45 |
< |
std::string l1BitsName_; //L1 trigger bits branch name |
46 |
< |
std::string l1ObjsName_; //L1 trigger branch name |
40 |
> |
void FillRunInfo(const edm::Event &e, const edm::EventSetup &es); |
41 |
> |
void FillHltInfo(const edm::Event &e, const edm::EventSetup &es); |
42 |
> |
void FillHltTrig(const edm::Event &e, const edm::EventSetup &es); |
43 |
> |
void FillL1Trig(const edm::Event &e, const edm::EventSetup &es); |
44 |
> |
const char *Istr() const; |
45 |
> |
|
46 |
> |
std::string evtName_; //event branch name (must be unique) |
47 |
> |
std::string runTreeName_; //run info tree name (must be unique) |
48 |
> |
std::string lahTreeName_; //look-ahead header tree name (must be unique) |
49 |
> |
std::string hltTreeName_; //hlt tree name (must be unique) |
50 |
|
Bool_t hltActive_; //=true if HLT info are filled |
51 |
< |
std::string hltProcName_; //HLT process name |
51 |
> |
std::vector<std::string> hltProcNames_; //HLT process name(s) |
52 |
> |
std::string hltProcName_; //HLT process name to be used |
53 |
|
std::string hltResName_; //HLT trigger results edm name |
54 |
|
std::string hltEvtName_; //HLT trigger event edm name |
55 |
|
std::string hltTableName_; //HLT trigger table branch name |
56 |
|
std::string hltLabelName_; //HLT trigger label branch name |
57 |
|
std::string hltBitsName_; //HLT trigger bits branch name |
58 |
|
std::string hltObjsName_; //HLT trigger branch name |
59 |
+ |
Bool_t l1Active_; //=true if some L1 info are filled |
60 |
+ |
std::string l1GTRecName_; //L1 global trigger record edm name |
61 |
+ |
std::string l1TBitsName_; //L1 technical bit name |
62 |
+ |
std::string l1ABitsName_; //L1 algo bit name |
63 |
|
TreeWriter *tws_; //tree writer (not owned) |
64 |
|
EventHeader *eventHeader_; //event header |
65 |
|
LAHeader *evtLAHeader_; //look-ahead event header |
68 |
|
TTree *laTree_; //look ahead tree (not owned) |
69 |
|
Int_t runEntries_; //number of run info entries |
70 |
|
std::map<UInt_t,Int_t> runmap_; //map between run number and entry number |
71 |
< |
Int_t l1Entries_; //number of l1 info entries |
72 |
< |
THashTable *l1Table_; //L1 trigger table |
65 |
< |
TTree *l1Tree_; //L1 trigger tree (not owned) |
66 |
< |
BitMask256 *hltBits_; //HLT trigger bit mask |
67 |
< |
Vector<std::string> *hltTable_; //HLT trigger table |
71 |
> |
TriggerMask *hltBits_; //HLT trigger bit mask |
72 |
> |
std::vector<std::string> *hltTable_; //HLT trigger table |
73 |
|
std::map<std::string,Short_t> *hltTabMap_; //HLT trigger labels map |
74 |
< |
Vector<std::string> *hltLabels_; //HLT module labels |
74 |
> |
std::vector<std::string> *hltLabels_; //HLT module labels |
75 |
|
std::map<std::string,Short_t> *hltLabMap_; //HLT module labels map |
76 |
|
TriggerObjectBaseArr *hltObjs_; //HLT trigger objects |
77 |
|
TriggerObjectRelArr *hltRels_; //HLT trigger objects relation |
79 |
|
HLTConfigProvider hltConfig_; //HLT config from provenance |
80 |
|
Int_t hltEntries_; //number of hlt info entries |
81 |
|
UShort_t fileNum_; //file number of current file |
82 |
+ |
L1TriggerMask *l1TBits_; //L1 technical trigger bit mask |
83 |
+ |
L1TriggerMask *l1ABits_; //L1 algorithm trigger bit mask |
84 |
+ |
L1TriggerMask *l1TBits2_; //L1 technical trigger bit mask before masking |
85 |
+ |
L1TriggerMask *l1ABits2_; //L1 algorithm trigger bit mask before masking |
86 |
|
|
87 |
< |
static bool instance_; //=true when one active instance |
87 |
> |
static Int_t instance_; //counts active instances |
88 |
|
}; |
89 |
|
} |
90 |
|
#endif |