CMS 3D CMS Logo

List of all members | Public Member Functions | Private Types | Private Member Functions | Private Attributes
L1GtTriggerMenuTester Class Reference

#include <L1GtTriggerMenuTester.h>

Inheritance diagram for L1GtTriggerMenuTester:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

 L1GtTriggerMenuTester (const edm::ParameterSet &)
 
 ~L1GtTriggerMenuTester () override
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Types

typedef std::map< std::string, const L1GtAlgorithm * >::const_iterator CItAlgoP
 constant iterator More...
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 analyze More...
 
void associateL1SeedsHltPath (const edm::Run &, const edm::EventSetup &)
 L1 seed - HLT path association. More...
 
void beginJob () override
 begin job More...
 
void beginLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &) override
 begin luminosity block More...
 
void beginRun (const edm::Run &, const edm::EventSetup &) override
 begin run More...
 
void endJob () override
 end job More...
 
void endLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &) override
 end luminosity block More...
 
void endRun (const edm::Run &, const edm::EventSetup &) override
 end run More...
 
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 More...
 
void printWiki ()
 printing in Wiki format More...
 
void retrieveL1EventSetup (const edm::EventSetup &)
 retrieve all the relevant L1 trigger event setup records More...
 

Private Attributes

const AlgorithmMapm_algorithmAliasMap
 
const AlgorithmMapm_algorithmMap
 
std::vector< std::string > m_algoTriggerSeedNotInL1Menu
 vector of algorithm or technical triggers not in the L1 menu More...
 
HLTConfigProvider m_hltConfig
 The instance of the HLTConfigProvider as a data member. More...
 
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 More...
 
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 More...
 
std::string m_hltProcessName
 process name of HLT process for which to get HLT configuration More...
 
std::string m_hltTableName
 HLT menu was used to associate the HLT path to the L1 algorithm triggers. More...
 
std::string m_htmlFile
 name of HTML file attached to the wiki page More...
 
int m_indexPfSet
 index of prescale factor set to be printed More...
 
const L1GtTriggerMenum_l1GtMenu
 
const L1GtPrescaleFactorsm_l1GtPfAlgo
 prescale factors More...
 
const L1GtPrescaleFactorsm_l1GtPfTech
 
const L1GtStableParametersm_l1GtStablePar
 event setup cached stuff More...
 
const L1GtTriggerMaskm_l1GtTmAlgo
 trigger masks & veto masks More...
 
const L1GtTriggerMaskm_l1GtTmTech
 
const L1GtTriggerMaskm_l1GtTmVetoAlgo
 
const L1GtTriggerMaskm_l1GtTmVetoTech
 
bool m_noThrowIncompatibleMenu
 
unsigned int m_numberAlgorithmTriggers
 number of algorithm triggers More...
 
unsigned int m_numberTechnicalTriggers
 number of technical triggers More...
 
bool m_overwriteHtmlFile
 input parameters More...
 
const std::vector< std::vector< int > > * m_prescaleFactorsAlgoTrig
 
const std::vector< std::vector< int > > * m_prescaleFactorsTechTrig
 
bool m_printPfsRates
 print prescale factors and rates More...
 
const AlgorithmMapm_technicalTriggerMap
 
std::vector< std::string > m_techTriggerSeedNotInL1Menu
 
const std::vector< unsigned int > * m_triggerMaskAlgoTrig
 
const std::vector< unsigned int > * m_triggerMaskTechTrig
 
const std::vector< unsigned int > * m_triggerMaskVetoAlgoTrig
 
const std::vector< unsigned int > * m_triggerMaskVetoTechTrig
 
bool m_useHltMenu
 use a HLT menu for L1 seed - HLT path association More...
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsInputProcessBlocks ()
 
static bool wantsProcessBlocks ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Description: test analyzer for L1 GT trigger menu.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

Description: test analyzer for L1 GT trigger menu.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

Definition at line 44 of file L1GtTriggerMenuTester.h.

Member Typedef Documentation

◆ CItAlgoP

typedef std::map<std::string, const L1GtAlgorithm*>::const_iterator L1GtTriggerMenuTester::CItAlgoP
private

constant iterator

Definition at line 92 of file L1GtTriggerMenuTester.h.

Constructor & Destructor Documentation

◆ L1GtTriggerMenuTester()

L1GtTriggerMenuTester::L1GtTriggerMenuTester ( const edm::ParameterSet parSet)
explicit

Definition at line 59 of file L1GtTriggerMenuTester.cc.

60  : m_overwriteHtmlFile(parSet.getParameter<bool>("OverwriteHtmlFile")),
61  m_htmlFile(parSet.getParameter<std::string>("HtmlFile")),
62  m_useHltMenu(parSet.getParameter<bool>("UseHltMenu")),
63  m_hltProcessName(parSet.getParameter<std::string>("HltProcessName")),
64  m_noThrowIncompatibleMenu(parSet.getParameter<bool>("NoThrowIncompatibleMenu")),
65  m_printPfsRates(parSet.getParameter<bool>("PrintPfsRates")),
66  m_indexPfSet(parSet.getParameter<int>("IndexPfSet")),
69  // empty
70 }

◆ ~L1GtTriggerMenuTester()

L1GtTriggerMenuTester::~L1GtTriggerMenuTester ( )
override

Definition at line 73 of file L1GtTriggerMenuTester.cc.

73  {
74  // empty
75 }

Member Function Documentation

◆ analyze()

void L1GtTriggerMenuTester::analyze ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
overrideprivatevirtual

analyze

Implements edm::EDAnalyzer.

Definition at line 131 of file L1GtTriggerMenuTester.cc.

131  {
132  // empty
133 }

◆ associateL1SeedsHltPath()

void L1GtTriggerMenuTester::associateL1SeedsHltPath ( const edm::Run iRun,
const edm::EventSetup evSetup 
)
private

L1 seed - HLT path association.

Definition at line 215 of file L1GtTriggerMenuTester.cc.

215  {
216  bool hltChanged = true;
217 
218  if (m_hltConfig.init(iRun, evSetup, m_hltProcessName, hltChanged)) {
219  // if init returns TRUE, initialization has succeeded!
220  if (hltChanged) {
221  // HLT configuration has actually changed wrt the previous run
223 
224  edm::LogVerbatim("L1GtTriggerMenuTester") << "\nHLT ConfDB menu name: \n " << m_hltTableName << std::endl;
225 
226  // loop over trigger paths, get the HLTLevel1GTSeed logical expression, and add the path to
227  // each L1 trigger
228 
231 
234 
235  for (unsigned int iHlt = 0; iHlt < m_hltConfig.size(); ++iHlt) {
236  const std::string& hltPathName = m_hltConfig.triggerName(iHlt);
237 
238  const std::vector<std::pair<bool, std::string> >& hltL1Seed = m_hltConfig.hltL1GTSeeds(hltPathName);
239 
240  unsigned int numberHltL1GTSeeds = hltL1Seed.size();
241 
242  edm::LogVerbatim("L1GtTriggerMenuTester") << "\nPath: " << hltPathName << " : <== " << numberHltL1GTSeeds
243  << " HLTLevel1GTSeed module(s)" << std::endl;
244 
245  for (unsigned int iSeedModule = 0; iSeedModule < numberHltL1GTSeeds; ++iSeedModule) {
246  // one needs a non-const logical expression... TODO check why
247  std::string m_l1SeedsLogicalExpression = (hltL1Seed[iSeedModule]).second;
248 
249  edm::LogVerbatim("L1GtTriggerMenuTester") << " '" << m_l1SeedsLogicalExpression << "'";
250 
251  // parse logical expression
252 
253  if (m_l1SeedsLogicalExpression != "L1GlobalDecision") {
254  // check also the logical expression - add/remove spaces if needed
255  L1GtLogicParser m_l1AlgoLogicParser = L1GtLogicParser(m_l1SeedsLogicalExpression);
256 
257  // list of required algorithms for seeding
258  std::vector<L1GtLogicParser::OperandToken> m_l1AlgoSeeds = m_l1AlgoLogicParser.expressionSeedsOperandList();
259  size_t l1AlgoSeedsSize = m_l1AlgoSeeds.size();
260 
261  edm::LogVerbatim("L1GtTriggerMenuTester") << " : <== " << l1AlgoSeedsSize << " L1 seeds" << std::endl;
262 
263  // for each algorithm trigger, check if it is in the L1 menu, get the bit number
264  // and add path to the vector of strings for that bit number
265 
266  for (size_t i = 0; i < l1AlgoSeedsSize; ++i) {
267  const std::string& trigNameOrAlias = (m_l1AlgoSeeds[i]).tokenName;
268 
269  CItAlgo itAlgo = m_algorithmAliasMap->find(trigNameOrAlias);
270  if (itAlgo != m_algorithmAliasMap->end()) {
271  int bitNr = (itAlgo->second).algoBitNumber();
272 
273  (m_hltPathsForL1AlgorithmTrigger.at(bitNr)).push_back(hltPathName);
274 
275  edm::LogVerbatim("L1GtTriggerMenuTester")
276  << " " << trigNameOrAlias << " bit " << bitNr << std::endl;
277 
278  } else {
280  edm::LogVerbatim("L1GtTriggerMenuTester")
281  << " " << trigNameOrAlias << " trigger not in L1 menu " << m_l1GtMenu->gtTriggerMenuName()
282  << std::endl;
283 
284  m_algoTriggerSeedNotInL1Menu.push_back(trigNameOrAlias);
285 
286  } else {
287  throw cms::Exception("FailModule")
288  << "\nAlgorithm " << trigNameOrAlias
289  << ", requested as seed by a HLT path, not found in the L1 trigger menu\n "
290  << m_l1GtMenu->gtTriggerMenuName() << "\nIncompatible L1 and HLT menus.\n"
291  << std::endl;
292  }
293  }
294  }
295  }
296  }
297  }
298  }
299  } else {
300  // if init returns FALSE, initialization has NOT succeeded, which indicates a problem
301  // with the file and/or code and needs to be investigated!
302  edm::LogError("MyAnalyzer") << " HLT config extraction failure with process name " << m_hltProcessName;
303  }
304 }

References Exception, L1GtLogicParser::expressionSeedsOperandList(), L1GtTriggerMenu::gtTriggerMenuName(), HLTConfigProvider::hltL1GTSeeds(), mps_fire::i, HLTConfigProvider::init(), m_algorithmAliasMap, m_algoTriggerSeedNotInL1Menu, m_hltConfig, m_hltPathsForL1AlgorithmTrigger, m_hltPathsForL1TechnicalTrigger, m_hltProcessName, m_hltTableName, m_l1GtMenu, m_noThrowIncompatibleMenu, m_numberAlgorithmTriggers, m_numberTechnicalTriggers, m_techTriggerSeedNotInL1Menu, edm::second(), HLTConfigProvider::size(), AlCaHLTBitMon_QueryRunRegistry::string, HLTConfigProvider::tableName(), and HLTConfigProvider::triggerName().

Referenced by beginRun().

◆ beginJob()

void L1GtTriggerMenuTester::beginJob ( void  )
overrideprivatevirtual

begin job

Reimplemented from edm::EDAnalyzer.

Definition at line 78 of file L1GtTriggerMenuTester.cc.

78 {}

◆ beginLuminosityBlock()

void L1GtTriggerMenuTester::beginLuminosityBlock ( const edm::LuminosityBlock iLumiBlock,
const edm::EventSetup evSetup 
)
overrideprivatevirtual

begin luminosity block

Reimplemented from edm::EDAnalyzer.

Definition at line 127 of file L1GtTriggerMenuTester.cc.

128  {}

◆ beginRun()

void L1GtTriggerMenuTester::beginRun ( const edm::Run iRun,
const edm::EventSetup evSetup 
)
overrideprivatevirtual

begin run

Reimplemented from edm::EDAnalyzer.

Definition at line 81 of file L1GtTriggerMenuTester.cc.

81  {
82  // retrieve L1 trigger configuration
83  retrieveL1EventSetup(evSetup);
84 
85  // print with various level of verbosity
86 
87  // define an output stream to print into
88  // it can then be directed to whatever log level is desired
89  std::ostringstream myCout;
90 
91  int printVerbosity = 0;
92  m_l1GtMenu->print(myCout, printVerbosity);
93  myCout << std::flush << std::endl;
94 
95  printVerbosity = 1;
96  m_l1GtMenu->print(myCout, printVerbosity);
97  myCout << std::flush << std::endl;
98 
99  printVerbosity = 2;
100  m_l1GtMenu->print(myCout, printVerbosity);
101  myCout << std::flush << std::endl;
102 
103  // redirect myCout to edm::LogVerbatim TODO - parameter to choose the log
104  edm::LogVerbatim("L1GtTriggerMenuTester") << myCout.str() << std::endl;
105 
106  // prepare L1 - HLT
107  if (m_useHltMenu) {
108  associateL1SeedsHltPath(iRun, evSetup);
109 
111  edm::LogVerbatim("L1GtTriggerMenuTester")
112  << "\n List of algorithm triggers used as L1 seeds but not in L1 menu" << std::endl;
113 
114  for (std::vector<std::string>::const_iterator strIter = m_algoTriggerSeedNotInL1Menu.begin();
115  strIter != m_algoTriggerSeedNotInL1Menu.end();
116  ++strIter) {
117  edm::LogVerbatim("L1GtTriggerMenuTester") << " " << (*strIter) << std::endl;
118  }
119  }
120  }
121 
122  // print in wiki format
123  printWiki();
124 }

References associateL1SeedsHltPath(), m_algoTriggerSeedNotInL1Menu, m_l1GtMenu, m_noThrowIncompatibleMenu, m_useHltMenu, L1GtTriggerMenu::print(), printWiki(), and retrieveL1EventSetup().

◆ endJob()

void L1GtTriggerMenuTester::endJob ( void  )
overrideprivatevirtual

end job

Reimplemented from edm::EDAnalyzer.

Definition at line 144 of file L1GtTriggerMenuTester.cc.

144 {}

◆ endLuminosityBlock()

void L1GtTriggerMenuTester::endLuminosityBlock ( const edm::LuminosityBlock iLumiBlock,
const edm::EventSetup evSetup 
)
overrideprivatevirtual

end luminosity block

Reimplemented from edm::EDAnalyzer.

Definition at line 136 of file L1GtTriggerMenuTester.cc.

136  {
137 
138 }

◆ endRun()

void L1GtTriggerMenuTester::endRun ( const edm::Run ,
const edm::EventSetup evSetup 
)
overrideprivatevirtual

end run

Reimplemented from edm::EDAnalyzer.

Definition at line 141 of file L1GtTriggerMenuTester.cc.

141 {}

◆ printTriggerGroup()

void L1GtTriggerMenuTester::printTriggerGroup ( const std::string &  trigGroupName,
const std::map< std::string, const L1GtAlgorithm * > &  trigGroup,
const bool  compactPrint,
const bool  printPfsRates 
)
private

◆ printWiki()

void L1GtTriggerMenuTester::printWiki ( )
private

printing in Wiki format

Referenced by beginRun().

◆ retrieveL1EventSetup()

void L1GtTriggerMenuTester::retrieveL1EventSetup ( const edm::EventSetup evSetup)
private

retrieve all the relevant L1 trigger event setup records

Definition at line 146 of file L1GtTriggerMenuTester.cc.

146  {
147  // get / update the stable parameters from the EventSetup
148 
150  evSetup.get<L1GtStableParametersRcd>().get(l1GtStablePar);
151  m_l1GtStablePar = l1GtStablePar.product();
152 
153  // number of algorithm triggers
155 
156  // number of technical triggers
158 
159  // int maxNumberTrigger = std::max(m_numberAlgorithmTriggers,
160  // m_numberTechnicalTriggers);
161 
162  // m_triggerMaskSet.reserve(maxNumberTrigger);
163  // m_prescaleFactorSet.reserve(maxNumberTrigger);
164 
165  // get / update the prescale factors from the EventSetup
166 
168  evSetup.get<L1GtPrescaleFactorsAlgoTrigRcd>().get(l1GtPfAlgo);
169  m_l1GtPfAlgo = l1GtPfAlgo.product();
170 
172 
174  evSetup.get<L1GtPrescaleFactorsTechTrigRcd>().get(l1GtPfTech);
175  m_l1GtPfTech = l1GtPfTech.product();
176 
178 
179  // get / update the trigger mask from the EventSetup
180 
182  evSetup.get<L1GtTriggerMaskAlgoTrigRcd>().get(l1GtTmAlgo);
183  m_l1GtTmAlgo = l1GtTmAlgo.product();
184 
186 
188  evSetup.get<L1GtTriggerMaskTechTrigRcd>().get(l1GtTmTech);
189  m_l1GtTmTech = l1GtTmTech.product();
190 
192 
193  edm::ESHandle<L1GtTriggerMask> l1GtTmVetoAlgo;
194  evSetup.get<L1GtTriggerMaskVetoAlgoTrigRcd>().get(l1GtTmVetoAlgo);
195  m_l1GtTmVetoAlgo = l1GtTmVetoAlgo.product();
196 
198 
199  edm::ESHandle<L1GtTriggerMask> l1GtTmVetoTech;
200  evSetup.get<L1GtTriggerMaskVetoTechTrigRcd>().get(l1GtTmVetoTech);
201  m_l1GtTmVetoTech = l1GtTmVetoTech.product();
202 
204 
205  // get / update the trigger menu from the EventSetup
206 
208  evSetup.get<L1GtTriggerMenuRcd>().get(l1GtMenu);
209  m_l1GtMenu = l1GtMenu.product();
213 }

References edm::EventSetup::get(), get, L1GtTriggerMenu::gtAlgorithmAliasMap(), L1GtTriggerMenu::gtAlgorithmMap(), L1GtStableParameters::gtNumberPhysTriggers(), L1GtStableParameters::gtNumberTechnicalTriggers(), L1GtPrescaleFactors::gtPrescaleFactors(), L1GtTriggerMenu::gtTechnicalTriggerMap(), L1GtTriggerMask::gtTriggerMask(), m_algorithmAliasMap, m_algorithmMap, m_l1GtMenu, m_l1GtPfAlgo, m_l1GtPfTech, m_l1GtStablePar, m_l1GtTmAlgo, m_l1GtTmTech, m_l1GtTmVetoAlgo, m_l1GtTmVetoTech, m_numberAlgorithmTriggers, m_numberTechnicalTriggers, m_prescaleFactorsAlgoTrig, m_prescaleFactorsTechTrig, m_technicalTriggerMap, m_triggerMaskAlgoTrig, m_triggerMaskTechTrig, m_triggerMaskVetoAlgoTrig, m_triggerMaskVetoTechTrig, and edm::ESHandle< T >::product().

Referenced by beginRun().

Member Data Documentation

◆ m_algorithmAliasMap

const AlgorithmMap* L1GtTriggerMenuTester::m_algorithmAliasMap
private

Definition at line 157 of file L1GtTriggerMenuTester.h.

Referenced by associateL1SeedsHltPath(), and retrieveL1EventSetup().

◆ m_algorithmMap

const AlgorithmMap* L1GtTriggerMenuTester::m_algorithmMap
private

Definition at line 156 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

◆ m_algoTriggerSeedNotInL1Menu

std::vector<std::string> L1GtTriggerMenuTester::m_algoTriggerSeedNotInL1Menu
private

vector of algorithm or technical triggers not in the L1 menu

Definition at line 174 of file L1GtTriggerMenuTester.h.

Referenced by associateL1SeedsHltPath(), and beginRun().

◆ m_hltConfig

HLTConfigProvider L1GtTriggerMenuTester::m_hltConfig
private

The instance of the HLTConfigProvider as a data member.

Definition at line 162 of file L1GtTriggerMenuTester.h.

Referenced by associateL1SeedsHltPath().

◆ m_hltPathsForL1AlgorithmTrigger

std::vector<std::vector<std::string> > L1GtTriggerMenuTester::m_hltPathsForL1AlgorithmTrigger
private

vector of HLT paths seeded by a L1 algorithm trigger - vector index corresponds to the bit number

Definition at line 168 of file L1GtTriggerMenuTester.h.

Referenced by associateL1SeedsHltPath(), and printTriggerGroup().

◆ m_hltPathsForL1TechnicalTrigger

std::vector<std::vector<std::string> > L1GtTriggerMenuTester::m_hltPathsForL1TechnicalTrigger
private

vector of HLT paths seeded by a L1 technical trigger - vector index corresponds to the bit number

Definition at line 171 of file L1GtTriggerMenuTester.h.

Referenced by associateL1SeedsHltPath().

◆ m_hltProcessName

std::string L1GtTriggerMenuTester::m_hltProcessName
private

process name of HLT process for which to get HLT configuration

Definition at line 108 of file L1GtTriggerMenuTester.h.

Referenced by associateL1SeedsHltPath().

◆ m_hltTableName

std::string L1GtTriggerMenuTester::m_hltTableName
private

HLT menu was used to associate the HLT path to the L1 algorithm triggers.

Definition at line 165 of file L1GtTriggerMenuTester.h.

Referenced by associateL1SeedsHltPath().

◆ m_htmlFile

std::string L1GtTriggerMenuTester::m_htmlFile
private

name of HTML file attached to the wiki page

Definition at line 102 of file L1GtTriggerMenuTester.h.

Referenced by printTriggerGroup().

◆ m_indexPfSet

int L1GtTriggerMenuTester::m_indexPfSet
private

index of prescale factor set to be printed

Definition at line 118 of file L1GtTriggerMenuTester.h.

◆ m_l1GtMenu

const L1GtTriggerMenu* L1GtTriggerMenuTester::m_l1GtMenu
private

◆ m_l1GtPfAlgo

const L1GtPrescaleFactors* L1GtTriggerMenuTester::m_l1GtPfAlgo
private

prescale factors

Definition at line 133 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

◆ m_l1GtPfTech

const L1GtPrescaleFactors* L1GtTriggerMenuTester::m_l1GtPfTech
private

Definition at line 135 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

◆ m_l1GtStablePar

const L1GtStableParameters* L1GtTriggerMenuTester::m_l1GtStablePar
private

event setup cached stuff

stable parameters

Definition at line 124 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

◆ m_l1GtTmAlgo

const L1GtTriggerMask* L1GtTriggerMenuTester::m_l1GtTmAlgo
private

trigger masks & veto masks

Definition at line 141 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

◆ m_l1GtTmTech

const L1GtTriggerMask* L1GtTriggerMenuTester::m_l1GtTmTech
private

Definition at line 142 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

◆ m_l1GtTmVetoAlgo

const L1GtTriggerMask* L1GtTriggerMenuTester::m_l1GtTmVetoAlgo
private

Definition at line 144 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

◆ m_l1GtTmVetoTech

const L1GtTriggerMask* L1GtTriggerMenuTester::m_l1GtTmVetoTech
private

Definition at line 145 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

◆ m_noThrowIncompatibleMenu

bool L1GtTriggerMenuTester::m_noThrowIncompatibleMenu
private

do not throw an exceptions if a L1 trigger requested as seed is not available in the L1 menu, just report this

Definition at line 112 of file L1GtTriggerMenuTester.h.

Referenced by associateL1SeedsHltPath(), and beginRun().

◆ m_numberAlgorithmTriggers

unsigned int L1GtTriggerMenuTester::m_numberAlgorithmTriggers
private

number of algorithm triggers

Definition at line 127 of file L1GtTriggerMenuTester.h.

Referenced by associateL1SeedsHltPath(), printTriggerGroup(), and retrieveL1EventSetup().

◆ m_numberTechnicalTriggers

unsigned int L1GtTriggerMenuTester::m_numberTechnicalTriggers
private

number of technical triggers

Definition at line 130 of file L1GtTriggerMenuTester.h.

Referenced by associateL1SeedsHltPath(), printTriggerGroup(), and retrieveL1EventSetup().

◆ m_overwriteHtmlFile

bool L1GtTriggerMenuTester::m_overwriteHtmlFile
private

input parameters

overwrite name of the HTML file containing the detailed L1 menu with the name given in m_htmlFile

Definition at line 99 of file L1GtTriggerMenuTester.h.

◆ m_prescaleFactorsAlgoTrig

const std::vector<std::vector<int> >* L1GtTriggerMenuTester::m_prescaleFactorsAlgoTrig
private

Definition at line 137 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

◆ m_prescaleFactorsTechTrig

const std::vector<std::vector<int> >* L1GtTriggerMenuTester::m_prescaleFactorsTechTrig
private

Definition at line 138 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

◆ m_printPfsRates

bool L1GtTriggerMenuTester::m_printPfsRates
private

print prescale factors and rates

Definition at line 115 of file L1GtTriggerMenuTester.h.

◆ m_technicalTriggerMap

const AlgorithmMap* L1GtTriggerMenuTester::m_technicalTriggerMap
private

Definition at line 158 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

◆ m_techTriggerSeedNotInL1Menu

std::vector<std::string> L1GtTriggerMenuTester::m_techTriggerSeedNotInL1Menu
private

Definition at line 175 of file L1GtTriggerMenuTester.h.

Referenced by associateL1SeedsHltPath().

◆ m_triggerMaskAlgoTrig

const std::vector<unsigned int>* L1GtTriggerMenuTester::m_triggerMaskAlgoTrig
private

Definition at line 147 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

◆ m_triggerMaskTechTrig

const std::vector<unsigned int>* L1GtTriggerMenuTester::m_triggerMaskTechTrig
private

Definition at line 148 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

◆ m_triggerMaskVetoAlgoTrig

const std::vector<unsigned int>* L1GtTriggerMenuTester::m_triggerMaskVetoAlgoTrig
private

Definition at line 150 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

◆ m_triggerMaskVetoTechTrig

const std::vector<unsigned int>* L1GtTriggerMenuTester::m_triggerMaskVetoTechTrig
private

Definition at line 151 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

◆ m_useHltMenu

bool L1GtTriggerMenuTester::m_useHltMenu
private

use a HLT menu for L1 seed - HLT path association

Definition at line 105 of file L1GtTriggerMenuTester.h.

Referenced by beginRun(), and printTriggerGroup().

L1GtTriggerMenuTester::m_indexPfSet
int m_indexPfSet
index of prescale factor set to be printed
Definition: L1GtTriggerMenuTester.h:118
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
L1GtTriggerMenuTester::m_triggerMaskAlgoTrig
const std::vector< unsigned int > * m_triggerMaskAlgoTrig
Definition: L1GtTriggerMenuTester.h:147
L1GtTriggerMenu::gtTriggerMenuName
const std::string & gtTriggerMenuName() const
Definition: L1GtTriggerMenu.h:91
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
mps_fire.i
i
Definition: mps_fire.py:428
L1GtStableParameters::gtNumberTechnicalTriggers
unsigned int gtNumberTechnicalTriggers() const
get / set the number of technical triggers
Definition: L1GtStableParameters.h:53
L1GtTriggerMenuTester::m_l1GtTmAlgo
const L1GtTriggerMask * m_l1GtTmAlgo
trigger masks & veto masks
Definition: L1GtTriggerMenuTester.h:141
L1GtTriggerMenuTester::m_l1GtPfAlgo
const L1GtPrescaleFactors * m_l1GtPfAlgo
prescale factors
Definition: L1GtTriggerMenuTester.h:133
L1GtTriggerMenuTester::m_l1GtTmVetoTech
const L1GtTriggerMask * m_l1GtTmVetoTech
Definition: L1GtTriggerMenuTester.h:145
L1GtTriggerMenuTester::m_prescaleFactorsAlgoTrig
const std::vector< std::vector< int > > * m_prescaleFactorsAlgoTrig
Definition: L1GtTriggerMenuTester.h:137
L1GtPrescaleFactors::gtPrescaleFactors
const std::vector< std::vector< int > > & gtPrescaleFactors() const
get the prescale factors by reference
Definition: L1GtPrescaleFactors.h:45
L1GtTriggerMenuTester::m_technicalTriggerMap
const AlgorithmMap * m_technicalTriggerMap
Definition: L1GtTriggerMenuTester.h:158
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:222
L1GtTriggerMaskVetoTechTrigRcd
Definition: L1GtTriggerMaskVetoTechTrigRcd.h:39
L1GtTriggerMenuTester::m_algorithmAliasMap
const AlgorithmMap * m_algorithmAliasMap
Definition: L1GtTriggerMenuTester.h:157
L1GtTriggerMenuTester::m_techTriggerSeedNotInL1Menu
std::vector< std::string > m_techTriggerSeedNotInL1Menu
Definition: L1GtTriggerMenuTester.h:175
L1GtTriggerMenuTester::printWiki
void printWiki()
printing in Wiki format
L1GtPrescaleFactorsTechTrigRcd
Definition: L1GtPrescaleFactorsTechTrigRcd.h:38
edm::EventSetup::get
T get() const
Definition: EventSetup.h:87
CItAlgo
AlgorithmMap::const_iterator CItAlgo
iterators through map containing the algorithms
Definition: L1GtTriggerMenuFwd.h:38
L1GtTriggerMenuTester::m_triggerMaskVetoAlgoTrig
const std::vector< unsigned int > * m_triggerMaskVetoAlgoTrig
Definition: L1GtTriggerMenuTester.h:150
HLTConfigProvider::hltL1GTSeeds
const std::vector< std::vector< std::pair< bool, std::string > > > & hltL1GTSeeds() const
Definition: HLTConfigProvider.h:123
L1GtTriggerMenuTester::m_overwriteHtmlFile
bool m_overwriteHtmlFile
input parameters
Definition: L1GtTriggerMenuTester.h:99
L1GtTriggerMaskTechTrigRcd
Definition: L1GtTriggerMaskTechTrigRcd.h:39
L1GtTriggerMenuRcd
Definition: L1GtTriggerMenuRcd.h:32
L1GtTriggerMenuTester::m_htmlFile
std::string m_htmlFile
name of HTML file attached to the wiki page
Definition: L1GtTriggerMenuTester.h:102
L1GtTriggerMaskAlgoTrigRcd
Definition: L1GtTriggerMaskAlgoTrigRcd.h:39
edm::ESHandle
Definition: DTSurvey.h:22
L1GtTriggerMenu::print
void print(std::ostream &, int &) const
Definition: L1GtTriggerMenu.cc:454
L1GtTriggerMenuTester::retrieveL1EventSetup
void retrieveL1EventSetup(const edm::EventSetup &)
retrieve all the relevant L1 trigger event setup records
Definition: L1GtTriggerMenuTester.cc:146
HLTConfigProvider::size
unsigned int size() const
number of trigger paths in trigger table
Definition: HLTConfigProvider.h:63
L1GtTriggerMenuTester::m_l1GtStablePar
const L1GtStableParameters * m_l1GtStablePar
event setup cached stuff
Definition: L1GtTriggerMenuTester.h:124
L1GtTriggerMenuTester::m_hltConfig
HLTConfigProvider m_hltConfig
The instance of the HLTConfigProvider as a data member.
Definition: L1GtTriggerMenuTester.h:162
L1GtTriggerMask::gtTriggerMask
const std::vector< unsigned int > & gtTriggerMask() const
get the trigger mask
Definition: L1GtTriggerMask.h:47
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
HLTConfigProvider::tableName
const std::string & tableName() const
HLT ConfDB table name.
Definition: HLTConfigProvider.h:60
L1GtLogicParser::expressionSeedsOperandList
std::vector< L1GtLogicParser::OperandToken > expressionSeedsOperandList()
Definition: L1GtLogicParser.cc:1042
L1GtTriggerMenu::gtAlgorithmAliasMap
const AlgorithmMap & gtAlgorithmAliasMap() const
get / set the algorithm map (by alias)
Definition: L1GtTriggerMenu.h:192
L1GtStableParameters::gtNumberPhysTriggers
unsigned int gtNumberPhysTriggers() const
get / set the number of physics trigger algorithms
Definition: L1GtStableParameters.h:43
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
get
#define get
L1GtStableParametersRcd
Definition: L1GtStableParametersRcd.h:39
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1GtTriggerMaskVetoAlgoTrigRcd
Definition: L1GtTriggerMaskVetoAlgoTrigRcd.h:39
L1GtTriggerMenuTester::m_numberAlgorithmTriggers
unsigned int m_numberAlgorithmTriggers
number of algorithm triggers
Definition: L1GtTriggerMenuTester.h:127
L1GtTriggerMenuTester::m_noThrowIncompatibleMenu
bool m_noThrowIncompatibleMenu
Definition: L1GtTriggerMenuTester.h:112
HLTConfigProvider::init
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
Definition: HLTConfigProvider.cc:36
L1GtLogicParser
Definition: L1GtLogicParser.h:31
L1GtTriggerMenuTester::m_triggerMaskVetoTechTrig
const std::vector< unsigned int > * m_triggerMaskVetoTechTrig
Definition: L1GtTriggerMenuTester.h:151
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
Exception
Definition: hltDiff.cc:245
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
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
L1GtTriggerMenuTester::m_numberTechnicalTriggers
unsigned int m_numberTechnicalTriggers
number of technical triggers
Definition: L1GtTriggerMenuTester.h:130
HLTConfigProvider::triggerName
const std::string & triggerName(unsigned int triggerIndex) const
Definition: HLTConfigProvider.h:70
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
L1GtPrescaleFactorsAlgoTrigRcd
Definition: L1GtPrescaleFactorsAlgoTrigRcd.h:38
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
L1GtTriggerMenuTester::associateL1SeedsHltPath
void associateL1SeedsHltPath(const edm::Run &, const edm::EventSetup &)
L1 seed - HLT path association.
Definition: L1GtTriggerMenuTester.cc:215
L1GtTriggerMenu::gtTechnicalTriggerMap
const AlgorithmMap & gtTechnicalTriggerMap() const
get / set the technical trigger map
Definition: L1GtTriggerMenu.h:197
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
L1GtTriggerMenu::gtAlgorithmMap
const AlgorithmMap & gtAlgorithmMap() const
get / set the algorithm map (by name)
Definition: L1GtTriggerMenu.h:187