ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerMetaInfos.h
Revision: 1.15
Committed: Fri Mar 20 18:05:40 2009 UTC (16 years, 1 month ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.14: +4 -2 lines
Log Message:
Description added

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.15 // $Id: FillerMetaInfos.h,v 1.14 2009/03/15 11:19:54 loizides Exp $
3 loizides 1.1 //
4     // FillerMetaInfos
5 loizides 1.15 //
6     // Implementation of a filler that stores all of the meta information, as well as the HLT
7     // trigger info into the bambu objects. Still missing is the implementation for the L1 info.
8 loizides 1.1 //
9     // Authors: C.Loizides
10     //--------------------------------------------------------------------------------------------------
11    
12 loizides 1.9 #ifndef MITPROD_TREEFILLER_FILLERMETAINFOS_H
13     #define MITPROD_TREEFILLER_FILLERMETAINFOS_H
14 loizides 1.1
15     #include "FWCore/ParameterSet/interface/ParameterSet.h"
16     #include "MitProd/TreeFiller/interface/BaseFiller.h"
17 loizides 1.10 #include "HLTrigger/HLTcore/interface/HLTConfigProvider.h"
18     #include "MitAna/DataTree/interface/Collections.h"
19    
20     class THashTable;
21 loizides 1.1
22     namespace mithep
23     {
24 loizides 1.5 class RunInfo;
25     class EventHeader;
26     class LAHeader;
27 loizides 1.12 class TriggerMask;
28 loizides 1.5
29 loizides 1.1 class FillerMetaInfos : public BaseFiller
30     {
31     public:
32 loizides 1.13 FillerMetaInfos(const edm::ParameterSet &cfg, const char *name="MetaInfos", bool active=1);
33 loizides 1.1 ~FillerMetaInfos();
34    
35 loizides 1.2 void BookDataBlock(TreeWriter &tws);
36 loizides 1.5 void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
37     void FillRunInfo(const edm::Event &e, const edm::EventSetup &es);
38 loizides 1.10 // void FillL1Info(const edm::Event &e, const edm::EventSetup &es);
39     // void FillL1Trig(const edm::Event &e, const edm::EventSetup &es);
40 loizides 1.5 void FillHltInfo(const edm::Event &e, const edm::EventSetup &es);
41 loizides 1.10 void FillHltTrig(const edm::Event &e, const edm::EventSetup &es);
42 loizides 1.5
43 loizides 1.1 private:
44 loizides 1.10 std::string evtName_; //event branch name
45     std::string runName_; //run info branch name
46     std::string lahName_; //look-ahead header branch name
47     Bool_t l1Active_; //=true if L1 info are filled
48     std::string l1TableName_; //L1 trigger table branch name
49     std::string l1BitsName_; //L1 trigger bits branch name
50     std::string l1ObjsName_; //L1 trigger branch name
51     Bool_t hltActive_; //=true if HLT info are filled
52     std::string hltProcName_; //HLT process name
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     TreeWriter *tws_; //tree writer (not owned)
60     EventHeader *eventHeader_; //event header
61     LAHeader *evtLAHeader_; //look-ahead event header
62     RunInfo *runInfo_; //run info block
63     TTree *runTree_; //run info tree (not owned)
64     TTree *laTree_; //look ahead tree (not owned)
65     Int_t runEntries_; //number of run info entries
66     std::map<UInt_t,Int_t> runmap_; //map between run number and entry number
67     Int_t l1Entries_; //number of l1 info entries
68     THashTable *l1Table_; //L1 trigger table
69     TTree *l1Tree_; //L1 trigger tree (not owned)
70 loizides 1.12 TriggerMask *hltBits_; //HLT trigger bit mask
71 loizides 1.11 std::vector<std::string> *hltTable_; //HLT trigger table
72 loizides 1.10 std::map<std::string,Short_t> *hltTabMap_; //HLT trigger labels map
73 loizides 1.11 std::vector<std::string> *hltLabels_; //HLT module labels
74 loizides 1.10 std::map<std::string,Short_t> *hltLabMap_; //HLT module labels map
75     TriggerObjectBaseArr *hltObjs_; //HLT trigger objects
76     TriggerObjectRelArr *hltRels_; //HLT trigger objects relation
77     TTree *hltTree_; //HLT trigger tree (not owned)
78     HLTConfigProvider hltConfig_; //HLT config from provenance
79     Int_t hltEntries_; //number of hlt info entries
80     UShort_t fileNum_; //file number of current file
81 loizides 1.7
82 loizides 1.10 static bool instance_; //=true when one active instance
83 loizides 1.1 };
84     }
85     #endif