ATLAS Offline Software
Loading...
Searching...
No Matches
TileRawChannelToTTL1 Class Reference

#include <TileRawChannelToTTL1.h>

Inheritance diagram for TileRawChannelToTTL1:
Collaboration diagram for TileRawChannelToTTL1:

Public Member Functions

 TileRawChannelToTTL1 (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~TileRawChannelToTTL1 ()
StatusCode initialize ()
StatusCode execute ()
StatusCode finalize ()
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
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 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

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
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)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

SG::ReadHandleKey< TileRawChannelContainerm_rawChannelContainerKey
SG::WriteHandleKey< TileTTL1Containerm_ttl1ContainerKey
std::string m_infoName
bool m_constantTTL1shape
const TileIDm_tileID
const TileHWIDm_tileHWID
const TileInfom_tileInfo
const CaloLVL1_IDm_TT_ID
std::vector< double > m_TTL1Shape
double m_phase
int m_nSamp
int m_iTrig
ToolHandle< ITileBadChanToolm_tileBadChanTool
 Tile Bad Channel tool.
ToolHandle< TileCondToolEmscalem_tileToolEmscale
 main Tile Calibration tool
DataObjIDColl m_extendedExtraObjects
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Definition at line 54 of file TileRawChannelToTTL1.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TileRawChannelToTTL1()

TileRawChannelToTTL1::TileRawChannelToTTL1 ( const std::string & name,
ISvcLocator * pSvcLocator )

Definition at line 64 of file TileRawChannelToTTL1.cxx.

65 : AthAlgorithm(name, pSvcLocator)
66 , m_tileID(0)
67 , m_tileHWID(0)
68 , m_tileInfo(0)
69 , m_TT_ID(0)
70 , m_phase(0)
71 , m_nSamp(0)
72 , m_iTrig(0)
73 , m_tileBadChanTool("TileBadChanTool")
74 , m_tileToolEmscale("TileCondToolEmscale")
75{
76 declareProperty("TileInfoName", m_infoName = "TileInfo");
77 declareProperty("TileConstantTTL1Shape", m_constantTTL1shape = true);
78 declareProperty("TileBadChanTool", m_tileBadChanTool);
79 declareProperty("TileCondToolEmscale", m_tileToolEmscale);
80}
AthAlgorithm()
Default constructor:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ToolHandle< ITileBadChanTool > m_tileBadChanTool
Tile Bad Channel tool.
const TileInfo * m_tileInfo
const TileHWID * m_tileHWID
ToolHandle< TileCondToolEmscale > m_tileToolEmscale
main Tile Calibration tool
const CaloLVL1_ID * m_TT_ID

◆ ~TileRawChannelToTTL1()

TileRawChannelToTTL1::~TileRawChannelToTTL1 ( )
virtual

Definition at line 82 of file TileRawChannelToTTL1.cxx.

82 {
83}

Member Function Documentation

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

StatusCode TileRawChannelToTTL1::execute ( )

Definition at line 128 of file TileRawChannelToTTL1.cxx.

128 {
129
130 ATH_MSG_DEBUG( "Executing TileRawChannelToTTL1");
131
132 /*......................................................*/
133 // Step 2: Get all global parameters that will be needed for processing.
134 /* Get TileNoise flag from TileInfo (true => generate noise in TileDigits) */
135 bool tileNoise = m_tileInfo->TileNoise();
136 /* Get TileZeroSuppress flag from TileInfo
137 (true => apply threshold to Digits) */
138 bool tileThresh = m_tileInfo->TileZeroSuppress();
139 // declare array for random number generation for noise in samples.
140 double Rndm[16]; // Can't use variable size array
141 // declare TTL1 parameters to be obtained from TileInfo
142 float ttL1Calib, ttL1NoiseSigma, ttL1Ped, ttL1Thresh;
143
144 ATH_MSG_DEBUG( "nSamp=" << m_nSamp
145 << ", iTrig=" << m_iTrig
146 << ", tileNoise=" << ((tileNoise) ? "true" : "false")
147 << ", tileThresh=" << ((tileThresh) ? "true" : "false") );
148
149 /*......................................................*/
150 // step 3: Get rawChannel container from TES and create TTL1 container
151 /* Note that rawChannel container has 256 collections (one for each drawer),
152 but TTL1 container has no collections and no structure. */
153 SG::ReadHandle<TileRawChannelContainer> rawChannelContainer(m_rawChannelContainerKey);
154 ATH_CHECK( rawChannelContainer.isValid() );
155
156 TileRawChannelUnit::UNIT rChUnit = rawChannelContainer->get_unit();
157 //TileFragHash::TYPE rChType = rawChannelContainer->get_type();
158
159 SG::WriteHandle<TileTTL1Container> ttl1Container(m_ttl1ContainerKey);
160 ATH_CHECK( ttl1Container.record(std::make_unique<TileTTL1Container>()) );
161 ATH_MSG_DEBUG( "TileTTL1Container registered successfully (" << m_ttl1ContainerKey.key() << ")" );
162
163 /*......................................................*/
164 // Step 4: Create temporary arrays for processing signals.
165 /* Create array for all TT amplitudes in a single drawer. */
166 Identifier ttId[16]; // array of TT identifiers in a single drawer
167 float ttAmp[16]; // array of all TT amplitudes in a single drawer
168 bool ttRawChannel[16]; // array of TT occupancy in a single drawer
169 int nTT; // number of rawChannel towers in this drawer.
170 int nRawChannel; // number of rawChannels in this drawer.
171 int nIgnore; // number of ignored rawChannels in this drawer.
172 int nTTTot = 0; // total number of rawChannel towers.
173 int nRawChannelTot = 0; // total number of rawChannels.
174 int nIgnoreTot = 0; // total number of ignored rawChannels.
175 float ttAmpTot = 0; // total energy in good level-1 towers.
176 float ttAmpTotIg = 0.; // total energy in "ignored" level-1 towers.
177 int minieta, maxieta, posneg;
178
179 /* Create array for the nSamp time-samples of a single tower. */
180 std::vector<float> ttL1samples(m_nSamp);
181
182 /*......................................................*/
183 // Step 5: Begin loop over all collections (collection = electronic drawer).
184 for (const TileRawChannelCollection* rawChannelCollection : *rawChannelContainer) {
185
186 HWIdentifier drawer_id = m_tileHWID->drawer_id(rawChannelCollection->identify());
187 int ros = m_tileHWID->ros(drawer_id);
188 int drawer = m_tileHWID->drawer(drawer_id);
189 int drawerIdx = TileCalibUtils::getDrawerIdx(ros, drawer);
190
191 switch (ros) {
193 posneg = +1;
194 minieta = 0;
195 maxieta = 8;
196 break;
198 posneg = -1;
199 minieta = 0;
200 maxieta = 8;
201 break;
203 posneg = +1;
204 minieta = 9;
205 maxieta = 14;
206 break;
208 posneg = -1;
209 minieta = 9;
210 maxieta = 14;
211 break;
212 default:
213 posneg = minieta = maxieta = 0;
214 }
215
216 /* Zero temporary array of trigger tower amplitudes (TTL1amp) for this collection. */
217 memset(ttAmp, 0, sizeof(ttAmp));
218 memset(ttRawChannel, 0, sizeof(ttRawChannel));
219 nTT = nIgnore = nRawChannel = 0;
220
221 /*......................................................*/
222 // Step 6: Iterate over all rawChannels in this collection, summing amps for each tower.
223 for (const TileRawChannel* rawChannel : *rawChannelCollection) {
224
225 /* Get rawChannel Identifier */
226 HWIdentifier hwid = rawChannel->adc_HWID();
227 int channel = m_tileHWID->channel(hwid);
228 int adc = m_tileHWID->adc(hwid);
229
230 // note that amplitude() is in unknown units (can be even online MeV), convert it to MeV first
231 float e = m_tileToolEmscale->channelCalib(drawerIdx, channel, adc,
232 rawChannel->amplitude(),
233 rChUnit,
235
236 // convert MeV to pCb
237 float q = e / m_tileToolEmscale->channelCalib(drawerIdx, channel, adc, 1.0,
239
240 int ieta = 999;
241 int iphi = 999;
242
243 Identifier pmt_id = rawChannel->pmt_ID();
244 if (pmt_id.is_valid() && m_tileID->section(pmt_id) < 4
245 && m_tileID->section(pmt_id) > 0) {
246
247 /* Get TT Identifier for this pmt */
248 Identifier tt_id = rawChannel->tt_ID();
249 /* Get eta-phi indices of TTL1 for this channel. */
250 ieta = m_TT_ID->eta(tt_id);
251 iphi = m_TT_ID->phi(tt_id); // (same as module).
252 if (iphi != drawer)
253 ATH_MSG_ERROR( "drawer=" << drawer
254 << ", iphi=" << iphi
255 << "id=" << m_tileID->to_string(pmt_id) );
256
257 if (ttRawChannel[ieta]) { // already exists - just add charge
258 ttAmp[ieta] += q;
259 } else { // rawChannel in new TT
260 ttId[ieta] = tt_id;
261 ttRawChannel[ieta] = true;
262 ttAmp[ieta] = q;
263 if (ieta >= minieta && ieta <= maxieta)
264 ++nTT; // count only valid TT
265 }
266 ++nRawChannel;
267 if (ieta < minieta || ieta > maxieta)
268 ++nIgnore;
269 //Sum cell energy for comparison to other algos.
270 if (ieta >= minieta && ieta <= maxieta) {
271 ttAmpTot += e;
272 } else {
273 ttAmpTotIg += e;
274 }
275
276 if (msgLvl(MSG::VERBOSE)) {
277 /* Diagnostic checks: */
278 int side = m_tileID->side(pmt_id);
279 int tower = m_tileID->tower(pmt_id);
280 int sample = m_tileID->sample(pmt_id);
281 int pmt = m_tileID->pmt(pmt_id);
282 int channel = m_tileHWID->channel(hwid);
283 msg(MSG::VERBOSE) << "New RawChannel:"
284 << " ros=" << ros
285 << ", drawer=" << drawer
286 << ", ch=" << channel
287 << ", side=" << side
288 << ", tower=" << tower
289 << ", sample=" << sample
290 << ", pmt=" << pmt
291 << ", e=" << e
292 << ", ie=" << ieta
293 << ", ip=" << iphi;
294
295 if (ieta >= minieta && ieta <= maxieta)
296 msg(MSG::VERBOSE) << endmsg;
297 else
298 msg(MSG::VERBOSE) << " Outside limits" << endmsg;
299 }
300
301 } else {
302 ATH_MSG_VERBOSE( "Tile Channel with no tt_id" );
303 }
304
305 } // end loop over rawChannels in this drawer.
306
307 nTTTot += nTT;
308 nRawChannelTot += nRawChannel;
309 nIgnoreTot += nIgnore;
310
311 ATH_MSG_VERBOSE( "Statistics for"
312 << " ROS=" << ros
313 << ", drawer=" << drawer
314 << "; posneg=" << posneg
315 << ", minieta=" << minieta
316 << ", maxieta=" << maxieta
317 << "; nTT=" << nTT
318 << ", nRawChannel=" << nRawChannel
319 << ", nIgnore=" << nIgnore );
320
321 /*......................................................*/
322 // Step 7: We now have all the TTL1 amplitudes for this drawer.
323 // Loop over towers to produce the electronics signals (= time samples).
324 // If tileNoise is requested, generate random numbers to give noise
325 for (int ieta = minieta; ieta <= maxieta; ++ieta) {
326 int iphi = drawer;
327 bool Good = ttRawChannel[ieta];
328 if (tileNoise)
329 Good = true;
330 if (Good) {
331 if (!ttRawChannel[ieta])
332 ttId[ieta] = m_TT_ID->tower_id(posneg, 1, 0, ieta, drawer);
333
334 ttL1NoiseSigma = m_tileInfo->TTL1NoiseSigma(ttId[ieta]);
335 ttL1Thresh = m_tileInfo->TTL1Thresh(ttId[ieta]);
336 ttL1Ped = m_tileInfo->TTL1Ped(ttId[ieta]);
337 ttL1Calib = m_tileInfo->TTL1Calib(ttId[ieta]);
338 ttAmp[ieta] *= ttL1Calib; // convert pCb to mV
339 if (!m_constantTTL1shape) {
340 // Get phase of the TTL1 tower. default=0,
341 // meaning L1Cal Trigger samples TTL1 pulse right at the peak.
342 // ieta: barrel=0-8, ext.barrel=9-14
343 m_phase = m_tileInfo->ttl1Phase(posneg, ieta, iphi);
344 /* Include shaping fuction, pedestal, and noise. */
346 }
347 if (tileNoise)
348 CLHEP::RandGauss::shootArray(m_nSamp, Rndm);
349 for (int jsamp = 0; jsamp < m_nSamp; ++jsamp) {
350 ttL1samples[jsamp] = ttAmp[ieta] * m_TTL1Shape[jsamp] + ttL1Ped;
351 if (tileNoise)
352 ttL1samples[jsamp] += ttL1NoiseSigma * Rndm[jsamp];
353 } // end loop over samples
354 if (tileThresh) {
355 if (ttL1samples[m_iTrig] - ttL1Ped < ttL1Thresh)
356 Good = false;
357 }
358 } // end first "Good" section.
359 /* Create the new TTL1 object and store in TTL1Container. */
360 if (Good) {
361 ATH_MSG_DEBUG( " TTL1: "
362 << " ros=" << ros
363 << ", ieta=" << ieta
364 << ", iphi=" << iphi
365 << ", rawChannelTrue=" << ttRawChannel[ieta]
366 << ", Good=" << Good
367 << ", amp0=" << ttAmp[ieta]
368 << ", digitIn=" << ttL1samples[m_iTrig] );
369
370 /*
371 The following lines are commented out.
372
373 if (msgLvl(MSG::VERBOSE)) {
374 msg(MSG::VERBOSE) << " ttL1Digits=";
375 for (int jsamp = 0; jsamp < nSamp; ++jsamp) {
376 msg(MSG::VERBOSE) << ttL1samples[jsamp] << " ";
377 }
378 msg(MSG::VERBOSE) << endmsg;
379
380 msg(MSG::VERBOSE) << " Rndm=";
381 for (int jsamp = 0; jsamp < nSamp; ++jsamp) {
382 msg(MSG::VERBOSE) << Rndm[jsamp] << " ";
383 }
384 msg(MSG::VERBOSE) << endmsg;
385 }
386 The preceding lines are commented out
387 */
388
389 ttl1Container->push_back(std::make_unique<TileTTL1>(ttId[ieta], ttL1samples));
390 } // end second "Good" section.
391 } // end loop over towers
392 } // end loop over collections
393
394 // Execution completed.
395 ATH_MSG_DEBUG( "TileRawChannelToTTL1 execution completed." );
396 ATH_MSG_DEBUG( " nTTTot=" << nTTTot
397 << " nRawChannelTot=" << nRawChannelTot
398 << " nIgnoreTot=" << nIgnoreTot
399 << " ttAmpTot=" << ttAmpTot
400 << " ttAmpTotIg=" << ttAmpTotIg
401 << " =>eneTot=" << ttAmpTot + ttAmpTotIg );
402
403 return StatusCode::SUCCESS;
404}
#define endmsg
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_DEBUG(x)
bool msgLvl(const MSG::Level lvl) const
MsgStream & msg() const
bool is_valid() const
Check if id is in a valid state.
static unsigned int getDrawerIdx(unsigned int ros, unsigned int drawer)
Returns a drawer hash.
@ BARREL_POS
Definition TileHWID.h:68
@ EXTBAR_NEG
Definition TileHWID.h:71
@ BARREL_NEG
Definition TileHWID.h:69
@ EXTBAR_POS
Definition TileHWID.h:70
std::vector< double > m_TTL1Shape
SG::WriteHandleKey< TileTTL1Container > m_ttl1ContainerKey
SG::ReadHandleKey< TileRawChannelContainer > m_rawChannelContainerKey

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

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

◆ extraOutputDeps()

const DataObjIDColl & AthAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 50 of file AthAlgorithm.cxx.

51{
52 // If we didn't find any symlinks to add, just return the collection
53 // from the base class. Otherwise, return the extended collection.
54 if (!m_extendedExtraObjects.empty()) {
56 }
57 return Algorithm::extraOutputDeps();
58}
DataObjIDColl m_extendedExtraObjects

◆ finalize()

StatusCode TileRawChannelToTTL1::finalize ( )

Definition at line 406 of file TileRawChannelToTTL1.cxx.

406 {
407
408 ATH_MSG_INFO( "TileRawChannelToTTL1::finalize() end" );
409
410 return StatusCode::SUCCESS;
411}
#define ATH_MSG_INFO(x)

◆ initialize()

StatusCode TileRawChannelToTTL1::initialize ( )

Definition at line 88 of file TileRawChannelToTTL1.cxx.

88 {
89
90 // retrieve CaloLVL1_ID, TileID, TileHWID helpers and TileIfno from det store
91
95
96 //=== get TileBadChanTool
97 CHECK( m_tileBadChanTool.retrieve() );
98
99 //=== get TileCondToolEmscale
100 CHECK( m_tileToolEmscale.retrieve() );
101
103
104
105 // Here get already TTL1 Shapes, so as not to perform this on every execute:
106 m_nSamp = m_tileInfo->NdigitSamples(); // number of time slices for each chan
107 m_iTrig = m_tileInfo->ItrigSample(); // index of the triggering time slice
108 m_TTL1Shape.resize(m_nSamp, 0.);
110 m_phase = 0.0;
112 for (int jsamp = 0; jsamp < m_nSamp; ++jsamp) {
113 ATH_MSG_DEBUG( "jsamp=" << jsamp << " ttl1shape=" << m_TTL1Shape[jsamp] );
114 }
115 }
116
117 ATH_CHECK( m_rawChannelContainerKey.initialize() );
118 ATH_CHECK( m_ttl1ContainerKey.initialize() );
119
120 ATH_MSG_INFO( "TileRawChannelToTTL1 initialization completed" );
121
122 return StatusCode::SUCCESS;
123}
#define CHECK(...)
Evaluate an expression and check for errors.
const ServiceHandle< StoreGateSvc > & detStore() const
retrieve(aClass, aKey=None)
Definition PyKernel.py:110

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Algorithm > >::inputHandles ( ) const
overridevirtualinherited

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.

◆ msg()

MsgStream & AthCommonMsg< Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< Algorithm >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Algorithm > >::outputHandles ( ) const
overridevirtualinherited

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()

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 > AthCommonDataStore< AthCommonMsg< Algorithm > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
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()

void AthCommonDataStore< AthCommonMsg< Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ sysInitialize()

StatusCode AthAlgorithm::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Algorithm > >.

Reimplemented in AthAnalysisAlgorithm, AthFilterAlgorithm, AthHistogramAlgorithm, and PyAthena::Alg.

Definition at line 66 of file AthAlgorithm.cxx.

66 {
68
69 if (sc.isFailure()) {
70 return sc;
71 }
72 ServiceHandle<ICondSvc> cs("CondSvc",name());
73 for (auto h : outputHandles()) {
74 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
75 // do this inside the loop so we don't create the CondSvc until needed
76 if ( cs.retrieve().isFailure() ) {
77 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
78 return StatusCode::SUCCESS;
79 }
80 if (cs->regHandle(this,*h).isFailure()) {
81 sc = StatusCode::FAILURE;
82 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
83 << " with CondSvc");
84 }
85 }
86 }
87 return sc;
88}
#define ATH_MSG_WARNING(x)
static Double_t sc
virtual StatusCode sysInitialize() override
Override sysInitialize.
AthCommonDataStore(const std::string &name, T... args)
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
::StatusCode StatusCode
StatusCode definition for legacy code.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_constantTTL1shape

bool TileRawChannelToTTL1::m_constantTTL1shape
private

Definition at line 77 of file TileRawChannelToTTL1.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthAlgorithm::m_extendedExtraObjects
privateinherited

Definition at line 79 of file AthAlgorithm.h.

◆ m_infoName

std::string TileRawChannelToTTL1::m_infoName
private

Definition at line 76 of file TileRawChannelToTTL1.h.

◆ m_iTrig

int TileRawChannelToTTL1::m_iTrig
private

Definition at line 87 of file TileRawChannelToTTL1.h.

◆ m_nSamp

int TileRawChannelToTTL1::m_nSamp
private

Definition at line 86 of file TileRawChannelToTTL1.h.

◆ m_phase

double TileRawChannelToTTL1::m_phase
private

Definition at line 85 of file TileRawChannelToTTL1.h.

◆ m_rawChannelContainerKey

SG::ReadHandleKey<TileRawChannelContainer> TileRawChannelToTTL1::m_rawChannelContainerKey
private
Initial value:
{this,"TileRawChannelContainer",
"TileRawChannelCnt",
"Input Tile raw channel container key"}

Definition at line 69 of file TileRawChannelToTTL1.h.

69 {this,"TileRawChannelContainer",
70 "TileRawChannelCnt",
71 "Input Tile raw channel container key"};

◆ m_tileBadChanTool

ToolHandle<ITileBadChanTool> TileRawChannelToTTL1::m_tileBadChanTool
private

Tile Bad Channel tool.

Definition at line 89 of file TileRawChannelToTTL1.h.

◆ m_tileHWID

const TileHWID* TileRawChannelToTTL1::m_tileHWID
private

Definition at line 80 of file TileRawChannelToTTL1.h.

◆ m_tileID

const TileID* TileRawChannelToTTL1::m_tileID
private

Definition at line 79 of file TileRawChannelToTTL1.h.

◆ m_tileInfo

const TileInfo* TileRawChannelToTTL1::m_tileInfo
private

Definition at line 81 of file TileRawChannelToTTL1.h.

◆ m_tileToolEmscale

ToolHandle<TileCondToolEmscale> TileRawChannelToTTL1::m_tileToolEmscale
private

main Tile Calibration tool

Definition at line 90 of file TileRawChannelToTTL1.h.

◆ m_TT_ID

const CaloLVL1_ID* TileRawChannelToTTL1::m_TT_ID
private

Definition at line 82 of file TileRawChannelToTTL1.h.

◆ m_ttl1ContainerKey

SG::WriteHandleKey<TileTTL1Container> TileRawChannelToTTL1::m_ttl1ContainerKey
private
Initial value:
{this,"TileTTL1Container",
"TileTTL1Container","Output Tile TTL1 container key"}

Definition at line 73 of file TileRawChannelToTTL1.h.

73 {this,"TileTTL1Container",
74 "TileTTL1Container","Output Tile TTL1 container key"};

◆ m_TTL1Shape

std::vector<double> TileRawChannelToTTL1::m_TTL1Shape
private

Definition at line 84 of file TileRawChannelToTTL1.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: