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, int &prescale) const
 
const bool getPrescaleByName (const std::string &algName, int &prescale) const
 
const std::string & gtTriggerMenuComment () const
 
const std::string & gtTriggerMenuName () const
 
const std::string & gtTriggerMenuVersion () const
 
 L1TGlobalUtil (edm::ParameterSet const &pset, edm::ConsumesCollector &&iC)
 
 L1TGlobalUtil (edm::ParameterSet const &pset, edm::ConsumesCollector &iC)
 
template<typename T >
 L1TGlobalUtil (edm::ParameterSet const &pset, edm::ConsumesCollector &&iC, T &module)
 
template<typename T >
 L1TGlobalUtil (edm::ParameterSet const &pset, edm::ConsumesCollector &iC, T &module)
 
template<typename T >
 L1TGlobalUtil (edm::ParameterSet const &pset, edm::ConsumesCollector &&iC, T &module, edm::InputTag const &l1tAlgBlkInputTag, edm::InputTag const &l1tExtBlkInputTag)
 
template<typename T >
 L1TGlobalUtil (edm::ParameterSet const &pset, edm::ConsumesCollector &iC, T &module, edm::InputTag const &l1tAlgBlkInputTag, edm::InputTag const &l1tExtBlkInputTag)
 
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, int > > & 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 setUnprescaledUnmasked (bool unprescale, bool unmask)
 
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

 L1TGlobalUtil ()
 
void loadPrescalesAndMasks ()
 
void resetDecisionVectors ()
 clear decision vectors on a menu change More...
 
void resetMaskVectors ()
 
void resetPrescaleVectors ()
 

Private Attributes

const std::map< std::string, L1TUtmAlgorithm > * m_algorithmMap
 
bool m_algorithmTriggersUnmasked
 
bool m_algorithmTriggersUnprescaled
 
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< int > > 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::PrescalesVetosHelperm_l1GtPrescalesVetoes
 
std::unique_ptr< L1TGlobalUtilHelperm_l1tGlobalUtilHelper
 
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< int > > * m_prescaleFactorsAlgoTrig
 
std::string m_preScaleFileName
 
std::vector< std::pair< std::string, int > > 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 31 of file L1TGlobalUtil.h.

Constructor & Destructor Documentation

l1t::L1TGlobalUtil::L1TGlobalUtil ( edm::ParameterSet const &  pset,
edm::ConsumesCollector &&  iC 
)

Definition at line 50 of file L1TGlobalUtil.cc.

l1t::L1TGlobalUtil::L1TGlobalUtil ( edm::ParameterSet const &  pset,
edm::ConsumesCollector iC 
)

Definition at line 55 of file L1TGlobalUtil.cc.

References m_l1tGlobalUtilHelper, and m_readPrescalesFromFile.

56  :
57  L1TGlobalUtil() {
59  m_readPrescalesFromFile=m_l1tGlobalUtilHelper->readPrescalesFromFile();
60 }
std::unique_ptr< L1TGlobalUtilHelper > m_l1tGlobalUtilHelper
template<typename T >
l1t::L1TGlobalUtil::L1TGlobalUtil ( edm::ParameterSet const &  pset,
edm::ConsumesCollector &&  iC,
T module 
)

Definition at line 231 of file L1TGlobalUtil.h.

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

Definition at line 237 of file L1TGlobalUtil.h.

References m_l1tGlobalUtilHelper, and m_readPrescalesFromFile.

239  :
240  L1TGlobalUtil() {
242  iC,
243  module));
244  m_readPrescalesFromFile=m_l1tGlobalUtilHelper->readPrescalesFromFile();
245  }
std::unique_ptr< L1TGlobalUtilHelper > m_l1tGlobalUtilHelper
Definition: vlib.h:208
template<typename T >
l1t::L1TGlobalUtil::L1TGlobalUtil ( edm::ParameterSet const &  pset,
edm::ConsumesCollector &&  iC,
T module,
edm::InputTag const &  l1tAlgBlkInputTag,
edm::InputTag const &  l1tExtBlkInputTag 
)
template<typename T >
l1t::L1TGlobalUtil::L1TGlobalUtil ( edm::ParameterSet const &  pset,
edm::ConsumesCollector iC,
T module,
edm::InputTag const &  l1tAlgBlkInputTag,
edm::InputTag const &  l1tExtBlkInputTag 
)

Definition at line 256 of file L1TGlobalUtil.h.

References m_l1tGlobalUtilHelper, and m_readPrescalesFromFile.

260  :
261  L1TGlobalUtil() {
263  iC,
264  module,
267  m_readPrescalesFromFile=m_l1tGlobalUtilHelper->readPrescalesFromFile();
268  }
std::unique_ptr< L1TGlobalUtilHelper > m_l1tGlobalUtilHelper
Definition: vlib.h:208
l1t::L1TGlobalUtil::~L1TGlobalUtil ( )
virtual

destructor

Definition at line 63 of file L1TGlobalUtil.cc.

63  {
64  // empty
65 }
l1t::L1TGlobalUtil::L1TGlobalUtil ( )
private

Definition at line 30 of file L1TGlobalUtil.cc.

References connectstrParser::f1, edm::FileInPath::fullPath(), m_algorithmTriggersUnmasked, m_algorithmTriggersUnprescaled, m_filledPrescales, m_l1GtMenuCacheID, m_l1GtPfAlgoCacheID, m_numberPhysTriggers, m_PreScaleColumn, m_prescaleFactorsAlgoTrig, m_preScaleFileName, m_readPrescalesFromFile, and m_triggerMaskAlgoTrig.

Referenced by numberOfPreScaleColumns().

30  :
31  m_l1GtMenu(nullptr)
32 {
33  // initialize cached IDs
34  m_l1GtMenuCacheID = 0ULL;
35  m_l1GtPfAlgoCacheID = 0ULL;
36  m_filledPrescales = false;
39 
40  edm::FileInPath f1("L1Trigger/L1TGlobal/data/Luminosity/startup/prescale_L1TGlobal.csv");
41  m_preScaleFileName = f1.fullPath();
42  m_numberPhysTriggers = 512; //need to get this out of the EventSetup
43  m_PreScaleColumn = 0;
45 
46  m_prescaleFactorsAlgoTrig = nullptr;
47  m_triggerMaskAlgoTrig = nullptr;
48 }
const L1TUtmTriggerMenu * m_l1GtMenu
std::string m_preScaleFileName
bool m_algorithmTriggersUnmasked
unsigned long long m_l1GtPfAlgoCacheID
unsigned int m_PreScaleColumn
const std::map< int, std::vector< int > > * m_triggerMaskAlgoTrig
const std::vector< std::vector< int > > * m_prescaleFactorsAlgoTrig
unsigned long long m_l1GtMenuCacheID
bool m_algorithmTriggersUnprescaled
unsigned int m_numberPhysTriggers

Member Function Documentation

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

Definition at line 148 of file L1TGlobalUtil.h.

References m_decisionsFinal.

148 { return m_decisionsFinal; }
std::vector< std::pair< std::string, bool > > m_decisionsFinal
const std::vector<std::pair<std::string, bool> >& l1t::L1TGlobalUtil::decisionsInitial ( )
inline

Definition at line 146 of file L1TGlobalUtil.h.

References m_decisionsInitial.

146 { return m_decisionsInitial; }
std::vector< std::pair< std::string, bool > > m_decisionsInitial
const std::vector<std::pair<std::string, bool> >& l1t::L1TGlobalUtil::decisionsInterm ( )
inline

Definition at line 147 of file L1TGlobalUtil.h.

References m_decisionsInterm.

147 { return m_decisionsInterm; }
std::vector< std::pair< std::string, bool > > m_decisionsInterm
static void l1t::L1TGlobalUtil::fillDescription ( edm::ParameterSetDescription desc)
inlinestatic
const bool l1t::L1TGlobalUtil::getAlgBitFromName ( const std::string &  AlgName,
int &  bit 
) const

Definition at line 473 of file L1TGlobalUtil.cc.

References m_algorithmMap.

Referenced by getFinalDecisionByName(), getFinalOR(), getInitialDecisionByName(), getIntermDecisionByName(), getMaskByName(), and getPrescaleByName().

473  {
474 
475  std::map<std::string, L1TUtmAlgorithm>::const_iterator itAlgo = m_algorithmMap->find(algName);
476  if(itAlgo != m_algorithmMap->end()) {
477  bit = (itAlgo->second).getIndex(); //algoBitNumber();
478  return true;
479  }
480 
481  return false; //did not find anything by that name
482 }
const std::map< std::string, L1TUtmAlgorithm > * m_algorithmMap
const bool l1t::L1TGlobalUtil::getAlgNameFromBit ( int &  bit,
std::string &  AlgName 
) const

Definition at line 484 of file L1TGlobalUtil.cc.

References plotBeamSpotDB::first, and m_decisionsInitial.

Referenced by getFinalOR().

484  {
485 
486  // since we are just looking up the name, doesn't matter which vector we get it from
487  if((m_decisionsInitial[bit]).first != "NULL") {
488  algName = (m_decisionsInitial[bit]).first;
489  return true;
490  }
491  return false; //No name associated with this bit
492 
493 }
std::vector< std::pair< std::string, bool > > m_decisionsInitial
const bool l1t::L1TGlobalUtil::getFinalDecisionByBit ( int &  bit,
bool &  decision 
) const

Definition at line 520 of file L1TGlobalUtil.cc.

References plotBeamSpotDB::first, m_decisionsFinal, and edm::second().

Referenced by getFinalOR().

520  {
521 
522  // Need some check that this is a valid bit
523  if((m_decisionsFinal[bit]).first != "NULL") {
524  decision = (m_decisionsFinal[bit]).second;
525  return true;
526  }
527 
528  return false; //couldn't get the information requested.
529 }
U second(std::pair< T, U > const &p)
std::vector< std::pair< std::string, bool > > m_decisionsFinal
const bool l1t::L1TGlobalUtil::getFinalDecisionByName ( const std::string &  algName,
bool &  decision 
) const

Definition at line 573 of file L1TGlobalUtil.cc.

References getAlgBitFromName(), m_decisionsFinal, and edm::second().

Referenced by getFinalOR().

573  {
574 
575  int bit = -1;
576  if(getAlgBitFromName(algName,bit)) {
577  decision = (m_decisionsFinal[bit]).second;
578  return true;
579  }
580 
581  return false; //trigger name was not the menu.
582 }
const bool getAlgBitFromName(const std::string &AlgName, int &bit) const
U second(std::pair< T, U > const &p)
std::vector< std::pair< std::string, bool > > m_decisionsFinal
bool l1t::L1TGlobalUtil::getFinalOR ( ) const
inline
const bool l1t::L1TGlobalUtil::getInitialDecisionByBit ( int &  bit,
bool &  decision 
) const

Definition at line 495 of file L1TGlobalUtil.cc.

References plotBeamSpotDB::first, m_decisionsInitial, and edm::second().

Referenced by getFinalOR().

495  {
496 
497  /*
498  for(std::vector<GlobalAlgBlk>::const_iterator algBlk = m_uGtAlgBlk->begin(0); algBlk != m_uGtAlgBlk->end(0); ++algBlk) {
499  decision = algBlk->getAlgoDecisionFinal(bit);
500  }
501  */
502  // Need some check that this is a valid bit
503  if((m_decisionsInitial[bit]).first != "NULL") {
504  decision = (m_decisionsInitial[bit]).second;
505  return true;
506  }
507 
508  return false; //couldn't get the information requested.
509 }
std::vector< std::pair< std::string, bool > > m_decisionsInitial
U second(std::pair< T, U > const &p)
const bool l1t::L1TGlobalUtil::getInitialDecisionByName ( const std::string &  algName,
bool &  decision 
) const

Definition at line 551 of file L1TGlobalUtil.cc.

References getAlgBitFromName(), m_decisionsInitial, and edm::second().

Referenced by getFinalOR().

551  {
552 
553  int bit = -1;
554  if(getAlgBitFromName(algName,bit)) {
555  decision = (m_decisionsInitial[bit]).second;
556  return true;
557  }
558 
559  return false; //trigger name was not the menu.
560 }
const bool getAlgBitFromName(const std::string &AlgName, int &bit) const
std::vector< std::pair< std::string, bool > > m_decisionsInitial
U second(std::pair< T, U > const &p)
const bool l1t::L1TGlobalUtil::getIntermDecisionByBit ( int &  bit,
bool &  decision 
) const

Definition at line 510 of file L1TGlobalUtil.cc.

References plotBeamSpotDB::first, m_decisionsInterm, and edm::second().

Referenced by getFinalOR().

510  {
511 
512  // Need some check that this is a valid bit
513  if((m_decisionsInterm[bit]).first != "NULL") {
514  decision = (m_decisionsInterm[bit]).second;
515  return true;
516  }
517 
518  return false; //couldn't get the information requested.
519 }
U second(std::pair< T, U > const &p)
std::vector< std::pair< std::string, bool > > m_decisionsInterm
const bool l1t::L1TGlobalUtil::getIntermDecisionByName ( const std::string &  algName,
bool &  decision 
) const

Definition at line 562 of file L1TGlobalUtil.cc.

References getAlgBitFromName(), m_decisionsInterm, and edm::second().

Referenced by getFinalOR().

562  {
563 
564  int bit = -1;
565  if(getAlgBitFromName(algName,bit)) {
566  decision = (m_decisionsInterm[bit]).second;
567  return true;
568  }
569 
570  return false; //trigger name was not the menu.
571 }
const bool getAlgBitFromName(const std::string &AlgName, int &bit) const
U second(std::pair< T, U > const &p)
std::vector< std::pair< std::string, bool > > m_decisionsInterm
const bool l1t::L1TGlobalUtil::getMaskByBit ( int &  bit,
std::vector< int > &  mask 
) const

Definition at line 540 of file L1TGlobalUtil.cc.

References plotBeamSpotDB::first, m_masks, and edm::second().

Referenced by getFinalOR().

540  {
541 
542  // Need some check that this is a valid bit
543  if((m_masks[bit]).first != "NULL") {
544  mask = (m_masks[bit]).second;
545  return true;
546  }
547 
548  return false; //couldn't get the information requested.
549 }
U second(std::pair< T, U > const &p)
std::vector< std::pair< std::string, std::vector< int > > > m_masks
const bool l1t::L1TGlobalUtil::getMaskByName ( const std::string &  algName,
std::vector< int > &  mask 
) const

Definition at line 593 of file L1TGlobalUtil.cc.

References getAlgBitFromName(), m_masks, and edm::second().

Referenced by getFinalOR().

593  {
594 
595  int bit = -1;
596  if(getAlgBitFromName(algName,bit)) {
597  mask = (m_masks[bit]).second;
598  return true;
599  }
600 
601  return false; //trigger name was not the menu.
602 }
const bool getAlgBitFromName(const std::string &AlgName, int &bit) const
U second(std::pair< T, U > const &p)
std::vector< std::pair< std::string, std::vector< int > > > m_masks
const bool l1t::L1TGlobalUtil::getPrescaleByBit ( int &  bit,
int &  prescale 
) const

Definition at line 530 of file L1TGlobalUtil.cc.

References plotBeamSpotDB::first, m_prescales, and edm::second().

Referenced by getFinalOR().

530  {
531 
532  // Need some check that this is a valid bit
533  if((m_prescales[bit]).first != "NULL") {
534  prescale = (m_prescales[bit]).second;
535  return true;
536  }
537 
538  return false; //couldn't get the information requested.
539 }
U second(std::pair< T, U > const &p)
std::vector< std::pair< std::string, int > > m_prescales
const bool l1t::L1TGlobalUtil::getPrescaleByName ( const std::string &  algName,
int &  prescale 
) const

Definition at line 583 of file L1TGlobalUtil.cc.

References getAlgBitFromName(), m_prescales, and edm::second().

Referenced by getFinalOR(), HLTPrescaleProvider::prescaleValues(), and HLTPrescaleProvider::prescaleValuesInDetail().

583  {
584 
585  int bit = -1;
586  if(getAlgBitFromName(algName,bit)) {
587  prescale = (m_prescales[bit]).second;
588  return true;
589  }
590 
591  return false; //trigger name was not the menu.
592 }
const bool getAlgBitFromName(const std::string &AlgName, int &bit) const
U second(std::pair< T, U > const &p)
std::vector< std::pair< std::string, int > > m_prescales
const std::string& l1t::L1TGlobalUtil::gtTriggerMenuComment ( ) const
inline

Definition at line 159 of file L1TGlobalUtil.h.

References L1TUtmTriggerMenu::getComment(), and m_l1GtMenu.

159 {return m_l1GtMenu->getComment();}
const L1TUtmTriggerMenu * m_l1GtMenu
const std::string & getComment() const
const std::string& l1t::L1TGlobalUtil::gtTriggerMenuName ( ) const
inline

Definition at line 157 of file L1TGlobalUtil.h.

References L1TUtmTriggerMenu::getName(), and m_l1GtMenu.

157 {return m_l1GtMenu->getName();}
const L1TUtmTriggerMenu * m_l1GtMenu
const std::string & getName() const
const std::string& l1t::L1TGlobalUtil::gtTriggerMenuVersion ( ) const
inline

Definition at line 158 of file L1TGlobalUtil.h.

References L1TUtmTriggerMenu::getVersion(), and m_l1GtMenu.

158 {return m_l1GtMenu->getVersion();}
const L1TUtmTriggerMenu * m_l1GtMenu
const std::string & getVersion() const
void l1t::L1TGlobalUtil::loadPrescalesAndMasks ( )
private

Definition at line 293 of file L1TGlobalUtil.cc.

References cuy::col, relativeConstraints::empty, plotBeamSpotDB::first, createfilelist::int, geometryCSVtoXML::line, LogTrace, m_initialPrescaleFactorsAlgoTrig, m_initialTriggerMaskAlgoTrig, m_numberPhysTriggers, m_PreScaleColumn, m_preScaleFileName, findQualityFiles::size, split, AlCaHLTBitMon_QueryRunRegistry::string, and relativeConstraints::value.

Referenced by numberOfPreScaleColumns(), and retrieveL1Setup().

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

Definition at line 154 of file L1TGlobalUtil.h.

References m_masks.

Referenced by retrieveL1Event(), and retrieveL1Setup().

154 { return m_masks; }
std::vector< std::pair< std::string, std::vector< int > > > m_masks
unsigned int l1t::L1TGlobalUtil::numberOfPreScaleColumns ( ) const
inline
void l1t::L1TGlobalUtil::OverridePrescalesAndMasks ( std::string  filename,
unsigned int  psColumn = 1 
)

Definition at line 72 of file L1TGlobalUtil.cc.

References connectstrParser::f1, edm::FileInPath::fullPath(), m_PreScaleColumn, and m_preScaleFileName.

Referenced by fillDescription().

72  {
73  edm::FileInPath f1("L1Trigger/L1TGlobal/data/Luminosity/startup/" + filename);
74  m_preScaleFileName = f1.fullPath();
75  m_PreScaleColumn = psColumn;
76 }
std::string m_preScaleFileName
unsigned int m_PreScaleColumn
unsigned int l1t::L1TGlobalUtil::prescaleColumn ( ) const
inline

Definition at line 162 of file L1TGlobalUtil.h.

References m_PreScaleColumn.

Referenced by HLTPrescaleProvider::prescaleSet().

162 {return m_PreScaleColumn;}
unsigned int m_PreScaleColumn
const std::vector<std::pair<std::string, int> >& l1t::L1TGlobalUtil::prescales ( )
inline

Definition at line 151 of file L1TGlobalUtil.h.

References m_prescales.

151 { return m_prescales; }
std::vector< std::pair< std::string, int > > m_prescales
void l1t::L1TGlobalUtil::resetDecisionVectors ( )
private

clear decision vectors on a menu change

Definition at line 416 of file L1TGlobalUtil.cc.

References plotBeamSpotDB::first, m_decisionsFinal, m_decisionsInitial, m_decisionsInterm, m_maxNumberPhysTriggers, and edm::second().

Referenced by numberOfPreScaleColumns(), and retrieveL1Setup().

416  {
417 
418  // Reset all the vector contents with null information
419  m_decisionsInitial.clear();
421  m_decisionsInterm.clear();
423  m_decisionsFinal.clear();
425 
426 
427  for(unsigned int algBit = 0; algBit< m_maxNumberPhysTriggers; algBit++) {
428 
429  (m_decisionsInitial[algBit]).first = "NULL";
430  (m_decisionsInitial[algBit]).second = false;
431 
432  (m_decisionsInterm[algBit]).first = "NULL";
433  (m_decisionsInterm[algBit]).second = false;
434 
435  (m_decisionsFinal[algBit]).first = "NULL";
436  (m_decisionsFinal[algBit]).second = false;
437 
438  }
439 
440 
441 }
std::vector< std::pair< std::string, bool > > m_decisionsInitial
U second(std::pair< T, U > const &p)
std::vector< std::pair< std::string, bool > > m_decisionsInterm
std::vector< std::pair< std::string, bool > > m_decisionsFinal
const unsigned int m_maxNumberPhysTriggers
void l1t::L1TGlobalUtil::resetMaskVectors ( )
private

Definition at line 458 of file L1TGlobalUtil.cc.

References plotBeamSpotDB::first, m_masks, and m_maxNumberPhysTriggers.

Referenced by numberOfPreScaleColumns(), and retrieveL1Setup().

458  {
459 
460  // Reset all the vector contents with null information
461  m_masks.clear();
463 
464  for(unsigned int algBit = 0; algBit< m_maxNumberPhysTriggers; algBit++) {
465 
466  (m_masks[algBit]).first = "NULL";
467  // ccla (m_masks[algBit]).second = true;
468 
469  }
470 
471 }
std::vector< std::pair< std::string, std::vector< int > > > m_masks
const unsigned int m_maxNumberPhysTriggers
void l1t::L1TGlobalUtil::resetPrescaleVectors ( )
private

Definition at line 443 of file L1TGlobalUtil.cc.

References plotBeamSpotDB::first, m_maxNumberPhysTriggers, m_prescales, and edm::second().

Referenced by numberOfPreScaleColumns(), and retrieveL1Setup().

443  {
444 
445  // Reset all the vector contents with null information
446  m_prescales.clear();
448 
449  for(unsigned int algBit = 0; algBit< m_maxNumberPhysTriggers; algBit++) {
450 
451  (m_prescales[algBit]).first = "NULL";
452  (m_prescales[algBit]).second = 1;
453 
454  }
455 
456 }
U second(std::pair< T, U > const &p)
const unsigned int m_maxNumberPhysTriggers
std::vector< std::pair< std::string, int > > m_prescales
void l1t::L1TGlobalUtil::retrieveL1 ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)

initialize the class (mainly reserve)

Definition at line 78 of file L1TGlobalUtil.cc.

References retrieveL1Event(), and retrieveL1Setup().

Referenced by fillDescription().

78  {
79  // typically, the L1T menu and prescale table (may change only between Runs)
80  retrieveL1Setup(evSetup);
81  // typically the prescale set index used and the event by event accept/reject info (changes between Events)
82  retrieveL1Event(iEvent,evSetup);
83 }
void retrieveL1Event(const edm::Event &iEvent, const edm::EventSetup &evSetup)
void retrieveL1Setup(const edm::EventSetup &evSetup)
void l1t::L1TGlobalUtil::retrieveL1 ( const edm::Event iEvent,
const edm::EventSetup evSetup,
edm::EDGetToken  gtAlgToken 
)

Definition at line 85 of file L1TGlobalUtil.cc.

References retrieveL1Event(), and retrieveL1Setup().

86  {
87  // typically, the L1T menu and prescale table (may change only between Runs)
88  retrieveL1Setup(evSetup);
89  // typically the prescale set index used and the event by event accept/reject info (changes between Events)
90  retrieveL1Event(iEvent,evSetup,gtAlgToken);
91 }
void retrieveL1Event(const edm::Event &iEvent, const edm::EventSetup &evSetup)
void retrieveL1Setup(const edm::EventSetup &evSetup)
void l1t::L1TGlobalUtil::retrieveL1Event ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)

Definition at line 209 of file L1TGlobalUtil.cc.

References m_l1tGlobalUtilHelper.

Referenced by fillDescription(), HLTPrescaleProvider::prescaleSet(), and retrieveL1().

209  {
210  retrieveL1Event(iEvent, evSetup, m_l1tGlobalUtilHelper->l1tAlgBlkToken());
211 }
void retrieveL1Event(const edm::Event &iEvent, const edm::EventSetup &evSetup)
std::unique_ptr< L1TGlobalUtilHelper > m_l1tGlobalUtilHelper
void l1t::L1TGlobalUtil::retrieveL1Event ( const edm::Event iEvent,
const edm::EventSetup evSetup,
edm::EDGetToken  gtAlgToken 
)

Definition at line 213 of file L1TGlobalUtil.cc.

References BXVector< T >::begin(), BXVector< T >::end(), plotBeamSpotDB::first, edm::Event::getByToken(), edm::HandleBase::isValid(), LogDebug, m_algorithmMap, m_decisionsFinal, m_decisionsInitial, m_decisionsInterm, m_finalOR, m_masks, m_PreScaleColumn, m_prescales, m_readPrescalesFromFile, m_triggerMaskAlgoTrig, m_uGtAlgBlk, masks(), edm::second(), and AlCaHLTBitMon_QueryRunRegistry::string.

214  {
215 
216 // Get the Global Trigger Output Algorithm block
217  iEvent.getByToken(gtAlgToken,m_uGtAlgBlk);
218  m_finalOR = false;
219 
220  //Make sure we have a valid AlgBlk
221  if(m_uGtAlgBlk.isValid()) {
222  // get the GlabalAlgBlk (Stupid find better way) of BX=0
223  std::vector<GlobalAlgBlk>::const_iterator algBlk = m_uGtAlgBlk->begin(0);
224  if (algBlk != m_uGtAlgBlk->end(0)){
226  m_PreScaleColumn = static_cast<unsigned int>(algBlk->getPreScColumn());
227  }
228  const std::vector<int>& prescaleSet = (*m_prescaleFactorsAlgoTrig)[m_PreScaleColumn];
229 
230  // Grab the final OR from the AlgBlk,
231  m_finalOR = algBlk->getFinalOR();
232 
233  // Make a map of the trigger name and whether it passed various stages (initial,prescale,final)
234  // Note: might be able to improve performance by not full remaking map with names each time
235  for (std::map<std::string, L1TUtmAlgorithm>::const_iterator itAlgo = m_algorithmMap->begin(); itAlgo != m_algorithmMap->end(); itAlgo++) {
236 
237  // Get the algorithm name
238  std::string algName = itAlgo->first;
239  int algBit = (itAlgo->second).getIndex(); //algoBitNumber();
240 
241  bool decisionInitial = algBlk->getAlgoDecisionInitial(algBit);
242  (m_decisionsInitial[algBit]).first = algName;
243  (m_decisionsInitial[algBit]).second = decisionInitial;
244 
245  bool decisionInterm = algBlk->getAlgoDecisionInterm(algBit);
246  (m_decisionsInterm[algBit]).first = algName;
247  (m_decisionsInterm[algBit]).second = decisionInterm;
248 
249  bool decisionFinal = algBlk->getAlgoDecisionFinal(algBit);
250  (m_decisionsFinal[algBit]).first = algName;
251  (m_decisionsFinal[algBit]).second = decisionFinal;
252 
253  (m_prescales[algBit]).first = algName;
254  (m_prescales[algBit]).second = prescaleSet[algBit];
255 
256  LogDebug("l1t|Global") << "Number of bunch crossings stored: " << (*m_triggerMaskAlgoTrig).size() << endl;
257 
258  const std::map<int, std::vector<int> >* triggerAlgoMaskAlgoTrig = m_triggerMaskAlgoTrig;
259  std::map<int, std::vector<int> >::const_iterator it=triggerAlgoMaskAlgoTrig->begin();
260 
261  std::vector<int> maskedBxs;
262  (m_masks[algBit]).first = algName;
263  (m_masks[algBit]).second = maskedBxs;
264 
265  while(it != triggerAlgoMaskAlgoTrig->end())
266  {
267  std::vector<int> masks = it->second;
268  //std::cout<< "BX: " << it->first<<" VecSize: "<< masks.size();
269  //std::cout << "\tMasked algos: ";
270  for ( unsigned int imask=0; imask< masks.size(); imask++){
271  if (masks.at(imask) == algBit) maskedBxs.push_back(it->first);
272  // std::cout << "\t" << masks.at(imask);
273  }
274  it++;
275  }
276 
277  if (!maskedBxs.empty()){
278  LogDebug("l1t|Global") << "Algo: "<< algBit << "\t" << algName << " masked\n";
279  for ( unsigned int ibx=0; ibx< maskedBxs.size(); ibx++){
280  // std::cout << "\t" << maskedBxs.at(ibx);
281  (m_masks[algBit]).second = maskedBxs;
282  }
283  }
284  }
285  } else {
286  //cout << "Error empty AlgBlk recovered.\n";
287  }
288  } else {
289  //cout<< "Error no valid uGT Algorithm Data with Token provided " << endl;
290  }
291 }
#define LogDebug(id)
const_iterator end(int bx) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:519
unsigned int m_PreScaleColumn
std::vector< std::pair< std::string, bool > > m_decisionsInitial
const std::map< std::string, L1TUtmAlgorithm > * m_algorithmMap
U second(std::pair< T, U > const &p)
std::vector< std::pair< std::string, std::vector< int > > > m_masks
const std::map< int, std::vector< int > > * m_triggerMaskAlgoTrig
bool isValid() const
Definition: HandleBase.h:74
std::vector< std::pair< std::string, bool > > m_decisionsInterm
std::vector< std::pair< std::string, bool > > m_decisionsFinal
edm::Handle< BXVector< GlobalAlgBlk > > m_uGtAlgBlk
const std::vector< std::pair< std::string, std::vector< int > > > & masks()
const_iterator begin(int bx) const
std::vector< std::pair< std::string, int > > m_prescales
void l1t::L1TGlobalUtil::retrieveL1Setup ( const edm::EventSetup evSetup)

Definition at line 93 of file L1TGlobalUtil.cc.

References plotBeamSpotDB::first, edm::EventSetup::get(), L1TUtmTriggerMenu::getAlgorithmMap(), loadPrescalesAndMasks(), LogDebug, LogTrace, m_algorithmMap, m_algorithmTriggersUnmasked, m_algorithmTriggersUnprescaled, m_filledPrescales, m_initialPrescaleFactorsAlgoTrig, m_initialTriggerMaskAlgoTrig, m_l1GtMenu, m_l1GtMenuCacheID, m_l1GtPfAlgoCacheID, m_l1GtPrescalesVetoes, m_masks, m_numberOfPreScaleColumns, m_numberPhysTriggers, m_PreScaleColumn, m_prescaleFactorsAlgoTrig, m_prescales, m_readPrescalesFromFile, m_triggerMaskAlgoTrig, masks(), or, l1t::PrescalesVetosHelper::prescaleTable(), edm::ESHandle< T >::product(), l1t::PrescalesVetosHelper::readFromEventSetup(), resetDecisionVectors(), resetMaskVectors(), resetPrescaleVectors(), edm::second(), AlCaHLTBitMon_QueryRunRegistry::string, and l1t::PrescalesVetosHelper::triggerAlgoBxMask().

Referenced by fillDescription(), HLTPrescaleProvider::init(), and retrieveL1().

93  {
94 
95  // get / update the trigger menu from the EventSetup
96  // local cache & check on cacheIdentifier
97  unsigned long long l1GtMenuCacheID = evSetup.get<L1TUtmTriggerMenuRcd>().cacheIdentifier();
98 
99  if (m_l1GtMenuCacheID != l1GtMenuCacheID) {
100 
102  evSetup.get< L1TUtmTriggerMenuRcd>().get(l1GtMenu) ;
103  m_l1GtMenu = l1GtMenu.product();
104 
105  //std::cout << "Attempting to fill the map " << std::endl;
107 
108  //reset vectors since we have new menu
110 
111  m_l1GtMenuCacheID = l1GtMenuCacheID;
112  }
113 
115  unsigned long long l1GtPfAlgoCacheID = evSetup.get<L1TGlobalPrescalesVetosRcd>().cacheIdentifier();
116 
117  if (m_l1GtPfAlgoCacheID != l1GtPfAlgoCacheID) {
118  //std::cout << "Reading Prescales and Masks from dB" << std::endl;
119 
120  // clear and dimension
123  m_PreScaleColumn = 0;
126 
127  edm::ESHandle< L1TGlobalPrescalesVetos > l1GtPrescalesVetoes;
128  evSetup.get< L1TGlobalPrescalesVetosRcd >().get( l1GtPrescalesVetoes );
129  const L1TGlobalPrescalesVetos * es = l1GtPrescalesVetoes.product();
131 
134  m_numberPhysTriggers = (*m_prescaleFactorsAlgoTrig)[0].size(); // assumes all prescale columns are the same length
135 
137 
138  m_l1GtPfAlgoCacheID = l1GtPfAlgoCacheID;
139  }
140  } else {
141  //Load the prescales from external file
142  // clear and dimension
143  if (!m_filledPrescales){
146 
148 
149  // Set Prescale factors to initial
152  m_filledPrescales=true;
153  }
154  }
155 
156  //Protect against poor prescale column choice (I don't think there is a way this happen as currently structured)
158  LogTrace("l1t|Global")
159  << "\nNo Prescale Set: " << m_PreScaleColumn
160  << "\nMax Prescale Set value : " << m_prescaleFactorsAlgoTrig->size()
161  << "\nSetting prescale column to 0"
162  << std::endl;
163  m_PreScaleColumn = 0;
164  }
165  //std::cout << "Using prescale column: " << m_PreScaleColumn << std::endl;
166  const std::vector<int>& prescaleSet = (*m_prescaleFactorsAlgoTrig)[m_PreScaleColumn];
167 
168  for (std::map<std::string, L1TUtmAlgorithm>::const_iterator itAlgo = m_algorithmMap->begin(); itAlgo != m_algorithmMap->end(); itAlgo++) {
169 
170  // Get the algorithm name
171  std::string algName = itAlgo->first;
172  int algBit = (itAlgo->second).getIndex(); //algoBitNumber();
173 
174  (m_prescales[algBit]).first = algName;
175  (m_prescales[algBit]).second = prescaleSet[algBit];
176 
177  LogDebug("l1t|Global")<< "Number of bunch crossings stored: " << (*m_triggerMaskAlgoTrig).size() << endl;
178 
179  const std::map<int, std::vector<int> >* triggerAlgoMaskAlgoTrig = m_triggerMaskAlgoTrig;
180  std::map<int, std::vector<int> >::const_iterator it=triggerAlgoMaskAlgoTrig->begin();
181 
182  std::vector<int> maskedBxs;
183  (m_masks[algBit]).first = algName;
184  (m_masks[algBit]).second = maskedBxs;
185  while(it != triggerAlgoMaskAlgoTrig->end())
186  {
187  std::vector<int> masks = it->second;
188  //std::cout<< "BX: " << it->first<<" VecSize: "<< masks.size();
189  //std::cout << "\tMasked algos: ";
190  for ( unsigned int imask=0; imask< masks.size(); imask++){
191  if (masks.at(imask) == algBit) maskedBxs.push_back(it->first);
192  // std::cout << "\t" << masks.at(imask);
193  }
194  //std::cout << "\n";
195  it++;
196  }
197 
198  if (!maskedBxs.empty()){
199  LogDebug("l1t|Global") << "i Algo: "<< algBit << "\t" << algName << " masked\n";
200  for ( unsigned int ibx=0; ibx< maskedBxs.size(); ibx++){
201  // std::cout << "\t" << maskedBxs.at(ibx);
202  (m_masks[algBit]).second = maskedBxs;
203  }
204  }
205  }
206 
207 }
#define LogDebug(id)
const L1TUtmTriggerMenu * m_l1GtMenu
const std::vector< std::vector< int > > & prescaleTable() const
bool m_algorithmTriggersUnmasked
unsigned long long m_l1GtPfAlgoCacheID
unsigned int m_numberOfPreScaleColumns
unsigned int m_PreScaleColumn
std::vector< std::vector< int > > m_initialPrescaleFactorsAlgoTrig
void resetDecisionVectors()
clear decision vectors on a menu change
const std::map< int, std::vector< int > > & triggerAlgoBxMask() const
const std::map< std::string, L1TUtmAlgorithm > * m_algorithmMap
U second(std::pair< T, U > const &p)
const std::map< int, std::vector< int > > m_initialTriggerMaskAlgoTrig
static const PrescalesVetosHelper * readFromEventSetup(const L1TGlobalPrescalesVetos *es)
std::vector< std::pair< std::string, std::vector< int > > > m_masks
const std::map< int, std::vector< int > > * m_triggerMaskAlgoTrig
const std::vector< std::vector< int > > * m_prescaleFactorsAlgoTrig
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
#define LogTrace(id)
unsigned long long m_l1GtMenuCacheID
const T & get() const
Definition: EventSetup.h:58
const l1t::PrescalesVetosHelper * m_l1GtPrescalesVetoes
const std::map< std::string, L1TUtmAlgorithm > & getAlgorithmMap() const
bool m_algorithmTriggersUnprescaled
const std::vector< std::pair< std::string, std::vector< int > > > & masks()
T const * product() const
Definition: ESHandle.h:86
std::vector< std::pair< std::string, int > > m_prescales
unsigned int m_numberPhysTriggers
void l1t::L1TGlobalUtil::setUnprescaledUnmasked ( bool  unprescale,
bool  unmask 
)
inline

Definition at line 101 of file L1TGlobalUtil.h.

References m_algorithmTriggersUnmasked, and m_algorithmTriggersUnprescaled.

101  {
102  m_algorithmTriggersUnprescaled = unprescale;
104  }
bool m_algorithmTriggersUnmasked
bool m_algorithmTriggersUnprescaled
void l1t::L1TGlobalUtil::setVerbosity ( const int  verbosity)
inline

Definition at line 106 of file L1TGlobalUtil.h.

References m_verbosity, and HIPAlignmentAlgorithm_cfi::verbosity.

106  {
108  }
int m_verbosity
verbosity level
bool l1t::L1TGlobalUtil::valid ( ) const

check that the L1TGlobalUtil has been properly initialised

Definition at line 68 of file L1TGlobalUtil.cc.

References m_l1GtMenu, and m_l1GtMenuCacheID.

68  {
69  return m_l1GtMenuCacheID != 0ULL and m_l1GtMenu != nullptr;
70 }
const L1TUtmTriggerMenu * m_l1GtMenu
unsigned long long m_l1GtMenuCacheID

Member Data Documentation

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

Definition at line 194 of file L1TGlobalUtil.h.

Referenced by getAlgBitFromName(), retrieveL1Event(), and retrieveL1Setup().

bool l1t::L1TGlobalUtil::m_algorithmTriggersUnmasked
private

Definition at line 187 of file L1TGlobalUtil.h.

Referenced by L1TGlobalUtil(), retrieveL1Setup(), and setUnprescaledUnmasked().

bool l1t::L1TGlobalUtil::m_algorithmTriggersUnprescaled
private

Definition at line 186 of file L1TGlobalUtil.h.

Referenced by L1TGlobalUtil(), retrieveL1Setup(), and setUnprescaledUnmasked().

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

Definition at line 190 of file L1TGlobalUtil.h.

Referenced by L1TGlobalUtil(), and retrieveL1Setup().

bool l1t::L1TGlobalUtil::m_finalOR
private

Definition at line 214 of file L1TGlobalUtil.h.

Referenced by getFinalOR(), and retrieveL1Event().

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

Definition at line 205 of file L1TGlobalUtil.h.

Referenced by loadPrescalesAndMasks(), and retrieveL1Setup().

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

Definition at line 207 of file L1TGlobalUtil.h.

Referenced by loadPrescalesAndMasks(), and retrieveL1Setup().

const L1TUtmTriggerMenu* l1t::L1TGlobalUtil::m_l1GtMenu
private
unsigned long long l1t::L1TGlobalUtil::m_l1GtMenuCacheID
private

Definition at line 177 of file L1TGlobalUtil.h.

Referenced by L1TGlobalUtil(), retrieveL1Setup(), and valid().

unsigned long long l1t::L1TGlobalUtil::m_l1GtPfAlgoCacheID
private

Definition at line 183 of file L1TGlobalUtil.h.

Referenced by L1TGlobalUtil(), and retrieveL1Setup().

const l1t::PrescalesVetosHelper* l1t::L1TGlobalUtil::m_l1GtPrescalesVetoes
private

Definition at line 182 of file L1TGlobalUtil.h.

Referenced by retrieveL1Setup().

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

Definition at line 226 of file L1TGlobalUtil.h.

Referenced by L1TGlobalUtil(), and retrieveL1Event().

std::vector<std::pair<std::string, std::vector<int> > > l1t::L1TGlobalUtil::m_masks
private
const unsigned int l1t::L1TGlobalUtil::m_maxNumberPhysTriggers = 512
private

Definition at line 198 of file L1TGlobalUtil.h.

Referenced by resetDecisionVectors(), resetMaskVectors(), and resetPrescaleVectors().

unsigned int l1t::L1TGlobalUtil::m_numberOfPreScaleColumns
private

Definition at line 203 of file L1TGlobalUtil.h.

Referenced by numberOfPreScaleColumns(), and retrieveL1Setup().

unsigned int l1t::L1TGlobalUtil::m_numberPhysTriggers
private

Definition at line 197 of file L1TGlobalUtil.h.

Referenced by L1TGlobalUtil(), loadPrescalesAndMasks(), and retrieveL1Setup().

unsigned int l1t::L1TGlobalUtil::m_PreScaleColumn
private
const std::vector<std::vector<int> >* l1t::L1TGlobalUtil::m_prescaleFactorsAlgoTrig
private

Definition at line 206 of file L1TGlobalUtil.h.

Referenced by L1TGlobalUtil(), and retrieveL1Setup().

std::string l1t::L1TGlobalUtil::m_preScaleFileName
private
std::vector<std::pair<std::string, int> > l1t::L1TGlobalUtil::m_prescales
private
bool l1t::L1TGlobalUtil::m_readPrescalesFromFile
private

Definition at line 181 of file L1TGlobalUtil.h.

Referenced by L1TGlobalUtil(), retrieveL1Event(), and retrieveL1Setup().

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

Definition at line 208 of file L1TGlobalUtil.h.

Referenced by L1TGlobalUtil(), retrieveL1Event(), and retrieveL1Setup().

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

Definition at line 211 of file L1TGlobalUtil.h.

Referenced by retrieveL1Event().

int l1t::L1TGlobalUtil::m_verbosity
private

verbosity level

Definition at line 224 of file L1TGlobalUtil.h.

Referenced by setVerbosity().