CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 &)
 
virtual ~L1GtTriggerMenuTester ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndex indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

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 &)
 analyze More...
 
void associateL1SeedsHltPath (const edm::Run &, const edm::EventSetup &)
 L1 seed - HLT path association. More...
 
void beginJob ()
 begin job More...
 
void beginLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &)
 begin luminosity block More...
 
void beginRun (const edm::Run &, const edm::EventSetup &)
 begin run More...
 
void endJob ()
 end job More...
 
void endLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &)
 end luminosity block More...
 
void endRun (const edm::Run &, const edm::EventSetup &)
 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
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
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 ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, 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

$Date$ $Revision$

Definition at line 45 of file L1GtTriggerMenuTester.h.

Member Typedef Documentation

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

constant iterator

Definition at line 100 of file L1GtTriggerMenuTester.h.

Constructor & Destructor Documentation

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

Definition at line 61 of file L1GtTriggerMenuTester.cc.

61  :
62  m_overwriteHtmlFile(parSet.getParameter<bool> ("OverwriteHtmlFile")),
63  m_htmlFile(parSet.getParameter<std::string> ("HtmlFile")),
64  m_useHltMenu(parSet.getParameter<bool> ("UseHltMenu")),
65  m_hltProcessName(parSet.getParameter<std::string> ("HltProcessName")),
67  parSet.getParameter<bool> ("NoThrowIncompatibleMenu")),
68  m_printPfsRates(parSet.getParameter<bool> ("PrintPfsRates")),
69  m_indexPfSet(parSet.getParameter<int> ("IndexPfSet")),
71 
72  // empty
73 
74 }
T getParameter(std::string const &) const
bool m_overwriteHtmlFile
input parameters
bool m_printPfsRates
print prescale factors and rates
int m_indexPfSet
index of prescale factor set to be printed
bool m_useHltMenu
use a HLT menu for L1 seed - HLT path association
unsigned int m_numberAlgorithmTriggers
number of algorithm triggers
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
L1GtTriggerMenuTester::~L1GtTriggerMenuTester ( )
virtual

Definition at line 77 of file L1GtTriggerMenuTester.cc.

77  {
78  // empty
79 }

Member Function Documentation

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

analyze

Implements edm::EDAnalyzer.

Definition at line 146 of file L1GtTriggerMenuTester.cc.

147  {
148 
149  // empty
150 
151 }
void L1GtTriggerMenuTester::associateL1SeedsHltPath ( const edm::Run iRun,
const edm::EventSetup evSetup 
)
private

L1 seed - HLT path association.

Definition at line 244 of file L1GtTriggerMenuTester.cc.

References edm::hlt::Exception, L1GtLogicParser::expressionSeedsOperandList(), L1GtTriggerMenu::gtTriggerMenuName(), HLTConfigProvider::hltL1GTSeeds(), 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().

245  {
246 
247  bool hltChanged = true;
248 
249  if (m_hltConfig.init(iRun, evSetup, m_hltProcessName, hltChanged)) {
250 
251  // if init returns TRUE, initialization has succeeded!
252  if (hltChanged) {
253 
254  // HLT configuration has actually changed wrt the previous run
256 
257  edm::LogVerbatim("L1GtTriggerMenuTester")
258  << "\nHLT ConfDB menu name: \n " << m_hltTableName
259  << std::endl;
260 
261  // loop over trigger paths, get the HLTLevel1GTSeed logical expression, and add the path to
262  // each L1 trigger
263 
266 
269 
270  for (unsigned int iHlt = 0; iHlt < m_hltConfig.size(); ++iHlt) {
271 
272  const std::string& hltPathName = m_hltConfig.triggerName(iHlt);
273 
274  const std::vector<std::pair<bool, std::string> >& hltL1Seed =
275  m_hltConfig.hltL1GTSeeds(hltPathName);
276 
277  unsigned int numberHltL1GTSeeds = hltL1Seed.size();
278 
279  edm::LogVerbatim("L1GtTriggerMenuTester") << "\nPath: "
280  << hltPathName << " : <== " << numberHltL1GTSeeds
281  << " HLTLevel1GTSeed module(s)" << std::endl;
282 
283  for (unsigned int iSeedModule = 0; iSeedModule
284  < numberHltL1GTSeeds; ++iSeedModule) {
285 
286  // one needs a non-const logical expression... TODO check why
287  std::string m_l1SeedsLogicalExpression =
288  (hltL1Seed[iSeedModule]).second;
289 
290  edm::LogVerbatim("L1GtTriggerMenuTester") << " '"
291  << m_l1SeedsLogicalExpression << "'";
292 
293  // parse logical expression
294 
295  if (m_l1SeedsLogicalExpression != "L1GlobalDecision") {
296 
297  // check also the logical expression - add/remove spaces if needed
298  L1GtLogicParser m_l1AlgoLogicParser = L1GtLogicParser(
299  m_l1SeedsLogicalExpression);
300 
301  // list of required algorithms for seeding
302  std::vector<L1GtLogicParser::OperandToken>
303  m_l1AlgoSeeds =
304  m_l1AlgoLogicParser.expressionSeedsOperandList();
305  size_t l1AlgoSeedsSize = m_l1AlgoSeeds.size();
306 
307  edm::LogVerbatim("L1GtTriggerMenuTester")
308  << " : <== " << l1AlgoSeedsSize
309  << " L1 seeds" << std::endl;
310 
311  // for each algorithm trigger, check if it is in the L1 menu, get the bit number
312  // and add path to the vector of strings for that bit number
313 
314  for (size_t i = 0; i < l1AlgoSeedsSize; ++i) {
315 
316  const std::string& trigNameOrAlias =
317  (m_l1AlgoSeeds[i]).tokenName;
318 
319  CItAlgo itAlgo = m_algorithmAliasMap->find(
320  trigNameOrAlias);
321  if (itAlgo != m_algorithmAliasMap->end()) {
322 
323  int bitNr = (itAlgo->second).algoBitNumber();
324 
325  (m_hltPathsForL1AlgorithmTrigger.at(bitNr)).push_back(
326  hltPathName);
327 
328  edm::LogVerbatim("L1GtTriggerMenuTester")
329  << " " << trigNameOrAlias
330  << " bit " << bitNr << std::endl;
331 
332  } else {
333 
335  edm::LogVerbatim("L1GtTriggerMenuTester")
336  << " " << trigNameOrAlias
337  << " trigger not in L1 menu "
339  << std::endl;
340 
342  trigNameOrAlias);
343 
344  } else {
345  throw cms::Exception("FailModule")
346  << "\nAlgorithm "
347  << trigNameOrAlias
348  << ", requested as seed by a HLT path, not found in the L1 trigger menu\n "
350  << "\nIncompatible L1 and HLT menus.\n"
351  << std::endl;
352 
353  }
354  }
355  }
356 
357  }
358  }
359 
360  }
361  }
362  } else {
363  // if init returns FALSE, initialization has NOT succeeded, which indicates a problem
364  // with the file and/or code and needs to be investigated!
365  edm::LogError("MyAnalyzer")
366  << " HLT config extraction failure with process name "
367  << m_hltProcessName;
368  }
369 
370 }
unsigned int size() const
number of trigger paths in trigger table
std::vector< L1GtLogicParser::OperandToken > expressionSeedsOperandList()
const std::string & gtTriggerMenuName() const
int i
Definition: DBlmapReader.cc:9
const std::string & triggerName(unsigned int triggerIndex) const
const std::vector< std::vector< std::pair< bool, std::string > > > & hltL1GTSeeds() const
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 std::string & tableName() const
HLT ConfDB table name.
AlgorithmMap::const_iterator CItAlgo
iterators through map containing the algorithms
U second(std::pair< T, U > const &p)
std::vector< std::string > m_techTriggerSeedNotInL1Menu
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d&#39;tor
unsigned int m_numberAlgorithmTriggers
number of algorithm triggers
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 ...
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 ...
std::string m_hltProcessName
process name of HLT process for which to get HLT configuration
unsigned int m_numberTechnicalTriggers
number of technical triggers
void L1GtTriggerMenuTester::beginJob ( void  )
privatevirtual

begin job

Reimplemented from edm::EDAnalyzer.

Definition at line 82 of file L1GtTriggerMenuTester.cc.

82  {
83 
84 }
void L1GtTriggerMenuTester::beginLuminosityBlock ( const edm::LuminosityBlock iLumiBlock,
const edm::EventSetup evSetup 
)
privatevirtual

begin luminosity block

Reimplemented from edm::EDAnalyzer.

Definition at line 140 of file L1GtTriggerMenuTester.cc.

141  {
142 
143 }
void L1GtTriggerMenuTester::beginRun ( const edm::Run iRun,
const edm::EventSetup evSetup 
)
privatevirtual

begin run

Reimplemented from edm::EDAnalyzer.

Definition at line 87 of file L1GtTriggerMenuTester.cc.

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

88  {
89 
90  // retrieve L1 trigger configuration
91  retrieveL1EventSetup(evSetup);
92 
93  // print with various level of verbosity
94 
95  // define an output stream to print into
96  // it can then be directed to whatever log level is desired
97  std::ostringstream myCout;
98 
99  int printVerbosity = 0;
100  m_l1GtMenu->print(myCout, printVerbosity);
101  myCout << std::flush << std::endl;
102 
103  printVerbosity = 1;
104  m_l1GtMenu->print(myCout, printVerbosity);
105  myCout << std::flush << std::endl;
106 
107  printVerbosity = 2;
108  m_l1GtMenu->print(myCout, printVerbosity);
109  myCout << std::flush << std::endl;
110 
111  // redirect myCout to edm::LogVerbatim TODO - parameter to choose the log
112  edm::LogVerbatim("L1GtTriggerMenuTester") << myCout.str() << std::endl;
113 
114  // prepare L1 - HLT
115  if (m_useHltMenu) {
116  associateL1SeedsHltPath(iRun, evSetup);
117 
119  edm::LogVerbatim("L1GtTriggerMenuTester")
120  << "\n List of algorithm triggers used as L1 seeds but not in L1 menu"
121  << std::endl;
122 
123  for (std::vector<std::string>::const_iterator strIter =
124  m_algoTriggerSeedNotInL1Menu.begin(); strIter
125  != m_algoTriggerSeedNotInL1Menu.end(); ++strIter) {
126 
127  edm::LogVerbatim("L1GtTriggerMenuTester") << " "
128  << (*strIter) << std::endl;
129  }
130 
131  }
132  }
133 
134  // print in wiki format
135  printWiki();
136 
137 }
void associateL1SeedsHltPath(const edm::Run &, const edm::EventSetup &)
L1 seed - HLT path association.
const L1GtTriggerMenu * m_l1GtMenu
void printWiki()
printing in Wiki format
void print(std::ostream &, int &) const
bool m_useHltMenu
use a HLT menu for L1 seed - HLT path association
std::vector< std::string > m_algoTriggerSeedNotInL1Menu
vector of algorithm or technical triggers not in the L1 menu
void retrieveL1EventSetup(const edm::EventSetup &)
retrieve all the relevant L1 trigger event setup records
void L1GtTriggerMenuTester::endJob ( void  )
privatevirtual

end job

Reimplemented from edm::EDAnalyzer.

Definition at line 165 of file L1GtTriggerMenuTester.cc.

165  {
166 
167 }
void L1GtTriggerMenuTester::endLuminosityBlock ( const edm::LuminosityBlock iLumiBlock,
const edm::EventSetup evSetup 
)
privatevirtual

end luminosity block

Reimplemented from edm::EDAnalyzer.

Definition at line 154 of file L1GtTriggerMenuTester.cc.

155  {
156 
157 }
void L1GtTriggerMenuTester::endRun ( const edm::Run ,
const edm::EventSetup evSetup 
)
privatevirtual

end run

Reimplemented from edm::EDAnalyzer.

Definition at line 160 of file L1GtTriggerMenuTester.cc.

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

printing template for a trigger group

Definition at line 373 of file L1GtTriggerMenuTester.cc.

References CreateSqliteForCondDB_cfg::hltPaths, m_hltPathsForL1AlgorithmTrigger, m_htmlFile, m_numberAlgorithmTriggers, m_numberTechnicalTriggers, m_useHltMenu, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by printWiki().

375  {
376 
377  // FIXME get values - either read from a specific L1 menu file, or from
378  std::string lumiVal1 = "5.0E33";
379  std::string lumiVal2 = "7.0E33";
380  std::string trigComment;
381 
382  int trigPfVal1 = 0;
383  int trigPfVal2 = 0;
384 
385  int trigRateVal1 = 0;
386  int trigRateVal2 = 0;
387 
388  // cumulative list of L1 triggers not used as seed by HLT
389  std::vector < std::string > algoTriggerNotSeed;
390  algoTriggerNotSeed.reserve(m_numberAlgorithmTriggers);
391 
392  std::vector < std::string > techTriggerNotSeed;
393  techTriggerNotSeed.reserve(m_numberTechnicalTriggers);
394 
395  // force a page break before each group
396  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
397  << "<p style=\"page-break-before: always\">&nbsp;</p>";
398 
399  edm::LogVerbatim("L1GtTriggerMenuTesterWiki") << "\n---++++ "
400  << trigGroupName << "\n" << std::endl;
401 
402  if (compactPrint) {
403  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
404  << "| *Trigger Name* | *Trigger Alias* | *Bit* | *Comments* |"
405  << std::endl;
406 
407  } else {
408 
409  if (printPfsRates) {
410  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
411  << "| *Trigger Name* | *Trigger Alias* | *Bit* | *Luminosity* |||| *Seed for !HLT path(s)* | *Comments* |"
412  << std::endl;
413 
414  edm::LogVerbatim("L1GtTriggerMenuTesterWiki") << "|^|^|^| *"
415  << lumiVal1 << "* || *" << lumiVal2
416  << "* || ** | ** |" << std::endl;
417 
418  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
419  << "|^|^|^| *PF* | *Rate* | *PF* | *Rate* | ** | ** |"
420  << std::endl;
421 
422  } else {
423 
424  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
425  << "| *Trigger Name* | *Trigger Alias* | *Bit* | *Seed for !HLT path(s)* |"
426  << std::endl;
427  }
428 
429  }
430 
431  for (CItAlgoP itAlgo = trigGroup.begin(); itAlgo != trigGroup.end(); itAlgo++) {
432 
433  const std::string& aName = (itAlgo->second)->algoName();
434  const std::string& aAlias = (itAlgo->second)->algoAlias();
435  const int& bitNumber = (itAlgo->second)->algoBitNumber();
436 
437 
438  // concatenate in a string, to simplify the next print instruction
439  std::string seedsHlt;
440  if (m_useHltMenu) {
441  const std::vector<std::string> & hltPaths =
442  m_hltPathsForL1AlgorithmTrigger.at(bitNumber);
443 
444  if (hltPaths.size() < 1) {
445  algoTriggerNotSeed.push_back(aAlias);
446  seedsHlt
447  = "<font color = \"red\">Not used as seed by any !HLT path</font>";
448  } else {
449 
450  for (std::vector<std::string>::const_iterator strIter =
451  hltPaths.begin(); strIter != hltPaths.end(); ++strIter) {
452 
453  seedsHlt = seedsHlt + (*strIter) + "<BR>";
454  }
455  }
456 
457  }
458 
459  if (compactPrint) {
460  edm::LogVerbatim("L1GtTriggerMenuTesterWiki") << "|" << std::left
461  << "[[" << (m_htmlFile + "#" + aName) << "][ " << aName
462  << "]] " << " |" << aAlias << " | " << bitNumber << "| |"
463  << std::endl;
464 
465  } else {
466 
467  if (printPfsRates) {
468  edm::LogVerbatim("L1GtTriggerMenuTesterWiki") << "|"
469  << std::left << "[[" << (m_htmlFile + "#" + aName)
470  << "][ " << aName << "]] " << " |" << aAlias
471  << " | " << bitNumber << "| "
472  << ((trigPfVal1 != 0) ? trigPfVal1 : 0) << " | "
473  << ((trigRateVal1 != 0) ? trigRateVal1 : 0) << " | "
474  << ((trigPfVal2 != 0) ? trigPfVal2 : 0) << " | "
475  << ((trigRateVal2 != 0) ? trigRateVal2 : 0) << " | "
476  << seedsHlt << " | " << trigComment << " |"
477  << std::endl;
478 
479  } else {
480 
481  edm::LogVerbatim("L1GtTriggerMenuTesterWiki") << "|"
482  << std::left << "[[" << (m_htmlFile + "#" + aName)
483  << "][ " << aName << "]] " << " |" << aAlias
484  << " | " << bitNumber << "|" << seedsHlt << " | "
485  << std::endl;
486  }
487 
488  }
489 
490  }
491 
492  edm::LogVerbatim("L1GtTriggerMenuTesterWiki") << "\n" << trigGroupName
493  << ": " << (trigGroup.size()) << " bits defined." << std::endl;
494 
495  if (m_useHltMenu && (!compactPrint)) {
496  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
497  << "\n Algorithm triggers from " << trigGroupName
498  << " not used as seeds by !HLT:" << std::endl;
499 
500  if (algoTriggerNotSeed.size() != 0) {
501  for (std::vector<std::string>::const_iterator strIter =
502  algoTriggerNotSeed.begin(); strIter
503  != algoTriggerNotSeed.end(); ++strIter) {
504 
505  edm::LogVerbatim("L1GtTriggerMenuTesterWiki") << " * "
506  << (*strIter) << std::endl;
507  }
508 
509  } else {
510  edm::LogVerbatim("L1GtTriggerMenuTesterWiki") << " * none"
511  << std::endl;
512  }
513  }
514 
515 }
bool m_useHltMenu
use a HLT menu for L1 seed - HLT path association
std::map< std::string, const L1GtAlgorithm * >::const_iterator CItAlgoP
constant iterator
unsigned int m_numberAlgorithmTriggers
number of algorithm triggers
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 ...
std::string m_htmlFile
name of HTML file attached to the wiki page
unsigned int m_numberTechnicalTriggers
number of technical triggers
void L1GtTriggerMenuTester::printWiki ( )
private

printing in Wiki format

Definition at line 518 of file L1GtTriggerMenuTester.cc.

References asciidump::at, BPTX, CenJet, CondExternal, ETM, ETT, edm::hlt::Exception, ForJet, L1GtTriggerMenu::gtConditionMap(), GtExternal, L1GtTriggerMenu::gtScaleDbKey(), L1GtTriggerMenu::gtTriggerMenuImplementation(), L1GtTriggerMenu::gtTriggerMenuInterface(), L1GtTriggerMenu::gtTriggerMenuName(), HfBitCounts, HfRingEtSums, HTM, HTT, i, IsoEG, JetCounts, m_algorithmMap, m_hltTableName, m_htmlFile, m_indexPfSet, m_l1GtMenu, m_numberAlgorithmTriggers, m_numberTechnicalTriggers, m_overwriteHtmlFile, m_prescaleFactorsAlgoTrig, m_prescaleFactorsTechTrig, m_printPfsRates, m_technicalTriggerMap, m_useHltMenu, Mu, NoIsoEG, L1GtLogicParser::OP_OPERAND, printTriggerGroup(), linker::replace(), AlCaHLTBitMon_QueryRunRegistry::string, TauJet, and TechTrig.

Referenced by beginRun().

518  {
519 
520  //
521  // print menu, prescale factors and trigger mask in wiki format
522  //
523 
524  // L1 GT prescale factors for algorithm triggers
525 
526  std::vector<int> prescaleFactorsAlgoTrig = m_prescaleFactorsAlgoTrig->at(
527  m_indexPfSet);
528 
529  // L1 GT prescale factors for technical triggers
530 
531  std::vector<int> prescaleFactorsTechTrig = m_prescaleFactorsTechTrig->at(
532  m_indexPfSet);
533 
534  // use another map <int, L1GtAlgorithm> to get the menu sorted after bit number
535  // both algorithm and bit numbers are unique
536  typedef std::map<int, const L1GtAlgorithm*>::const_iterator CItBit;
537 
538  // algorithm triggers
539 
540  std::map<int, const L1GtAlgorithm*> algoBitToAlgo;
541 
542  std::map<std::string, const L1GtAlgorithm*> jetAlgoTrig;
543  std::map<std::string, const L1GtAlgorithm*> egammaAlgoTrig;
544  std::map<std::string, const L1GtAlgorithm*> esumAlgoTrig;
545  std::map<std::string, const L1GtAlgorithm*> muonAlgoTrig;
546  std::map<std::string, const L1GtAlgorithm*> crossAlgoTrig;
547  std::map<std::string, const L1GtAlgorithm*> bkgdAlgoTrig;
548 
549  int algoTrigNumber = 0;
550  int freeAlgoTrigNumber = 0;
551 
552  int jetAlgoTrigNumber = 0;
553  int egammaAlgoTrigNumber = 0;
554  int esumAlgoTrigNumber = 0;
555  int muonAlgoTrigNumber = 0;
556  int crossAlgoTrigNumber = 0;
557  int bkgdAlgoTrigNumber = 0;
558 
559  for (CItAlgo itAlgo = m_algorithmMap->begin(); itAlgo
560  != m_algorithmMap->end(); itAlgo++) {
561 
562  const int bitNumber = (itAlgo->second).algoBitNumber();
563  const std::string& algName = (itAlgo->second).algoName();
564 
565  algoBitToAlgo[bitNumber] = &(itAlgo->second);
566 
567  algoTrigNumber++;
568 
569  // per category
570 
571  const ConditionMap& conditionMap = (m_l1GtMenu->gtConditionMap()).at(
572  (itAlgo->second).algoChipNumber());
573 
574  const std::vector<L1GtLogicParser::TokenRPN>& rpnVector =
575  (itAlgo->second).algoRpnVector();
576  const L1GtLogicParser::OperationType condOperand =
578 
579  std::list<L1GtObject> listObjects;
580 
581  for (size_t i = 0; i < rpnVector.size(); ++i) {
582 
583  if ((rpnVector[i]).operation == condOperand) {
584 
585  const std::string& cndName = (rpnVector[i]).operand;
586 
587  // search the condition in the condition list
588 
589  bool foundCond = false;
590 
591  CItCond itCond = conditionMap.find(cndName);
592  if (itCond != conditionMap.end()) {
593  foundCond = true;
594 
595  // loop through object types and add them to the list
596 
597  const std::vector<L1GtObject>& objType =
598  (itCond->second)->objectType();
599 
600  for (std::vector<L1GtObject>::const_iterator itObject =
601  objType.begin(); itObject != objType.end(); itObject++) {
602  listObjects.push_back(*itObject);
603 
604  edm::LogVerbatim("L1GtTriggerMenuTester")
605  << (*itObject) << std::endl;
606  }
607 
608  // FIXME for XML parser, add GtExternal to objType correctly
609  if ((itCond->second)->condCategory() == CondExternal) {
610  listObjects.push_back(GtExternal);
611  }
612 
613  }
614 
615  if (!foundCond) {
616 
617  // it should never be happen, all conditions are in the maps
618  throw cms::Exception("FailModule") << "\nCondition "
619  << cndName << " not found in the condition map"
620  << " for chip number "
621  << ((itAlgo->second).algoChipNumber()) << std::endl;
622  }
623 
624  }
625 
626  }
627 
628  // eliminate duplicates
629  listObjects.sort();
630  listObjects.unique();
631 
632  // add the algorithm to the corresponding group
633 
634  bool jetGroup = false;
635  bool egammaGroup = false;
636  bool esumGroup = false;
637  bool muonGroup = false;
638  bool crossGroup = false;
639  bool bkgdGroup = false;
640 
641  for (std::list<L1GtObject>::const_iterator itObj = listObjects.begin(); itObj
642  != listObjects.end(); ++itObj) {
643 
644  switch (*itObj) {
645  case Mu: {
646  muonGroup = true;
647  }
648 
649  break;
650  case NoIsoEG: {
651  egammaGroup = true;
652  }
653 
654  break;
655  case IsoEG: {
656  egammaGroup = true;
657  }
658 
659  break;
660  case CenJet: {
661  jetGroup = true;
662  }
663 
664  break;
665  case ForJet: {
666  jetGroup = true;
667  }
668 
669  break;
670  case TauJet: {
671  jetGroup = true;
672  }
673 
674  break;
675  case ETM: {
676  esumGroup = true;
677 
678  }
679 
680  break;
681  case ETT: {
682  esumGroup = true;
683 
684  }
685 
686  break;
687  case HTT: {
688  esumGroup = true;
689 
690  }
691 
692  break;
693  case HTM: {
694  esumGroup = true;
695 
696  }
697 
698  break;
699  case JetCounts: {
700  // do nothing - not available
701  }
702 
703  break;
704  case HfBitCounts: {
705  bkgdGroup = true;
706  }
707 
708  break;
709  case HfRingEtSums: {
710  bkgdGroup = true;
711  }
712 
713  break;
714  case GtExternal: {
715  bkgdGroup = true;
716  }
717 
718  break;
719  case TechTrig:
720  case Castor:
721  case BPTX:
722  default: {
723  // should not arrive here
724 
725  edm::LogVerbatim("L1GtTriggerMenuTester")
726  << "\n Unknown object of type " << *itObj
727  << std::endl;
728  }
729  break;
730  }
731 
732  }
733 
734  int sumGroup = jetGroup + egammaGroup + esumGroup + muonGroup
735  + crossGroup + bkgdGroup;
736 
737  if (sumGroup > 1) {
738  crossAlgoTrig[algName] = &(itAlgo->second);
739  } else {
740 
741  if (jetGroup) {
742  jetAlgoTrig[algName] = &(itAlgo->second);
743 
744  } else if (egammaGroup) {
745  egammaAlgoTrig[algName] = &(itAlgo->second);
746 
747  } else if (esumGroup && (listObjects.size() > 1)) {
748  crossAlgoTrig[algName] = &(itAlgo->second);
749 
750  } else if (esumGroup) {
751  esumAlgoTrig[algName] = &(itAlgo->second);
752 
753  } else if (muonGroup) {
754  muonAlgoTrig[algName] = &(itAlgo->second);
755 
756  } else if (bkgdGroup) {
757  bkgdAlgoTrig[algName] = &(itAlgo->second);
758 
759  } else {
760  // do nothing
761  }
762 
763  }
764 
765  edm::LogVerbatim("L1GtTriggerMenuTester") << algName << " sum: "
766  << sumGroup << " size: " << listObjects.size() << std::endl;
767 
768  }
769 
770  freeAlgoTrigNumber = m_numberAlgorithmTriggers - algoTrigNumber;
771 
772  jetAlgoTrigNumber = jetAlgoTrig.size();
773  egammaAlgoTrigNumber = egammaAlgoTrig.size();
774  esumAlgoTrigNumber = esumAlgoTrig.size();
775  muonAlgoTrigNumber = muonAlgoTrig.size();
776  crossAlgoTrigNumber = crossAlgoTrig.size();
777  bkgdAlgoTrigNumber = bkgdAlgoTrig.size();
778 
779  // technical triggers
780  std::map<int, const L1GtAlgorithm*> techBitToAlgo;
781 
782  int techTrigNumber = 0;
783  int freeTechTrigNumber = 0;
784 
785  for (CItAlgo itAlgo = m_technicalTriggerMap->begin(); itAlgo
786  != m_technicalTriggerMap->end(); itAlgo++) {
787 
788  int bitNumber = (itAlgo->second).algoBitNumber();
789  techBitToAlgo[bitNumber] = &(itAlgo->second);
790 
791  techTrigNumber++;
792  }
793 
794  freeTechTrigNumber = m_numberTechnicalTriggers - techTrigNumber;
795 
796  // name of the attached HTML file
797  if (!m_overwriteHtmlFile) {
799 
800  // replace "/" with "_"
801  std::replace(menuName.begin(), menuName.end(), '/', '_');
802  m_htmlFile = "%ATTACHURL%/" + menuName + ".html";
803  } else {
804  m_htmlFile = "%ATTACHURL%/" + m_htmlFile;
805  }
806 
807  // header for printing algorithms
808 
809  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
810  << "\n ********** L1 Trigger Menu - printing in wiki format ********** \n\n"
811  << "\n---+++ L1 menu identification\n"
812  << "\n|L1 Trigger Menu Interface: |!"
813  << m_l1GtMenu->gtTriggerMenuInterface() << " |"
814  << "\n|L1 Trigger Menu Name: |!" << m_l1GtMenu->gtTriggerMenuName()
815  << " |" << "\n|L1 Trigger Menu Implementation: |!"
817  << "\n|Associated L1 scale DB key: |!"
818  << m_l1GtMenu->gtScaleDbKey() << " |" << "\n\n" << std::flush
819  << std::endl;
820 
821  // Overview page
822  edm::LogVerbatim("L1GtTriggerMenuTesterWiki") << "\n---+++ Summary\n"
823  << std::endl;
824  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
825  << " * Number of algorithm triggers: " << algoTrigNumber
826  << " defined, 128 possible." << std::endl;
827  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
828  << " * Number of technical triggers: " << techTrigNumber
829  << " defined, 64 possible.<BR><BR>" << std::endl;
830 
831  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
832  << " * Number of free bits for algorithm triggers: "
833  << freeAlgoTrigNumber << std::endl;
834  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
835  << " * Number of free bits for technical triggers: "
836  << freeTechTrigNumber << "<BR>" << std::endl;
837 
838  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
839  << "\nNumber of algorithm triggers per trigger group\n"
840  << std::endl;
841  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
842  << " | *Trigger group* | *Number of bits used*|" << std::endl;
843  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
844  << " | Jet algorithm triggers: | " << jetAlgoTrigNumber << "|"
845  << std::endl;
846  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
847  << " | EGamma algorithm triggers: | " << egammaAlgoTrigNumber
848  << "|" << std::endl;
849  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
850  << " | Energy sum algorithm triggers: | " << esumAlgoTrigNumber
851  << "|" << std::endl;
852  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
853  << " | Muon algorithm triggers: | " << muonAlgoTrigNumber
854  << "|" << std::endl;
855  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
856  << " | Cross algorithm triggers: | " << crossAlgoTrigNumber
857  << "|" << std::endl;
858  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
859  << " | Background algorithm triggers: | " << bkgdAlgoTrigNumber
860  << "|" << std::endl;
861 
862  // force a page break
863  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
864  << "<p style=\"page-break-before: always\">&nbsp;</p>";
865 
866  // compact print - without HLT path
867  bool compactPrint = true;
868 
869  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
870  << "\n---+++ List of algorithm triggers sorted by trigger groups\n"
871  << std::endl;
872 
873  // Jet algorithm triggers
874  printTriggerGroup("Jet algorithm triggers", jetAlgoTrig, compactPrint,
876 
877  // EGamma algorithm triggers
878  printTriggerGroup("EGamma algorithm triggers", egammaAlgoTrig,
879  compactPrint, m_printPfsRates);
880 
881  // Energy sum algorithm triggers
882  printTriggerGroup("Energy sum algorithm triggers", esumAlgoTrig,
883  compactPrint, m_printPfsRates);
884 
885  // Muon algorithm triggers
886  printTriggerGroup("Muon algorithm triggers", muonAlgoTrig, compactPrint,
888 
889  // Cross algorithm triggers
890  printTriggerGroup("Cross algorithm triggers", crossAlgoTrig, compactPrint,
892 
893  // Background algorithm triggers
894  printTriggerGroup("Background algorithm triggers", bkgdAlgoTrig,
895  compactPrint, m_printPfsRates);
896 
897  // force a page break
898  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
899  << "<p style=\"page-break-before: always\">&nbsp;</p>";
900 
901  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
902  << "\n---+++ List of algorithm triggers sorted by bits\n"
903  << std::endl;
904 
905  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
906  << "| *Algorithm* | *Alias* | *Bit number* |" << std::endl;
907 
908  for (CItBit itBit = algoBitToAlgo.begin(); itBit != algoBitToAlgo.end(); itBit++) {
909 
910  int bitNumber = itBit->first;
911  std::string aName = (itBit->second)->algoName();
912  std::string aAlias = (itBit->second)->algoAlias();
913 
914  edm::LogVerbatim("L1GtTriggerMenuTesterWiki") << "|" << std::left
915  << "[[" << (m_htmlFile + "#" + aName) << "][ " << aName
916  << "]] " << " |" << aAlias << " | " << bitNumber << "| |"
917  << std::endl;
918 
919  }
920 
921  // force a page break
922  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
923  << "<p style=\"page-break-before: always\">&nbsp;</p>";
924  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
925  << "\n---+++ List of technical triggers\n" << std::endl;
926 
927  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
928  << "| *Technical trigger* | *Bit number* |" << std::endl;
929 
930  for (CItBit itBit = techBitToAlgo.begin(); itBit != techBitToAlgo.end(); itBit++) {
931 
932  int bitNumber = itBit->first;
933  std::string aName = (itBit->second)->algoName();
934  std::string aAlias = (itBit->second)->algoAlias();
935 
936  edm::LogVerbatim("L1GtTriggerMenuTesterWiki") << "|!" << std::left
937  << aName << " | " << std::right << bitNumber << " |"
938  << std::endl;
939  }
940 
941  // force a page break
942  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
943  << "<p style=\"page-break-before: always\">&nbsp;</p>";
944 
945  // compact print false: with HLT path association, if the parameter m_useHltMenu is true
946  // otherwise, we have no association computed
947 
948  if (m_useHltMenu) {
949  compactPrint = false;
950  } else {
951  return;
952  }
953 
954  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
955  << "\n---+++ List of algorithm triggers sorted by trigger groups, including !HLT path association \n"
956  << std::endl;
957 
958  edm::LogVerbatim("L1GtTriggerMenuTesterWiki")
959  << "\n The following !HLT menu was used to associate the !HLT path to the L1 algorithm triggers:\n "
960  << std::endl;
961  edm::LogVerbatim("L1GtTriggerMenuTesterWiki") << m_hltTableName
962  << std::endl;
963 
964  // Jet algorithm triggers
965  printTriggerGroup("Jet algorithm triggers", jetAlgoTrig, compactPrint,
967 
968  // EGamma algorithm triggers
969  printTriggerGroup("EGamma algorithm triggers", egammaAlgoTrig,
970  compactPrint, m_printPfsRates);
971 
972  // Energy sum algorithm triggers
973  printTriggerGroup("Energy sum algorithm triggers", esumAlgoTrig,
974  compactPrint, m_printPfsRates);
975 
976  // Muon algorithm triggers
977  printTriggerGroup("Muon algorithm triggers", muonAlgoTrig, compactPrint,
979 
980  // Cross algorithm triggers
981  printTriggerGroup("Cross algorithm triggers", crossAlgoTrig, compactPrint,
983 
984  // Background algorithm triggers
985  printTriggerGroup("Background algorithm triggers", bkgdAlgoTrig,
986  compactPrint, m_printPfsRates);
987 
988 }
const std::string & gtTriggerMenuName() const
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
int i
Definition: DBlmapReader.cc:9
bool m_overwriteHtmlFile
input parameters
const std::vector< std::vector< int > > * m_prescaleFactorsTechTrig
Definition: L1GtObject.h:41
std::map< std::string, L1GtCondition * > ConditionMap
map containing the conditions
Definition: L1GtObject.h:38
ConditionMap::const_iterator CItCond
iterators through map containing the conditions
def replace
Definition: linker.py:10
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 std::string & gtTriggerMenuImplementation() const
const L1GtTriggerMenu * m_l1GtMenu
const AlgorithmMap * m_algorithmMap
const std::vector< ConditionMap > & gtConditionMap() const
get / set / build the condition maps
AlgorithmMap::const_iterator CItAlgo
iterators through map containing the algorithms
Definition: L1GtObject.h:40
const std::string & gtScaleDbKey() const
menu associated scale key
int m_indexPfSet
index of prescale factor set to be printed
bool m_useHltMenu
use a HLT menu for L1 seed - HLT path association
const std::string & gtTriggerMenuInterface() const
get / set the trigger menu names
Definition: L1GtObject.h:32
const std::vector< std::vector< int > > * m_prescaleFactorsAlgoTrig
unsigned int m_numberAlgorithmTriggers
number of algorithm triggers
Definition: L1GtObject.h:39
const AlgorithmMap * m_technicalTriggerMap
std::string m_htmlFile
name of HTML file attached to the wiki page
unsigned int m_numberTechnicalTriggers
number of technical triggers
list at
Definition: asciidump.py:428
void L1GtTriggerMenuTester::retrieveL1EventSetup ( const edm::EventSetup evSetup)
private

retrieve all the relevant L1 trigger event setup records

Definition at line 169 of file L1GtTriggerMenuTester.cc.

References edm::EventSetup::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< class >::product().

Referenced by beginRun().

169  {
170 
171  // get / update the stable parameters from the EventSetup
172 
174  evSetup.get<L1GtStableParametersRcd> ().get(l1GtStablePar);
175  m_l1GtStablePar = l1GtStablePar.product();
176 
177  // number of algorithm triggers
179 
180  // number of technical triggers
182 
183 // int maxNumberTrigger = std::max(m_numberAlgorithmTriggers,
184 // m_numberTechnicalTriggers);
185 
186 // m_triggerMaskSet.reserve(maxNumberTrigger);
187 // m_prescaleFactorSet.reserve(maxNumberTrigger);
188 
189  // get / update the prescale factors from the EventSetup
190 
191 
193  evSetup.get<L1GtPrescaleFactorsAlgoTrigRcd> ().get(l1GtPfAlgo);
194  m_l1GtPfAlgo = l1GtPfAlgo.product();
195 
197 
199  evSetup.get<L1GtPrescaleFactorsTechTrigRcd> ().get(l1GtPfTech);
200  m_l1GtPfTech = l1GtPfTech.product();
201 
203 
204  // get / update the trigger mask from the EventSetup
205 
207  evSetup.get<L1GtTriggerMaskAlgoTrigRcd> ().get(l1GtTmAlgo);
208  m_l1GtTmAlgo = l1GtTmAlgo.product();
209 
211 
213  evSetup.get<L1GtTriggerMaskTechTrigRcd> ().get(l1GtTmTech);
214  m_l1GtTmTech = l1GtTmTech.product();
215 
217 
218  edm::ESHandle<L1GtTriggerMask> l1GtTmVetoAlgo;
219  evSetup.get<L1GtTriggerMaskVetoAlgoTrigRcd> ().get(l1GtTmVetoAlgo);
220  m_l1GtTmVetoAlgo = l1GtTmVetoAlgo.product();
221 
223 
224  edm::ESHandle<L1GtTriggerMask> l1GtTmVetoTech;
225  evSetup.get<L1GtTriggerMaskVetoTechTrigRcd> ().get(l1GtTmVetoTech);
226  m_l1GtTmVetoTech = l1GtTmVetoTech.product();
227 
229 
230  // get / update the trigger menu from the EventSetup
231 
233  evSetup.get<L1GtTriggerMenuRcd> ().get(l1GtMenu);
234  m_l1GtMenu = l1GtMenu.product();
235  (const_cast<L1GtTriggerMenu*> (m_l1GtMenu))->buildGtConditionMap();
236 
239 
241 
242 }
const std::vector< std::vector< int > > * m_prescaleFactorsTechTrig
const L1GtStableParameters * m_l1GtStablePar
event setup cached stuff
const std::vector< unsigned int > * m_triggerMaskVetoAlgoTrig
const AlgorithmMap * m_algorithmAliasMap
const L1GtTriggerMenu * m_l1GtMenu
const AlgorithmMap * m_algorithmMap
const L1GtTriggerMask * m_l1GtTmVetoAlgo
const L1GtPrescaleFactors * m_l1GtPfTech
const std::vector< unsigned int > * m_triggerMaskAlgoTrig
unsigned int gtNumberTechnicalTriggers() const
get / set the number of technical triggers
unsigned int gtNumberPhysTriggers() const
get / set the number of physics trigger algorithms
const std::vector< unsigned int > & gtTriggerMask() const
get the trigger mask
const std::vector< unsigned int > * m_triggerMaskVetoTechTrig
const L1GtTriggerMask * m_l1GtTmAlgo
trigger masks &amp; veto masks
const std::vector< std::vector< int > > & gtPrescaleFactors() const
get the prescale factors by reference
const T & get() const
Definition: EventSetup.h:55
T const * product() const
Definition: ESHandle.h:62
const std::vector< std::vector< int > > * m_prescaleFactorsAlgoTrig
const L1GtPrescaleFactors * m_l1GtPfAlgo
prescale factors
unsigned int m_numberAlgorithmTriggers
number of algorithm triggers
const AlgorithmMap & gtAlgorithmMap() const
get / set the algorithm map (by name)
const AlgorithmMap * m_technicalTriggerMap
const L1GtTriggerMask * m_l1GtTmTech
const L1GtTriggerMask * m_l1GtTmVetoTech
const AlgorithmMap & gtTechnicalTriggerMap() const
get / set the technical trigger map
const AlgorithmMap & gtAlgorithmAliasMap() const
get / set the algorithm map (by alias)
unsigned int m_numberTechnicalTriggers
number of technical triggers
const std::vector< unsigned int > * m_triggerMaskTechTrig

Member Data Documentation

const AlgorithmMap* L1GtTriggerMenuTester::m_algorithmAliasMap
private

Definition at line 167 of file L1GtTriggerMenuTester.h.

Referenced by associateL1SeedsHltPath(), and retrieveL1EventSetup().

const AlgorithmMap* L1GtTriggerMenuTester::m_algorithmMap
private

Definition at line 166 of file L1GtTriggerMenuTester.h.

Referenced by printWiki(), and retrieveL1EventSetup().

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

vector of algorithm or technical triggers not in the L1 menu

Definition at line 185 of file L1GtTriggerMenuTester.h.

Referenced by associateL1SeedsHltPath(), and beginRun().

HLTConfigProvider L1GtTriggerMenuTester::m_hltConfig
private

The instance of the HLTConfigProvider as a data member.

Definition at line 173 of file L1GtTriggerMenuTester.h.

Referenced by associateL1SeedsHltPath().

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 179 of file L1GtTriggerMenuTester.h.

Referenced by associateL1SeedsHltPath(), and printTriggerGroup().

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 182 of file L1GtTriggerMenuTester.h.

Referenced by associateL1SeedsHltPath().

std::string L1GtTriggerMenuTester::m_hltProcessName
private

process name of HLT process for which to get HLT configuration

Definition at line 117 of file L1GtTriggerMenuTester.h.

Referenced by associateL1SeedsHltPath().

std::string L1GtTriggerMenuTester::m_hltTableName
private

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

Definition at line 176 of file L1GtTriggerMenuTester.h.

Referenced by associateL1SeedsHltPath(), and printWiki().

std::string L1GtTriggerMenuTester::m_htmlFile
private

name of HTML file attached to the wiki page

Definition at line 111 of file L1GtTriggerMenuTester.h.

Referenced by printTriggerGroup(), and printWiki().

int L1GtTriggerMenuTester::m_indexPfSet
private

index of prescale factor set to be printed

Definition at line 127 of file L1GtTriggerMenuTester.h.

Referenced by printWiki().

const L1GtTriggerMenu* L1GtTriggerMenuTester::m_l1GtMenu
private
const L1GtPrescaleFactors* L1GtTriggerMenuTester::m_l1GtPfAlgo
private

prescale factors

Definition at line 143 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

const L1GtPrescaleFactors* L1GtTriggerMenuTester::m_l1GtPfTech
private

Definition at line 145 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

const L1GtStableParameters* L1GtTriggerMenuTester::m_l1GtStablePar
private

event setup cached stuff

stable parameters

Definition at line 134 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

const L1GtTriggerMask* L1GtTriggerMenuTester::m_l1GtTmAlgo
private

trigger masks & veto masks

Definition at line 151 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

const L1GtTriggerMask* L1GtTriggerMenuTester::m_l1GtTmTech
private

Definition at line 152 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

const L1GtTriggerMask* L1GtTriggerMenuTester::m_l1GtTmVetoAlgo
private

Definition at line 154 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

const L1GtTriggerMask* L1GtTriggerMenuTester::m_l1GtTmVetoTech
private

Definition at line 155 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

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 121 of file L1GtTriggerMenuTester.h.

Referenced by associateL1SeedsHltPath(), and beginRun().

unsigned int L1GtTriggerMenuTester::m_numberAlgorithmTriggers
private

number of algorithm triggers

Definition at line 137 of file L1GtTriggerMenuTester.h.

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

unsigned int L1GtTriggerMenuTester::m_numberTechnicalTriggers
private

number of technical triggers

Definition at line 140 of file L1GtTriggerMenuTester.h.

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

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 108 of file L1GtTriggerMenuTester.h.

Referenced by printWiki().

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

Definition at line 147 of file L1GtTriggerMenuTester.h.

Referenced by printWiki(), and retrieveL1EventSetup().

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

Definition at line 148 of file L1GtTriggerMenuTester.h.

Referenced by printWiki(), and retrieveL1EventSetup().

bool L1GtTriggerMenuTester::m_printPfsRates
private

print prescale factors and rates

Definition at line 124 of file L1GtTriggerMenuTester.h.

Referenced by printWiki().

const AlgorithmMap* L1GtTriggerMenuTester::m_technicalTriggerMap
private

Definition at line 168 of file L1GtTriggerMenuTester.h.

Referenced by printWiki(), and retrieveL1EventSetup().

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

Definition at line 186 of file L1GtTriggerMenuTester.h.

Referenced by associateL1SeedsHltPath().

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

Definition at line 157 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

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

Definition at line 158 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

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

Definition at line 160 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

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

Definition at line 161 of file L1GtTriggerMenuTester.h.

Referenced by retrieveL1EventSetup().

bool L1GtTriggerMenuTester::m_useHltMenu
private

use a HLT menu for L1 seed - HLT path association

Definition at line 114 of file L1GtTriggerMenuTester.h.

Referenced by beginRun(), printTriggerGroup(), and printWiki().