CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1GtTriggerMenuTester.h
Go to the documentation of this file.
1 #ifndef L1GtConfigProducers_L1GtTriggerMenuTester_h
2 #define L1GtConfigProducers_L1GtTriggerMenuTester_h
3 
20 // this class header
22 
23 // system include files
24 #include <string>
25 #include <map>
26 
27 // user include files
28 // base class
30 
33 
35 
37 
38 // forward declarations
41 class L1GtTriggerMask;
42 class L1GtTriggerMenu;
43 
44 // class declaration
46 
47 public:
48 
49  // constructor
51 
52  // destructor
53  virtual ~L1GtTriggerMenuTester();
54 
55 private:
56 
58  void beginJob();
59 
61  void beginRun(const edm::Run&, const edm::EventSetup&);
62 
65  const edm::EventSetup&);
66 
68  void analyze(const edm::Event&, const edm::EventSetup&);
69 
71  void
73 
75  void endRun(const edm::Run&, const edm::EventSetup&);
76 
78  void endJob();
79 
80 private:
81 
84 
87 
89  void printTriggerGroup(const std::string& trigGroupName,
90  const std::map<std::string, const L1GtAlgorithm*>& trigGroup,
91  const bool compactPrint, const bool printPfsRates);
92 
94  void printWiki();
95 
96 private:
97 
99  typedef std::map<std::string, const L1GtAlgorithm*>::const_iterator
101 
102 private:
103 
105 
109 
111  std::string m_htmlFile;
112 
115 
117  std::string m_hltProcessName;
118 
122 
125 
128 
129 private:
130 
132 
135 
138 
141 
144 
146 
147  const std::vector<std::vector<int> >* m_prescaleFactorsAlgoTrig;
148  const std::vector<std::vector<int> >* m_prescaleFactorsTechTrig;
149 
153 
156 
157  const std::vector<unsigned int>* m_triggerMaskAlgoTrig;
158  const std::vector<unsigned int>* m_triggerMaskTechTrig;
159 
160  const std::vector<unsigned int>* m_triggerMaskVetoAlgoTrig;
161  const std::vector<unsigned int>* m_triggerMaskVetoTechTrig;
162 
163  // trigger menu
165 
169 
170 private:
171 
174 
176  std::string m_hltTableName;
177 
179  std::vector<std::vector<std::string> > m_hltPathsForL1AlgorithmTrigger;
180 
182  std::vector<std::vector<std::string> > m_hltPathsForL1TechnicalTrigger;
183 
185  std::vector<std::string> m_algoTriggerSeedNotInL1Menu;
186  std::vector<std::string> m_techTriggerSeedNotInL1Menu;
187 
188 };
189 
190 #endif /*L1GtConfigProducers_L1GtTriggerMenuTester_h*/
void printTriggerGroup(const std::string &trigGroupName, const std::map< std::string, const L1GtAlgorithm * > &trigGroup, const bool compactPrint, const bool printPfsRates)
printing template for a trigger group
bool m_overwriteHtmlFile
input parameters
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
begin luminosity block
const std::vector< std::vector< int > > * m_prescaleFactorsTechTrig
L1GtTriggerMenuTester(const edm::ParameterSet &)
void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
end luminosity block
const L1GtStableParameters * m_l1GtStablePar
event setup cached stuff
std::map< std::string, L1GtAlgorithm > AlgorithmMap
map containing the algorithms
const std::vector< unsigned int > * m_triggerMaskVetoAlgoTrig
void associateL1SeedsHltPath(const edm::Run &, const edm::EventSetup &)
L1 seed - HLT path association.
bool m_printPfsRates
print prescale factors and rates
std::string m_hltTableName
HLT menu was used to associate the HLT path to the L1 algorithm triggers.
const AlgorithmMap * m_algorithmAliasMap
HLTConfigProvider m_hltConfig
The instance of the HLTConfigProvider as a data member.
const L1GtTriggerMenu * m_l1GtMenu
const AlgorithmMap * m_algorithmMap
const L1GtTriggerMask * m_l1GtTmVetoAlgo
const L1GtPrescaleFactors * m_l1GtPfTech
const std::vector< unsigned int > * m_triggerMaskAlgoTrig
void printWiki()
printing in Wiki format
void endRun(const edm::Run &, const edm::EventSetup &)
end run
void beginRun(const edm::Run &, const edm::EventSetup &)
begin run
std::vector< std::string > m_techTriggerSeedNotInL1Menu
int m_indexPfSet
index of prescale factor set to be printed
const std::vector< unsigned int > * m_triggerMaskVetoTechTrig
bool m_useHltMenu
use a HLT menu for L1 seed - HLT path association
std::map< std::string, const L1GtAlgorithm * >::const_iterator CItAlgoP
constant iterator
const L1GtTriggerMask * m_l1GtTmAlgo
trigger masks &amp; veto masks
void analyze(const edm::Event &, const edm::EventSetup &)
analyze
const std::vector< std::vector< int > > * m_prescaleFactorsAlgoTrig
const L1GtPrescaleFactors * m_l1GtPfAlgo
prescale factors
unsigned int m_numberAlgorithmTriggers
number of algorithm triggers
const AlgorithmMap * m_technicalTriggerMap
const L1GtTriggerMask * m_l1GtTmTech
std::vector< std::string > m_algoTriggerSeedNotInL1Menu
vector of algorithm or technical triggers not in the L1 menu
std::vector< std::vector< std::string > > m_hltPathsForL1TechnicalTrigger
vector of HLT paths seeded by a L1 technical trigger - vector index corresponds to the bit number ...
const L1GtTriggerMask * m_l1GtTmVetoTech
std::vector< std::vector< std::string > > m_hltPathsForL1AlgorithmTrigger
vector of HLT paths seeded by a L1 algorithm trigger - vector index corresponds to the bit number ...
void retrieveL1EventSetup(const edm::EventSetup &)
retrieve all the relevant L1 trigger event setup records
std::string m_htmlFile
name of HTML file attached to the wiki page
std::string m_hltProcessName
process name of HLT process for which to get HLT configuration
unsigned int m_numberTechnicalTriggers
number of technical triggers
Definition: Run.h:33
const std::vector< unsigned int > * m_triggerMaskTechTrig