CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
l1t::L1TGlobalUtil Class Reference

#include <L1TGlobalUtil.h>

Public Member Functions

const std::vector< std::pair< std::string, bool > > & decisionsFinal ()
 
const std::vector< std::pair< std::string, bool > > & decisionsInitial ()
 
const std::vector< std::pair< std::string, bool > > & decisionsInterm ()
 
const bool getAlgBitFromName (const std::string &AlgName, int &bit) const
 
const bool getAlgNameFromBit (int &bit, std::string &AlgName) const
 
const bool getFinalDecisionByBit (int &bit, bool &decision) const
 
const bool getFinalDecisionByName (const std::string &algName, bool &decision) const
 
bool getFinalOR () const
 
const bool getInitialDecisionByBit (int &bit, bool &decision) const
 
const bool getInitialDecisionByName (const std::string &algName, bool &decision) const
 
const bool getIntermDecisionByBit (int &bit, bool &decision) const
 
const bool getIntermDecisionByName (const std::string &algName, bool &decision) const
 
const bool getMaskByBit (int &bit, std::vector< int > &mask) const
 
const bool getMaskByName (const std::string &algName, std::vector< int > &mask) const
 
const bool getPrescaleByBit (int &bit, double &prescale) const
 
const bool getPrescaleByName (const std::string &algName, double &prescale) const
 
const std::string & gtTriggerMenuComment () const
 
const std::string & gtTriggerMenuName () const
 
const std::string & gtTriggerMenuVersion () const
 
template<typename T >
 L1TGlobalUtil (edm::ParameterSet const &pset, edm::ConsumesCollector &&iC, T &module, edm::InputTag const &l1tAlgBlkInputTag, edm::InputTag const &l1tExtBlkInputTag, UseEventSetupIn use=UseEventSetupIn::Run)
 
template<typename T >
 L1TGlobalUtil (edm::ParameterSet const &pset, edm::ConsumesCollector &&iC, T &module, UseEventSetupIn use=UseEventSetupIn::Run)
 
 L1TGlobalUtil (edm::ParameterSet const &pset, edm::ConsumesCollector &&iC, UseEventSetupIn use=UseEventSetupIn::Run)
 
template<typename T >
 L1TGlobalUtil (edm::ParameterSet const &pset, edm::ConsumesCollector &iC, T &module, edm::InputTag const &l1tAlgBlkInputTag, edm::InputTag const &l1tExtBlkInputTag, UseEventSetupIn use=UseEventSetupIn::Run)
 
template<typename T >
 L1TGlobalUtil (edm::ParameterSet const &pset, edm::ConsumesCollector &iC, T &module, UseEventSetupIn use=UseEventSetupIn::Run)
 
 L1TGlobalUtil (edm::ParameterSet const &pset, edm::ConsumesCollector &iC, UseEventSetupIn use=UseEventSetupIn::Run)
 
const std::vector< std::pair< std::string, std::vector< int > > > & masks ()
 
unsigned int numberOfPreScaleColumns () const
 
void OverridePrescalesAndMasks (std::string filename, unsigned int psColumn=1.)
 
unsigned int prescaleColumn () const
 
const std::vector< std::pair< std::string, double > > & prescales ()
 
void retrieveL1 (const edm::Event &iEvent, const edm::EventSetup &evSetup)
 initialize the class (mainly reserve) More...
 
void retrieveL1 (const edm::Event &iEvent, const edm::EventSetup &evSetup, edm::EDGetToken gtAlgToken)
 
void retrieveL1Event (const edm::Event &iEvent, const edm::EventSetup &evSetup)
 
void retrieveL1Event (const edm::Event &iEvent, const edm::EventSetup &evSetup, edm::EDGetToken gtAlgToken)
 
void retrieveL1Setup (const edm::EventSetup &evSetup)
 
void setVerbosity (const int verbosity)
 
bool valid () const
 check that the L1TGlobalUtil has been properly initialised More...
 
virtual ~L1TGlobalUtil ()
 destructor More...
 

Static Public Member Functions

static void fillDescription (edm::ParameterSetDescription &desc)
 

Private Member Functions

void eventSetupConsumes (edm::ConsumesCollector &iC, UseEventSetupIn useEventSetupIn)
 
 L1TGlobalUtil ()
 
void loadPrescalesAndMasks ()
 
void resetDecisionVectors ()
 clear decision vectors on a menu change More...
 
void resetMaskVectors ()
 
void resetPrescaleVectors ()
 
void retrieveL1Setup (const edm::EventSetup &evSetup, bool isRun)
 

Private Attributes

const std::map< std::string, L1TUtmAlgorithm > * m_algorithmMap
 
std::vector< std::pair< std::string, bool > > m_decisionsFinal
 
std::vector< std::pair< std::string, bool > > m_decisionsInitial
 
std::vector< std::pair< std::string, bool > > m_decisionsInterm
 
bool m_filledPrescales
 
bool m_finalOR
 
std::vector< std::vector< double > > m_initialPrescaleFactorsAlgoTrig
 
const std::map< int, std::vector< int > > m_initialTriggerMaskAlgoTrig
 
const L1TUtmTriggerMenum_l1GtMenu
 
unsigned long long m_l1GtMenuCacheID
 
unsigned long long m_l1GtPfAlgoCacheID
 
const l1t::PrescalesVetosFractHelperm_l1GtPrescalesVetoes
 
edm::ESGetToken< L1TGlobalPrescalesVetosFract, L1TGlobalPrescalesVetosFractRcdm_L1TGlobalPrescalesVetosFractEventToken
 
edm::ESGetToken< L1TGlobalPrescalesVetosFract, L1TGlobalPrescalesVetosFractRcdm_L1TGlobalPrescalesVetosFractRunToken
 
std::unique_ptr< L1TGlobalUtilHelperm_l1tGlobalUtilHelper
 
edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcdm_L1TUtmTriggerMenuEventToken
 
edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcdm_L1TUtmTriggerMenuRunToken
 
std::vector< std::pair< std::string, std::vector< int > > > m_masks
 
const unsigned int m_maxNumberPhysTriggers = 512
 
unsigned int m_numberOfPreScaleColumns
 
unsigned int m_numberPhysTriggers
 
unsigned int m_PreScaleColumn
 
const std::vector< std::vector< double > > * m_prescaleFactorsAlgoTrig
 
std::string m_preScaleFileName
 
std::vector< std::pair< std::string, double > > m_prescales
 
bool m_readPrescalesFromFile
 
const std::map< int, std::vector< int > > * m_triggerMaskAlgoTrig
 
edm::Handle< BXVector< GlobalAlgBlk > > m_uGtAlgBlk
 
int m_verbosity
 verbosity level More...
 

Detailed Description

Definition at line 44 of file L1TGlobalUtil.h.

Constructor & Destructor Documentation

◆ L1TGlobalUtil() [1/7]

l1t::L1TGlobalUtil::L1TGlobalUtil ( edm::ParameterSet const &  pset,
edm::ConsumesCollector &&  iC,
UseEventSetupIn  use = UseEventSetupIn::Run 
)

Definition at line 38 of file L1TGlobalUtil.cc.

41  : L1TGlobalUtil(pset, iC, useEventSetupIn) {}

◆ L1TGlobalUtil() [2/7]

l1t::L1TGlobalUtil::L1TGlobalUtil ( edm::ParameterSet const &  pset,
edm::ConsumesCollector iC,
UseEventSetupIn  use = UseEventSetupIn::Run 
)

Definition at line 43 of file L1TGlobalUtil.cc.

46  : L1TGlobalUtil() {
47  m_l1tGlobalUtilHelper = std::make_unique<L1TGlobalUtilHelper>(pset, iC);
48  m_readPrescalesFromFile = m_l1tGlobalUtilHelper->readPrescalesFromFile();
49  eventSetupConsumes(iC, useEventSetupIn);
50 }

References eventSetupConsumes(), m_l1tGlobalUtilHelper, m_readPrescalesFromFile, and muonDTDigis_cfi::pset.

◆ L1TGlobalUtil() [3/7]

template<typename T >
l1t::L1TGlobalUtil::L1TGlobalUtil ( edm::ParameterSet const &  pset,
edm::ConsumesCollector &&  iC,
T module,
UseEventSetupIn  use = UseEventSetupIn::Run 
)

Definition at line 243 of file L1TGlobalUtil.h.

247  : L1TGlobalUtil(pset, iC, module, useEventSetupIn) {}

◆ L1TGlobalUtil() [4/7]

template<typename T >
l1t::L1TGlobalUtil::L1TGlobalUtil ( edm::ParameterSet const &  pset,
edm::ConsumesCollector iC,
T module,
UseEventSetupIn  use = UseEventSetupIn::Run 
)

Definition at line 250 of file L1TGlobalUtil.h.

254  : L1TGlobalUtil() {
255  m_l1tGlobalUtilHelper = std::make_unique<L1TGlobalUtilHelper>(pset, iC, module);
256  m_readPrescalesFromFile = m_l1tGlobalUtilHelper->readPrescalesFromFile();
257  eventSetupConsumes(iC, useEventSetupIn);
258  }

References eventSetupConsumes(), m_l1tGlobalUtilHelper, m_readPrescalesFromFile, callgraph::module, and muonDTDigis_cfi::pset.

◆ L1TGlobalUtil() [5/7]

template<typename T >
l1t::L1TGlobalUtil::L1TGlobalUtil ( edm::ParameterSet const &  pset,
edm::ConsumesCollector &&  iC,
T module,
edm::InputTag const &  l1tAlgBlkInputTag,
edm::InputTag const &  l1tExtBlkInputTag,
UseEventSetupIn  use = UseEventSetupIn::Run 
)

Definition at line 261 of file L1TGlobalUtil.h.

267  : L1TGlobalUtil(pset, iC, module, l1tAlgBlkInputTag, l1tExtBlkInputTag, useEventSetupIn) {}

◆ L1TGlobalUtil() [6/7]

template<typename T >
l1t::L1TGlobalUtil::L1TGlobalUtil ( edm::ParameterSet const &  pset,
edm::ConsumesCollector iC,
T module,
edm::InputTag const &  l1tAlgBlkInputTag,
edm::InputTag const &  l1tExtBlkInputTag,
UseEventSetupIn  use = UseEventSetupIn::Run 
)

◆ ~L1TGlobalUtil()

l1t::L1TGlobalUtil::~L1TGlobalUtil ( )
virtual

destructor

Definition at line 53 of file L1TGlobalUtil.cc.

53  {
54  // empty
55 }

◆ L1TGlobalUtil() [7/7]

l1t::L1TGlobalUtil::L1TGlobalUtil ( )
private

Definition at line 22 of file L1TGlobalUtil.cc.

22  : m_l1GtMenu(nullptr) {
23  // initialize cached IDs
24  m_l1GtMenuCacheID = 0ULL;
25  m_l1GtPfAlgoCacheID = 0ULL;
26  m_filledPrescales = false;
27 
28  edm::FileInPath f1("L1Trigger/L1TGlobal/data/Luminosity/startup/prescale_L1TGlobal.csv");
29  m_preScaleFileName = f1.fullPath();
30  m_numberPhysTriggers = 512; //need to get this out of the EventSetup
31  m_PreScaleColumn = 0;
33 
34  m_prescaleFactorsAlgoTrig = nullptr;
35  m_triggerMaskAlgoTrig = nullptr;
36 }

References DeadROC_duringRun::f1, m_filledPrescales, m_l1GtMenuCacheID, m_l1GtPfAlgoCacheID, m_numberPhysTriggers, m_PreScaleColumn, m_prescaleFactorsAlgoTrig, m_preScaleFileName, m_readPrescalesFromFile, and m_triggerMaskAlgoTrig.

Member Function Documentation

◆ decisionsFinal()

const std::vector<std::pair<std::string, bool> >& l1t::L1TGlobalUtil::decisionsFinal ( )
inline

Definition at line 156 of file L1TGlobalUtil.h.

156 { return m_decisionsFinal; }

References m_decisionsFinal.

Referenced by HcalIsoTrkAnalyzer::analyze().

◆ decisionsInitial()

const std::vector<std::pair<std::string, bool> >& l1t::L1TGlobalUtil::decisionsInitial ( )
inline

Definition at line 154 of file L1TGlobalUtil.h.

154 { return m_decisionsInitial; }

References m_decisionsInitial.

◆ decisionsInterm()

const std::vector<std::pair<std::string, bool> >& l1t::L1TGlobalUtil::decisionsInterm ( )
inline

Definition at line 155 of file L1TGlobalUtil.h.

155 { return m_decisionsInterm; }

References m_decisionsInterm.

◆ eventSetupConsumes()

void l1t::L1TGlobalUtil::eventSetupConsumes ( edm::ConsumesCollector iC,
UseEventSetupIn  useEventSetupIn 
)
private

◆ fillDescription()

static void l1t::L1TGlobalUtil::fillDescription ( edm::ParameterSetDescription desc)
inlinestatic

◆ getAlgBitFromName()

const bool l1t::L1TGlobalUtil::getAlgBitFromName ( const std::string &  AlgName,
int &  bit 
) const

Definition at line 458 of file L1TGlobalUtil.cc.

458  {
459  std::map<std::string, L1TUtmAlgorithm>::const_iterator itAlgo = m_algorithmMap->find(algName);
460  if (itAlgo != m_algorithmMap->end()) {
461  bit = (itAlgo->second).getIndex(); //algoBitNumber();
462  return true;
463  }
464 
465  return false; //did not find anything by that name
466 }

◆ getAlgNameFromBit()

const bool l1t::L1TGlobalUtil::getAlgNameFromBit ( int &  bit,
std::string &  AlgName 
) const

Definition at line 468 of file L1TGlobalUtil.cc.

468  {
469  // since we are just looking up the name, doesn't matter which vector we get it from
470  if ((m_decisionsInitial[bit]).first != "NULL") {
471  algName = (m_decisionsInitial[bit]).first;
472  return true;
473  }
474  return false; //No name associated with this bit
475 }

References first.

Referenced by L1TdeStage2uGT::analyze().

◆ getFinalDecisionByBit()

const bool l1t::L1TGlobalUtil::getFinalDecisionByBit ( int &  bit,
bool &  decision 
) const

Definition at line 500 of file L1TGlobalUtil.cc.

500  {
501  // Need some check that this is a valid bit
502  if ((m_decisionsFinal[bit]).first != "NULL") {
503  decision = (m_decisionsFinal[bit]).second;
504  return true;
505  }
506 
507  return false; //couldn't get the information requested.
508 }

References first, and edm::second().

◆ getFinalDecisionByName()

const bool l1t::L1TGlobalUtil::getFinalDecisionByName ( const std::string &  algName,
bool &  decision 
) const

Definition at line 548 of file L1TGlobalUtil.cc.

548  {
549  int bit = -1;
550  if (getAlgBitFromName(algName, bit)) {
551  decision = (m_decisionsFinal[bit]).second;
552  return true;
553  }
554 
555  return false; //trigger name was not the menu.
556 }

References edm::second().

◆ getFinalOR()

bool l1t::L1TGlobalUtil::getFinalOR ( ) const
inline

Definition at line 118 of file L1TGlobalUtil.h.

118 { return m_finalOR; }

References m_finalOR.

◆ getInitialDecisionByBit()

const bool l1t::L1TGlobalUtil::getInitialDecisionByBit ( int &  bit,
bool &  decision 
) const

Definition at line 477 of file L1TGlobalUtil.cc.

477  {
478  /*
479  for(std::vector<GlobalAlgBlk>::const_iterator algBlk = m_uGtAlgBlk->begin(0); algBlk != m_uGtAlgBlk->end(0); ++algBlk) {
480  decision = algBlk->getAlgoDecisionFinal(bit);
481  }
482  */
483  // Need some check that this is a valid bit
484  if ((m_decisionsInitial[bit]).first != "NULL") {
485  decision = (m_decisionsInitial[bit]).second;
486  return true;
487  }
488 
489  return false; //couldn't get the information requested.
490 }

References first, and edm::second().

◆ getInitialDecisionByName()

const bool l1t::L1TGlobalUtil::getInitialDecisionByName ( const std::string &  algName,
bool &  decision 
) const

Definition at line 528 of file L1TGlobalUtil.cc.

528  {
529  int bit = -1;
530  if (getAlgBitFromName(algName, bit)) {
531  decision = (m_decisionsInitial[bit]).second;
532  return true;
533  }
534 
535  return false; //trigger name was not the menu.
536 }

References edm::second().

◆ getIntermDecisionByBit()

const bool l1t::L1TGlobalUtil::getIntermDecisionByBit ( int &  bit,
bool &  decision 
) const

Definition at line 491 of file L1TGlobalUtil.cc.

491  {
492  // Need some check that this is a valid bit
493  if ((m_decisionsInterm[bit]).first != "NULL") {
494  decision = (m_decisionsInterm[bit]).second;
495  return true;
496  }
497 
498  return false; //couldn't get the information requested.
499 }

References first, and edm::second().

◆ getIntermDecisionByName()

const bool l1t::L1TGlobalUtil::getIntermDecisionByName ( const std::string &  algName,
bool &  decision 
) const

Definition at line 538 of file L1TGlobalUtil.cc.

538  {
539  int bit = -1;
540  if (getAlgBitFromName(algName, bit)) {
541  decision = (m_decisionsInterm[bit]).second;
542  return true;
543  }
544 
545  return false; //trigger name was not the menu.
546 }

References edm::second().

◆ getMaskByBit()

const bool l1t::L1TGlobalUtil::getMaskByBit ( int &  bit,
std::vector< int > &  mask 
) const

Definition at line 518 of file L1TGlobalUtil.cc.

518  {
519  // Need some check that this is a valid bit
520  if ((m_masks[bit]).first != "NULL") {
521  mask = (m_masks[bit]).second;
522  return true;
523  }
524 
525  return false; //couldn't get the information requested.
526 }

References first, and edm::second().

◆ getMaskByName()

const bool l1t::L1TGlobalUtil::getMaskByName ( const std::string &  algName,
std::vector< int > &  mask 
) const

Definition at line 566 of file L1TGlobalUtil.cc.

566  {
567  int bit = -1;
568  if (getAlgBitFromName(algName, bit)) {
569  mask = (m_masks[bit]).second;
570  return true;
571  }
572 
573  return false; //trigger name was not the menu.
574 }

References edm::second().

◆ getPrescaleByBit()

const bool l1t::L1TGlobalUtil::getPrescaleByBit ( int &  bit,
double &  prescale 
) const

Definition at line 509 of file L1TGlobalUtil.cc.

509  {
510  // Need some check that this is a valid bit
511  if ((m_prescales[bit]).first != "NULL") {
512  prescale = (m_prescales[bit]).second;
513  return true;
514  }
515 
516  return false; //couldn't get the information requested.
517 }

References first, and edm::second().

Referenced by L1TdeStage2uGT::analyze().

◆ getPrescaleByName()

const bool l1t::L1TGlobalUtil::getPrescaleByName ( const std::string &  algName,
double &  prescale 
) const

Definition at line 557 of file L1TGlobalUtil.cc.

557  {
558  int bit = -1;
559  if (getAlgBitFromName(algName, bit)) {
560  prescale = (m_prescales[bit]).second;
561  return true;
562  }
563 
564  return false; //trigger name was not the menu.
565 }

References edm::second().

◆ gtTriggerMenuComment()

const std::string& l1t::L1TGlobalUtil::gtTriggerMenuComment ( ) const
inline

Definition at line 167 of file L1TGlobalUtil.h.

167 { return m_l1GtMenu->getComment(); }

References L1TUtmTriggerMenu::getComment(), and m_l1GtMenu.

◆ gtTriggerMenuName()

const std::string& l1t::L1TGlobalUtil::gtTriggerMenuName ( ) const
inline

Definition at line 165 of file L1TGlobalUtil.h.

165 { return m_l1GtMenu->getName(); }

References L1TUtmTriggerMenu::getName(), and m_l1GtMenu.

◆ gtTriggerMenuVersion()

const std::string& l1t::L1TGlobalUtil::gtTriggerMenuVersion ( ) const
inline

Definition at line 166 of file L1TGlobalUtil.h.

166 { return m_l1GtMenu->getVersion(); }

References L1TUtmTriggerMenu::getVersion(), and m_l1GtMenu.

◆ loadPrescalesAndMasks()

void l1t::L1TGlobalUtil::loadPrescalesAndMasks ( )
private

Definition at line 282 of file L1TGlobalUtil.cc.

282  {
283  std::ifstream inputPrescaleFile;
284  //std::cout << "Reading prescales from file: " << m_preScaleFileName << std::endl;
285  inputPrescaleFile.open(m_preScaleFileName);
286 
287  std::vector<std::vector<int> > vec;
288  std::vector<std::vector<double> > prescale_vec;
289 
290  if (inputPrescaleFile) {
291  std::string prefix1("#");
292  std::string prefix2("-1");
293 
295 
296  bool first = true;
297 
298  while (getline(inputPrescaleFile, line)) {
299  if (!line.compare(0, prefix1.size(), prefix1))
300  continue;
301  //if( !line.compare(0, prefix2.size(), prefix2) ) continue;
302 
303  istringstream split(line);
304  int value;
305  int col = 0;
306  char sep;
307 
308  while (split >> value) {
309  if (first) {
310  // Each new value read on line 1 should create a new inner vector
311  vec.push_back(std::vector<int>());
312  }
313 
314  vec[col].push_back(value);
315  ++col;
316 
317  // read past the separator
318  split >> sep;
319  }
320 
321  // Finished reading line 1 and creating as many inner
322  // vectors as required
323  first = false;
324  }
325 
326  int NumPrescaleSets = 0;
327  for (int iCol = 0; iCol < int(vec.size()); iCol++) {
328  if (!vec[iCol].empty()) {
329  int firstRow = vec[iCol][0];
330 
331  if (firstRow >= 0)
332  NumPrescaleSets++;
333  //else if( firstRow==-2 ) maskColumn = iCol;
334  //else if( firstRow==-3 ) maskVetoColumn = iCol;
335  }
336  }
337 
338  //std::cout << "NumPrescaleSets= " << NumPrescaleSets << std::endl;
339  if (NumPrescaleSets > 0) {
340  // Fill default prescale set
341  for (int iSet = 0; iSet < NumPrescaleSets; iSet++) {
342  prescale_vec.push_back(std::vector<double>());
343  for (unsigned int iBit = 0; iBit < m_numberPhysTriggers; ++iBit) {
344  int inputDefaultPrescale = 1;
345  prescale_vec[iSet].push_back(inputDefaultPrescale);
346  }
347  }
348 
349  // Fill non-trivial prescale set
350  for (int iBit = 1; iBit < int(vec[0].size()); iBit++) {
351  unsigned int algoBit = vec[0][iBit];
352  // algoBit must be less than the number of triggers
353  if (algoBit < m_numberPhysTriggers) {
354  for (int iSet = 0; iSet < int(vec.size()); iSet++) {
355  int useSet = -1;
356  if (!vec[iSet].empty()) {
357  useSet = vec[iSet][0];
358  }
359  useSet -= 1;
360 
361  if (useSet < 0)
362  continue;
363 
364  int prescale = vec[iSet][iBit];
365  prescale_vec[useSet][algoBit] = prescale;
366  }
367  } else {
368  LogTrace("l1t|Global") << "\nPrescale file has algo bit: " << algoBit
369  << "\nThis is larger than the number of triggers: " << m_numberPhysTriggers
370  << "\nSomething is wrong. Ignoring." << std::endl;
371  }
372  }
373  }
374 
375  } else {
376  LogTrace("l1t|Global") << "\nCould not find file: " << m_preScaleFileName
377  << "\nFilling the prescale vectors with prescale 1"
378  << "\nSetting prescale set to 0" << std::endl;
379 
380  m_PreScaleColumn = 0;
381 
382  for (int col = 0; col < 1; col++) {
383  prescale_vec.push_back(std::vector<double>());
384  for (unsigned int iBit = 0; iBit < m_numberPhysTriggers; ++iBit) {
385  int inputDefaultPrescale = 0;
386  prescale_vec[col].push_back(inputDefaultPrescale);
387  }
388  }
389  }
390 
391  inputPrescaleFile.close();
392 
393  m_initialPrescaleFactorsAlgoTrig = prescale_vec;
394  // setting of bx masks from an input file not enabled; do not see a use case at the moment
395  std::map<int, std::vector<int> > m_initialTriggerMaskAlgoTrig;
396 }

References cuy::col, relativeConstraints::empty, first, createfilelist::int, mps_splice::line, LogTrace, findQualityFiles::size, submitPVValidationJobs::split(), AlCaHLTBitMon_QueryRunRegistry::string, and relativeConstraints::value.

◆ masks()

const std::vector<std::pair<std::string, std::vector<int> > >& l1t::L1TGlobalUtil::masks ( )
inline

Definition at line 162 of file L1TGlobalUtil.h.

162 { return m_masks; }

References m_masks.

◆ numberOfPreScaleColumns()

unsigned int l1t::L1TGlobalUtil::numberOfPreScaleColumns ( ) const
inline

Definition at line 171 of file L1TGlobalUtil.h.

171 { return m_numberOfPreScaleColumns; }

References m_numberOfPreScaleColumns.

◆ OverridePrescalesAndMasks()

void l1t::L1TGlobalUtil::OverridePrescalesAndMasks ( std::string  filename,
unsigned int  psColumn = 1. 
)

Definition at line 60 of file L1TGlobalUtil.cc.

60  {
61  edm::FileInPath f1("L1Trigger/L1TGlobal/data/Luminosity/startup/" + filename);
62  m_preScaleFileName = f1.fullPath();
64 }

References DeadROC_duringRun::f1, corrVsCorr::filename, and HLT_Fake2_cff::psColumn.

◆ prescaleColumn()

unsigned int l1t::L1TGlobalUtil::prescaleColumn ( ) const
inline

Definition at line 170 of file L1TGlobalUtil.h.

170 { return m_PreScaleColumn; }

References m_PreScaleColumn.

◆ prescales()

const std::vector<std::pair<std::string, double> >& l1t::L1TGlobalUtil::prescales ( )
inline

Definition at line 159 of file L1TGlobalUtil.h.

159 { return m_prescales; }

References m_prescales.

Referenced by L1TdeStage2uGT::bookHistograms().

◆ resetDecisionVectors()

void l1t::L1TGlobalUtil::resetDecisionVectors ( )
private

clear decision vectors on a menu change

Definition at line 415 of file L1TGlobalUtil.cc.

415  {
416  // Reset all the vector contents with null information
417  m_decisionsInitial.clear();
419  m_decisionsInterm.clear();
421  m_decisionsFinal.clear();
423 
424  for (unsigned int algBit = 0; algBit < m_maxNumberPhysTriggers; algBit++) {
425  (m_decisionsInitial[algBit]).first = "NULL";
426  (m_decisionsInitial[algBit]).second = false;
427 
428  (m_decisionsInterm[algBit]).first = "NULL";
429  (m_decisionsInterm[algBit]).second = false;
430 
431  (m_decisionsFinal[algBit]).first = "NULL";
432  (m_decisionsFinal[algBit]).second = false;
433  }
434 }

References first, and edm::second().

◆ resetMaskVectors()

void l1t::L1TGlobalUtil::resetMaskVectors ( )
private

Definition at line 447 of file L1TGlobalUtil.cc.

447  {
448  // Reset all the vector contents with null information
449  m_masks.clear();
451 
452  for (unsigned int algBit = 0; algBit < m_maxNumberPhysTriggers; algBit++) {
453  (m_masks[algBit]).first = "NULL";
454  // ccla (m_masks[algBit]).second = true;
455  }
456 }

References first.

◆ resetPrescaleVectors()

void l1t::L1TGlobalUtil::resetPrescaleVectors ( )
private

Definition at line 436 of file L1TGlobalUtil.cc.

436  {
437  // Reset all the vector contents with null information
438  m_prescales.clear();
440 
441  for (unsigned int algBit = 0; algBit < m_maxNumberPhysTriggers; algBit++) {
442  (m_prescales[algBit]).first = "NULL";
443  (m_prescales[algBit]).second = 1;
444  }
445 }

References first, and edm::second().

◆ retrieveL1() [1/2]

void l1t::L1TGlobalUtil::retrieveL1 ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)

initialize the class (mainly reserve)

Definition at line 66 of file L1TGlobalUtil.cc.

66  {
67  // typically, the L1T menu and prescale table (may change only between Runs)
68  bool isRun = false;
69  retrieveL1Setup(evSetup, isRun);
70  // typically the prescale set index used and the event by event accept/reject info (changes between Events)
71  retrieveL1Event(iEvent, evSetup);
72 }

References iEvent.

Referenced by L1TdeStage2uGT::analyze(), and HcalIsoTrkAnalyzer::analyze().

◆ retrieveL1() [2/2]

void l1t::L1TGlobalUtil::retrieveL1 ( const edm::Event iEvent,
const edm::EventSetup evSetup,
edm::EDGetToken  gtAlgToken 
)

Definition at line 74 of file L1TGlobalUtil.cc.

76  {
77  // typically, the L1T menu and prescale table (may change only between Runs)
78  bool isRun = false;
79  retrieveL1Setup(evSetup, isRun);
80  // typically the prescale set index used and the event by event accept/reject info (changes between Events)
81  retrieveL1Event(iEvent, evSetup, gtAlgToken);
82 }

References iEvent.

◆ retrieveL1Event() [1/2]

void l1t::L1TGlobalUtil::retrieveL1Event ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)

Definition at line 210 of file L1TGlobalUtil.cc.

210  {
211  retrieveL1Event(iEvent, evSetup, m_l1tGlobalUtilHelper->l1tAlgBlkToken());
212 }

References iEvent.

◆ retrieveL1Event() [2/2]

void l1t::L1TGlobalUtil::retrieveL1Event ( const edm::Event iEvent,
const edm::EventSetup evSetup,
edm::EDGetToken  gtAlgToken 
)

Definition at line 214 of file L1TGlobalUtil.cc.

216  {
217  // Get the Global Trigger Output Algorithm block
218  iEvent.getByToken(gtAlgToken, m_uGtAlgBlk);
219  m_finalOR = false;
220 
221  //Make sure we have a valid AlgBlk
222  if (m_uGtAlgBlk.isValid()) {
223  // get the GlabalAlgBlk (Stupid find better way) of BX=0
224  std::vector<GlobalAlgBlk>::const_iterator algBlk = m_uGtAlgBlk->begin(0);
225  if (algBlk != m_uGtAlgBlk->end(0)) {
227  m_PreScaleColumn = static_cast<unsigned int>(algBlk->getPreScColumn());
228 
229  // Fix for MC prescale column being set to index+1 in early versions of uGT emulator
230  if (iEvent.run() == 1) {
231  if (m_prescaleFactorsAlgoTrig->size() == 1 && m_PreScaleColumn == 1)
232  m_PreScaleColumn = 0;
233  }
234 
235  // add protection against out-of-bound index for prescale column
237  LogDebug("l1t|Global") << "Prescale column extracted from GlobalAlgBlk too large: " << m_PreScaleColumn
238  << "\tMaximum value allowed: " << m_prescaleFactorsAlgoTrig->size() - 1
239  << "\tResetting prescale column to 0" << std::endl;
240  m_PreScaleColumn = 0;
241  }
242  }
243  const std::vector<double>& prescaleSet = (*m_prescaleFactorsAlgoTrig)[m_PreScaleColumn];
244 
245  // Grab the final OR from the AlgBlk,
246  m_finalOR = algBlk->getFinalOR();
247 
248  // Make a map of the trigger name and whether it passed various stages (initial,prescale,final)
249  // Note: might be able to improve performance by not full remaking map with names each time
250  for (std::map<std::string, L1TUtmAlgorithm>::const_iterator itAlgo = m_algorithmMap->begin();
251  itAlgo != m_algorithmMap->end();
252  itAlgo++) {
253  // Get the algorithm name
254  std::string algName = itAlgo->first;
255  int algBit = (itAlgo->second).getIndex(); //algoBitNumber();
256 
257  bool decisionInitial = algBlk->getAlgoDecisionInitial(algBit);
258  (m_decisionsInitial[algBit]).first = algName;
259  (m_decisionsInitial[algBit]).second = decisionInitial;
260 
261  bool decisionInterm = algBlk->getAlgoDecisionInterm(algBit);
262  (m_decisionsInterm[algBit]).first = algName;
263  (m_decisionsInterm[algBit]).second = decisionInterm;
264 
265  bool decisionFinal = algBlk->getAlgoDecisionFinal(algBit);
266  (m_decisionsFinal[algBit]).first = algName;
267  (m_decisionsFinal[algBit]).second = decisionFinal;
268 
269  (m_prescales[algBit]).first = algName;
270  if (size_t(algBit) < prescaleSet.size()) {
271  (m_prescales[algBit]).second = prescaleSet[algBit];
272  }
273  }
274  } else {
275  //cout << "Error empty AlgBlk recovered.\n";
276  }
277  } else {
278  //cout<< "Error no valid uGT Algorithm Data with Token provided " << endl;
279  }
280 }

References first, iEvent, LogDebug, edm::second(), and AlCaHLTBitMon_QueryRunRegistry::string.

◆ retrieveL1Setup() [1/2]

void l1t::L1TGlobalUtil::retrieveL1Setup ( const edm::EventSetup evSetup)

Definition at line 84 of file L1TGlobalUtil.cc.

84  {
85  bool isRun = true;
86  retrieveL1Setup(evSetup, isRun);
87 }

Referenced by L1TdeStage2uGT::bookHistograms().

◆ retrieveL1Setup() [2/2]

void l1t::L1TGlobalUtil::retrieveL1Setup ( const edm::EventSetup evSetup,
bool  isRun 
)
private

Definition at line 89 of file L1TGlobalUtil.cc.

89  {
90  // get / update the trigger menu from the EventSetup
91  // local cache & check on cacheIdentifier
92  auto menuRcd = evSetup.get<L1TUtmTriggerMenuRcd>();
93  unsigned long long l1GtMenuCacheID = menuRcd.cacheIdentifier();
94 
95  if (m_l1GtMenuCacheID != l1GtMenuCacheID) {
96  if (isRun) {
98  } else {
100  }
101 
102  //std::cout << "Attempting to fill the map " << std::endl;
104 
105  //reset vectors since we have new menu
107 
108  m_l1GtMenuCacheID = l1GtMenuCacheID;
109  }
110 
112  auto vetosRcd = evSetup.get<L1TGlobalPrescalesVetosFractRcd>();
113  unsigned long long l1GtPfAlgoCacheID = vetosRcd.cacheIdentifier();
114 
115  if (m_l1GtPfAlgoCacheID != l1GtPfAlgoCacheID) {
116  //std::cout << "Reading Prescales and Masks from dB" << std::endl;
117 
118  // clear and dimension
121  m_PreScaleColumn = 0;
124 
125  const L1TGlobalPrescalesVetosFract* es = nullptr;
126  if (isRun) {
127  es = &vetosRcd.get(m_L1TGlobalPrescalesVetosFractRunToken);
128  } else {
129  es = &vetosRcd.get(m_L1TGlobalPrescalesVetosFractEventToken);
130  }
132 
136  (*m_prescaleFactorsAlgoTrig)[0].size(); // assumes all prescale columns are the same length
137 
139 
140  m_l1GtPfAlgoCacheID = l1GtPfAlgoCacheID;
141  }
142  } else {
143  //Load the prescales from external file
144  // clear and dimension
145  if (!m_filledPrescales) {
148 
150 
151  // Set Prescale factors to initial
154  m_filledPrescales = true;
155  }
156  }
157 
158  //Protect against poor prescale column choice (I don't think there is a way this happen as currently structured)
160  LogTrace("l1t|Global") << "\nNo Prescale Set: " << m_PreScaleColumn
161  << "\nMax Prescale Set value : " << m_prescaleFactorsAlgoTrig->size()
162  << "\nSetting prescale column to 0" << std::endl;
163  m_PreScaleColumn = 0;
164  }
165  //std::cout << "Using prescale column: " << m_PreScaleColumn << std::endl;
166  const std::vector<double>& prescaleSet = (*m_prescaleFactorsAlgoTrig)[m_PreScaleColumn];
167 
168  for (std::map<std::string, L1TUtmAlgorithm>::const_iterator itAlgo = m_algorithmMap->begin();
169  itAlgo != m_algorithmMap->end();
170  itAlgo++) {
171  // Get the algorithm name
172  std::string algName = itAlgo->first;
173  int algBit = (itAlgo->second).getIndex(); //algoBitNumber();
174 
175  (m_prescales[algBit]).first = algName;
176  if (size_t(algBit) < prescaleSet.size()) {
177  (m_prescales[algBit]).second = prescaleSet[algBit];
178  }
179  LogDebug("l1t|Global") << "Number of bunch crossings stored: " << (*m_triggerMaskAlgoTrig).size() << endl;
180 
181  const std::map<int, std::vector<int> >* triggerAlgoMaskAlgoTrig = m_triggerMaskAlgoTrig;
182  std::map<int, std::vector<int> >::const_iterator it = triggerAlgoMaskAlgoTrig->begin();
183 
184  std::vector<int> maskedBxs;
185  (m_masks[algBit]).first = algName;
186  (m_masks[algBit]).second = maskedBxs;
187  while (it != triggerAlgoMaskAlgoTrig->end()) {
188  std::vector<int> masks = it->second;
189  //std::cout<< "BX: " << it->first<<" VecSize: "<< masks.size();
190  //std::cout << "\tMasked algos: ";
191  for (unsigned int imask = 0; imask < masks.size(); imask++) {
192  if (masks.at(imask) == algBit)
193  maskedBxs.push_back(it->first);
194  // std::cout << "\t" << masks.at(imask);
195  }
196  //std::cout << "\n";
197  it++;
198  }
199 
200  if (!maskedBxs.empty()) {
201  LogDebug("l1t|Global") << "i Algo: " << algBit << "\t" << algName << " masked\n";
202  for (unsigned int ibx = 0; ibx < maskedBxs.size(); ibx++) {
203  // std::cout << "\t" << maskedBxs.at(ibx);
204  (m_masks[algBit]).second = maskedBxs;
205  }
206  }
207  }
208 }

References edm::eventsetup::EventSetupRecord::cacheIdentifier(), first, edm::EventSetup::get(), LogDebug, LogTrace, l1t::PrescalesVetosFractHelper::readFromEventSetup(), edm::second(), and AlCaHLTBitMon_QueryRunRegistry::string.

◆ setVerbosity()

void l1t::L1TGlobalUtil::setVerbosity ( const int  verbosity)
inline

Definition at line 116 of file L1TGlobalUtil.h.

116 { m_verbosity = verbosity; }

References m_verbosity, and ctppsCommonDQMSource_cfi::verbosity.

◆ valid()

bool l1t::L1TGlobalUtil::valid ( ) const

check that the L1TGlobalUtil has been properly initialised

Definition at line 58 of file L1TGlobalUtil.cc.

58 { return m_l1GtMenuCacheID != 0ULL and m_l1GtMenu != nullptr; }

Member Data Documentation

◆ m_algorithmMap

const std::map<std::string, L1TUtmAlgorithm>* l1t::L1TGlobalUtil::m_algorithmMap
private

Definition at line 199 of file L1TGlobalUtil.h.

◆ m_decisionsFinal

std::vector<std::pair<std::string, bool> > l1t::L1TGlobalUtil::m_decisionsFinal
private

Definition at line 224 of file L1TGlobalUtil.h.

Referenced by decisionsFinal().

◆ m_decisionsInitial

std::vector<std::pair<std::string, bool> > l1t::L1TGlobalUtil::m_decisionsInitial
private

Definition at line 222 of file L1TGlobalUtil.h.

Referenced by decisionsInitial().

◆ m_decisionsInterm

std::vector<std::pair<std::string, bool> > l1t::L1TGlobalUtil::m_decisionsInterm
private

Definition at line 223 of file L1TGlobalUtil.h.

Referenced by decisionsInterm().

◆ m_filledPrescales

bool l1t::L1TGlobalUtil::m_filledPrescales
private

Definition at line 195 of file L1TGlobalUtil.h.

Referenced by L1TGlobalUtil().

◆ m_finalOR

bool l1t::L1TGlobalUtil::m_finalOR
private

Definition at line 219 of file L1TGlobalUtil.h.

Referenced by getFinalOR().

◆ m_initialPrescaleFactorsAlgoTrig

std::vector<std::vector<double> > l1t::L1TGlobalUtil::m_initialPrescaleFactorsAlgoTrig
private

Definition at line 210 of file L1TGlobalUtil.h.

◆ m_initialTriggerMaskAlgoTrig

const std::map<int, std::vector<int> > l1t::L1TGlobalUtil::m_initialTriggerMaskAlgoTrig
private

Definition at line 212 of file L1TGlobalUtil.h.

◆ m_l1GtMenu

const L1TUtmTriggerMenu* l1t::L1TGlobalUtil::m_l1GtMenu
private

Definition at line 186 of file L1TGlobalUtil.h.

Referenced by gtTriggerMenuComment(), gtTriggerMenuName(), and gtTriggerMenuVersion().

◆ m_l1GtMenuCacheID

unsigned long long l1t::L1TGlobalUtil::m_l1GtMenuCacheID
private

Definition at line 187 of file L1TGlobalUtil.h.

Referenced by L1TGlobalUtil().

◆ m_l1GtPfAlgoCacheID

unsigned long long l1t::L1TGlobalUtil::m_l1GtPfAlgoCacheID
private

Definition at line 192 of file L1TGlobalUtil.h.

Referenced by L1TGlobalUtil().

◆ m_l1GtPrescalesVetoes

const l1t::PrescalesVetosFractHelper* l1t::L1TGlobalUtil::m_l1GtPrescalesVetoes
private

Definition at line 191 of file L1TGlobalUtil.h.

◆ m_L1TGlobalPrescalesVetosFractEventToken

edm::ESGetToken<L1TGlobalPrescalesVetosFract, L1TGlobalPrescalesVetosFractRcd> l1t::L1TGlobalUtil::m_L1TGlobalPrescalesVetosFractEventToken
private

Definition at line 239 of file L1TGlobalUtil.h.

◆ m_L1TGlobalPrescalesVetosFractRunToken

edm::ESGetToken<L1TGlobalPrescalesVetosFract, L1TGlobalPrescalesVetosFractRcd> l1t::L1TGlobalUtil::m_L1TGlobalPrescalesVetosFractRunToken
private

Definition at line 235 of file L1TGlobalUtil.h.

◆ m_l1tGlobalUtilHelper

std::unique_ptr<L1TGlobalUtilHelper> l1t::L1TGlobalUtil::m_l1tGlobalUtilHelper
private

Definition at line 231 of file L1TGlobalUtil.h.

Referenced by L1TGlobalUtil().

◆ m_L1TUtmTriggerMenuEventToken

edm::ESGetToken<L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd> l1t::L1TGlobalUtil::m_L1TUtmTriggerMenuEventToken
private

Definition at line 237 of file L1TGlobalUtil.h.

◆ m_L1TUtmTriggerMenuRunToken

edm::ESGetToken<L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd> l1t::L1TGlobalUtil::m_L1TUtmTriggerMenuRunToken
private

Definition at line 233 of file L1TGlobalUtil.h.

◆ m_masks

std::vector<std::pair<std::string, std::vector<int> > > l1t::L1TGlobalUtil::m_masks
private

Definition at line 226 of file L1TGlobalUtil.h.

Referenced by masks().

◆ m_maxNumberPhysTriggers

const unsigned int l1t::L1TGlobalUtil::m_maxNumberPhysTriggers = 512
private

Definition at line 203 of file L1TGlobalUtil.h.

◆ m_numberOfPreScaleColumns

unsigned int l1t::L1TGlobalUtil::m_numberOfPreScaleColumns
private

Definition at line 208 of file L1TGlobalUtil.h.

Referenced by numberOfPreScaleColumns().

◆ m_numberPhysTriggers

unsigned int l1t::L1TGlobalUtil::m_numberPhysTriggers
private

Definition at line 202 of file L1TGlobalUtil.h.

Referenced by L1TGlobalUtil().

◆ m_PreScaleColumn

unsigned int l1t::L1TGlobalUtil::m_PreScaleColumn
private

Definition at line 207 of file L1TGlobalUtil.h.

Referenced by L1TGlobalUtil(), and prescaleColumn().

◆ m_prescaleFactorsAlgoTrig

const std::vector<std::vector<double> >* l1t::L1TGlobalUtil::m_prescaleFactorsAlgoTrig
private

Definition at line 211 of file L1TGlobalUtil.h.

Referenced by L1TGlobalUtil().

◆ m_preScaleFileName

std::string l1t::L1TGlobalUtil::m_preScaleFileName
private

Definition at line 206 of file L1TGlobalUtil.h.

Referenced by L1TGlobalUtil().

◆ m_prescales

std::vector<std::pair<std::string, double> > l1t::L1TGlobalUtil::m_prescales
private

Definition at line 225 of file L1TGlobalUtil.h.

Referenced by prescales().

◆ m_readPrescalesFromFile

bool l1t::L1TGlobalUtil::m_readPrescalesFromFile
private

Definition at line 190 of file L1TGlobalUtil.h.

Referenced by L1TGlobalUtil().

◆ m_triggerMaskAlgoTrig

const std::map<int, std::vector<int> >* l1t::L1TGlobalUtil::m_triggerMaskAlgoTrig
private

Definition at line 213 of file L1TGlobalUtil.h.

Referenced by L1TGlobalUtil().

◆ m_uGtAlgBlk

edm::Handle<BXVector<GlobalAlgBlk> > l1t::L1TGlobalUtil::m_uGtAlgBlk
private

Definition at line 216 of file L1TGlobalUtil.h.

◆ m_verbosity

int l1t::L1TGlobalUtil::m_verbosity
private

verbosity level

Definition at line 229 of file L1TGlobalUtil.h.

Referenced by setVerbosity().

ctppsCommonDQMSource_cfi.verbosity
verbosity
Definition: ctppsCommonDQMSource_cfi.py:14
l1t::L1TGlobalUtil::m_numberOfPreScaleColumns
unsigned int m_numberOfPreScaleColumns
Definition: L1TGlobalUtil.h:208
L1TUtmTriggerMenu::getName
const std::string & getName() const
Definition: L1TUtmTriggerMenu.h:66
l1t::L1TGlobalUtil::m_PreScaleColumn
unsigned int m_PreScaleColumn
Definition: L1TGlobalUtil.h:207
L1TUtmTriggerMenuRcd
Definition: L1TUtmTriggerMenuRcd.h:11
cuy.col
col
Definition: cuy.py:1009
l1t::L1TGlobalUtil::m_decisionsInterm
std::vector< std::pair< std::string, bool > > m_decisionsInterm
Definition: L1TGlobalUtil.h:223
l1t::UseEventSetupIn::Run
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:222
l1t::L1TGlobalUtil::m_l1GtMenu
const L1TUtmTriggerMenu * m_l1GtMenu
Definition: L1TGlobalUtil.h:186
L1TUtmTriggerMenu::getComment
const std::string & getComment() const
Definition: L1TUtmTriggerMenu.h:78
l1t::L1TGlobalUtil::m_finalOR
bool m_finalOR
Definition: L1TGlobalUtil.h:219
l1t::UseEventSetupIn::Event
l1t::L1TGlobalUtil::retrieveL1Setup
void retrieveL1Setup(const edm::EventSetup &evSetup)
Definition: L1TGlobalUtil.cc:84
l1t::L1TGlobalUtil::eventSetupConsumes
void eventSetupConsumes(edm::ConsumesCollector &iC, UseEventSetupIn useEventSetupIn)
Definition: L1TGlobalUtil.cc:398
l1t::L1TGlobalUtil::m_algorithmMap
const std::map< std::string, L1TUtmAlgorithm > * m_algorithmMap
Definition: L1TGlobalUtil.h:199
edm::ConsumesCollector::esConsumes
auto esConsumes()
Definition: ConsumesCollector.h:97
l1t::L1TGlobalUtil::m_l1GtMenuCacheID
unsigned long long m_l1GtMenuCacheID
Definition: L1TGlobalUtil.h:187
l1t::L1TGlobalUtil::m_masks
std::vector< std::pair< std::string, std::vector< int > > > m_masks
Definition: L1TGlobalUtil.h:226
L1TUtmTriggerMenu
Definition: L1TUtmTriggerMenu.h:25
l1t::L1TGlobalUtil::loadPrescalesAndMasks
void loadPrescalesAndMasks()
Definition: L1TGlobalUtil.cc:282
l1t::PrescalesVetosFractHelper::triggerAlgoBxMask
const std::map< int, std::vector< int > > & triggerAlgoBxMask() const
Definition: PrescalesVetosFractHelper.h:62
l1t::L1TGlobalUtil::m_prescaleFactorsAlgoTrig
const std::vector< std::vector< double > > * m_prescaleFactorsAlgoTrig
Definition: L1TGlobalUtil.h:211
edm::FileInPath
Definition: FileInPath.h:61
l1t::L1TGlobalUtil::m_L1TUtmTriggerMenuEventToken
edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd > m_L1TUtmTriggerMenuEventToken
Definition: L1TGlobalUtil.h:237
l1t::L1TGlobalUtil::m_triggerMaskAlgoTrig
const std::map< int, std::vector< int > > * m_triggerMaskAlgoTrig
Definition: L1TGlobalUtil.h:213
l1t::L1TGlobalUtilHelper::fillDescription
static void fillDescription(edm::ParameterSetDescription &desc)
Definition: L1TGlobalUtilHelper.cc:22
edm::EventSetup::get
T get() const
Definition: EventSetup.h:87
l1t::L1TGlobalUtil::m_L1TUtmTriggerMenuRunToken
edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd > m_L1TUtmTriggerMenuRunToken
Definition: L1TGlobalUtil.h:233
l1t::L1TGlobalUtil::m_maxNumberPhysTriggers
const unsigned int m_maxNumberPhysTriggers
Definition: L1TGlobalUtil.h:203
submitPVValidationJobs.split
def split(sequence, size)
Definition: submitPVValidationJobs.py:352
l1t::L1TGlobalUtil::m_initialPrescaleFactorsAlgoTrig
std::vector< std::vector< double > > m_initialPrescaleFactorsAlgoTrig
Definition: L1TGlobalUtil.h:210
l1t::L1TGlobalUtil::m_l1tGlobalUtilHelper
std::unique_ptr< L1TGlobalUtilHelper > m_l1tGlobalUtilHelper
Definition: L1TGlobalUtil.h:231
SiStripSourceConfigTier0_cff.l1tExtBlkInputTag
l1tExtBlkInputTag
Definition: SiStripSourceConfigTier0_cff.py:73
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
l1t::L1TGlobalUtil::m_readPrescalesFromFile
bool m_readPrescalesFromFile
Definition: L1TGlobalUtil.h:190
l1t::L1TGlobalUtil::L1TGlobalUtil
L1TGlobalUtil()
Definition: L1TGlobalUtil.cc:22
l1t::L1TGlobalUtil::m_l1GtPfAlgoCacheID
unsigned long long m_l1GtPfAlgoCacheID
Definition: L1TGlobalUtil.h:192
first
auto first
Definition: CAHitNtupletGeneratorKernelsImpl.h:125
l1t::L1TGlobalUtil::m_decisionsFinal
std::vector< std::pair< std::string, bool > > m_decisionsFinal
Definition: L1TGlobalUtil.h:224
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:233
HLT_Fake2_cff.psColumn
psColumn
Definition: HLT_Fake2_cff.py:189
l1t::L1TGlobalUtil::m_l1GtPrescalesVetoes
const l1t::PrescalesVetosFractHelper * m_l1GtPrescalesVetoes
Definition: L1TGlobalUtil.h:191
L1TGlobalPrescalesVetosFract
Definition: L1TGlobalPrescalesVetosFract.h:13
l1t::L1TGlobalUtil::m_preScaleFileName
std::string m_preScaleFileName
Definition: L1TGlobalUtil.h:206
l1t::L1TGlobalUtil::getAlgBitFromName
const bool getAlgBitFromName(const std::string &AlgName, int &bit) const
Definition: L1TGlobalUtil.cc:458
createfilelist.int
int
Definition: createfilelist.py:10
iEvent
int iEvent
Definition: GenABIO.cc:224
value
Definition: value.py:1
l1t::L1TGlobalUtil::resetPrescaleVectors
void resetPrescaleVectors()
Definition: L1TGlobalUtil.cc:436
L1TGlobalPrescalesVetosFractRcd
Definition: L1TGlobalPrescalesVetosFractRcd.h:11
l1t::L1TGlobalUtil::retrieveL1Event
void retrieveL1Event(const edm::Event &iEvent, const edm::EventSetup &evSetup)
Definition: L1TGlobalUtil.cc:210
l1t::L1TGlobalUtil::m_prescales
std::vector< std::pair< std::string, double > > m_prescales
Definition: L1TGlobalUtil.h:225
prescale
Definition: PrescaleEventFilter.cc:32
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
l1t::L1TGlobalUtil::m_initialTriggerMaskAlgoTrig
const std::map< int, std::vector< int > > m_initialTriggerMaskAlgoTrig
Definition: L1TGlobalUtil.h:212
l1t::PrescalesVetosFractHelper::prescaleTable
const std::vector< std::vector< double > > & prescaleTable() const
Definition: PrescalesVetosFractHelper.h:51
l1t::UseEventSetupIn::RunAndEvent
l1t::L1TGlobalUtil::m_verbosity
int m_verbosity
verbosity level
Definition: L1TGlobalUtil.h:229
l1t::L1TGlobalUtil::m_uGtAlgBlk
edm::Handle< BXVector< GlobalAlgBlk > > m_uGtAlgBlk
Definition: L1TGlobalUtil.h:216
callgraph.module
module
Definition: callgraph.py:61
l1t::L1TGlobalUtil::resetDecisionVectors
void resetDecisionVectors()
clear decision vectors on a menu change
Definition: L1TGlobalUtil.cc:415
l1t::L1TGlobalUtil::m_decisionsInitial
std::vector< std::pair< std::string, bool > > m_decisionsInitial
Definition: L1TGlobalUtil.h:222
L1TUtmTriggerMenu::getVersion
const std::string & getVersion() const
Definition: L1TUtmTriggerMenu.h:72
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
l1t::L1TGlobalUtil::m_filledPrescales
bool m_filledPrescales
Definition: L1TGlobalUtil.h:195
edm::Transition::BeginRun
relativeConstraints.value
value
Definition: relativeConstraints.py:53
relativeConstraints.empty
bool empty
Definition: relativeConstraints.py:46
l1t::L1TGlobalUtil::m_L1TGlobalPrescalesVetosFractEventToken
edm::ESGetToken< L1TGlobalPrescalesVetosFract, L1TGlobalPrescalesVetosFractRcd > m_L1TGlobalPrescalesVetosFractEventToken
Definition: L1TGlobalUtil.h:239
l1t::PrescalesVetosFractHelper::readFromEventSetup
static const PrescalesVetosFractHelper * readFromEventSetup(const L1TGlobalPrescalesVetosFract *es)
Definition: PrescalesVetosFractHelper.cc:5
edm::eventsetup::EventSetupRecord::cacheIdentifier
unsigned long long cacheIdentifier() const
Definition: EventSetupRecord.h:187
l1t::L1TGlobalUtil::resetMaskVectors
void resetMaskVectors()
Definition: L1TGlobalUtil.cc:447
LogTrace
#define LogTrace(id)
Definition: MessageLogger.h:234
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
DeadROC_duringRun.f1
f1
Definition: DeadROC_duringRun.py:219
mps_splice.line
line
Definition: mps_splice.py:76
l1t::L1TGlobalUtil::m_numberPhysTriggers
unsigned int m_numberPhysTriggers
Definition: L1TGlobalUtil.h:202
L1TUtmTriggerMenu::getAlgorithmMap
const std::map< std::string, L1TUtmAlgorithm > & getAlgorithmMap() const
Definition: L1TUtmTriggerMenu.h:48
l1t::L1TGlobalUtil::masks
const std::vector< std::pair< std::string, std::vector< int > > > & masks()
Definition: L1TGlobalUtil.h:162
l1t::L1TGlobalUtil::m_L1TGlobalPrescalesVetosFractRunToken
edm::ESGetToken< L1TGlobalPrescalesVetosFract, L1TGlobalPrescalesVetosFractRcd > m_L1TGlobalPrescalesVetosFractRunToken
Definition: L1TGlobalUtil.h:235
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443
SiStripSourceConfigTier0_cff.l1tAlgBlkInputTag
l1tAlgBlkInputTag
Definition: SiStripSourceConfigTier0_cff.py:72