ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerMetaInfos.h
Revision: 1.24
Committed: Fri Sep 25 08:42:50 2009 UTC (15 years, 7 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_012a, Mit_012, Mit_011a
Changes since 1.23: +2 -2 lines
Log Message:
Extended interface of BookDataBlock to contain event setup.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.24 // $Id: FillerMetaInfos.h,v 1.23 2009/08/11 15:29:27 loizides Exp $
3 loizides 1.1 //
4     // FillerMetaInfos
5 loizides 1.15 //
6 loizides 1.19 // 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 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 loizides 1.18 #include "HLTrigger/HLTcore/interface/HLTConfigProvider.h"
16 loizides 1.21 #include "MitAna/DataTree/interface/TriggerObjectBaseFwd.h"
17     #include "MitAna/DataTree/interface/TriggerObjectRelFwd.h"
18 loizides 1.1 #include "MitProd/TreeFiller/interface/BaseFiller.h"
19 loizides 1.10
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.24 void BookDataBlock(TreeWriter &tws, const edm::EventSetup &es);
36 loizides 1.16 void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
37     void FillRunInfo(const edm::Event &e, const edm::EventSetup &es);
38     void FillHltInfo(const edm::Event &e, const edm::EventSetup &es);
39     void FillHltTrig(const edm::Event &e, const edm::EventSetup &es);
40 loizides 1.5
41 loizides 1.1 private:
42 loizides 1.23 const char *Istr() const;
43    
44     std::string evtName_; //event branch name (must be unique)
45     std::string runTreeName_; //run info tree name (must be unique)
46     std::string lahTreeName_; //look-ahead header tree name (must be unique)
47     std::string hltTreeName_; //hlt tree name (must be unique)
48 loizides 1.10 Bool_t hltActive_; //=true if HLT info are filled
49 loizides 1.17 std::vector<std::string> hltProcNames_; //HLT process name(s)
50     std::string hltProcName_; //HLT process name to be used
51 loizides 1.10 std::string hltResName_; //HLT trigger results edm name
52     std::string hltEvtName_; //HLT trigger event edm name
53     std::string hltTableName_; //HLT trigger table branch name
54     std::string hltLabelName_; //HLT trigger label branch name
55     std::string hltBitsName_; //HLT trigger bits branch name
56     std::string hltObjsName_; //HLT trigger branch name
57     TreeWriter *tws_; //tree writer (not owned)
58     EventHeader *eventHeader_; //event header
59     LAHeader *evtLAHeader_; //look-ahead event header
60     RunInfo *runInfo_; //run info block
61     TTree *runTree_; //run info tree (not owned)
62     TTree *laTree_; //look ahead tree (not owned)
63     Int_t runEntries_; //number of run info entries
64     std::map<UInt_t,Int_t> runmap_; //map between run number and entry number
65 loizides 1.12 TriggerMask *hltBits_; //HLT trigger bit mask
66 loizides 1.11 std::vector<std::string> *hltTable_; //HLT trigger table
67 loizides 1.10 std::map<std::string,Short_t> *hltTabMap_; //HLT trigger labels map
68 loizides 1.11 std::vector<std::string> *hltLabels_; //HLT module labels
69 loizides 1.10 std::map<std::string,Short_t> *hltLabMap_; //HLT module labels map
70     TriggerObjectBaseArr *hltObjs_; //HLT trigger objects
71     TriggerObjectRelArr *hltRels_; //HLT trigger objects relation
72     TTree *hltTree_; //HLT trigger tree (not owned)
73     HLTConfigProvider hltConfig_; //HLT config from provenance
74     Int_t hltEntries_; //number of hlt info entries
75     UShort_t fileNum_; //file number of current file
76 loizides 1.7
77 loizides 1.23 static Int_t instance_; //counts active instances
78 loizides 1.1 };
79     }
80     #endif