1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
|
#ifndef CondFormats_L1TObjects_L1GtTriggerMenu_h
#define CondFormats_L1TObjects_L1GtTriggerMenu_h
/**
* \class L1GtTriggerMenu
*
*
* Description: L1 trigger menu.
*
* Implementation:
* <TODO: enter implementation details>
*
* \author: Vasile Mihai Ghete - HEPHY Vienna
*
* $Date$
* $Revision$
*
*/
// system include files
#include "CondFormats/Serialization/interface/Serializable.h"
#include <string>
#include <vector>
#include <map>
#include <iosfwd>
// user include files
#include "CondFormats/L1TObjects/interface/L1GtTriggerMenuFwd.h"
#include "CondFormats/L1TObjects/interface/L1GtMuonTemplate.h"
#include "CondFormats/L1TObjects/interface/L1GtCaloTemplate.h"
#include "CondFormats/L1TObjects/interface/L1GtEnergySumTemplate.h"
#include "CondFormats/L1TObjects/interface/L1GtJetCountsTemplate.h"
#include "CondFormats/L1TObjects/interface/L1GtCastorTemplate.h"
#include "CondFormats/L1TObjects/interface/L1GtHfBitCountsTemplate.h"
#include "CondFormats/L1TObjects/interface/L1GtHfRingEtSumsTemplate.h"
#include "CondFormats/L1TObjects/interface/L1GtCorrelationTemplate.h"
#include "CondFormats/L1TObjects/interface/L1GtBptxTemplate.h"
#include "CondFormats/L1TObjects/interface/L1GtExternalTemplate.h"
// forward declarations
class L1GtCondition;
class L1GtAlgorithm;
// class declaration
class L1GtTriggerMenu {
public:
// constructor
L1GtTriggerMenu();
L1GtTriggerMenu(const std::string&,
const unsigned int numberConditionChips,
const std::vector<std::vector<L1GtMuonTemplate> >&,
const std::vector<std::vector<L1GtCaloTemplate> >&,
const std::vector<std::vector<L1GtEnergySumTemplate> >&,
const std::vector<std::vector<L1GtJetCountsTemplate> >&,
const std::vector<std::vector<L1GtCastorTemplate> >&,
const std::vector<std::vector<L1GtHfBitCountsTemplate> >&,
const std::vector<std::vector<L1GtHfRingEtSumsTemplate> >&,
const std::vector<std::vector<L1GtBptxTemplate> >&,
const std::vector<std::vector<L1GtExternalTemplate> >&,
const std::vector<std::vector<L1GtCorrelationTemplate> >&,
const std::vector<std::vector<L1GtMuonTemplate> >&,
const std::vector<std::vector<L1GtCaloTemplate> >&,
const std::vector<std::vector<L1GtEnergySumTemplate> >&);
// copy constructor
L1GtTriggerMenu(const L1GtTriggerMenu&);
// destructor
virtual ~L1GtTriggerMenu();
// assignment operator
L1GtTriggerMenu& operator=(const L1GtTriggerMenu&);
public:
/// get / set / build the condition maps
inline const std::vector<ConditionMap>& gtConditionMap() const { return m_conditionMap; }
void setGtConditionMap(const std::vector<ConditionMap>&);
void buildGtConditionMap();
/// get / set the trigger menu names
inline const std::string& gtTriggerMenuInterface() const { return m_triggerMenuInterface; }
void setGtTriggerMenuInterface(const std::string&);
//
inline const std::string& gtTriggerMenuName() const { return m_triggerMenuName; }
void setGtTriggerMenuName(const std::string&);
//
inline const std::string& gtTriggerMenuImplementation() const { return m_triggerMenuImplementation; }
void setGtTriggerMenuImplementation(const std::string&);
/// menu associated scale key
inline const std::string& gtScaleDbKey() const { return m_scaleDbKey; }
void setGtScaleDbKey(const std::string&);
/// get / set the vectors containing the conditions
inline const std::vector<std::vector<L1GtMuonTemplate> >& vecMuonTemplate() const { return m_vecMuonTemplate; }
void setVecMuonTemplate(const std::vector<std::vector<L1GtMuonTemplate> >&);
//
inline const std::vector<std::vector<L1GtCaloTemplate> >& vecCaloTemplate() const { return m_vecCaloTemplate; }
void setVecCaloTemplate(const std::vector<std::vector<L1GtCaloTemplate> >&);
//
inline const std::vector<std::vector<L1GtEnergySumTemplate> >& vecEnergySumTemplate() const {
return m_vecEnergySumTemplate;
}
void setVecEnergySumTemplate(const std::vector<std::vector<L1GtEnergySumTemplate> >&);
//
inline const std::vector<std::vector<L1GtJetCountsTemplate> >& vecJetCountsTemplate() const {
return m_vecJetCountsTemplate;
}
void setVecJetCountsTemplate(const std::vector<std::vector<L1GtJetCountsTemplate> >&);
//
inline const std::vector<std::vector<L1GtCastorTemplate> >& vecCastorTemplate() const { return m_vecCastorTemplate; }
void setVecCastorTemplate(const std::vector<std::vector<L1GtCastorTemplate> >&);
//
inline const std::vector<std::vector<L1GtHfBitCountsTemplate> >& vecHfBitCountsTemplate() const {
return m_vecHfBitCountsTemplate;
}
void setVecHfBitCountsTemplate(const std::vector<std::vector<L1GtHfBitCountsTemplate> >&);
//
inline const std::vector<std::vector<L1GtHfRingEtSumsTemplate> >& vecHfRingEtSumsTemplate() const {
return m_vecHfRingEtSumsTemplate;
}
void setVecHfRingEtSumsTemplate(const std::vector<std::vector<L1GtHfRingEtSumsTemplate> >&);
//
inline const std::vector<std::vector<L1GtBptxTemplate> >& vecBptxTemplate() const { return m_vecBptxTemplate; }
void setVecBptxTemplate(const std::vector<std::vector<L1GtBptxTemplate> >&);
//
inline const std::vector<std::vector<L1GtExternalTemplate> >& vecExternalTemplate() const {
return m_vecExternalTemplate;
}
void setVecExternalTemplate(const std::vector<std::vector<L1GtExternalTemplate> >&);
//
inline const std::vector<std::vector<L1GtCorrelationTemplate> >& vecCorrelationTemplate() const {
return m_vecCorrelationTemplate;
}
void setVecCorrelationTemplate(const std::vector<std::vector<L1GtCorrelationTemplate> >&);
//
inline const std::vector<std::vector<L1GtMuonTemplate> >& corMuonTemplate() const { return m_corMuonTemplate; }
void setCorMuonTemplate(const std::vector<std::vector<L1GtMuonTemplate> >&);
//
inline const std::vector<std::vector<L1GtCaloTemplate> >& corCaloTemplate() const { return m_corCaloTemplate; }
void setCorCaloTemplate(const std::vector<std::vector<L1GtCaloTemplate> >&);
// get / set the vectors containing the conditions for correlation templates
//
inline const std::vector<std::vector<L1GtEnergySumTemplate> >& corEnergySumTemplate() const {
return m_corEnergySumTemplate;
}
void setCorEnergySumTemplate(const std::vector<std::vector<L1GtEnergySumTemplate> >&);
/// get / set the algorithm map (by name)
inline const AlgorithmMap& gtAlgorithmMap() const { return m_algorithmMap; }
void setGtAlgorithmMap(const AlgorithmMap&);
/// get / set the algorithm map (by alias)
inline const AlgorithmMap& gtAlgorithmAliasMap() const { return m_algorithmAliasMap; }
void setGtAlgorithmAliasMap(const AlgorithmMap&);
/// get / set the technical trigger map
inline const AlgorithmMap& gtTechnicalTriggerMap() const { return m_technicalTriggerMap; }
void setGtTechnicalTriggerMap(const AlgorithmMap&);
/// print the trigger menu
/// allow various verbosity levels
void print(std::ostream&, int&) const;
public:
/// get the result for algorithm with name algName
/// use directly the format of decisionWord (no typedef)
const bool gtAlgorithmResult(const std::string& algName, const std::vector<bool>& decWord) const;
private:
/// map containing the conditions (per condition chip) - transient
std::vector<ConditionMap> m_conditionMap COND_TRANSIENT;
private:
/// menu names
std::string m_triggerMenuInterface;
std::string m_triggerMenuName;
std::string m_triggerMenuImplementation;
/// menu associated scale key
std::string m_scaleDbKey;
/// vectors containing the conditions
/// explicit, due to persistency...
std::vector<std::vector<L1GtMuonTemplate> > m_vecMuonTemplate;
std::vector<std::vector<L1GtCaloTemplate> > m_vecCaloTemplate;
std::vector<std::vector<L1GtEnergySumTemplate> > m_vecEnergySumTemplate;
std::vector<std::vector<L1GtJetCountsTemplate> > m_vecJetCountsTemplate;
std::vector<std::vector<L1GtCastorTemplate> > m_vecCastorTemplate;
std::vector<std::vector<L1GtHfBitCountsTemplate> > m_vecHfBitCountsTemplate;
std::vector<std::vector<L1GtHfRingEtSumsTemplate> > m_vecHfRingEtSumsTemplate;
std::vector<std::vector<L1GtBptxTemplate> > m_vecBptxTemplate;
std::vector<std::vector<L1GtExternalTemplate> > m_vecExternalTemplate;
std::vector<std::vector<L1GtCorrelationTemplate> > m_vecCorrelationTemplate;
std::vector<std::vector<L1GtMuonTemplate> > m_corMuonTemplate;
std::vector<std::vector<L1GtCaloTemplate> > m_corCaloTemplate;
std::vector<std::vector<L1GtEnergySumTemplate> > m_corEnergySumTemplate;
/// map containing the physics algorithms (by name)
AlgorithmMap m_algorithmMap;
/// map containing the physics algorithms (by alias)
AlgorithmMap m_algorithmAliasMap;
/// map containing the technical triggers
AlgorithmMap m_technicalTriggerMap;
COND_SERIALIZABLE;
};
#endif /*CondFormats_L1TObjects_L1GtTriggerMenu_h*/
|