test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes | Friends
L1GtTriggerMenuLite Class Reference

#include <L1GtTriggerMenuLite.h>

Public Types

typedef
L1TriggerMap::const_iterator 
CItL1Trig
 iterators through map containing the physics algorithms or the technical triggers More...
 
typedef L1TriggerMap::iterator ItL1Trig
 
typedef std::map< unsigned int,
std::string > 
L1TriggerMap
 map containing the physics algorithms or the technical triggers More...
 

Public Member Functions

const std::string * gtAlgorithmAlias (const unsigned int bitNumber, int &errorCode) const
 get the alias for a physics algorithm with a given bit number More...
 
const L1TriggerMapgtAlgorithmAliasMap () const
 get / set the algorithm map (by alias) More...
 
const L1TriggerMapgtAlgorithmMap () const
 get / set the algorithm map (by name) More...
 
const std::string * gtAlgorithmName (const unsigned int bitNumber, int &errorCode) const
 
const unsigned int gtBitNumber (const std::string &trigName, int &errorCode) const
 
const std::vector< std::vector
< int > > & 
gtPrescaleFactorsAlgoTrig () const
 get the prescale factors by reference / set the prescale factors More...
 
const std::vector< std::vector
< int > > & 
gtPrescaleFactorsTechTrig () const
 
const std::string & gtScaleDbKey () const
 menu associated scale key More...
 
const L1TriggerMapgtTechnicalTriggerMap () const
 get / set the technical trigger map More...
 
const std::string * gtTechTrigName (const unsigned int bitNumber, int &errorCode) const
 
const std::vector< unsigned int > & gtTriggerMaskAlgoTrig () const
 get the trigger mask for physics algorithms More...
 
const std::vector< unsigned int > & gtTriggerMaskTechTrig () const
 get the trigger mask for technical triggers More...
 
const std::string & gtTriggerMenuImplementation () const
 
const std::string & gtTriggerMenuInterface () const
 get / set the trigger menu names More...
 
const std::string & gtTriggerMenuName () const
 
const bool gtTriggerResult (const std::string &trigName, const std::vector< bool > &decWord, int &errorCode) const
 
bool isProductEqual (const L1GtTriggerMenuLite &) const
 merge rule: test on isProductEqual More...
 
 L1GtTriggerMenuLite ()
 constructor More...
 
 L1GtTriggerMenuLite (const std::string &, const L1TriggerMap &, const L1TriggerMap &, const L1TriggerMap &, const std::vector< unsigned int > &, const std::vector< unsigned int > &, const std::vector< std::vector< int > > &, const std::vector< std::vector< int > > &)
 
 L1GtTriggerMenuLite (const L1GtTriggerMenuLite &)
 copy constructor More...
 
bool operator!= (const L1GtTriggerMenuLite &) const
 unequal operator More...
 
L1GtTriggerMenuLiteoperator= (const L1GtTriggerMenuLite &)
 assignment operator More...
 
bool operator== (const L1GtTriggerMenuLite &) const
 equal operator More...
 
void print (std::ostream &, int &) const
 
void setGtAlgorithmAliasMap (const L1TriggerMap &)
 
void setGtAlgorithmMap (const L1TriggerMap &)
 
void setGtPrescaleFactorsAlgoTrig (const std::vector< std::vector< int > > &)
 
void setGtPrescaleFactorsTechTrig (const std::vector< std::vector< int > > &)
 
void setGtScaleDbKey (const std::string &)
 
void setGtTechnicalTriggerMap (const L1TriggerMap &)
 
void setGtTriggerMaskAlgoTrig (const std::vector< unsigned int > &)
 set the trigger mask for physics algorithms More...
 
void setGtTriggerMaskTechTrig (const std::vector< unsigned int > &)
 set the trigger mask for technical triggers More...
 
void setGtTriggerMenuImplementation (const std::string &)
 
void setGtTriggerMenuInterface (const std::string &)
 
void setGtTriggerMenuName (const std::string &)
 
virtual ~L1GtTriggerMenuLite ()
 

Private Attributes

L1TriggerMap m_algorithmAliasMap
 map containing the physics algorithms (by alias) More...
 
L1TriggerMap m_algorithmMap
 map containing the physics algorithms (by name) More...
 
std::vector< std::vector< int > > m_prescaleFactorsAlgoTrig
 prescale factors More...
 
std::vector< std::vector< int > > m_prescaleFactorsTechTrig
 
std::string m_scaleDbKey
 menu associated scale key More...
 
L1TriggerMap m_technicalTriggerMap
 map containing the technical triggers More...
 
std::vector< unsigned int > m_triggerMaskAlgoTrig
 trigger mask for physics algorithms More...
 
std::vector< unsigned int > m_triggerMaskTechTrig
 trigger mask for technical triggers More...
 
std::string m_triggerMenuImplementation
 
std::string m_triggerMenuInterface
 menu names More...
 
std::string m_triggerMenuName
 

Friends

std::ostream & operator<< (std::ostream &, const L1GtTriggerMenuLite &)
 output stream operator More...
 

Detailed Description

Description: L1 trigger menu and masks, lite version not using event setup.

Implementation: This is the lite version of the L1 trigger menu, with trigger masks included, to be used in the environments not having access to event setup. It offers limited access to the full L1 trigger menu which is implemented as event setup (CondFormats/L1TObjects/interface/L1GtTriggerMenu.h). The masks are provided for the physics partition only.

An EDM product is created and saved in the Run Data, under the assumption that the menu remains the same in a run. The corresponding producer will read the full L1 trigger menu and the trigger masks from event setup, fill the corresponding members and save it as EDM product.

Author
: Vasile Mihai Ghete - HEPHY Vienna

Definition at line 40 of file L1GtTriggerMenuLite.h.

Member Typedef Documentation

typedef L1TriggerMap::const_iterator L1GtTriggerMenuLite::CItL1Trig

iterators through map containing the physics algorithms or the technical triggers

Definition at line 48 of file L1GtTriggerMenuLite.h.

typedef L1TriggerMap::iterator L1GtTriggerMenuLite::ItL1Trig

Definition at line 49 of file L1GtTriggerMenuLite.h.

typedef std::map<unsigned int, std::string> L1GtTriggerMenuLite::L1TriggerMap

map containing the physics algorithms or the technical triggers

Definition at line 45 of file L1GtTriggerMenuLite.h.

Constructor & Destructor Documentation

L1GtTriggerMenuLite::L1GtTriggerMenuLite ( )

constructor

Definition at line 37 of file L1GtTriggerMenuLite.cc.

37  :
39  m_triggerMenuImplementation("NULL"), m_scaleDbKey("NULL") {
40 
41  // empty
42 
43 }
std::string m_triggerMenuImplementation
std::string m_scaleDbKey
menu associated scale key
std::string m_triggerMenuInterface
menu names
L1GtTriggerMenuLite::L1GtTriggerMenuLite ( const std::string &  triggerMenuNameVal,
const L1TriggerMap algorithmMapVal,
const L1TriggerMap algorithmAliasMapVal,
const L1TriggerMap technicalTriggerMapVal,
const std::vector< unsigned int > &  triggerMaskAlgoTrigVal,
const std::vector< unsigned int > &  triggerMaskTechTrigVal,
const std::vector< std::vector< int > > &  prescaleFactorsAlgoTrigVal,
const std::vector< std::vector< int > > &  prescaleFactorsTechTrigVal 
)

Definition at line 45 of file L1GtTriggerMenuLite.cc.

54  :
55  m_triggerMenuInterface("NULL"),
56  m_triggerMenuName(triggerMenuNameVal),
58  m_scaleDbKey("NULL"),
59  m_algorithmMap(algorithmMapVal),
60  m_algorithmAliasMap(algorithmAliasMapVal),
61  m_technicalTriggerMap(technicalTriggerMapVal),
62  m_triggerMaskAlgoTrig(triggerMaskAlgoTrigVal),
63  m_triggerMaskTechTrig(triggerMaskTechTrigVal),
64  m_prescaleFactorsAlgoTrig(prescaleFactorsAlgoTrigVal),
65  m_prescaleFactorsTechTrig(prescaleFactorsTechTrigVal)
66 
67 
68  {
69 
70  // empty
71 
72 }
L1TriggerMap m_algorithmMap
map containing the physics algorithms (by name)
std::string m_triggerMenuImplementation
std::string m_scaleDbKey
menu associated scale key
L1TriggerMap m_technicalTriggerMap
map containing the technical triggers
std::vector< unsigned int > m_triggerMaskAlgoTrig
trigger mask for physics algorithms
std::vector< std::vector< int > > m_prescaleFactorsAlgoTrig
prescale factors
std::vector< std::vector< int > > m_prescaleFactorsTechTrig
std::string m_triggerMenuInterface
menu names
std::vector< unsigned int > m_triggerMaskTechTrig
trigger mask for technical triggers
L1TriggerMap m_algorithmAliasMap
map containing the physics algorithms (by alias)
L1GtTriggerMenuLite::L1GtTriggerMenuLite ( const L1GtTriggerMenuLite rhs)

copy constructor

Definition at line 75 of file L1GtTriggerMenuLite.cc.

References m_algorithmAliasMap, m_algorithmMap, m_prescaleFactorsAlgoTrig, m_prescaleFactorsTechTrig, m_scaleDbKey, m_technicalTriggerMap, m_triggerMaskAlgoTrig, m_triggerMaskTechTrig, m_triggerMenuImplementation, m_triggerMenuInterface, and m_triggerMenuName.

75  {
76 
81 
82  // copy algorithm map
85 
86  // copy technical triggers
87  // (separate map for technical triggers and physics triggers)
89 
90  // copy masks
93 
94  // copy prescale factors
97 
98 }
L1TriggerMap m_algorithmMap
map containing the physics algorithms (by name)
std::string m_triggerMenuImplementation
std::string m_scaleDbKey
menu associated scale key
L1TriggerMap m_technicalTriggerMap
map containing the technical triggers
std::vector< unsigned int > m_triggerMaskAlgoTrig
trigger mask for physics algorithms
std::vector< std::vector< int > > m_prescaleFactorsAlgoTrig
prescale factors
std::vector< std::vector< int > > m_prescaleFactorsTechTrig
std::string m_triggerMenuInterface
menu names
std::vector< unsigned int > m_triggerMaskTechTrig
trigger mask for technical triggers
L1TriggerMap m_algorithmAliasMap
map containing the physics algorithms (by alias)
L1GtTriggerMenuLite::~L1GtTriggerMenuLite ( )
virtual

Definition at line 101 of file L1GtTriggerMenuLite.cc.

References m_algorithmAliasMap, m_algorithmMap, and m_technicalTriggerMap.

102 {
103 
104  m_algorithmMap.clear();
105  m_algorithmAliasMap.clear();
106  m_technicalTriggerMap.clear();
107 
108 }
L1TriggerMap m_algorithmMap
map containing the physics algorithms (by name)
L1TriggerMap m_technicalTriggerMap
map containing the technical triggers
L1TriggerMap m_algorithmAliasMap
map containing the physics algorithms (by alias)

Member Function Documentation

const std::string * L1GtTriggerMenuLite::gtAlgorithmAlias ( const unsigned int  bitNumber,
int &  errorCode 
) const

get the alias for a physics algorithm with a given bit number

Definition at line 383 of file L1GtTriggerMenuLite.cc.

References m_algorithmAliasMap, and AlCaHLTBitMon_QueryRunRegistry::string.

384  {
385 
386  const std::string* gtAlgorithmAlias = 0;
387 
388  for (CItL1Trig itTrig = m_algorithmAliasMap.begin(); itTrig
389  != m_algorithmAliasMap.end(); itTrig++) {
390 
391  if (itTrig->first == bitNumber) {
392 
393  gtAlgorithmAlias = &(itTrig->second);
394 
395  errorCode = 0;
396  return gtAlgorithmAlias;
397  }
398  }
399 
400  errorCode = 1;
401  return gtAlgorithmAlias;
402 
403 }
const std::string * gtAlgorithmAlias(const unsigned int bitNumber, int &errorCode) const
get the alias for a physics algorithm with a given bit number
L1TriggerMap::const_iterator CItL1Trig
iterators through map containing the physics algorithms or the technical triggers ...
L1TriggerMap m_algorithmAliasMap
map containing the physics algorithms (by alias)
const L1TriggerMap& L1GtTriggerMenuLite::gtAlgorithmAliasMap ( ) const
inline

get / set the algorithm map (by alias)

Definition at line 118 of file L1GtTriggerMenuLite.h.

References m_algorithmAliasMap.

Referenced by L1GtUtils::retrieveL1GtTriggerMenuLite().

118  {
119  return m_algorithmAliasMap;
120  }
L1TriggerMap m_algorithmAliasMap
map containing the physics algorithms (by alias)
const L1TriggerMap& L1GtTriggerMenuLite::gtAlgorithmMap ( ) const
inline

get / set the algorithm map (by name)

Definition at line 111 of file L1GtTriggerMenuLite.h.

References m_algorithmMap.

Referenced by FWL1TriggerTableView::fillTable(), and L1GtUtils::retrieveL1GtTriggerMenuLite().

111  {
112  return m_algorithmMap;
113  }
L1TriggerMap m_algorithmMap
map containing the physics algorithms (by name)
const std::string * L1GtTriggerMenuLite::gtAlgorithmName ( const unsigned int  bitNumber,
int &  errorCode 
) const

get the name for a physics algorithm or a technical trigger with a given bit number

Definition at line 407 of file L1GtTriggerMenuLite.cc.

References m_algorithmMap, and AlCaHLTBitMon_QueryRunRegistry::string.

408  {
409 
410  const std::string* gtAlgorithmName = 0;
411 
412  for (CItL1Trig itTrig = m_algorithmMap.begin(); itTrig
413  != m_algorithmMap.end(); itTrig++) {
414 
415  if (itTrig->first == bitNumber) {
416 
417  gtAlgorithmName = &(itTrig->second);
418 
419  errorCode = 0;
420  return gtAlgorithmName;
421  }
422  }
423 
424  errorCode = 1;
425  return gtAlgorithmName;
426 
427 }
L1TriggerMap m_algorithmMap
map containing the physics algorithms (by name)
L1TriggerMap::const_iterator CItL1Trig
iterators through map containing the physics algorithms or the technical triggers ...
const std::string * gtAlgorithmName(const unsigned int bitNumber, int &errorCode) const
const unsigned int L1GtTriggerMenuLite::gtBitNumber ( const std::string &  trigName,
int &  errorCode 
) const

get the bit number for a physics algorithm or a technical trigger with a given name or alias

Definition at line 453 of file L1GtTriggerMenuLite.cc.

References m_algorithmAliasMap, m_algorithmMap, and m_technicalTriggerMap.

454  {
455 
456  unsigned int bitNr = 999;
457 
458  //
459  for (CItL1Trig itTrig = m_algorithmAliasMap.begin(); itTrig
460  != m_algorithmAliasMap.end(); itTrig++) {
461 
462  if (itTrig->second == trigName) {
463 
464  bitNr = itTrig->first;
465 
466  errorCode = 0;
467  return bitNr;
468  }
469  }
470 
471  //
472  for (CItL1Trig itTrig = m_algorithmMap.begin(); itTrig
473  != m_algorithmMap.end(); itTrig++) {
474 
475  if (itTrig->second == trigName) {
476 
477  bitNr = itTrig->first;
478  errorCode = 0;
479  return bitNr;
480  }
481  }
482 
483  //
484  for (CItL1Trig itTrig = m_technicalTriggerMap.begin(); itTrig
485  != m_technicalTriggerMap.end(); itTrig++) {
486 
487  if (itTrig->second == trigName) {
488 
489  bitNr = itTrig->first;
490  errorCode = 0;
491  return bitNr;
492  }
493  }
494 
495  errorCode = 1;
496  return bitNr;
497 
498 }
L1TriggerMap m_algorithmMap
map containing the physics algorithms (by name)
L1TriggerMap m_technicalTriggerMap
map containing the technical triggers
L1TriggerMap::const_iterator CItL1Trig
iterators through map containing the physics algorithms or the technical triggers ...
L1TriggerMap m_algorithmAliasMap
map containing the physics algorithms (by alias)
const std::vector<std::vector<int> >& L1GtTriggerMenuLite::gtPrescaleFactorsAlgoTrig ( ) const
inline

get the prescale factors by reference / set the prescale factors

Definition at line 151 of file L1GtTriggerMenuLite.h.

References m_prescaleFactorsAlgoTrig.

Referenced by FWL1TriggerTableView::fillTable(), and L1GtUtils::retrieveL1GtTriggerMenuLite().

152  {
154  }
std::vector< std::vector< int > > m_prescaleFactorsAlgoTrig
prescale factors
const std::vector<std::vector<int> >& L1GtTriggerMenuLite::gtPrescaleFactorsTechTrig ( ) const
inline

Definition at line 158 of file L1GtTriggerMenuLite.h.

References m_prescaleFactorsTechTrig.

Referenced by FWL1TriggerTableView::fillTable(), and L1GtUtils::retrieveL1GtTriggerMenuLite().

159  {
161  }
std::vector< std::vector< int > > m_prescaleFactorsTechTrig
const std::string& L1GtTriggerMenuLite::gtScaleDbKey ( ) const
inline

menu associated scale key

Definition at line 104 of file L1GtTriggerMenuLite.h.

References m_scaleDbKey.

104  {
105  return m_scaleDbKey;
106  }
std::string m_scaleDbKey
menu associated scale key
const L1TriggerMap& L1GtTriggerMenuLite::gtTechnicalTriggerMap ( ) const
inline

get / set the technical trigger map

Definition at line 125 of file L1GtTriggerMenuLite.h.

References m_technicalTriggerMap.

Referenced by L1GtUtils::retrieveL1GtTriggerMenuLite().

125  {
126  return m_technicalTriggerMap;
127  }
L1TriggerMap m_technicalTriggerMap
map containing the technical triggers
const std::string * L1GtTriggerMenuLite::gtTechTrigName ( const unsigned int  bitNumber,
int &  errorCode 
) const

Definition at line 429 of file L1GtTriggerMenuLite.cc.

References m_technicalTriggerMap, and AlCaHLTBitMon_QueryRunRegistry::string.

430  {
431 
432  const std::string* gtTechTrigName = 0;
433 
434  for (CItL1Trig itTrig = m_technicalTriggerMap.begin(); itTrig
435  != m_technicalTriggerMap.end(); itTrig++) {
436 
437  if (itTrig->first == bitNumber) {
438 
439  gtTechTrigName = &(itTrig->second);
440 
441  errorCode = 0;
442  return gtTechTrigName;
443  }
444  }
445 
446  errorCode = 1;
447  return gtTechTrigName;
448 
449 }
L1TriggerMap m_technicalTriggerMap
map containing the technical triggers
const std::string * gtTechTrigName(const unsigned int bitNumber, int &errorCode) const
L1TriggerMap::const_iterator CItL1Trig
iterators through map containing the physics algorithms or the technical triggers ...
const std::vector<unsigned int>& L1GtTriggerMenuLite::gtTriggerMaskAlgoTrig ( ) const
inline

get the trigger mask for physics algorithms

Definition at line 132 of file L1GtTriggerMenuLite.h.

References m_triggerMaskAlgoTrig.

Referenced by L1GtUtils::retrieveL1GtTriggerMenuLite().

133  {
134  return m_triggerMaskAlgoTrig;
135  }
std::vector< unsigned int > m_triggerMaskAlgoTrig
trigger mask for physics algorithms
const std::vector<unsigned int>& L1GtTriggerMenuLite::gtTriggerMaskTechTrig ( ) const
inline

get the trigger mask for technical triggers

Definition at line 142 of file L1GtTriggerMenuLite.h.

References m_triggerMaskTechTrig.

Referenced by L1GtUtils::retrieveL1GtTriggerMenuLite().

143  {
144  return m_triggerMaskTechTrig;
145  }
std::vector< unsigned int > m_triggerMaskTechTrig
trigger mask for technical triggers
const std::string& L1GtTriggerMenuLite::gtTriggerMenuImplementation ( ) const
inline
const std::string& L1GtTriggerMenuLite::gtTriggerMenuInterface ( ) const
inline

get / set the trigger menu names

Definition at line 83 of file L1GtTriggerMenuLite.h.

References m_triggerMenuInterface.

83  {
85  }
std::string m_triggerMenuInterface
menu names
const std::string& L1GtTriggerMenuLite::gtTriggerMenuName ( ) const
inline

Definition at line 90 of file L1GtTriggerMenuLite.h.

References m_triggerMenuName.

Referenced by L1GtUtils::l1TriggerMenu().

90  {
91  return m_triggerMenuName;
92  }
const bool L1GtTriggerMenuLite::gtTriggerResult ( const std::string &  trigName,
const std::vector< bool > &  decWord,
int &  errorCode 
) const

get the result for a physics algorithm or a technical trigger with name trigName use directly the format of decisionWord (no typedef)

Definition at line 502 of file L1GtTriggerMenuLite.cc.

References m_algorithmAliasMap, m_algorithmMap, and m_technicalTriggerMap.

Referenced by FWL1TriggerTableView::fillTable().

503  {
504 
505  bool trigResult = false;
506 
507  // try first physics algorithm aliases
508 
509  for (CItL1Trig itTrig = m_algorithmAliasMap.begin(); itTrig
510  != m_algorithmAliasMap.end(); itTrig++) {
511 
512  if (itTrig->second == trigName) {
513  unsigned int bitNumber = itTrig->first;
514 
515  if ((bitNumber >= decWord.size())) {
516  trigResult = false;
517  errorCode = 10;
518  } else {
519  trigResult = decWord[bitNumber];
520  errorCode = 0;
521  }
522 
523  return trigResult;
524  }
525  }
526 
527  // ... then physics algorithm names
528 
529  for (CItL1Trig itTrig = m_algorithmMap.begin(); itTrig
530  != m_algorithmMap.end(); itTrig++) {
531 
532  if (itTrig->second == trigName) {
533  unsigned int bitNumber = itTrig->first;
534 
535  if ((bitNumber >= decWord.size())) {
536  trigResult = false;
537  errorCode = 10;
538  } else {
539  trigResult = decWord[bitNumber];
540  errorCode = 0;
541  }
542 
543  return trigResult;
544  }
545  }
546 
547  // ... then technical trigger names
548 
549  for (CItL1Trig itTrig = m_technicalTriggerMap.begin(); itTrig
550  != m_technicalTriggerMap.end(); itTrig++) {
551 
552  if (itTrig->second == trigName) {
553  unsigned int bitNumber = itTrig->first;
554 
555  if ((bitNumber >= decWord.size())) {
556  trigResult = false;
557  errorCode = 10;
558  } else {
559  trigResult = decWord[bitNumber];
560  errorCode = 0;
561  }
562 
563  return trigResult;
564  }
565  }
566 
567  // algorithm or technical trigger not in the menu
568 
569  errorCode = 1;
570  return false;
571 
572 }
L1TriggerMap m_algorithmMap
map containing the physics algorithms (by name)
L1TriggerMap m_technicalTriggerMap
map containing the technical triggers
L1TriggerMap::const_iterator CItL1Trig
iterators through map containing the physics algorithms or the technical triggers ...
L1TriggerMap m_algorithmAliasMap
map containing the physics algorithms (by alias)
bool L1GtTriggerMenuLite::isProductEqual ( const L1GtTriggerMenuLite otherObj) const

merge rule: test on isProductEqual

Definition at line 198 of file L1GtTriggerMenuLite.cc.

198  {
199 
200  return (otherObj == *this);
201 }
bool L1GtTriggerMenuLite::operator!= ( const L1GtTriggerMenuLite otherObj) const

unequal operator

Definition at line 191 of file L1GtTriggerMenuLite.cc.

191  {
192 
193  return !(otherObj == *this);
194 
195 }
L1GtTriggerMenuLite & L1GtTriggerMenuLite::operator= ( const L1GtTriggerMenuLite rhs)

assignment operator

Definition at line 111 of file L1GtTriggerMenuLite.cc.

References m_algorithmAliasMap, m_algorithmMap, m_prescaleFactorsAlgoTrig, m_prescaleFactorsTechTrig, m_scaleDbKey, m_technicalTriggerMap, m_triggerMaskAlgoTrig, m_triggerMaskTechTrig, m_triggerMenuImplementation, m_triggerMenuInterface, and m_triggerMenuName.

112  {
113 
114  if (this != &rhs) {
115 
120 
123 
125 
128 
131  }
132 
133  // return the object
134  return *this;
135 
136 }
L1TriggerMap m_algorithmMap
map containing the physics algorithms (by name)
std::string m_triggerMenuImplementation
std::string m_scaleDbKey
menu associated scale key
L1TriggerMap m_technicalTriggerMap
map containing the technical triggers
std::vector< unsigned int > m_triggerMaskAlgoTrig
trigger mask for physics algorithms
std::vector< std::vector< int > > m_prescaleFactorsAlgoTrig
prescale factors
std::vector< std::vector< int > > m_prescaleFactorsTechTrig
std::string m_triggerMenuInterface
menu names
std::vector< unsigned int > m_triggerMaskTechTrig
trigger mask for technical triggers
L1TriggerMap m_algorithmAliasMap
map containing the physics algorithms (by alias)
bool L1GtTriggerMenuLite::operator== ( const L1GtTriggerMenuLite rhs) const

equal operator

Definition at line 139 of file L1GtTriggerMenuLite.cc.

References m_algorithmAliasMap, m_algorithmMap, m_prescaleFactorsAlgoTrig, m_prescaleFactorsTechTrig, m_scaleDbKey, m_technicalTriggerMap, m_triggerMaskAlgoTrig, m_triggerMaskTechTrig, m_triggerMenuImplementation, m_triggerMenuInterface, and m_triggerMenuName.

139  {
140 
142  return false;
143  }
144 
146  return false;
147  }
148 
150  return false;
151  }
152 
153  if (m_scaleDbKey != rhs.m_scaleDbKey) {
154  return false;
155  }
156 
157  if (m_algorithmMap != rhs.m_algorithmMap) {
158  return false;
159  }
160 
162  return false;
163  }
164 
166  return false;
167  }
168 
170  return false;
171  }
172 
174  return false;
175  }
176 
178  return false;
179  }
180 
182  return false;
183  }
184 
185  // all members identical
186  return true;
187 
188 }
L1TriggerMap m_algorithmMap
map containing the physics algorithms (by name)
std::string m_triggerMenuImplementation
std::string m_scaleDbKey
menu associated scale key
L1TriggerMap m_technicalTriggerMap
map containing the technical triggers
std::vector< unsigned int > m_triggerMaskAlgoTrig
trigger mask for physics algorithms
std::vector< std::vector< int > > m_prescaleFactorsAlgoTrig
prescale factors
std::vector< std::vector< int > > m_prescaleFactorsTechTrig
std::string m_triggerMenuInterface
menu names
std::vector< unsigned int > m_triggerMaskTechTrig
trigger mask for technical triggers
L1TriggerMap m_algorithmAliasMap
map containing the physics algorithms (by alias)
void L1GtTriggerMenuLite::print ( std::ostream &  myCout,
int &  printVerbosity 
) const

print the trigger menu allow various verbosity levels

Definition at line 272 of file L1GtTriggerMenuLite.cc.

References m_algorithmAliasMap, m_algorithmMap, m_prescaleFactorsAlgoTrig, m_prescaleFactorsTechTrig, m_scaleDbKey, m_technicalTriggerMap, m_triggerMaskAlgoTrig, m_triggerMaskTechTrig, m_triggerMenuImplementation, m_triggerMenuInterface, m_triggerMenuName, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by operator<<().

272  {
273 
274  //
275 
276  switch (printVerbosity) {
277 
278  case 0: {
279 
280  size_t nrDefinedAlgo = m_algorithmMap.size();
281  size_t nrDefinedTech = m_technicalTriggerMap.size();
282 
283  // header for printing algorithms
284 
285  myCout << "\n ********** L1 Trigger Menu - printing ********** \n"
286  << "\nL1 Trigger Menu Interface: " << m_triggerMenuInterface
287  << "\nL1 Trigger Menu Name: " << m_triggerMenuName
288  << "\nL1 Trigger Menu Implementation: " << m_triggerMenuImplementation
289  << "\nAssociated Scale DB Key: " << m_scaleDbKey << "\n\n"
290  << "\nL1 Physics Algorithms: " << nrDefinedAlgo << " algorithms defined." << "\n\n"
291  << "Bit Number "
292  << std::right << std::setw(35) << "Algorithm Name" << " "
293  << std::right << std::setw(35) << "Algorithm Alias" << " "
294  << std::right << std::setw(12) << "Trigger Mask";
295  for (unsigned iSet = 0; iSet < m_prescaleFactorsAlgoTrig.size(); iSet++) {
296  myCout << std::right << std::setw(10) << "PF Set "
297  << std::right << std::setw(2) << iSet;
298  }
299 
300  myCout << std::endl;
301 
302 
303  for (CItL1Trig itTrig = m_algorithmMap.begin(); itTrig
304  != m_algorithmMap.end(); itTrig++) {
305 
306  const unsigned int bitNumber = itTrig->first;
307  const std::string& aName = itTrig->second;
308 
309  std::string aAlias;
310  CItL1Trig itAlias = m_algorithmAliasMap.find(bitNumber);
311  if (itAlias != m_algorithmAliasMap.end()) {
312  aAlias = itAlias->second;
313  }
314 
315  myCout << std::setw(6) << bitNumber << " "
316  << std::right << std::setw(35) << aName << " "
317  << std::right << std::setw(35) << aAlias << " "
318  << std::right << std::setw(12) << m_triggerMaskAlgoTrig[bitNumber];
319  for (unsigned iSet = 0; iSet < m_prescaleFactorsAlgoTrig.size(); iSet++) {
320  myCout << std::right << std::setw(12) << m_prescaleFactorsAlgoTrig[iSet][bitNumber];
321  }
322 
323  myCout << std::endl;
324  }
325 
326  myCout << "\nL1 Technical Triggers: " << nrDefinedTech
327  << " technical triggers defined." << "\n\n" << std::endl;
328  if (nrDefinedTech) {
329  myCout
330  << std::right << std::setw(6) << "Bit Number "
331  << std::right << std::setw(45) << " Technical trigger name " << " "
332  << std::right << std::setw(12) << "Trigger Mask";
333  for (unsigned iSet = 0; iSet < m_prescaleFactorsTechTrig.size(); iSet++) {
334  myCout << std::right << std::setw(10) << "PF Set "
335  << std::right << std::setw(2) << iSet;
336  }
337 
338  myCout << std::endl;
339  }
340 
341  for (CItL1Trig itTrig = m_technicalTriggerMap.begin(); itTrig
342  != m_technicalTriggerMap.end(); itTrig++) {
343 
344  unsigned int bitNumber = itTrig->first;
345  std::string aName = itTrig->second;
346 
347  myCout << std::setw(6) << bitNumber << " "
348  << std::right << std::setw(45) << aName
349  << std::right << std::setw(12) << m_triggerMaskTechTrig[bitNumber];
350  for (unsigned iSet = 0; iSet < m_prescaleFactorsTechTrig.size(); iSet++) {
351  myCout << std::right << std::setw(12) << m_prescaleFactorsTechTrig[iSet][bitNumber];
352  }
353 
354  myCout << std::endl;
355 
356  }
357 
358 
359 
360  }
361  break;
362  default: {
363  myCout << "\n ********** L1 Trigger Menu - printing ********** \n\n"
364  << "Verbosity level: " << printVerbosity << " not implemented.\n\n"
365  << std::endl;
366  }
367  break;
368  }
369 
370 }
L1TriggerMap m_algorithmMap
map containing the physics algorithms (by name)
std::string m_triggerMenuImplementation
std::string m_scaleDbKey
menu associated scale key
L1TriggerMap m_technicalTriggerMap
map containing the technical triggers
std::vector< unsigned int > m_triggerMaskAlgoTrig
trigger mask for physics algorithms
std::vector< std::vector< int > > m_prescaleFactorsAlgoTrig
prescale factors
L1TriggerMap::const_iterator CItL1Trig
iterators through map containing the physics algorithms or the technical triggers ...
std::vector< std::vector< int > > m_prescaleFactorsTechTrig
std::string m_triggerMenuInterface
menu names
std::vector< unsigned int > m_triggerMaskTechTrig
trigger mask for technical triggers
L1TriggerMap m_algorithmAliasMap
map containing the physics algorithms (by alias)
void L1GtTriggerMenuLite::setGtAlgorithmAliasMap ( const L1TriggerMap algoMap)

Definition at line 230 of file L1GtTriggerMenuLite.cc.

References m_algorithmAliasMap.

230  {
231  m_algorithmAliasMap = algoMap;
232 }
L1TriggerMap m_algorithmAliasMap
map containing the physics algorithms (by alias)
void L1GtTriggerMenuLite::setGtAlgorithmMap ( const L1TriggerMap algoMap)

Definition at line 225 of file L1GtTriggerMenuLite.cc.

References m_algorithmMap.

225  {
226  m_algorithmMap = algoMap;
227 }
L1TriggerMap m_algorithmMap
map containing the physics algorithms (by name)
void L1GtTriggerMenuLite::setGtPrescaleFactorsAlgoTrig ( const std::vector< std::vector< int > > &  factorValue)

Definition at line 257 of file L1GtTriggerMenuLite.cc.

References m_prescaleFactorsAlgoTrig.

258  {
259 
260  m_prescaleFactorsAlgoTrig = factorValue;
261 
262 }
std::vector< std::vector< int > > m_prescaleFactorsAlgoTrig
prescale factors
void L1GtTriggerMenuLite::setGtPrescaleFactorsTechTrig ( const std::vector< std::vector< int > > &  factorValue)

Definition at line 264 of file L1GtTriggerMenuLite.cc.

References m_prescaleFactorsTechTrig.

265  {
266 
267  m_prescaleFactorsTechTrig = factorValue;
268 
269 }
std::vector< std::vector< int > > m_prescaleFactorsTechTrig
void L1GtTriggerMenuLite::setGtScaleDbKey ( const std::string &  scaleKey)

Definition at line 220 of file L1GtTriggerMenuLite.cc.

References m_scaleDbKey.

220  {
221  m_scaleDbKey = scaleKey;
222 }
std::string m_scaleDbKey
menu associated scale key
void L1GtTriggerMenuLite::setGtTechnicalTriggerMap ( const L1TriggerMap ttMap)

Definition at line 235 of file L1GtTriggerMenuLite.cc.

References m_technicalTriggerMap.

235  {
236  m_technicalTriggerMap = ttMap;
237 }
L1TriggerMap m_technicalTriggerMap
map containing the technical triggers
void L1GtTriggerMenuLite::setGtTriggerMaskAlgoTrig ( const std::vector< unsigned int > &  maskValue)

set the trigger mask for physics algorithms

Definition at line 240 of file L1GtTriggerMenuLite.cc.

References m_triggerMaskAlgoTrig.

241  {
242 
243  m_triggerMaskAlgoTrig = maskValue;
244 
245 }
std::vector< unsigned int > m_triggerMaskAlgoTrig
trigger mask for physics algorithms
void L1GtTriggerMenuLite::setGtTriggerMaskTechTrig ( const std::vector< unsigned int > &  maskValue)

set the trigger mask for technical triggers

Definition at line 248 of file L1GtTriggerMenuLite.cc.

References m_triggerMaskTechTrig.

249 {
250 
251  m_triggerMaskTechTrig = maskValue;
252 
253 }
std::vector< unsigned int > m_triggerMaskTechTrig
trigger mask for technical triggers
void L1GtTriggerMenuLite::setGtTriggerMenuImplementation ( const std::string &  menuImplementation)

Definition at line 214 of file L1GtTriggerMenuLite.cc.

References m_triggerMenuImplementation.

215  {
216  m_triggerMenuImplementation = menuImplementation;
217 }
std::string m_triggerMenuImplementation
void L1GtTriggerMenuLite::setGtTriggerMenuInterface ( const std::string &  menuInterface)

Definition at line 205 of file L1GtTriggerMenuLite.cc.

References m_triggerMenuInterface.

206  {
207  m_triggerMenuInterface = menuInterface;
208 }
std::string m_triggerMenuInterface
menu names
void L1GtTriggerMenuLite::setGtTriggerMenuName ( const std::string &  menuName)

Definition at line 210 of file L1GtTriggerMenuLite.cc.

References m_triggerMenuName.

210  {
211  m_triggerMenuName = menuName;
212 }

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  streamRec,
const L1GtTriggerMenuLite result 
)
friend

output stream operator

Definition at line 373 of file L1GtTriggerMenuLite.cc.

374  {
375  int verbosityLevel = 0;
376 
377  result.print(streamRec, verbosityLevel);
378  return streamRec;
379 
380 }
void print(std::ostream &, int &) const

Member Data Documentation

L1TriggerMap L1GtTriggerMenuLite::m_algorithmAliasMap
private
L1TriggerMap L1GtTriggerMenuLite::m_algorithmMap
private
std::vector<std::vector<int> > L1GtTriggerMenuLite::m_prescaleFactorsAlgoTrig
private
std::vector<std::vector<int> > L1GtTriggerMenuLite::m_prescaleFactorsTechTrig
private
std::string L1GtTriggerMenuLite::m_scaleDbKey
private

menu associated scale key

Definition at line 200 of file L1GtTriggerMenuLite.h.

Referenced by gtScaleDbKey(), L1GtTriggerMenuLite(), operator=(), operator==(), print(), and setGtScaleDbKey().

L1TriggerMap L1GtTriggerMenuLite::m_technicalTriggerMap
private
std::vector<unsigned int> L1GtTriggerMenuLite::m_triggerMaskAlgoTrig
private

trigger mask for physics algorithms

Definition at line 212 of file L1GtTriggerMenuLite.h.

Referenced by gtTriggerMaskAlgoTrig(), L1GtTriggerMenuLite(), operator=(), operator==(), print(), and setGtTriggerMaskAlgoTrig().

std::vector<unsigned int> L1GtTriggerMenuLite::m_triggerMaskTechTrig
private

trigger mask for technical triggers

Definition at line 215 of file L1GtTriggerMenuLite.h.

Referenced by gtTriggerMaskTechTrig(), L1GtTriggerMenuLite(), operator=(), operator==(), print(), and setGtTriggerMaskTechTrig().

std::string L1GtTriggerMenuLite::m_triggerMenuImplementation
private
std::string L1GtTriggerMenuLite::m_triggerMenuInterface
private
std::string L1GtTriggerMenuLite::m_triggerMenuName
private