#include <TileCondToolMuID.h>
|
| | TileCondToolMuID (const std::string &type, const std::string &name, const IInterface *parent) |
| virtual | ~TileCondToolMuID () |
| virtual StatusCode | initialize () override |
| virtual StatusCode | finalize () override |
| void | getLowThreshold (Identifier &id, int &ros, int &module, int &index) const |
| void | getHighThreshold (Identifier &id, int &ros, int &module, int &index) const |
| float | getLowThresholdValue (Identifier id) const |
| float | getHighThresholdValue (Identifier id) const |
| ServiceHandle< StoreGateSvc > & | evtStore () |
| | The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
|
| const ServiceHandle< StoreGateSvc > & | detStore () const |
| | The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
|
| virtual StatusCode | sysInitialize () override |
| | Perform system initialization for an algorithm.
|
| virtual StatusCode | sysStart () override |
| | Handle START transition.
|
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| | Return this algorithm's input handles.
|
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| | Return this algorithm's output handles.
|
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
| void | updateVHKA (Gaudi::Details::PropertyBase &) |
| MsgStream & | msg () const |
| bool | msgLvl (const MSG::Level lvl) const |
Definition at line 21 of file TileCondToolMuID.h.
◆ StoreGateSvc_t
◆ TileCondToolMuID()
| TileCondToolMuID::TileCondToolMuID |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
◆ ~TileCondToolMuID()
| TileCondToolMuID::~TileCondToolMuID |
( |
| ) |
|
|
virtual |
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ detStore()
◆ evtStore()
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ finalize()
| StatusCode TileCondToolMuID::finalize |
( |
| ) |
|
|
overridevirtual |
◆ getHighThreshold()
| void TileCondToolMuID::getHighThreshold |
( |
Identifier & | id, |
|
|
int & | ros, |
|
|
int & | module, |
|
|
int & | index ) const |
Definition at line 172 of file TileCondToolMuID.cxx.
172 {
173
175 module = m_caloID->module(id);
176
178
181 }
182
185 }
186
189 }
190
192
193 }
194
196
199 }
200
203 }
204
207 }
208
210
211 }
212
214
217 }
218
221 }
222
225 }
226
228
229 }
230
232
235 }
236
239 }
240
242
243 }
244
246
249 }
250
253 }
254
257 }
258
260
261 }
262
264
267 }
268
271 }
272
274
275 }
276
277}
◆ getHighThresholdValue()
| float TileCondToolMuID::getHighThresholdValue |
( |
Identifier | id | ) |
const |
Definition at line 309 of file TileCondToolMuID.cxx.
309 {
310
314
316
318
319 SG::ReadCondHandle<TileCalibData<TileCalibDrawerFlt>> calibMuID(
m_calibMuIdKey);
320 int nValues = calibMuID->getCalibDrawer(drawerIdx)->getObjSizeUint32();
321
322 if (index >= nValues) {
323 ATH_MSG_ERROR(
"getHighThresholdValue: index out of range! -> ros/mod/num_values/ind "
324 << ros << " " << module << " " << nValues << " " << index );
325
326 return -999.;
327 } else {
328 ATH_MSG_DEBUG(
"getHighThresholdValue: ros/mod/drawer_ind/num_values/ind " << ros <<
" "
329 << module << " " << drawerIdx << " " << nValues << " " << index );
330
331 return calibMuID->getCalibDrawer(drawerIdx)->getData(0, 0, index);
332
333 }
334}
static unsigned int getDrawerIdx(unsigned int ros, unsigned int drawer)
Returns a drawer hash.
◆ getLowThreshold()
| void TileCondToolMuID::getLowThreshold |
( |
Identifier & | id, |
|
|
int & | ros, |
|
|
int & | module, |
|
|
int & | index ) const |
Definition at line 64 of file TileCondToolMuID.cxx.
64 {
65
66 module = m_caloID->module(id);
67
69
72 }
73
76 }
77
80 }
81
83
84 }
85
87
90 }
91
94 }
95
98 }
99
101
102 }
103
105
108 }
109
112 }
113
116 }
117
119
120 }
121
123
126 }
127
130 }
131
133
134 }
135
137
140 }
141
144 }
145
148 }
149
151
152 }
153
155
158 }
159
162 }
163
165
166 }
167
168}
◆ getLowThresholdValue()
| float TileCondToolMuID::getLowThresholdValue |
( |
Identifier | id | ) |
const |
Definition at line 281 of file TileCondToolMuID.cxx.
281 {
282
286
288
290
291 SG::ReadCondHandle<TileCalibData<TileCalibDrawerFlt>> calibMuID(
m_calibMuIdKey);
292 int nValues = calibMuID->getCalibDrawer(drawerIdx)->getObjSizeUint32();
293
294
295 if (index >= nValues) {
296 ATH_MSG_ERROR(
"getLowThresholdValue: index out of range! -> ros/mod/num_values/ind "
297 << ros << " " << module << " " << nValues << " " << index );
298 return -999.;
299 } else {
300 ATH_MSG_DEBUG(
"getLowThresholdValue: ros/mod/drawer_ind/num_values/ind " << ros <<
" "
301 << module << " " << drawerIdx << " " << nValues << " " << index );
302
303 return calibMuID->getCalibDrawer(drawerIdx)->getData(0, 0, index);
304 }
305}
◆ initialize()
| StatusCode TileCondToolMuID::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 42 of file TileCondToolMuID.cxx.
42 {
43
45
46
48
49
51
52 return StatusCode::SUCCESS;
53}
#define ATH_CHECK
Evaluate an expression and check for errors.
const ServiceHandle< StoreGateSvc > & detStore() const
retrieve(aClass, aKey=None)
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ interfaceID()
| const InterfaceID & TileCondToolMuID::interfaceID |
( |
| ) |
|
|
static |
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< AlgTool >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
Definition at line 380 of file AthCommonDataStore.h.
381 {
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
◆ renounceArray()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ m_calibMuIdKey
Initial value:{this,
"TileMuID", "TileMuID", "Input Tile MuID constants"}
Definition at line 41 of file TileCondToolMuID.h.
41 {this,
42 "TileMuID", "TileMuID", "Input Tile MuID constants"};
◆ m_caloID
◆ m_detStore
◆ m_evtStore
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: