CMS 3D CMS Logo

L1GtTriggerMenuLite.h
Go to the documentation of this file.
1 #ifndef DataFormats_L1GlobalTrigger_L1GtTriggerMenuLite_h
2 #define DataFormats_L1GlobalTrigger_L1GtTriggerMenuLite_h
3 
27 // system include files
28 #include <string>
29 #include <vector>
30 #include <map>
31 
32 #include <iosfwd>
33 
34 // user include files
35 
36 // forward declarations
37 
38 // class declaration
40 public:
42  typedef std::map<unsigned int, std::string> L1TriggerMap;
43 
45  typedef L1TriggerMap::const_iterator CItL1Trig;
46  typedef L1TriggerMap::iterator ItL1Trig;
47 
48 public:
51 
53  const L1TriggerMap&,
54  const L1TriggerMap&,
55  const L1TriggerMap&,
56  const std::vector<unsigned int>&,
57  const std::vector<unsigned int>&,
58  const std::vector<std::vector<int> >&,
59  const std::vector<std::vector<int> >&);
60 
63 
64  // destructor
65  virtual ~L1GtTriggerMenuLite();
66 
69 
71  bool operator==(const L1GtTriggerMenuLite&) const;
72 
74  bool operator!=(const L1GtTriggerMenuLite&) const;
75 
77  bool isProductEqual(const L1GtTriggerMenuLite&) const;
78 
79 public:
81  inline const std::string& gtTriggerMenuInterface() const { return m_triggerMenuInterface; }
82 
84 
85  //
86  inline const std::string& gtTriggerMenuName() const { return m_triggerMenuName; }
87 
88  void setGtTriggerMenuName(const std::string&);
89 
90  //
92 
94 
96  inline const std::string& gtScaleDbKey() const { return m_scaleDbKey; }
97 
98  void setGtScaleDbKey(const std::string&);
99 
101  inline const L1TriggerMap& gtAlgorithmMap() const { return m_algorithmMap; }
102 
103  void setGtAlgorithmMap(const L1TriggerMap&);
104 
106  inline const L1TriggerMap& gtAlgorithmAliasMap() const { return m_algorithmAliasMap; }
107 
109 
111  inline const L1TriggerMap& gtTechnicalTriggerMap() const { return m_technicalTriggerMap; }
112 
114 
116  inline const std::vector<unsigned int>& gtTriggerMaskAlgoTrig() const { return m_triggerMaskAlgoTrig; }
117 
119  void setGtTriggerMaskAlgoTrig(const std::vector<unsigned int>&);
120 
122  inline const std::vector<unsigned int>& gtTriggerMaskTechTrig() const { return m_triggerMaskTechTrig; }
123 
125  void setGtTriggerMaskTechTrig(const std::vector<unsigned int>&);
126 
128  inline const std::vector<std::vector<int> >& gtPrescaleFactorsAlgoTrig() const { return m_prescaleFactorsAlgoTrig; }
129 
130  void setGtPrescaleFactorsAlgoTrig(const std::vector<std::vector<int> >&);
131 
132  inline const std::vector<std::vector<int> >& gtPrescaleFactorsTechTrig() const { return m_prescaleFactorsTechTrig; }
133 
134  void setGtPrescaleFactorsTechTrig(const std::vector<std::vector<int> >&);
135 
138  void print(std::ostream&, int&) const;
139 
141  friend std::ostream& operator<<(std::ostream&, const L1GtTriggerMenuLite&);
142 
143 public:
145  const std::string* gtAlgorithmAlias(const unsigned int bitNumber, int& errorCode) const;
146 
149  const std::string* gtAlgorithmName(const unsigned int bitNumber, int& errorCode) const;
150  const std::string* gtTechTrigName(const unsigned int bitNumber, int& errorCode) const;
151 
154  const unsigned int gtBitNumber(const std::string& trigName, int& errorCode) const;
155 
158  const bool gtTriggerResult(const std::string& trigName, const std::vector<bool>& decWord, int& errorCode) const;
159 
160 private:
165 
168 
171 
174 
177 
179  std::vector<unsigned int> m_triggerMaskAlgoTrig;
180 
182  std::vector<unsigned int> m_triggerMaskTechTrig;
183 
185  std::vector<std::vector<int> > m_prescaleFactorsAlgoTrig;
186  std::vector<std::vector<int> > m_prescaleFactorsTechTrig;
187 };
188 
189 #endif /*DataFormats_L1GlobalTrigger_L1GtTriggerMenuLite_h*/
L1GtTriggerMenuLite::gtPrescaleFactorsAlgoTrig
const std::vector< std::vector< int > > & gtPrescaleFactorsAlgoTrig() const
get the prescale factors by reference / set the prescale factors
Definition: L1GtTriggerMenuLite.h:128
L1GtTriggerMenuLite::gtTriggerMaskAlgoTrig
const std::vector< unsigned int > & gtTriggerMaskAlgoTrig() const
get the trigger mask for physics algorithms
Definition: L1GtTriggerMenuLite.h:116
L1GtTriggerMenuLite::gtScaleDbKey
const std::string & gtScaleDbKey() const
menu associated scale key
Definition: L1GtTriggerMenuLite.h:96
L1GtTriggerMenuLite::operator!=
bool operator!=(const L1GtTriggerMenuLite &) const
unequal operator
Definition: L1GtTriggerMenuLite.cc:174
L1GtTriggerMenuLite::ItL1Trig
L1TriggerMap::iterator ItL1Trig
Definition: L1GtTriggerMenuLite.h:46
L1GtTriggerMenuLite::gtAlgorithmName
const std::string * gtAlgorithmName(const unsigned int bitNumber, int &errorCode) const
Definition: L1GtTriggerMenuLite.cc:330
L1GtTriggerMenuLite::gtTriggerMenuInterface
const std::string & gtTriggerMenuInterface() const
get / set the trigger menu names
Definition: L1GtTriggerMenuLite.h:81
L1GtTriggerMenuLite::gtTriggerResult
const bool gtTriggerResult(const std::string &trigName, const std::vector< bool > &decWord, int &errorCode) const
Definition: L1GtTriggerMenuLite.cc:401
L1GtTriggerMenuLite::m_triggerMenuInterface
std::string m_triggerMenuInterface
menu names
Definition: L1GtTriggerMenuLite.h:162
L1GtTriggerMenuLite::setGtTriggerMenuInterface
void setGtTriggerMenuInterface(const std::string &)
Definition: L1GtTriggerMenuLite.cc:180
L1GtTriggerMenuLite::gtBitNumber
const unsigned int gtBitNumber(const std::string &trigName, int &errorCode) const
Definition: L1GtTriggerMenuLite.cc:364
L1GtTriggerMenuLite::CItL1Trig
L1TriggerMap::const_iterator CItL1Trig
iterators through map containing the physics algorithms or the technical triggers
Definition: L1GtTriggerMenuLite.h:45
L1GtTriggerMenuLite::gtTechTrigName
const std::string * gtTechTrigName(const unsigned int bitNumber, int &errorCode) const
Definition: L1GtTriggerMenuLite.cc:346
L1GtTriggerMenuLite::setGtAlgorithmAliasMap
void setGtAlgorithmAliasMap(const L1TriggerMap &)
Definition: L1GtTriggerMenuLite.cc:197
L1GtTriggerMenuLite::m_algorithmMap
L1TriggerMap m_algorithmMap
map containing the physics algorithms (by name)
Definition: L1GtTriggerMenuLite.h:170
L1GtTriggerMenuLite::setGtTriggerMaskTechTrig
void setGtTriggerMaskTechTrig(const std::vector< unsigned int > &)
set the trigger mask for technical triggers
Definition: L1GtTriggerMenuLite.cc:208
L1GtTriggerMenuLite::m_prescaleFactorsAlgoTrig
std::vector< std::vector< int > > m_prescaleFactorsAlgoTrig
prescale factors
Definition: L1GtTriggerMenuLite.h:185
L1GtTriggerMenuLite::gtTechnicalTriggerMap
const L1TriggerMap & gtTechnicalTriggerMap() const
get / set the technical trigger map
Definition: L1GtTriggerMenuLite.h:111
L1GtTriggerMenuLite::setGtPrescaleFactorsTechTrig
void setGtPrescaleFactorsTechTrig(const std::vector< std::vector< int > > &)
Definition: L1GtTriggerMenuLite.cc:217
L1GtTriggerMenuLite::setGtTechnicalTriggerMap
void setGtTechnicalTriggerMap(const L1TriggerMap &)
Definition: L1GtTriggerMenuLite.cc:200
L1GtTriggerMenuLite::m_triggerMenuImplementation
std::string m_triggerMenuImplementation
Definition: L1GtTriggerMenuLite.h:164
L1GtTriggerMenuLite::m_triggerMaskTechTrig
std::vector< unsigned int > m_triggerMaskTechTrig
trigger mask for technical triggers
Definition: L1GtTriggerMenuLite.h:182
L1GtTriggerMenuLite::setGtTriggerMenuName
void setGtTriggerMenuName(const std::string &)
Definition: L1GtTriggerMenuLite.cc:184
L1GtTriggerMenuLite::print
void print(std::ostream &, int &) const
Definition: L1GtTriggerMenuLite.cc:222
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EgHLTOffTrigSelection_cfi.trigName
trigName
Definition: EgHLTOffTrigSelection_cfi.py:8
L1GtTriggerMenuLite::setGtTriggerMaskAlgoTrig
void setGtTriggerMaskAlgoTrig(const std::vector< unsigned int > &)
set the trigger mask for physics algorithms
Definition: L1GtTriggerMenuLite.cc:203
L1GtTriggerMenuLite::setGtPrescaleFactorsAlgoTrig
void setGtPrescaleFactorsAlgoTrig(const std::vector< std::vector< int > > &)
Definition: L1GtTriggerMenuLite.cc:213
L1GtTriggerMenuLite::gtTriggerMenuImplementation
const std::string & gtTriggerMenuImplementation() const
Definition: L1GtTriggerMenuLite.h:91
L1GtTriggerMenuLite::gtTriggerMaskTechTrig
const std::vector< unsigned int > & gtTriggerMaskTechTrig() const
get the trigger mask for technical triggers
Definition: L1GtTriggerMenuLite.h:122
L1GtTriggerMenuLite::gtAlgorithmMap
const L1TriggerMap & gtAlgorithmMap() const
get / set the algorithm map (by name)
Definition: L1GtTriggerMenuLite.h:101
L1GtTriggerMenuLite::gtPrescaleFactorsTechTrig
const std::vector< std::vector< int > > & gtPrescaleFactorsTechTrig() const
Definition: L1GtTriggerMenuLite.h:132
L1GtTriggerMenuLite::setGtTriggerMenuImplementation
void setGtTriggerMenuImplementation(const std::string &)
Definition: L1GtTriggerMenuLite.cc:186
L1GtTriggerMenuLite::m_technicalTriggerMap
L1TriggerMap m_technicalTriggerMap
map containing the technical triggers
Definition: L1GtTriggerMenuLite.h:176
L1GtTriggerMenuLite::operator<<
friend std::ostream & operator<<(std::ostream &, const L1GtTriggerMenuLite &)
output stream operator
Definition: L1GtTriggerMenuLite.cc:304
L1GtTriggerMenuLite::m_triggerMenuName
std::string m_triggerMenuName
Definition: L1GtTriggerMenuLite.h:163
L1GtTriggerMenuLite
Definition: L1GtTriggerMenuLite.h:39
L1GtTriggerMenuLite::m_triggerMaskAlgoTrig
std::vector< unsigned int > m_triggerMaskAlgoTrig
trigger mask for physics algorithms
Definition: L1GtTriggerMenuLite.h:179
L1GtTriggerMenuLite::gtTriggerMenuName
const std::string & gtTriggerMenuName() const
Definition: L1GtTriggerMenuLite.h:86
L1GtTriggerMenuLite::isProductEqual
bool isProductEqual(const L1GtTriggerMenuLite &) const
merge rule: test on isProductEqual
Definition: L1GtTriggerMenuLite.cc:177
L1GtTriggerMenuLite::~L1GtTriggerMenuLite
virtual ~L1GtTriggerMenuLite()
Definition: L1GtTriggerMenuLite.cc:93
L1GtTriggerMenuLite::setGtScaleDbKey
void setGtScaleDbKey(const std::string &)
Definition: L1GtTriggerMenuLite.cc:191
L1GtTriggerMenuLite::m_prescaleFactorsTechTrig
std::vector< std::vector< int > > m_prescaleFactorsTechTrig
Definition: L1GtTriggerMenuLite.h:186
L1TBPTX_cfi.bitNumber
bitNumber
Definition: L1TBPTX_cfi.py:26
L1GtTriggerMenuLite::operator=
L1GtTriggerMenuLite & operator=(const L1GtTriggerMenuLite &)
assignment operator
Definition: L1GtTriggerMenuLite.cc:100
L1GtTriggerMenuLite::L1TriggerMap
std::map< unsigned int, std::string > L1TriggerMap
map containing the physics algorithms or the technical triggers
Definition: L1GtTriggerMenuLite.h:42
L1GtTriggerMenuLite::gtAlgorithmAlias
const std::string * gtAlgorithmAlias(const unsigned int bitNumber, int &errorCode) const
get the alias for a physics algorithm with a given bit number
Definition: L1GtTriggerMenuLite.cc:312
L1GtTriggerMenuLite::L1GtTriggerMenuLite
L1GtTriggerMenuLite()
constructor
Definition: L1GtTriggerMenuLite.cc:36
L1GtTriggerMenuLite::m_algorithmAliasMap
L1TriggerMap m_algorithmAliasMap
map containing the physics algorithms (by alias)
Definition: L1GtTriggerMenuLite.h:173
L1GtTriggerMenuLite::operator==
bool operator==(const L1GtTriggerMenuLite &) const
equal operator
Definition: L1GtTriggerMenuLite.cc:124
L1GtTriggerMenuLite::m_scaleDbKey
std::string m_scaleDbKey
menu associated scale key
Definition: L1GtTriggerMenuLite.h:167
L1GtTriggerMenuLite::setGtAlgorithmMap
void setGtAlgorithmMap(const L1TriggerMap &)
Definition: L1GtTriggerMenuLite.cc:194
L1GtTriggerMenuLite::gtAlgorithmAliasMap
const L1TriggerMap & gtAlgorithmAliasMap() const
get / set the algorithm map (by alias)
Definition: L1GtTriggerMenuLite.h:106