Revision: | 1.9 |
Committed: | Tue Nov 24 14:27:32 2009 UTC (15 years, 5 months ago) by loizides |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | Mit_032, Mit_031, Mit_025c_branch2, Mit_025c_branch1, Mit_030, Mit_029c, Mit_029b, Mit_030_pre1, Mit_029a, Mit_029, Mit_029_pre1, Mit_028a, Mit_025c_branch0, Mit_028, Mit_027a, Mit_027, Mit_026, Mit_025e, Mit_025d, Mit_025c, Mit_025b, Mit_025a, Mit_025, Mit_025pre2, Mit_024b, Mit_025pre1, Mit_024a, Mit_024, Mit_023, Mit_022a, Mit_022, Mit_020d, TMit_020d, Mit_020c, Mit_021, Mit_021pre2, Mit_021pre1, Mit_020b, Mit_020a, Mit_020, Mit_020pre1, Mit_018, Mit_017, Mit_017pre3, Mit_017pre2, Mit_017pre1, Mit_016, Mit_015b, Mit_015a, Mit_015, Mit_014e, Mit_014d, Mit_014c, Mit_014b, Mit_014a, Mit_014, Mit_014pre3, Mit_014pre2, Mit_014pre1, Mit_013d, Mit_013c, Mit_013b, Mit_013a, Mit_013, Mit_013pre1, Mit_012i, Mit_012h, Mit_012g, Mit_012f, Mit_012e, Mit_012d, Mit_012c, HEAD |
Branch point for: | Mit_025c_branch |
Changes since 1.8: | +10 -2 lines |
Log Message: | Added L1Mod |
# | User | Rev | Content |
---|---|---|---|
1 | loizides | 1.1 | //-------------------------------------------------------------------------------------------------- |
2 | loizides | 1.9 | // $Id: HLTFwkMod.h,v 1.8 2009/08/11 15:24:39 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.9 | const char *L1ATabNamePub() const { return fL1ATabNamePub; } |
34 | const char *L1TTabNamePub() const { return fL1TTabNamePub; } | ||
35 | loizides | 1.8 | const char *HLTLabName() const { return fHLTLabName; } |
36 | const char *HLTLabNamePub() const { return fHLTLabNamePub; } | ||
37 | const char *HLTObjsName() const { return fObjsName; } | ||
38 | const char *HLTObjsNamePub() const { return fObjsNamePub; } | ||
39 | const char *HLTTabName() const { return fHLTTabName; } | ||
40 | loizides | 1.1 | const char *HLTTabNamePub() const { return fHLTTabNamePub; } |
41 | loizides | 1.8 | const char *HLTTreeName() const { return fHLTTreeName; } |
42 | loizides | 1.9 | void SetL1ATabName(const char *n) { fL1ATabNamePub = n; } |
43 | void SetL1TTabName(const char *n) { fL1TTabNamePub = n; } | ||
44 | loizides | 1.8 | void SetHLTLabName(const char *n) { fHLTLabName = n; } |
45 | void SetHLTLabNamePub(const char *n) { fHLTLabNamePub = n; } | ||
46 | void SetHLTObjsName(const char *n) { fObjsName = n; } | ||
47 | void SetHLTObjsNamePub(const char *n) { fObjsNamePub = n; } | ||
48 | void SetHLTTabName(const char *n) { fHLTTabName = n; } | ||
49 | void SetHLTTabNamePub(const char *n) { fHLTTabNamePub = n; } | ||
50 | void SetHLTTreeName(const char *n) { fHLTTreeName = n; } | ||
51 | loizides | 1.1 | |
52 | protected: | ||
53 | void BeginRun(); | ||
54 | Bool_t LoadTriggerTable(); | ||
55 | Bool_t Notify(); | ||
56 | void Process(); | ||
57 | void SlaveBegin(); | ||
58 | void SlaveTerminate(); | ||
59 | |||
60 | TString fHLTTreeName; //HLT tree name | ||
61 | TString fHLTTabName; //HLT trigger names branch name | ||
62 | TString fHLTLabName; //HLT module labels branch name | ||
63 | TString fObjsName; //trigger objects branch name | ||
64 | TString fRelsName; //trigger to objects relation branch name | ||
65 | loizides | 1.9 | TString fHLTTabNamePub; //HLT trigger names published qname |
66 | loizides | 1.1 | TString fHLTLabNamePub; //HLT module labels published name |
67 | TString fObjsNamePub; //trigger objects published name | ||
68 | loizides | 1.9 | TString fL1ATabNamePub; //L1 algorithm trigger names published name |
69 | TString fL1TTabNamePub; //L1 technical trigger names published name | ||
70 | loizides | 1.1 | const UInt_t fNMaxTriggers; //maximum number of triggers |
71 | loizides | 1.3 | const TriggerObjectBaseArr *fObjs; //!trigger objects branch |
72 | const TriggerObjectRelArr *fRels; //!trigger to objects relation branch | ||
73 | loizides | 1.1 | Bool_t fReload; //!=true then reload/rebuild tables |
74 | TTree *fHLTTree; //!HLT tree in current file | ||
75 | loizides | 1.5 | std::vector<std::string> *fHLTTab; //!HLT trigger names |
76 | std::vector<std::string> *fHLTLab; //!HLT module labels | ||
77 | loizides | 1.1 | Int_t fCurEnt; //!current entry in HLT tree (-2 for unset) |
78 | TriggerTable *fTriggers; //!exported published HLT trigger table | ||
79 | TriggerTable *fLabels; //!exported published HLT module label table | ||
80 | TriggerObjectsTable *fTrigObjs; //!exported published HLT trigger objects table | ||
81 | loizides | 1.9 | TriggerTable *fL1Algos; //!exported published L1 algorithm triggers table |
82 | TriggerTable *fL1Techs; //!exported published L1 technical triggers table | ||
83 | loizides | 1.1 | |
84 | loizides | 1.2 | friend class OutputMod; |
85 | |||
86 | loizides | 1.4 | ClassDef(HLTFwkMod, 1) // HLT framework TAM module |
87 | loizides | 1.1 | }; |
88 | } | ||
89 | #endif |