CMS 3D CMS Logo

L1GtTriggerMenu.h
Go to the documentation of this file.
1 #ifndef CondFormats_L1TObjects_L1GtTriggerMenu_h
2 #define CondFormats_L1TObjects_L1GtTriggerMenu_h
3 
20 // system include files
22 
23 #include <string>
24 #include <vector>
25 #include <map>
26 
27 #include <iosfwd>
28 
29 // user include files
31 
42 
43 // forward declarations
44 class L1GtCondition;
45 class L1GtAlgorithm;
46 
47 // class declaration
49 public:
50  // constructor
52 
54  const unsigned int numberConditionChips,
55  const std::vector<std::vector<L1GtMuonTemplate> >&,
56  const std::vector<std::vector<L1GtCaloTemplate> >&,
57  const std::vector<std::vector<L1GtEnergySumTemplate> >&,
58  const std::vector<std::vector<L1GtJetCountsTemplate> >&,
59  const std::vector<std::vector<L1GtCastorTemplate> >&,
60  const std::vector<std::vector<L1GtHfBitCountsTemplate> >&,
61  const std::vector<std::vector<L1GtHfRingEtSumsTemplate> >&,
62  const std::vector<std::vector<L1GtBptxTemplate> >&,
63  const std::vector<std::vector<L1GtExternalTemplate> >&,
64  const std::vector<std::vector<L1GtCorrelationTemplate> >&,
65  const std::vector<std::vector<L1GtMuonTemplate> >&,
66  const std::vector<std::vector<L1GtCaloTemplate> >&,
67  const std::vector<std::vector<L1GtEnergySumTemplate> >&);
68 
69  // copy constructor
71 
72  // destructor
73  virtual ~L1GtTriggerMenu();
74 
75  // assignment operator
77 
78 public:
80  inline const std::vector<ConditionMap>& gtConditionMap() const { return m_conditionMap; }
81 
82  void setGtConditionMap(const std::vector<ConditionMap>&);
83  void buildGtConditionMap();
84 
86  inline const std::string& gtTriggerMenuInterface() const { return m_triggerMenuInterface; }
87 
89 
90  //
91  inline const std::string& gtTriggerMenuName() const { return m_triggerMenuName; }
92 
93  void setGtTriggerMenuName(const std::string&);
94 
95  //
97 
99 
101  inline const std::string& gtScaleDbKey() const { return m_scaleDbKey; }
102 
103  void setGtScaleDbKey(const std::string&);
104 
106  inline const std::vector<std::vector<L1GtMuonTemplate> >& vecMuonTemplate() const { return m_vecMuonTemplate; }
107 
108  void setVecMuonTemplate(const std::vector<std::vector<L1GtMuonTemplate> >&);
109 
110  //
111  inline const std::vector<std::vector<L1GtCaloTemplate> >& vecCaloTemplate() const { return m_vecCaloTemplate; }
112 
113  void setVecCaloTemplate(const std::vector<std::vector<L1GtCaloTemplate> >&);
114 
115  //
116  inline const std::vector<std::vector<L1GtEnergySumTemplate> >& vecEnergySumTemplate() const {
117  return m_vecEnergySumTemplate;
118  }
119 
120  void setVecEnergySumTemplate(const std::vector<std::vector<L1GtEnergySumTemplate> >&);
121 
122  //
123  inline const std::vector<std::vector<L1GtJetCountsTemplate> >& vecJetCountsTemplate() const {
124  return m_vecJetCountsTemplate;
125  }
126 
127  void setVecJetCountsTemplate(const std::vector<std::vector<L1GtJetCountsTemplate> >&);
128 
129  //
130  inline const std::vector<std::vector<L1GtCastorTemplate> >& vecCastorTemplate() const { return m_vecCastorTemplate; }
131 
132  void setVecCastorTemplate(const std::vector<std::vector<L1GtCastorTemplate> >&);
133 
134  //
135  inline const std::vector<std::vector<L1GtHfBitCountsTemplate> >& vecHfBitCountsTemplate() const {
137  }
138 
139  void setVecHfBitCountsTemplate(const std::vector<std::vector<L1GtHfBitCountsTemplate> >&);
140 
141  //
142  inline const std::vector<std::vector<L1GtHfRingEtSumsTemplate> >& vecHfRingEtSumsTemplate() const {
144  }
145 
146  void setVecHfRingEtSumsTemplate(const std::vector<std::vector<L1GtHfRingEtSumsTemplate> >&);
147 
148  //
149  inline const std::vector<std::vector<L1GtBptxTemplate> >& vecBptxTemplate() const { return m_vecBptxTemplate; }
150 
151  void setVecBptxTemplate(const std::vector<std::vector<L1GtBptxTemplate> >&);
152 
153  //
154 
155  inline const std::vector<std::vector<L1GtExternalTemplate> >& vecExternalTemplate() const {
156  return m_vecExternalTemplate;
157  }
158 
159  void setVecExternalTemplate(const std::vector<std::vector<L1GtExternalTemplate> >&);
160 
161  //
162  inline const std::vector<std::vector<L1GtCorrelationTemplate> >& vecCorrelationTemplate() const {
164  }
165 
166  void setVecCorrelationTemplate(const std::vector<std::vector<L1GtCorrelationTemplate> >&);
167 
168  //
169  inline const std::vector<std::vector<L1GtMuonTemplate> >& corMuonTemplate() const { return m_corMuonTemplate; }
170 
171  void setCorMuonTemplate(const std::vector<std::vector<L1GtMuonTemplate> >&);
172 
173  //
174  inline const std::vector<std::vector<L1GtCaloTemplate> >& corCaloTemplate() const { return m_corCaloTemplate; }
175 
176  void setCorCaloTemplate(const std::vector<std::vector<L1GtCaloTemplate> >&);
177 
178  // get / set the vectors containing the conditions for correlation templates
179  //
180  inline const std::vector<std::vector<L1GtEnergySumTemplate> >& corEnergySumTemplate() const {
181  return m_corEnergySumTemplate;
182  }
183 
184  void setCorEnergySumTemplate(const std::vector<std::vector<L1GtEnergySumTemplate> >&);
185 
187  inline const AlgorithmMap& gtAlgorithmMap() const { return m_algorithmMap; }
188 
189  void setGtAlgorithmMap(const AlgorithmMap&);
190 
192  inline const AlgorithmMap& gtAlgorithmAliasMap() const { return m_algorithmAliasMap; }
193 
195 
197  inline const AlgorithmMap& gtTechnicalTriggerMap() const { return m_technicalTriggerMap; }
198 
200 
203  void print(std::ostream&, int&) const;
204 
205 public:
208  const bool gtAlgorithmResult(const std::string& algName, const std::vector<bool>& decWord) const;
209 
210 private:
212  std::vector<ConditionMap> m_conditionMap COND_TRANSIENT;
213 
214 private:
219 
222 
225  std::vector<std::vector<L1GtMuonTemplate> > m_vecMuonTemplate;
226  std::vector<std::vector<L1GtCaloTemplate> > m_vecCaloTemplate;
227  std::vector<std::vector<L1GtEnergySumTemplate> > m_vecEnergySumTemplate;
228  std::vector<std::vector<L1GtJetCountsTemplate> > m_vecJetCountsTemplate;
229  std::vector<std::vector<L1GtCastorTemplate> > m_vecCastorTemplate;
230  std::vector<std::vector<L1GtHfBitCountsTemplate> > m_vecHfBitCountsTemplate;
231  std::vector<std::vector<L1GtHfRingEtSumsTemplate> > m_vecHfRingEtSumsTemplate;
232  std::vector<std::vector<L1GtBptxTemplate> > m_vecBptxTemplate;
233  std::vector<std::vector<L1GtExternalTemplate> > m_vecExternalTemplate;
234 
235  std::vector<std::vector<L1GtCorrelationTemplate> > m_vecCorrelationTemplate;
236  std::vector<std::vector<L1GtMuonTemplate> > m_corMuonTemplate;
237  std::vector<std::vector<L1GtCaloTemplate> > m_corCaloTemplate;
238  std::vector<std::vector<L1GtEnergySumTemplate> > m_corEnergySumTemplate;
239 
242 
245 
248 
250 };
251 
252 #endif /*CondFormats_L1TObjects_L1GtTriggerMenu_h*/
std::vector< std::vector< L1GtBptxTemplate > > m_vecBptxTemplate
const std::string & gtTriggerMenuName() const
AlgorithmMap m_algorithmAliasMap
map containing the physics algorithms (by alias)
std::vector< std::vector< L1GtCaloTemplate > > m_vecCaloTemplate
void setGtScaleDbKey(const std::string &)
std::vector< std::vector< L1GtMuonTemplate > > m_vecMuonTemplate
std::vector< std::vector< L1GtHfBitCountsTemplate > > m_vecHfBitCountsTemplate
const std::vector< std::vector< L1GtHfBitCountsTemplate > > & vecHfBitCountsTemplate() const
const std::vector< std::vector< L1GtExternalTemplate > > & vecExternalTemplate() const
L1GtTriggerMenu & operator=(const L1GtTriggerMenu &)
void setGtAlgorithmMap(const AlgorithmMap &)
std::vector< std::vector< L1GtMuonTemplate > > m_corMuonTemplate
std::map< std::string, L1GtAlgorithm > AlgorithmMap
map containing the algorithms
void setCorCaloTemplate(const std::vector< std::vector< L1GtCaloTemplate > > &)
const std::vector< std::vector< L1GtCorrelationTemplate > > & vecCorrelationTemplate() const
void setGtTechnicalTriggerMap(const AlgorithmMap &)
void setGtTriggerMenuInterface(const std::string &)
const std::vector< std::vector< L1GtJetCountsTemplate > > & vecJetCountsTemplate() const
const std::vector< std::vector< L1GtBptxTemplate > > & vecBptxTemplate() const
std::vector< ConditionMap > m_conditionMap
map containing the conditions (per condition chip) - transient
void setVecHfBitCountsTemplate(const std::vector< std::vector< L1GtHfBitCountsTemplate > > &)
const std::string & gtTriggerMenuImplementation() const
void setVecCastorTemplate(const std::vector< std::vector< L1GtCastorTemplate > > &)
const std::vector< ConditionMap > & gtConditionMap() const
get / set / build the condition maps
void setVecCaloTemplate(const std::vector< std::vector< L1GtCaloTemplate > > &)
void setGtAlgorithmAliasMap(const AlgorithmMap &)
const std::vector< std::vector< L1GtEnergySumTemplate > > & corEnergySumTemplate() const
void setVecBptxTemplate(const std::vector< std::vector< L1GtBptxTemplate > > &)
void setGtConditionMap(const std::vector< ConditionMap > &)
std::vector< std::vector< L1GtJetCountsTemplate > > m_vecJetCountsTemplate
void setVecCorrelationTemplate(const std::vector< std::vector< L1GtCorrelationTemplate > > &)
std::vector< std::vector< L1GtCastorTemplate > > m_vecCastorTemplate
std::string m_scaleDbKey
menu associated scale key
void print(std::ostream &, int &) const
void setGtTriggerMenuImplementation(const std::string &)
void setVecJetCountsTemplate(const std::vector< std::vector< L1GtJetCountsTemplate > > &)
const bool gtAlgorithmResult(const std::string &algName, const std::vector< bool > &decWord) const
void setCorMuonTemplate(const std::vector< std::vector< L1GtMuonTemplate > > &)
const std::string & gtScaleDbKey() const
menu associated scale key
std::string m_triggerMenuName
void setCorEnergySumTemplate(const std::vector< std::vector< L1GtEnergySumTemplate > > &)
void setVecMuonTemplate(const std::vector< std::vector< L1GtMuonTemplate > > &)
void setVecEnergySumTemplate(const std::vector< std::vector< L1GtEnergySumTemplate > > &)
virtual ~L1GtTriggerMenu()
const std::vector< std::vector< L1GtMuonTemplate > > & corMuonTemplate() const
const std::vector< std::vector< L1GtCaloTemplate > > & corCaloTemplate() const
std::vector< std::vector< L1GtCaloTemplate > > m_corCaloTemplate
std::vector< std::vector< L1GtEnergySumTemplate > > m_vecEnergySumTemplate
const std::string & gtTriggerMenuInterface() const
get / set the trigger menu names
#define COND_TRANSIENT
Definition: Serializable.h:62
const std::vector< std::vector< L1GtCastorTemplate > > & vecCastorTemplate() const
void setGtTriggerMenuName(const std::string &)
std::vector< std::vector< L1GtExternalTemplate > > m_vecExternalTemplate
std::vector< std::vector< L1GtHfRingEtSumsTemplate > > m_vecHfRingEtSumsTemplate
std::vector< std::vector< L1GtEnergySumTemplate > > m_corEnergySumTemplate
const std::vector< std::vector< L1GtHfRingEtSumsTemplate > > & vecHfRingEtSumsTemplate() const
#define COND_SERIALIZABLE
Definition: Serializable.h:38
const std::vector< std::vector< L1GtCaloTemplate > > & vecCaloTemplate() const
const std::vector< std::vector< L1GtMuonTemplate > > & vecMuonTemplate() const
get / set the vectors containing the conditions
const AlgorithmMap & gtAlgorithmMap() const
get / set the algorithm map (by name)
AlgorithmMap m_technicalTriggerMap
map containing the technical triggers
const AlgorithmMap & gtTechnicalTriggerMap() const
get / set the technical trigger map
const AlgorithmMap & gtAlgorithmAliasMap() const
get / set the algorithm map (by alias)
std::vector< std::vector< L1GtCorrelationTemplate > > m_vecCorrelationTemplate
const std::vector< std::vector< L1GtEnergySumTemplate > > & vecEnergySumTemplate() const
std::string m_triggerMenuImplementation
void setVecExternalTemplate(const std::vector< std::vector< L1GtExternalTemplate > > &)
AlgorithmMap m_algorithmMap
map containing the physics algorithms (by name)
void setVecHfRingEtSumsTemplate(const std::vector< std::vector< L1GtHfRingEtSumsTemplate > > &)
std::string m_triggerMenuInterface
menu names