ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerMetaInfos.h
(Generate patch)

Comparing UserCode/MitProd/TreeFiller/interface/FillerMetaInfos.h (file contents):
Revision 1.8 by sixie, Mon Aug 18 11:16:11 2008 UTC vs.
Revision 1.21 by loizides, Mon Jul 13 10:39:35 2009 UTC

# Line 3 | Line 3
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 TREEFILLER_FILLERMETAINFOS_H
13 < #define TREEFILLER_FILLERMETAINFOS_H
12 > #ifndef MITPROD_TREEFILLER_FILLERMETAINFOS_H
13 > #define MITPROD_TREEFILLER_FILLERMETAINFOS_H
14  
15   #include "FWCore/ParameterSet/interface/ParameterSet.h"
16 + #include "HLTrigger/HLTcore/interface/HLTConfigProvider.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 +
23   namespace mithep
24   {
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);
38 <      void FillRunInfo(const edm::Event &e, const edm::EventSetup &es);
39 <      void FillHltInfo(const edm::Event &e, const edm::EventSetup &es);
36 >      void                           BookDataBlock(TreeWriter &tws);
37 >      void                           FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
38 >      void                           FillRunInfo(const edm::Event &e, const edm::EventSetup &es);
39 >      void                           FillHltInfo(const edm::Event &e, const edm::EventSetup &es);
40 >      void                           FillHltTrig(const edm::Event &e, const edm::EventSetup &es);
41  
42      private:
43 <      Bool_t                   hltActive_;    //=true if HLT info are filled
44 <      std::string              evtName_;      //event branch name
45 <      std::string              runName_;      //run info branch name
46 <      std::string              lahName_;      //look-ahead header branch name
47 <      std::string              hltName_;      //todo
48 <      std::string              l1tName_;      //todo
49 <      TreeWriter              *tws_;          //tree writer (not owned)
50 <      EventHeader             *eventHeader_;  //event header
51 <      LAHeader                *evtLAHeader_;  //look-ahead event header
52 <      RunInfo                 *runInfo_;      //run info block
53 <      TTree                   *runTree_;      //run info tree (not owned)
54 <      TTree                   *laTree_;       //look ahead tree (not owned)
55 <      Int_t                    runEntries_;   //number of run info entries
56 <      UShort_t                 fileNum_;      //file number of current file
57 <      std::map<UInt_t,Int_t>   runmap_;       //map between run number and entry number
43 >      std::string                    evtName_;      //event branch name
44 >      std::string                    runName_;      //run info branch name
45 >      std::string                    lahName_;      //look-ahead header branch name
46 >      Bool_t                         hltActive_;    //=true if HLT info are filled
47 >      std::vector<std::string>       hltProcNames_; //HLT process name(s)
48 >      std::string                    hltProcName_;  //HLT process name to be used
49 >      std::string                    hltResName_;   //HLT trigger results edm name
50 >      std::string                    hltEvtName_;   //HLT trigger event edm name
51 >      std::string                    hltTableName_; //HLT trigger table branch name
52 >      std::string                    hltLabelName_; //HLT trigger label branch name
53 >      std::string                    hltBitsName_;  //HLT trigger bits branch name
54 >      std::string                    hltObjsName_;  //HLT trigger branch name
55 >      TreeWriter                    *tws_;          //tree writer (not owned)
56 >      EventHeader                   *eventHeader_;  //event header
57 >      LAHeader                      *evtLAHeader_;  //look-ahead event header
58 >      RunInfo                       *runInfo_;      //run info block
59 >      TTree                         *runTree_;      //run info tree (not owned)
60 >      TTree                         *laTree_;       //look ahead tree (not owned)
61 >      Int_t                          runEntries_;   //number of run info entries
62 >      std::map<UInt_t,Int_t>         runmap_;       //map between run number and entry number
63 >      TriggerMask                   *hltBits_;      //HLT trigger bit mask
64 >      std::vector<std::string>      *hltTable_;     //HLT trigger table
65 >      std::map<std::string,Short_t> *hltTabMap_;    //HLT trigger labels map
66 >      std::vector<std::string>      *hltLabels_;    //HLT module labels
67 >      std::map<std::string,Short_t> *hltLabMap_;    //HLT module labels map
68 >      TriggerObjectBaseArr          *hltObjs_;      //HLT trigger objects
69 >      TriggerObjectRelArr           *hltRels_;      //HLT trigger objects relation
70 >      TTree                         *hltTree_;      //HLT trigger tree (not owned)
71 >      HLTConfigProvider              hltConfig_;    //HLT config from provenance
72 >      Int_t                          hltEntries_;   //number of hlt info entries
73 >      UShort_t                       fileNum_;      //file number of current file
74  
75 <      static bool              instance_;     //=true when one active instance
75 >      static bool                    instance_;     //=true when one active instance
76    };
77   }
78   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines