ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/TreeMod/interface/HLTFwkMod.h
Revision: 1.7
Committed: Mon Jul 13 10:39:20 2009 UTC (15 years, 9 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_010
Changes since 1.6: +3 -2 lines
Log Message:
Updated for changes in trigger classes

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.7 // $Id: HLTFwkMod.h,v 1.6 2009/06/15 15:00:17 loizides Exp $
3 loizides 1.1 //
4     // HLTFwkMod
5     //
6     // This TAM module reads the trigger and trigger objects information whenever it changes
7     // (ie on run boundaries). It then publishes this in a convenient way so that the real
8     // user HLTMod modules can make use of it. Note: This module gets automatically integrated
9     // by the Analysis steering class (unless you have called Analysis::SetUseHLT(kFALSE).
10     //
11     // Authors: C.Loizides
12     //--------------------------------------------------------------------------------------------------
13    
14     #ifndef MITANA_TREEMOD_HLTFWKMOD_H
15     #define MITANA_TREEMOD_HLTFWKMOD_H
16    
17     #include <string>
18     #include <TString.h>
19     #include "MitAna/TreeMod/interface/BaseMod.h"
20 loizides 1.7 #include "MitAna/DataTree/interface/TriggerObjectBaseFwd.h"
21     #include "MitAna/DataTree/interface/TriggerObjectRelFwd.h"
22 loizides 1.1
23     namespace mithep
24     {
25     class TriggerTable;
26     class TriggerObjectsTable;
27    
28     class HLTFwkMod : public BaseMod {
29     public:
30     HLTFwkMod(const char *name="HLTFwkMod", const char *title="HLT framework module");
31     ~HLTFwkMod();
32    
33 loizides 1.2 const char *HLTTreeName() const { return fHLTTreeName; }
34     const char *HLTTabName() const { return fHLTTabName; }
35     const char *HLTLabName() const { return fHLTLabName; }
36     const char *HLTObjsName() const { return fObjsName; }
37 loizides 1.1 const char *HLTTabNamePub() const { return fHLTTabNamePub; }
38     const char *HLTLabNamePub() const { return fHLTLabNamePub; }
39     const char *HLTObjsNamePub() const { return fObjsNamePub; }
40    
41     protected:
42     void BeginRun();
43     Bool_t LoadTriggerTable();
44     Bool_t Notify();
45     void Process();
46     void SlaveBegin();
47     void SlaveTerminate();
48    
49     TString fHLTTreeName; //HLT tree name
50     TString fHLTTabName; //HLT trigger names branch name
51     TString fHLTLabName; //HLT module labels branch name
52     TString fObjsName; //trigger objects branch name
53     TString fRelsName; //trigger to objects relation branch name
54     TString fHLTTabNamePub; //HLT trigger names published name
55     TString fHLTLabNamePub; //HLT module labels published name
56     TString fObjsNamePub; //trigger objects published name
57     const UInt_t fNMaxTriggers; //maximum number of triggers
58 loizides 1.3 const TriggerObjectBaseArr *fObjs; //!trigger objects branch
59     const TriggerObjectRelArr *fRels; //!trigger to objects relation branch
60 loizides 1.1 Bool_t fReload; //!=true then reload/rebuild tables
61     TTree *fHLTTree; //!HLT tree in current file
62 loizides 1.5 std::vector<std::string> *fHLTTab; //!HLT trigger names
63     std::vector<std::string> *fHLTLab; //!HLT module labels
64 loizides 1.1 Int_t fCurEnt; //!current entry in HLT tree (-2 for unset)
65     TriggerTable *fTriggers; //!exported published HLT trigger table
66     TriggerTable *fLabels; //!exported published HLT module label table
67     TriggerObjectsTable *fTrigObjs; //!exported published HLT trigger objects table
68    
69 loizides 1.2 friend class OutputMod;
70    
71 loizides 1.4 ClassDef(HLTFwkMod, 1) // HLT framework TAM module
72 loizides 1.1 };
73     }
74     #endif