ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerMetaInfos.h
Revision: 1.14
Committed: Sun Mar 15 11:19:54 2009 UTC (16 years, 1 month ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_008pre2
Changes since 1.13: +2 -1 lines
Log Message:
Filler weight and mc flag.

File Contents

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