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.10 by loizides, Wed Sep 17 04:30:15 2008 UTC vs.
Revision 1.23 by loizides, Tue Aug 11 15:29:27 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 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/TriggerObjectBaseFwd.h"
17 > #include "MitAna/DataTree/interface/TriggerObjectRelFwd.h"
18 > #include "MitProd/TreeFiller/interface/BaseFiller.h"
19  
20   class THashTable;
21  
# Line 21 | Line 24 | namespace mithep
24    class RunInfo;
25    class EventHeader;
26    class LAHeader;
27 +  class TriggerMask;
28  
29    class FillerMetaInfos : public BaseFiller
30    {
31      public:
32 <      FillerMetaInfos(const edm::ParameterSet &cfg, bool active=1);
32 >      FillerMetaInfos(const edm::ParameterSet &cfg, const char *name="MetaInfos", bool active=1);
33        ~FillerMetaInfos();
34  
35 <      void BookDataBlock(TreeWriter &tws);
36 <      void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
37 <      void FillRunInfo(const edm::Event &e, const edm::EventSetup &es);
38 < //      void FillL1Info(const edm::Event &e, const edm::EventSetup &es);
39 < //      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);
35 >      void                           BookDataBlock(TreeWriter &tws);
36 >      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  
41      private:
42 <      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
46 <      std::string                    l1ObjsName_;   //L1 trigger branch name
42 >      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        Bool_t                         hltActive_;    //=true if HLT info are filled
49 <      std::string                    hltProcName_;  //HLT process name
49 >      std::vector<std::string>       hltProcNames_; //HLT process name(s)
50 >      std::string                    hltProcName_;  //HLT process name to be used
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
# Line 60 | Line 62 | namespace mithep
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
65 <      TTree                         *l1Tree_;       //L1 trigger tree (not owned)
66 <      BitMask256                    *hltBits_;      //HLT trigger bit mask
67 <      Vector<std::string>           *hltTable_;     //HLT trigger table
65 >      TriggerMask                   *hltBits_;      //HLT trigger bit mask
66 >      std::vector<std::string>      *hltTable_;     //HLT trigger table
67        std::map<std::string,Short_t> *hltTabMap_;    //HLT trigger labels map
68 <      Vector<std::string>           *hltLabels_;    //HLT module labels
68 >      std::vector<std::string>      *hltLabels_;    //HLT module labels
69        std::map<std::string,Short_t> *hltLabMap_;    //HLT module labels map
70        TriggerObjectBaseArr          *hltObjs_;      //HLT trigger objects
71        TriggerObjectRelArr           *hltRels_;      //HLT trigger objects relation
# Line 75 | Line 74 | namespace mithep
74        Int_t                          hltEntries_;   //number of hlt info entries
75        UShort_t                       fileNum_;      //file number of current file
76  
77 <      static bool                    instance_;     //=true when one active instance
77 >      static Int_t                   instance_;     //counts active instances
78    };
79   }
80   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines