L1TriggerConfig
L1GtConfigProducers
interface
L1GtTriggerMenuTester.h
Go to the documentation of this file.
1
#ifndef L1GtConfigProducers_L1GtTriggerMenuTester_h
2
#define L1GtConfigProducers_L1GtTriggerMenuTester_h
3
18
// this class header
19
#include "
L1TriggerConfig/L1GtConfigProducers/interface/L1GtTriggerMenuTester.h
"
20
21
// system include files
22
#include <string>
23
#include <map>
24
25
// user include files
26
// base class
27
#include "
FWCore/Framework/interface/one/EDAnalyzer.h
"
28
29
#include "
FWCore/Framework/interface/Event.h
"
30
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
31
32
#include "
CondFormats/L1TObjects/interface/L1GtAlgorithm.h
"
33
#include "
CondFormats/L1TObjects/interface/L1GtTriggerMenuFwd.h
"
34
35
#include "
HLTrigger/HLTcore/interface/HLTConfigProvider.h
"
36
37
// forward declarations
38
class
L1GtStableParameters
;
39
class
L1GtPrescaleFactors
;
40
class
L1GtTriggerMask
;
41
class
L1GtTriggerMenu
;
42
43
class
L1GtStableParametersRcd
;
44
class
L1GtPrescaleFactorsAlgoTrigRcd
;
45
class
L1GtPrescaleFactorsTechTrigRcd
;
46
class
L1GtTriggerMaskAlgoTrigRcd
;
47
class
L1GtTriggerMaskTechTrigRcd
;
48
class
L1GtTriggerMaskVetoAlgoTrigRcd
;
49
class
L1GtTriggerMaskVetoTechTrigRcd
;
50
class
L1GtTriggerMenuRcd
;
51
52
// class declaration
53
class
L1GtTriggerMenuTester
:
public
edm::one::EDAnalyzer
<edm::one::WatchRuns> {
54
public
:
55
// constructor
56
explicit
L1GtTriggerMenuTester
(
const
edm::ParameterSet
&);
57
58
private
:
60
void
beginRun
(
const
edm::Run
&,
const
edm::EventSetup
&)
override
;
61
63
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
64
66
void
endRun
(
const
edm::Run
&,
const
edm::EventSetup
&)
override
;
67
68
private
:
70
void
retrieveL1EventSetup
(
const
edm::EventSetup
&);
71
73
void
associateL1SeedsHltPath
(
const
edm::Run
&,
const
edm::EventSetup
&);
74
76
void
printTriggerGroup
(
const
std::string
& trigGroupName,
77
const
std::map<std::string, const L1GtAlgorithm*>& trigGroup,
78
const
bool
compactPrint,
79
const
bool
printPfsRates);
80
82
void
printWiki
();
83
84
private
:
86
typedef
std::map<std::string, const L1GtAlgorithm*>::const_iterator
CItAlgoP
;
87
88
private
:
90
93
bool
m_overwriteHtmlFile
;
94
96
std::string
m_htmlFile
;
97
99
bool
m_useHltMenu
;
100
102
std::string
m_hltProcessName
;
103
106
bool
m_noThrowIncompatibleMenu
;
107
109
bool
m_printPfsRates
;
110
112
int
m_indexPfSet
;
113
114
private
:
116
117
edm::ESGetToken<L1GtStableParameters, L1GtStableParametersRcd>
m_l1GtStableParToken
;
118
edm::ESGetToken<L1GtPrescaleFactors, L1GtPrescaleFactorsAlgoTrigRcd>
m_l1GtPfAlgoToken
;
119
edm::ESGetToken<L1GtPrescaleFactors, L1GtPrescaleFactorsTechTrigRcd>
m_l1GtPfTechToken
;
120
edm::ESGetToken<L1GtTriggerMask, L1GtTriggerMaskAlgoTrigRcd>
m_l1GtTmAlgoToken
;
121
edm::ESGetToken<L1GtTriggerMask, L1GtTriggerMaskTechTrigRcd>
m_l1GtTmTechToken
;
122
edm::ESGetToken<L1GtTriggerMask, L1GtTriggerMaskVetoAlgoTrigRcd>
m_l1GtTmVetoAlgoToken
;
123
edm::ESGetToken<L1GtTriggerMask, L1GtTriggerMaskVetoTechTrigRcd>
m_l1GtTmVetoTechToken
;
124
edm::ESGetToken<L1GtTriggerMenu, L1GtTriggerMenuRcd>
m_l1GtMenuToken
;
125
127
const
L1GtStableParameters
*
m_l1GtStablePar
;
128
130
unsigned
int
m_numberAlgorithmTriggers
;
131
133
unsigned
int
m_numberTechnicalTriggers
;
134
136
const
L1GtPrescaleFactors
*
m_l1GtPfAlgo
;
137
138
const
L1GtPrescaleFactors
*
m_l1GtPfTech
;
139
140
const
std::vector<std::vector<int> >*
m_prescaleFactorsAlgoTrig
;
141
const
std::vector<std::vector<int> >*
m_prescaleFactorsTechTrig
;
142
144
const
L1GtTriggerMask
*
m_l1GtTmAlgo
;
145
const
L1GtTriggerMask
*
m_l1GtTmTech
;
146
147
const
L1GtTriggerMask
*
m_l1GtTmVetoAlgo
;
148
const
L1GtTriggerMask
*
m_l1GtTmVetoTech
;
149
150
const
std::vector<unsigned int>*
m_triggerMaskAlgoTrig
;
151
const
std::vector<unsigned int>*
m_triggerMaskTechTrig
;
152
153
const
std::vector<unsigned int>*
m_triggerMaskVetoAlgoTrig
;
154
const
std::vector<unsigned int>*
m_triggerMaskVetoTechTrig
;
155
156
// trigger menu
157
const
L1GtTriggerMenu
*
m_l1GtMenu
;
158
159
const
AlgorithmMap
*
m_algorithmMap
;
160
const
AlgorithmMap
*
m_algorithmAliasMap
;
161
const
AlgorithmMap
*
m_technicalTriggerMap
;
162
163
private
:
165
HLTConfigProvider
m_hltConfig
;
166
168
std::string
m_hltTableName
;
169
171
std::vector<std::vector<std::string> >
m_hltPathsForL1AlgorithmTrigger
;
172
174
std::vector<std::vector<std::string> >
m_hltPathsForL1TechnicalTrigger
;
175
177
std::vector<std::string>
m_algoTriggerSeedNotInL1Menu
;
178
std::vector<std::string>
m_techTriggerSeedNotInL1Menu
;
179
};
180
181
#endif
/*L1GtConfigProducers_L1GtTriggerMenuTester_h*/
L1GtPrescaleFactorsAlgoTrigRcd
Definition:
L1GtPrescaleFactorsAlgoTrigRcd.h:38
L1GtTriggerMenuTester::m_overwriteHtmlFile
bool m_overwriteHtmlFile
input parameters
Definition:
L1GtTriggerMenuTester.h:93
L1GtTriggerMenuTester::m_prescaleFactorsTechTrig
const std::vector< std::vector< int > > * m_prescaleFactorsTechTrig
Definition:
L1GtTriggerMenuTester.h:141
L1GtTriggerMenuTester::m_noThrowIncompatibleMenu
bool m_noThrowIncompatibleMenu
Definition:
L1GtTriggerMenuTester.h:106
L1GtTriggerMenuTester::L1GtTriggerMenuTester
L1GtTriggerMenuTester(const edm::ParameterSet &)
Definition:
L1GtTriggerMenuTester.cc:59
L1GtPrescaleFactors
Definition:
L1GtPrescaleFactors.h:32
L1GtTriggerMenuTester::m_l1GtStablePar
const L1GtStableParameters * m_l1GtStablePar
stable parameters
Definition:
L1GtTriggerMenuTester.h:127
L1GtTriggerMenuTester
Definition:
L1GtTriggerMenuTester.h:53
AlgorithmMap
std::map< std::string, L1GtAlgorithm > AlgorithmMap
map containing the algorithms
Definition:
L1GtTriggerMenuFwd.h:31
L1GtTriggerMenuTester::m_triggerMaskVetoAlgoTrig
const std::vector< unsigned int > * m_triggerMaskVetoAlgoTrig
Definition:
L1GtTriggerMenuTester.h:153
L1GtAlgorithm.h
Event.h
L1GtTriggerMenuTester::associateL1SeedsHltPath
void associateL1SeedsHltPath(const edm::Run &, const edm::EventSetup &)
L1 seed - HLT path association.
Definition:
L1GtTriggerMenuTester.cc:186
L1GtTriggerMenuTester::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &) override
begin run
Definition:
L1GtTriggerMenuTester.cc:80
L1GtTriggerMenuTester.h
L1GtTriggerMenuTester::m_printPfsRates
bool m_printPfsRates
print prescale factors and rates
Definition:
L1GtTriggerMenuTester.h:109
L1GtTriggerMenuTester::m_hltTableName
std::string m_hltTableName
HLT menu was used to associate the HLT path to the L1 algorithm triggers.
Definition:
L1GtTriggerMenuTester.h:168
L1GtTriggerMenuTester::m_algorithmAliasMap
const AlgorithmMap * m_algorithmAliasMap
Definition:
L1GtTriggerMenuTester.h:160
L1GtTriggerMenuTester::m_hltConfig
HLTConfigProvider m_hltConfig
The instance of the HLTConfigProvider as a data member.
Definition:
L1GtTriggerMenuTester.h:165
L1GtTriggerMenuTester::m_l1GtMenu
const L1GtTriggerMenu * m_l1GtMenu
Definition:
L1GtTriggerMenuTester.h:157
L1GtTriggerMenuTester::m_algorithmMap
const AlgorithmMap * m_algorithmMap
Definition:
L1GtTriggerMenuTester.h:159
L1GtTriggerMenuTester::m_l1GtTmVetoAlgo
const L1GtTriggerMask * m_l1GtTmVetoAlgo
Definition:
L1GtTriggerMenuTester.h:147
L1GtPrescaleFactorsTechTrigRcd
Definition:
L1GtPrescaleFactorsTechTrigRcd.h:38
L1GtTriggerMenuTester::m_l1GtPfTech
const L1GtPrescaleFactors * m_l1GtPfTech
Definition:
L1GtTriggerMenuTester.h:138
L1GtTriggerMenuTester::m_triggerMaskAlgoTrig
const std::vector< unsigned int > * m_triggerMaskAlgoTrig
Definition:
L1GtTriggerMenuTester.h:150
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
L1GtTriggerMenuTester::m_l1GtTmTechToken
edm::ESGetToken< L1GtTriggerMask, L1GtTriggerMaskTechTrigRcd > m_l1GtTmTechToken
Definition:
L1GtTriggerMenuTester.h:121
L1GtTriggerMenuTester::printWiki
void printWiki()
printing in Wiki format
L1GtTriggerMaskVetoTechTrigRcd
Definition:
L1GtTriggerMaskVetoTechTrigRcd.h:39
L1GtTriggerMenuFwd.h
ParameterSet.h
L1GtTriggerMenuTester::endRun
void endRun(const edm::Run &, const edm::EventSetup &) override
end run
Definition:
L1GtTriggerMenuTester.cc:131
L1GtTriggerMenuTester::m_l1GtTmVetoAlgoToken
edm::ESGetToken< L1GtTriggerMask, L1GtTriggerMaskVetoAlgoTrigRcd > m_l1GtTmVetoAlgoToken
Definition:
L1GtTriggerMenuTester.h:122
edm::ESGetToken< L1GtStableParameters, L1GtStableParametersRcd >
L1GtTriggerMenuTester::m_techTriggerSeedNotInL1Menu
std::vector< std::string > m_techTriggerSeedNotInL1Menu
Definition:
L1GtTriggerMenuTester.h:178
L1GtStableParametersRcd
Definition:
L1GtStableParametersRcd.h:39
L1GtTriggerMenuTester::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
analyze
Definition:
L1GtTriggerMenuTester.cc:126
L1GtTriggerMenuTester::m_l1GtPfTechToken
edm::ESGetToken< L1GtPrescaleFactors, L1GtPrescaleFactorsTechTrigRcd > m_l1GtPfTechToken
Definition:
L1GtTriggerMenuTester.h:119
L1GtTriggerMenuTester::m_indexPfSet
int m_indexPfSet
index of prescale factor set to be printed
Definition:
L1GtTriggerMenuTester.h:112
edm::EventSetup
Definition:
EventSetup.h:59
L1GtTriggerMenuTester::m_triggerMaskVetoTechTrig
const std::vector< unsigned int > * m_triggerMaskVetoTechTrig
Definition:
L1GtTriggerMenuTester.h:154
L1GtTriggerMenuTester::m_useHltMenu
bool m_useHltMenu
use a HLT menu for L1 seed - HLT path association
Definition:
L1GtTriggerMenuTester.h:99
L1GtTriggerMenuTester::CItAlgoP
std::map< std::string, const L1GtAlgorithm * >::const_iterator CItAlgoP
constant iterator
Definition:
L1GtTriggerMenuTester.h:86
L1GtStableParameters
Definition:
L1GtStableParameters.h:33
L1GtTriggerMask
Definition:
L1GtTriggerMask.h:33
L1GtTriggerMenuRcd
Definition:
L1GtTriggerMenuRcd.h:32
L1GtTriggerMenuTester::m_l1GtTmAlgo
const L1GtTriggerMask * m_l1GtTmAlgo
trigger masks & veto masks
Definition:
L1GtTriggerMenuTester.h:144
L1GtTriggerMenuTester::m_l1GtTmVetoTechToken
edm::ESGetToken< L1GtTriggerMask, L1GtTriggerMaskVetoTechTrigRcd > m_l1GtTmVetoTechToken
Definition:
L1GtTriggerMenuTester.h:123
L1GtTriggerMenu
Definition:
L1GtTriggerMenu.h:48
L1GtTriggerMaskVetoAlgoTrigRcd
Definition:
L1GtTriggerMaskVetoAlgoTrigRcd.h:39
L1GtTriggerMenuTester::m_prescaleFactorsAlgoTrig
const std::vector< std::vector< int > > * m_prescaleFactorsAlgoTrig
Definition:
L1GtTriggerMenuTester.h:140
L1GtTriggerMenuTester::m_l1GtPfAlgoToken
edm::ESGetToken< L1GtPrescaleFactors, L1GtPrescaleFactorsAlgoTrigRcd > m_l1GtPfAlgoToken
Definition:
L1GtTriggerMenuTester.h:118
HLTConfigProvider.h
L1GtTriggerMenuTester::printTriggerGroup
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
Definition:
L1GtTriggerMenuTester.cc:278
EDAnalyzer.h
L1GtTriggerMenuTester::m_l1GtPfAlgo
const L1GtPrescaleFactors * m_l1GtPfAlgo
prescale factors
Definition:
L1GtTriggerMenuTester.h:136
L1GtTriggerMenuTester::m_numberAlgorithmTriggers
unsigned int m_numberAlgorithmTriggers
number of algorithm triggers
Definition:
L1GtTriggerMenuTester.h:130
L1GtTriggerMenuTester::m_technicalTriggerMap
const AlgorithmMap * m_technicalTriggerMap
Definition:
L1GtTriggerMenuTester.h:161
L1GtTriggerMenuTester::m_l1GtTmTech
const L1GtTriggerMask * m_l1GtTmTech
Definition:
L1GtTriggerMenuTester.h:145
L1GtTriggerMenuTester::m_algoTriggerSeedNotInL1Menu
std::vector< std::string > m_algoTriggerSeedNotInL1Menu
vector of algorithm or technical triggers not in the L1 menu
Definition:
L1GtTriggerMenuTester.h:177
L1GtTriggerMenuTester::m_hltPathsForL1TechnicalTrigger
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 ...
Definition:
L1GtTriggerMenuTester.h:174
edm::ParameterSet
Definition:
ParameterSet.h:47
L1GtTriggerMenuTester::m_l1GtTmVetoTech
const L1GtTriggerMask * m_l1GtTmVetoTech
Definition:
L1GtTriggerMenuTester.h:148
L1GtTriggerMenuTester::m_l1GtStableParToken
edm::ESGetToken< L1GtStableParameters, L1GtStableParametersRcd > m_l1GtStableParToken
event setup cached stuff
Definition:
L1GtTriggerMenuTester.h:117
HLTConfigProvider
Definition:
HLTConfigProvider.h:30
L1GtTriggerMenuTester::m_hltPathsForL1AlgorithmTrigger
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 ...
Definition:
L1GtTriggerMenuTester.h:171
L1GtTriggerMenuTester::m_l1GtMenuToken
edm::ESGetToken< L1GtTriggerMenu, L1GtTriggerMenuRcd > m_l1GtMenuToken
Definition:
L1GtTriggerMenuTester.h:124
L1GtTriggerMaskTechTrigRcd
Definition:
L1GtTriggerMaskTechTrigRcd.h:39
edm::Event
Definition:
Event.h:73
L1GtTriggerMenuTester::m_l1GtTmAlgoToken
edm::ESGetToken< L1GtTriggerMask, L1GtTriggerMaskAlgoTrigRcd > m_l1GtTmAlgoToken
Definition:
L1GtTriggerMenuTester.h:120
L1GtTriggerMenuTester::retrieveL1EventSetup
void retrieveL1EventSetup(const edm::EventSetup &)
retrieve all the relevant L1 trigger event setup records
Definition:
L1GtTriggerMenuTester.cc:133
edm::one::EDAnalyzer
Definition:
EDAnalyzer.h:30
L1GtTriggerMenuTester::m_htmlFile
std::string m_htmlFile
name of HTML file attached to the wiki page
Definition:
L1GtTriggerMenuTester.h:96
L1GtTriggerMenuTester::m_hltProcessName
std::string m_hltProcessName
process name of HLT process for which to get HLT configuration
Definition:
L1GtTriggerMenuTester.h:102
L1GtTriggerMenuTester::m_numberTechnicalTriggers
unsigned int m_numberTechnicalTriggers
number of technical triggers
Definition:
L1GtTriggerMenuTester.h:133
edm::Run
Definition:
Run.h:45
L1GtTriggerMaskAlgoTrigRcd
Definition:
L1GtTriggerMaskAlgoTrigRcd.h:39
L1GtTriggerMenuTester::m_triggerMaskTechTrig
const std::vector< unsigned int > * m_triggerMaskTechTrig
Definition:
L1GtTriggerMenuTester.h:151
Generated for CMSSW Reference Manual by
1.8.14