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/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 declaration
44
class
L1GtTriggerMenuTester
:
public
edm::EDAnalyzer
{
45
public
:
46
// constructor
47
explicit
L1GtTriggerMenuTester
(
const
edm::ParameterSet
&);
48
49
// destructor
50
~L1GtTriggerMenuTester
()
override
;
51
52
private
:
54
void
beginJob
()
override
;
55
57
void
beginRun
(
const
edm::Run
&,
const
edm::EventSetup
&)
override
;
58
60
void
beginLuminosityBlock
(
const
edm::LuminosityBlock
&,
const
edm::EventSetup
&)
override
;
61
63
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
64
66
void
endLuminosityBlock
(
const
edm::LuminosityBlock
&,
const
edm::EventSetup
&)
override
;
67
69
void
endRun
(
const
edm::Run
&,
const
edm::EventSetup
&)
override
;
70
72
void
endJob
()
override
;
73
74
private
:
76
void
retrieveL1EventSetup
(
const
edm::EventSetup
&);
77
79
void
associateL1SeedsHltPath
(
const
edm::Run
&,
const
edm::EventSetup
&);
80
82
void
printTriggerGroup
(
const
std::string
& trigGroupName,
83
const
std::map<std::string, const L1GtAlgorithm*>& trigGroup,
84
const
bool
compactPrint,
85
const
bool
printPfsRates);
86
88
void
printWiki
();
89
90
private
:
92
typedef
std::map<std::string, const L1GtAlgorithm*>::const_iterator
CItAlgoP
;
93
94
private
:
96
99
bool
m_overwriteHtmlFile
;
100
102
std::string
m_htmlFile
;
103
105
bool
m_useHltMenu
;
106
108
std::string
m_hltProcessName
;
109
112
bool
m_noThrowIncompatibleMenu
;
113
115
bool
m_printPfsRates
;
116
118
int
m_indexPfSet
;
119
120
private
:
122
124
const
L1GtStableParameters
*
m_l1GtStablePar
;
125
127
unsigned
int
m_numberAlgorithmTriggers
;
128
130
unsigned
int
m_numberTechnicalTriggers
;
131
133
const
L1GtPrescaleFactors
*
m_l1GtPfAlgo
;
134
135
const
L1GtPrescaleFactors
*
m_l1GtPfTech
;
136
137
const
std::vector<std::vector<int> >*
m_prescaleFactorsAlgoTrig
;
138
const
std::vector<std::vector<int> >*
m_prescaleFactorsTechTrig
;
139
141
const
L1GtTriggerMask
*
m_l1GtTmAlgo
;
142
const
L1GtTriggerMask
*
m_l1GtTmTech
;
143
144
const
L1GtTriggerMask
*
m_l1GtTmVetoAlgo
;
145
const
L1GtTriggerMask
*
m_l1GtTmVetoTech
;
146
147
const
std::vector<unsigned int>*
m_triggerMaskAlgoTrig
;
148
const
std::vector<unsigned int>*
m_triggerMaskTechTrig
;
149
150
const
std::vector<unsigned int>*
m_triggerMaskVetoAlgoTrig
;
151
const
std::vector<unsigned int>*
m_triggerMaskVetoTechTrig
;
152
153
// trigger menu
154
const
L1GtTriggerMenu
*
m_l1GtMenu
;
155
156
const
AlgorithmMap
*
m_algorithmMap
;
157
const
AlgorithmMap
*
m_algorithmAliasMap
;
158
const
AlgorithmMap
*
m_technicalTriggerMap
;
159
160
private
:
162
HLTConfigProvider
m_hltConfig
;
163
165
std::string
m_hltTableName
;
166
168
std::vector<std::vector<std::string> >
m_hltPathsForL1AlgorithmTrigger
;
169
171
std::vector<std::vector<std::string> >
m_hltPathsForL1TechnicalTrigger
;
172
174
std::vector<std::string>
m_algoTriggerSeedNotInL1Menu
;
175
std::vector<std::string>
m_techTriggerSeedNotInL1Menu
;
176
};
177
178
#endif
/*L1GtConfigProducers_L1GtTriggerMenuTester_h*/
L1GtTriggerMenuTester::endRun
void endRun(const edm::Run &, const edm::EventSetup &) override
end run
Definition:
L1GtTriggerMenuTester.cc:141
L1GtTriggerMenuTester::m_indexPfSet
int m_indexPfSet
index of prescale factor set to be printed
Definition:
L1GtTriggerMenuTester.h:118
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:307
L1GtTriggerMenuTester::m_triggerMaskAlgoTrig
const std::vector< unsigned int > * m_triggerMaskAlgoTrig
Definition:
L1GtTriggerMenuTester.h:147
L1GtTriggerMenuTester::m_hltProcessName
std::string m_hltProcessName
process name of HLT process for which to get HLT configuration
Definition:
L1GtTriggerMenuTester.h:108
L1GtTriggerMenuTester::m_l1GtMenu
const L1GtTriggerMenu * m_l1GtMenu
Definition:
L1GtTriggerMenuTester.h:154
L1GtAlgorithm.h
L1GtPrescaleFactors
Definition:
L1GtPrescaleFactors.h:32
L1GtTriggerMenuTester.h
L1GtTriggerMenuTester::beginJob
void beginJob() override
begin job
Definition:
L1GtTriggerMenuTester.cc:78
L1GtTriggerMenuTester
Definition:
L1GtTriggerMenuTester.h:44
L1GtTriggerMenuTester::m_l1GtTmAlgo
const L1GtTriggerMask * m_l1GtTmAlgo
trigger masks & veto masks
Definition:
L1GtTriggerMenuTester.h:141
edm::LuminosityBlock
Definition:
LuminosityBlock.h:50
L1GtTriggerMenuTester::~L1GtTriggerMenuTester
~L1GtTriggerMenuTester() override
Definition:
L1GtTriggerMenuTester.cc:73
L1GtTriggerMenuTester::m_l1GtPfAlgo
const L1GtPrescaleFactors * m_l1GtPfAlgo
prescale factors
Definition:
L1GtTriggerMenuTester.h:133
edm::Run
Definition:
Run.h:45
L1GtTriggerMenuTester::m_l1GtTmVetoTech
const L1GtTriggerMask * m_l1GtTmVetoTech
Definition:
L1GtTriggerMenuTester.h:145
L1GtTriggerMenuTester::endJob
void endJob() override
end job
Definition:
L1GtTriggerMenuTester.cc:144
L1GtTriggerMenuTester::m_prescaleFactorsAlgoTrig
const std::vector< std::vector< int > > * m_prescaleFactorsAlgoTrig
Definition:
L1GtTriggerMenuTester.h:137
L1GtTriggerMenuTester::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
analyze
Definition:
L1GtTriggerMenuTester.cc:131
L1GtTriggerMenuTester::m_technicalTriggerMap
const AlgorithmMap * m_technicalTriggerMap
Definition:
L1GtTriggerMenuTester.h:158
L1GtTriggerMenuTester::m_algorithmAliasMap
const AlgorithmMap * m_algorithmAliasMap
Definition:
L1GtTriggerMenuTester.h:157
L1GtTriggerMenuTester::m_techTriggerSeedNotInL1Menu
std::vector< std::string > m_techTriggerSeedNotInL1Menu
Definition:
L1GtTriggerMenuTester.h:175
EDAnalyzer.h
L1GtTriggerMenuTester::printWiki
void printWiki()
printing in Wiki format
edm::EDAnalyzer
Definition:
EDAnalyzer.h:29
L1GtTriggerMenuTester::CItAlgoP
std::map< std::string, const L1GtAlgorithm * >::const_iterator CItAlgoP
constant iterator
Definition:
L1GtTriggerMenuTester.h:92
L1GtTriggerMenuTester::m_triggerMaskVetoAlgoTrig
const std::vector< unsigned int > * m_triggerMaskVetoAlgoTrig
Definition:
L1GtTriggerMenuTester.h:150
L1GtTriggerMenuTester::m_overwriteHtmlFile
bool m_overwriteHtmlFile
input parameters
Definition:
L1GtTriggerMenuTester.h:99
L1GtTriggerMenuTester::m_htmlFile
std::string m_htmlFile
name of HTML file attached to the wiki page
Definition:
L1GtTriggerMenuTester.h:102
AlgorithmMap
std::map< std::string, L1GtAlgorithm > AlgorithmMap
map containing the algorithms
Definition:
L1GtTriggerMenuFwd.h:31
L1GtTriggerMenuTester::endLuminosityBlock
void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
end luminosity block
Definition:
L1GtTriggerMenuTester.cc:136
L1GtTriggerMask
Definition:
L1GtTriggerMask.h:33
L1GtStableParameters
Definition:
L1GtStableParameters.h:33
L1GtTriggerMenuTester::retrieveL1EventSetup
void retrieveL1EventSetup(const edm::EventSetup &)
retrieve all the relevant L1 trigger event setup records
Definition:
L1GtTriggerMenuTester.cc:146
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
L1GtTriggerMenuTester::m_l1GtStablePar
const L1GtStableParameters * m_l1GtStablePar
event setup cached stuff
Definition:
L1GtTriggerMenuTester.h:124
edm::ParameterSet
Definition:
ParameterSet.h:36
L1GtTriggerMenuTester::m_hltConfig
HLTConfigProvider m_hltConfig
The instance of the HLTConfigProvider as a data member.
Definition:
L1GtTriggerMenuTester.h:162
L1GtTriggerMenu
Definition:
L1GtTriggerMenu.h:48
Event.h
L1GtTriggerMenuTester::beginLuminosityBlock
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
begin luminosity block
Definition:
L1GtTriggerMenuTester.cc:127
L1GtTriggerMenuTester::m_l1GtTmVetoAlgo
const L1GtTriggerMask * m_l1GtTmVetoAlgo
Definition:
L1GtTriggerMenuTester.h:144
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:168
L1GtTriggerMenuTester::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &) override
begin run
Definition:
L1GtTriggerMenuTester.cc:81
edm::EventSetup
Definition:
EventSetup.h:57
HLTConfigProvider.h
L1GtTriggerMenuTester::m_numberAlgorithmTriggers
unsigned int m_numberAlgorithmTriggers
number of algorithm triggers
Definition:
L1GtTriggerMenuTester.h:127
L1GtTriggerMenuTester::L1GtTriggerMenuTester
L1GtTriggerMenuTester(const edm::ParameterSet &)
Definition:
L1GtTriggerMenuTester.cc:59
HLTConfigProvider
Definition:
HLTConfigProvider.h:28
L1GtTriggerMenuTester::m_noThrowIncompatibleMenu
bool m_noThrowIncompatibleMenu
Definition:
L1GtTriggerMenuTester.h:112
L1GtTriggerMenuTester::m_triggerMaskVetoTechTrig
const std::vector< unsigned int > * m_triggerMaskVetoTechTrig
Definition:
L1GtTriggerMenuTester.h:151
L1GtTriggerMenuTester::m_l1GtPfTech
const L1GtPrescaleFactors * m_l1GtPfTech
Definition:
L1GtTriggerMenuTester.h:135
L1GtTriggerMenuTester::m_prescaleFactorsTechTrig
const std::vector< std::vector< int > > * m_prescaleFactorsTechTrig
Definition:
L1GtTriggerMenuTester.h:138
L1GtTriggerMenuTester::m_numberTechnicalTriggers
unsigned int m_numberTechnicalTriggers
number of technical triggers
Definition:
L1GtTriggerMenuTester.h:130
L1GtTriggerMenuTester::m_printPfsRates
bool m_printPfsRates
print prescale factors and rates
Definition:
L1GtTriggerMenuTester.h:115
L1GtTriggerMenuTester::m_useHltMenu
bool m_useHltMenu
use a HLT menu for L1 seed - HLT path association
Definition:
L1GtTriggerMenuTester.h:105
L1GtTriggerMenuFwd.h
ParameterSet.h
L1GtTriggerMenuTester::m_triggerMaskTechTrig
const std::vector< unsigned int > * m_triggerMaskTechTrig
Definition:
L1GtTriggerMenuTester.h:148
L1GtTriggerMenuTester::m_l1GtTmTech
const L1GtTriggerMask * m_l1GtTmTech
Definition:
L1GtTriggerMenuTester.h:142
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:171
edm::Event
Definition:
Event.h:73
L1GtTriggerMenuTester::associateL1SeedsHltPath
void associateL1SeedsHltPath(const edm::Run &, const edm::EventSetup &)
L1 seed - HLT path association.
Definition:
L1GtTriggerMenuTester.cc:215
L1GtTriggerMenuTester::m_algorithmMap
const AlgorithmMap * m_algorithmMap
Definition:
L1GtTriggerMenuTester.h:156
L1GtTriggerMenuTester::m_algoTriggerSeedNotInL1Menu
std::vector< std::string > m_algoTriggerSeedNotInL1Menu
vector of algorithm or technical triggers not in the L1 menu
Definition:
L1GtTriggerMenuTester.h:174
L1GtTriggerMenuTester::m_hltTableName
std::string m_hltTableName
HLT menu was used to associate the HLT path to the L1 algorithm triggers.
Definition:
L1GtTriggerMenuTester.h:165
Generated for CMSSW Reference Manual by
1.8.16