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

#include <TBLArRawChannelBuilder.h>

Inheritance diagram for TBLArRawChannelBuilder:
Collaboration diagram for TBLArRawChannelBuilder:

Public Member Functions

 TBLArRawChannelBuilder (const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize () override
virtual StatusCode execute (const EventContext &ctx) override
 Execute method.
virtual StatusCode finalize () override
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
virtual bool filterPassed (const EventContext &ctx) const
 Get filter decision:
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 Set filter decision:
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

virtual bool isReEntrant () const override final
 Legacy algorithms are not thread-safe.
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::ReadCondHandleKey< LArOnOffIdMappingm_cablingKey {this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"}
const LArEM_IDm_emId
const LArFCAL_IDm_fcalId
const LArHEC_IDm_hecId
const LArOnlineIDm_onlineHelper
LArRawOrdering m_larRawOrdering
std::string m_DataLocation
std::string m_ChannelContainerName
int m_imaxSamp
std::string m_mode
float m_cubicAdcCut
float m_ADCtoMeVFCAL [3]
float m_ADCtoMeVHEC [2]
float m_ADCtoMeVEMECInner [2]
float m_ADCtoMeVEMECOuter [2]
float m_ADCtoMeVEMB [2]
unsigned int m_iPedestal
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
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 24 of file TBLArRawChannelBuilder.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TBLArRawChannelBuilder()

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

Definition at line 15 of file TBLArRawChannelBuilder.cxx.

15 :
16 AthAlgorithm(name, pSvcLocator),
17 m_emId(0),
18 m_fcalId(0),
19 m_hecId(0),
21 m_DataLocation("FREE"),
22 m_ChannelContainerName("LArRawChannels"),
28 m_iPedestal(0) // jobO ?
29{
30 //m_useIntercept={false,false,false,false};
31 declareProperty("LArRawChannelContainerName",m_ChannelContainerName);
32 declareProperty("DataLocation", m_DataLocation );
33 declareProperty("maxSamp",m_imaxSamp=8);
34 declareProperty("RecoMode",m_mode="CUBIC");
35 declareProperty("CubicAdcCut",m_cubicAdcCut=50.0);
36}
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
const LArOnlineID * m_onlineHelper

Member Function Documentation

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::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< Gaudi::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< Gaudi::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< Gaudi::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 TBLArRawChannelBuilder::execute ( const EventContext & ctx)
overridevirtual

Execute method.

Implements AthAlgorithm.

Definition at line 67 of file TBLArRawChannelBuilder.cxx.

67 {
68 ATH_MSG_DEBUG ( "In execute" );
69
70 SG::ReadCondHandle<LArOnOffIdMapping> cablingHdl{m_cablingKey, ctx};
71 const LArOnOffIdMapping* cabling{*cablingHdl};
72 if(!cabling) {
73 ATH_MSG_ERROR( "Do not hame cabling mapping from key " << m_cablingKey.key() );
74 return StatusCode::FAILURE;
75 }
76
77 //Pointer to input data container
78 const LArDigitContainer* digitContainer;//Pointer to LArDigitContainer
79
80 //Retrieve Digit Container
81 ATH_CHECK( evtStore()->retrieve(digitContainer,m_DataLocation) );
82 ATH_MSG_DEBUG ( "1) LArDigitContainer container size = " << digitContainer->size() );
83
84 ATH_MSG_DEBUG ( "2) LArDigitContainer container size = " << digitContainer->size() );
85 if( digitContainer->size() < 1 ) {
86 ATH_MSG_INFO ( "Empty LArDigitContainer container." );
87 return StatusCode::SUCCESS;
88 }
89
90 //Prepare LArRawChannelContainer
91 ATH_MSG_DEBUG ( "Making new LArRawChannelContainer " << digitContainer->size() );
92 LArRawChannelContainer* larRawChannelContainer=new LArRawChannelContainer();
93 larRawChannelContainer->reserve(digitContainer->size());
94 ATH_CHECK( evtStore()->record(larRawChannelContainer,m_ChannelContainerName) );
95
96 //Now all data is available, start loop over Digit Container
97 ATH_MSG_DEBUG ( "Loop over Digit Container " );
98
99 for (const LArDigit* digit : *digitContainer) {
100
101 //Get data from LArDigit
102 const std::vector<short>& samples = digit->samples();
103 unsigned int nSamples = samples.size();
104 const HWIdentifier chid = digit->channelID();
105 const CaloGain::CaloGain gain = digit->gain();
106
107 //>>>> PL June 20, 2004: subtract pedestal first, assume first sample ->JO?
108 std::vector<float> mySamples;
109 mySamples.resize(samples.size());
110 // FIXME!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! only for 5 leading noise samples!
111 float thePedestal = (float)samples[m_iPedestal];
112 // log << MSG::INFO
113 // << "pedestal " << thePedestal << endmsg;
114 for ( unsigned int i=0; i<samples.size(); i++ )
115 {
116 mySamples[i] = ((float)samples[i]) - thePedestal;
117 }
118 //<<<<
119
120 float GainFactor;
121 if( gain == CaloGain::LARLOWGAIN ) {
122 GainFactor = 9.8*9.8;
123 } else if (gain == CaloGain::LARMEDIUMGAIN ) {
124 GainFactor = 9.8;
125 } else if (gain == CaloGain::LARHIGHGAIN ) {
126 GainFactor = 1.0;
127 } else {
128 GainFactor = 1.0;
129 ATH_MSG_ERROR ( "Channel " << chid << "unknown gain: " << gain );
130 }
131
132 // Find peak time sample
133 float maxADCPeak = 0.;
134 unsigned int iPeakSamp = 0;
135 for( unsigned i=0;i<nSamples;i++ ) {
136 if ( maxADCPeak < mySamples[i] )
137 {
138 maxADCPeak = mySamples[i];
139 iPeakSamp = i;
140 }
141 }
142
143 bool CubicFailed = false;
144 float ADCPeak=0.;
145 float time=-999.;
146
147 // maximum amplitude/variable time slice method
148 if( m_mode == "MAX" )
149 {
150 ADCPeak = maxADCPeak;
151 time = ((float)iPeakSamp+0.5) * 25.0 * nanosecond;
152 }
153
154 // cubic extrapolation for selected channels
155 else if ( m_mode == "CUBIC" &&
156 ! ( CubicFailed = maxADCPeak <= m_cubicAdcCut ) )
157 {
158 // linear extrapolation table
159 unsigned int it0;
160 const float invT[4][4]
161 = { { 1, 0, 0, 0},
162 { -1.83333, 3, -1.5, 0.333333},
163 { 1, -2.5, 2, -0.5},
164 {-0.166666, 0.5, -0.5, 0.166666} };
165
166 // peak slice very early
167 if ( iPeakSamp <= 1 )
168 {
169 it0 = m_iPedestal + 1;
170 }
171 // peak slice very late
172 else if ( iPeakSamp >= nSamples - 2 )
173 {
174 it0 = nSamples - 4;
175 }
176 // peak in safe region
177 else
178 {
179 it0 = ( mySamples[iPeakSamp-2] > mySamples[iPeakSamp+2] )
180 ? iPeakSamp - 2
181 : iPeakSamp - 1;
182 }
183
184 // 4 samples to be used start at 0 <= t0 <= nsamples-4
185 float A[4] = {0, 0, 0, 0};
186 float dtmax = 0.0;
187 float disc;
188 // S = TA -> A = inv(T)S
189 for (int ia = 0; ia < 4; ia++)
190 for (int it = 0; it < 4; it++)
191 A[ia] += invT[ia][it] * mySamples[it0+it];
192
193 // fit parameters
194 disc = A[2]*A[2] - 3*A[1]*A[3];
195 if ( ! ( CubicFailed = ( disc < 0 || A[3] == 0 ) ) )
196 {
197 dtmax = (-A[2]-sqrt(disc))/(3*A[3]);
198 if ( ! ( CubicFailed = ( dtmax < 0 || dtmax > 3 ) ) )
199 {
200 time = (float(it0) + dtmax) * 25.0 * nanosecond; // nsec
201 for(int ia = 0; ia < 4; ia++)
202 ADCPeak += A[ia] * pow(dtmax, ia);
203 }
204 }
205 }
207 ( "Flag: "
208 << CubicFailed
209 << " Mode: "
210 << m_mode
211 << " Signal: "
212 << ADCPeak
213 << " Peak: "
214 << maxADCPeak
215 );
216
217 // fixed time slice or insufficient signal for cubic fit
218 if(m_mode == "FIXED" || CubicFailed )
219 {
220 ADCPeak = mySamples[m_imaxSamp];
221 time = (float(m_imaxSamp)+0.5) * 25.0 * nanosecond;
222 }
223
224
225 // Now must get subdetector ID and feed in here ...
226 float ADCtoMeV = 10.0;
227 const Identifier id = cabling->cnvToIdentifier(chid);
228 if (m_emId->is_em_barrel(id)) {
229 // m_emId->sampling(id);
230 ADCtoMeV = m_ADCtoMeVEMB[0];
231 ATH_MSG_DEBUG ( " in EMB s="<<m_emId->sampling(id)<<", using ADCtoMeV = " << ADCtoMeV );
232 } else if (m_emId->is_em_endcap_inner(id)) {
233 int samp = m_emId->sampling(id);
234 if (samp > 0) {
235 ADCtoMeV = m_ADCtoMeVEMECInner[samp-1];
236 ATH_MSG_DEBUG ( " in EMEC inner s="<<m_emId->sampling(id)<<", using ADCtoMeV = " << ADCtoMeV );
237 }
238 } else if (m_emId->is_em_endcap_outer(id)) {
239 int samp = m_emId->sampling(id);
240 if (samp > 0) {
241 ADCtoMeV = m_ADCtoMeVEMECOuter[samp-1];
242 ATH_MSG_DEBUG ( " in EMEC outer s="<<m_emId->sampling(id)<<", using ADCtoMeV = " << ADCtoMeV );
243 }
244 } else if (m_fcalId->is_lar_fcal(id)) {
245 int module = m_fcalId->module(id);
246 if (module > 0) {
247 ADCtoMeV = m_ADCtoMeVFCAL[module-1];
248 ATH_MSG_DEBUG ( " in FCAL m=" << m_fcalId->module(id)<<", using ADCtoMeV = " << ADCtoMeV );
249 }
250 } else if (m_hecId->is_lar_hec(id)) {
251 // m_layer[m_cellIndex]=m_hecId->sampling(id);
252 ADCtoMeV = m_ADCtoMeVHEC[0];
253 ATH_MSG_DEBUG ( " in HEC s="<<m_hecId->sampling(id)<<", using ADCtoMeV = " << ADCtoMeV );
254 }
255
256 float Energy = ADCPeak * ADCtoMeV * GainFactor;
257 uint16_t quality=0;
258 uint16_t provenance=0x2000;
259
260 //Make LArRawChannel Object with new data
261 LArRawChannel larRawChannel(chid,(int)Energy,(int)time,quality, provenance, gain);
262 larRawChannelContainer->add(larRawChannel); //Add to container
263
264 }// End loop over LArDigits
265
266 ATH_MSG_DEBUG ( "Finished loop over Digit Container " );
267
268 // larRawChannelContainer->print();
269
270 ATH_MSG_DEBUG ( "sorted RawChannelContainer, now lock it " );
271 // lock raw channel container
272 ATH_CHECK( evtStore()->setConst(larRawChannelContainer) );
273
274 return StatusCode::SUCCESS;
275}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Old LArRawChannelContainer
Definition LArTPCnv.cxx:86
ServiceHandle< StoreGateSvc > & evtStore()
size_type size() const noexcept
Returns the number of elements in the collection.
void add(const LArRawChannel &rc)
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
@ LARMEDIUMGAIN
Definition CaloGain.h:18
@ LARLOWGAIN
Definition CaloGain.h:18
@ LARHIGHGAIN
Definition CaloGain.h:18
time(flags, cells_name, *args, **kw)
void setConst()
Set the const flag for this expression.
constexpr int pow(int x)
Definition conifer.h:27
setWord1 uint16_t

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::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 & AthCommonAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

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

Definition at line 89 of file AthCommonAlgorithm.cxx.

54{
55 // If we didn't find any symlinks to add, just return the collection
56 // from the base class. Otherwise, return the extended collection.
57 if (!m_extendedExtraObjects.empty()) {
59 }
61}
Common base class for algorithms.

◆ filterPassed()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Get filter decision:

Definition at line 93 of file AthCommonAlgorithm.h.

93 {
94 return execState( ctx ).filterPassed();
95 }
virtual bool filterPassed(const EventContext &ctx) const
Get filter decision:

◆ finalize()

StatusCode TBLArRawChannelBuilder::finalize ( )
overridevirtual

Definition at line 277 of file TBLArRawChannelBuilder.cxx.

278{
279 ATH_MSG_INFO ( "TBLArRawChannelBuilder finished." );
280 return StatusCode::SUCCESS;
281}

◆ initialize()

StatusCode TBLArRawChannelBuilder::initialize ( )
overridevirtual

Definition at line 38 of file TBLArRawChannelBuilder.cxx.

38 {
39 ATH_MSG_DEBUG ( "In Initialize." );
40
41 const CaloCell_ID* caloId = nullptr;
42 ATH_CHECK( detStore()->retrieve (caloId, "CaloCell_ID") );
43 m_emId=caloId->em_idHelper();
44 m_fcalId=caloId->fcal_idHelper();
45 m_hecId=caloId->hec_idHelper();
46
47 ATH_CHECK( m_cablingKey.initialize() );
48
49 ATH_CHECK( detStore()->retrieve(m_onlineHelper, "LArOnlineID") );
50
51 m_ADCtoMeVFCAL[0] = 87.0 * MeV; // FCAL1 High gain
52 m_ADCtoMeVFCAL[1] = 117.0 * MeV; // FCAL2 High gain
53 m_ADCtoMeVFCAL[2] = 193.0 * MeV; // FCAL3 High gain
54 m_ADCtoMeVHEC[0] = 136.0 / 9.8 * MeV; // HEC 1 Medium gain from Monika. Need / 9.8 ??
55 m_ADCtoMeVHEC[1] = 136.0 / 9.8 * MeV; // HEC 2 Medium gain from Monika. Need / 9.8 ??
56 m_ADCtoMeVEMECInner[0] = 25.22 * MeV; // EMEC High gain from Pascal, approximate
57 m_ADCtoMeVEMECInner[1] = 19.4 * MeV; // EMEC High gain from Pascal, approximate
58 m_ADCtoMeVEMECOuter[0] = 16.0 * MeV; // EMEC High gain from Monika, approximate
59 m_ADCtoMeVEMECOuter[1] = 16.0 * MeV; // EMEC High gain from Monika, approximate
60 m_ADCtoMeVEMB[0] = 15.0 * MeV; // EMB High gain from Isabelle, approximate
61 m_ADCtoMeVEMB[1] = 15.0 * MeV; // EMB High gain from Isabelle, approximate
62
63 return StatusCode::SUCCESS;
64}
static const double MeV
const ServiceHandle< StoreGateSvc > & detStore() const
const LArFCAL_ID * fcal_idHelper() const
access to FCAL idHelper
Definition CaloCell_ID.h:75
const LArEM_ID * em_idHelper() const
access to EM idHelper
Definition CaloCell_ID.h:63
const LArHEC_ID * hec_idHelper() const
access to HEC idHelper
Definition CaloCell_ID.h:69

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::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.

◆ isClonable()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::isClonable ( ) const
inlineoverridevirtualinherited

Specify if the algorithm is clonable.

Only relevant for non-reentrant algorithms. Actual number of clones needs to be set via the "Cardinality" property.

Reimplemented in AFP_DigiTop, AlgB, AlgT, BCM_Digitization, CscDigitBuilder, CscDigitToCscRDO, G4AtlasAlg, G4RunAlg, HGTD_Digitization, HiveAlgBase, InDet::GNNSeedingTrackMaker, InDet::SCT_Clusterization, InDet::SiSPGNNTrackMaker, InDet::SiSPSeededTrackFinder, InDet::SiTrackerSpacePointFinder, ISF::SimKernelMT, ITk::StripDigitization, ITkPixelCablingAlg, ITkStripCablingAlg, LArHitEMapMaker, LArTTL1Maker, LUCID_DigiTop, LVL1::L1TopoSimulation, MergeCalibHits, MergeGenericMuonSimHitColl, MergeHijingPars, MergeMcEventCollection, MergeTrackRecordCollection, MergeTruthJets, MergeTruthParticles, MuonDigitizer, PileUpMTAlg, PixelDigitization, RoIBResultToxAOD, SCT_ByteStreamErrorsTestAlg, SCT_CablingCondAlgFromCoraCool, SCT_CablingCondAlgFromText, SCT_ConditionsParameterTestAlg, SCT_ConditionsSummaryTestAlg, SCT_ConfigurationConditionsTestAlg, SCT_Digitization, SCT_FlaggedConditionTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_PrepDataToxAOD, SCT_RawDataToxAOD, SCT_ReadCalibChipDataTestAlg, SCT_ReadCalibDataTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_SiliconConditionsTestAlg, SCT_StripVetoTestAlg, SCT_TdaqEnabledTestAlg, SCT_TestCablingAlg, SCTEventFlagWriter, SCTRawDataProvider, SCTSiLorentzAngleTestAlg, SCTSiPropertiesTestAlg, SGInputLoader, Simulation::BeamEffectsAlg, TileHitVecToCnt, TileMuonFitter, TilePulseForTileMuonReceiver, TileRawChannelMaker, TRTDigitization, and ZDC_DigiTop.

Definition at line 68 of file AthCommonAlgorithm.h.

68 {
69 return true;
70 }

◆ isReEntrant()

virtual bool AthAlgorithm::isReEntrant ( ) const
inlinefinaloverrideprotectedvirtualinherited

Legacy algorithms are not thread-safe.

Definition at line 47 of file AthAlgorithm.h.

47{ return false; }

◆ msg()

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msgLvl()

bool AthCommonMsg< Gaudi::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< Gaudi::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< Gaudi::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< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

virtual void AthCommonAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Set filter decision:

Reimplemented in AthFilterAlgorithm.

Definition at line 99 of file AthCommonAlgorithm.h.

99 {
101 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const
Set filter decision:

◆ sysExecute()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext & ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Reimplemented in AthAnalysisAlgorithm.

Definition at line 80 of file AthCommonAlgorithm.cxx.

41{
42 return BaseAlg::sysExecute (ctx);
43}

◆ sysInitialize()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::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< Gaudi::Algorithm > >.

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

Definition at line 60 of file AthCommonAlgorithm.cxx.

71 {
73
74 if (sc.isFailure()) {
75 return sc;
76 }
77
78 ServiceHandle<ICondSvc> cs("CondSvc",name());
79 for (auto h : outputHandles()) {
80 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
81 // do this inside the loop so we don't create the CondSvc until needed
82 if ( cs.retrieve().isFailure() ) {
83 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
85 }
86 if (cs->regHandle(this,*h).isFailure()) {
88 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
89 << " with CondSvc");
90 }
91 }
92 }
93 return sc;
94}
#define ATH_MSG_WARNING(x)
virtual StatusCode sysInitialize() override
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::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< Gaudi::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 }

Member Data Documentation

◆ m_ADCtoMeVEMB

float TBLArRawChannelBuilder::m_ADCtoMeVEMB[2]
private

Definition at line 55 of file TBLArRawChannelBuilder.h.

◆ m_ADCtoMeVEMECInner

float TBLArRawChannelBuilder::m_ADCtoMeVEMECInner[2]
private

Definition at line 53 of file TBLArRawChannelBuilder.h.

◆ m_ADCtoMeVEMECOuter

float TBLArRawChannelBuilder::m_ADCtoMeVEMECOuter[2]
private

Definition at line 54 of file TBLArRawChannelBuilder.h.

◆ m_ADCtoMeVFCAL

float TBLArRawChannelBuilder::m_ADCtoMeVFCAL[3]
private

Definition at line 51 of file TBLArRawChannelBuilder.h.

◆ m_ADCtoMeVHEC

float TBLArRawChannelBuilder::m_ADCtoMeVHEC[2]
private

Definition at line 52 of file TBLArRawChannelBuilder.h.

◆ m_cablingKey

SG::ReadCondHandleKey<LArOnOffIdMapping> TBLArRawChannelBuilder::m_cablingKey {this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"}
private

Definition at line 36 of file TBLArRawChannelBuilder.h.

36{this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"};

◆ m_ChannelContainerName

std::string TBLArRawChannelBuilder::m_ChannelContainerName
private

Definition at line 46 of file TBLArRawChannelBuilder.h.

◆ m_cubicAdcCut

float TBLArRawChannelBuilder::m_cubicAdcCut
private

Definition at line 49 of file TBLArRawChannelBuilder.h.

◆ m_DataLocation

std::string TBLArRawChannelBuilder::m_DataLocation
private

Definition at line 46 of file TBLArRawChannelBuilder.h.

◆ m_detStore

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

Pointer to StoreGate (detector store by default).

Definition at line 393 of file AthCommonDataStore.h.

◆ m_emId

const LArEM_ID* TBLArRawChannelBuilder::m_emId
private

Definition at line 38 of file TBLArRawChannelBuilder.h.

◆ m_evtStore

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

Pointer to StoreGate (event store by default).

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 108 of file AthCommonAlgorithm.h.

◆ m_fcalId

const LArFCAL_ID* TBLArRawChannelBuilder::m_fcalId
private

Definition at line 39 of file TBLArRawChannelBuilder.h.

◆ m_hecId

const LArHEC_ID* TBLArRawChannelBuilder::m_hecId
private

Definition at line 40 of file TBLArRawChannelBuilder.h.

◆ m_imaxSamp

int TBLArRawChannelBuilder::m_imaxSamp
private

Definition at line 47 of file TBLArRawChannelBuilder.h.

◆ m_iPedestal

unsigned int TBLArRawChannelBuilder::m_iPedestal
private

Definition at line 57 of file TBLArRawChannelBuilder.h.

◆ m_larRawOrdering

LArRawOrdering TBLArRawChannelBuilder::m_larRawOrdering
private

Definition at line 43 of file TBLArRawChannelBuilder.h.

◆ m_mode

std::string TBLArRawChannelBuilder::m_mode
private

Definition at line 48 of file TBLArRawChannelBuilder.h.

◆ m_onlineHelper

const LArOnlineID* TBLArRawChannelBuilder::m_onlineHelper
private

Definition at line 41 of file TBLArRawChannelBuilder.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


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