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

#include <LArR4ElecCalibCalculator.h>

Inheritance diagram for LArR4ElecCalibCalculator:
Collaboration diagram for LArR4ElecCalibCalculator:

Public Member Functions

virtual StatusCode initialize () override
virtual StatusCode execute (const EventContext &ctx) override
 Execute method.
virtual StatusCode stop () override
 AthAlgorithm (const std::string &name, ISvcLocator *pSvcLocator)
 Constructor.
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< StoreGateSvc > StoreGateSvc_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< LArOnOffIdMapping > m_cablingKey {this, "OnOffMap", "LArOnOffIdMap", "SG key for mapping object"}
SG::ReadCondHandleKey< ILAruA2MeV > m_lAruA2MeVKey {this,"LAruA2MeVKey","LAruA2MeVSym","SG key of uA2MeV object"}
SG::ReadCondHandleKey< ILArDAC2uA > m_lArDAC2uAKey {this,"LArDAC2uAKey","LArDAC2uASym","SG key of DAC2uA object"}
SG::ReadCondHandleKey< LArMCSym > m_mcSym {this,"MCSym","LArMCSym","SG Key of LArMCSym object"}
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey {this,"CaloDetDescrManager", "CaloDetDescrManager"}
Gaudi::Property< std::string > m_keyoutput {this,"KeyOutput","Ramp","SG Key of output object"}
IntegerProperty m_nADCBits {this,"nADCBits",15,"Assume 15-bit ADC"}
Gaudi::Property< float > m_pedestalValue {this,"pedestal",8192,"Pedestal values for the two gains"}
Gaudi::Property< float > m_pedestalRMS {this,"pedestalRMS",17,"Pedestal RMS for the two gains"}
Gaudi::Property< std::string > m_pedkeyoutput {this,"PedKeyOutput","Pedestal","SG Key of output object"}
const LArOnlineID * m_onlineHelper =nullptr
const CaloCell_ID * m_caloCellID =nullptr
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 23 of file LArR4ElecCalibCalculator.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 376 of file AthCommonDataStore.h.

Member Function Documentation

◆ AthAlgorithm()

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

Constructor.

Definition at line 31 of file AthAlgorithm.cxx.

11 :
12 AthCommonAlgorithm<Gaudi::Algorithm>( name, pSvcLocator )
13{
14 // default cardinality for non-reentrant algorithms
15 setProperty( "Cardinality", 1 ).orThrow("Unable to set property 'Cardinality'", name);
16}
void setProperty(columnar::PythonToolHandle &self, const std::string &key, nb::object value)
AthCommonAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)

◆ 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 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ 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 LArR4ElecCalibCalculator::execute ( const EventContext & ctx)
overridevirtual

Execute method.

Implements AthAlgorithm.

Definition at line 36 of file LArR4ElecCalibCalculator.cxx.

36 {
37 return StatusCode::SUCCESS;
38}

◆ 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:

◆ initialize()

StatusCode LArR4ElecCalibCalculator::initialize ( )
overridevirtual

Definition at line 19 of file LArR4ElecCalibCalculator.cxx.

19 {
20
21 ATH_CHECK(detStore()->retrieve(m_onlineHelper, "LArOnlineID"));
22 ATH_CHECK(detStore()->retrieve(m_caloCellID, "CaloCell_ID"));
23
24 ATH_CHECK(m_cablingKey.initialize());
25
26 ATH_CHECK(m_lAruA2MeVKey.initialize());
27 ATH_CHECK(m_lArDAC2uAKey.initialize());
28 ATH_CHECK(m_mcSym.initialize());
29
30 ATH_CHECK(m_caloMgrKey.initialize());
31
32 return StatusCode::SUCCESS;
33}
#define ATH_CHECK
Evaluate an expression and check for errors.
const ServiceHandle< StoreGateSvc > & detStore() const
SG::ReadCondHandleKey< LArMCSym > m_mcSym
SG::ReadCondHandleKey< ILArDAC2uA > m_lArDAC2uAKey
SG::ReadCondHandleKey< ILAruA2MeV > m_lAruA2MeVKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey

◆ 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 368 of file AthCommonDataStore.h.

369 {
370 h.renounce();
372 }
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 352 of file AthCommonDataStore.h.

352 {
354 }

◆ setFilterPassed()

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

Set filter decision:

Definition at line 99 of file AthCommonAlgorithm.h.

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

◆ stop()

StatusCode LArR4ElecCalibCalculator::stop ( )
overridevirtual

Definition at line 41 of file LArR4ElecCalibCalculator.cxx.

41 {
42
43 // Values below are mA, in the lower gain
44 const std::map<CaloSampling::CaloSample, float> dynRange{
45 {CaloSampling::PreSamplerB, 2},
46 {CaloSampling::EMB1, 2},
47 {CaloSampling::EMB2, 10},
48 {CaloSampling::EMB3, 10},
49 {CaloSampling::PreSamplerE, 2},
50 {CaloSampling::EME1, 2},
51 {CaloSampling::EME2, 10},
52 {CaloSampling::EME3, 10},
53 {CaloSampling::HEC0, 2},
54 {CaloSampling::HEC1, 2},
55 {CaloSampling::HEC2, 2},
56 {CaloSampling::HEC3, 2,},
57 {CaloSampling::FCAL0, 10},
58 {CaloSampling::FCAL1, 10},
59 {CaloSampling::FCAL2, 10},
60 };
61
62 // Values are in ADC counts in HIGH gain
63 // Structure: maps of samplings < vector <eta-boundary,value> >
64 const std::map<CaloSampling::CaloSample, std::vector<std::pair<float, float> > > noiseMap{
65 {CaloSampling::PreSamplerB, {{5, 3.2}}},
66 {CaloSampling::EMB1, {{0.8, 1.8}, {5, 2.1}}},
67 {CaloSampling::EMB2, {{0.8, 1.4}, {5, 1.7}}},
68 {CaloSampling::EMB3, {{0.8, 1.4}, {5, 1.7}}},
69 {CaloSampling::PreSamplerE, {{5, 3.5}}},
70 {CaloSampling::EME1, {{2, 2.7}, {5, 2.9}}},
71 {CaloSampling::EME2, {{2, 1.3}, {5, 1.5}}},
72 {CaloSampling::EME3, {{2, 1.3}, {5, 1.5}}},
73 {CaloSampling::HEC0, {{5, 3.1}}},
74 {CaloSampling::HEC1, {{5, 3.1}}},
75 {CaloSampling::HEC2, {{5, 2.1}}},
76 {CaloSampling::HEC3, {{5, 2.1}}},
77
78 {CaloSampling::FCAL0, {{5, 4.3}}},
79 {CaloSampling::FCAL1, {{5, 4.6}}},
80 {CaloSampling::FCAL2, {{5, 4.5}}},
81 };
82
83 SG::ReadCondHandle<LArOnOffIdMapping> cablingHdl{m_cablingKey};
84 SG::ReadCondHandle<LArMCSym> larMCsymHdl{m_mcSym};
85 SG::ReadCondHandle<ILAruA2MeV> uA2MeVHdl{m_lAruA2MeVKey};
86 SG::ReadCondHandle<ILArDAC2uA> DAC2uAHdl{m_lArDAC2uAKey};
87
88 SG::ReadCondHandle<CaloDetDescrManager> caloMgrHandle{m_caloMgrKey};
89
90 std::unique_ptr<LArRampMC> rampMC = std::make_unique<LArRampMC>();
91 ATH_CHECK(rampMC->setGroupingType("Single", msg()));
92 ATH_CHECK(rampMC->initialize());
93
94 const auto& symIDs = larMCsymHdl->symIds();
95
96 const int nUsableBits = int(pow(2, m_nADCBits) * 3 / 4.);
97
98
99 //Calculate the R4 ramps (ADC2DAC) values, store them in run 1/2/3 style objects (LArRampMC)
100 //Can be stored in COOL-reference POOL files if the RegistrationSvc and OutptuConditionsAlg are scheduled in job-config
101 for (const HWIdentifier hwid : symIDs) {
102 const Identifier id = (*cablingHdl)->cnvToIdentifier(hwid);
103 const auto sampling = (CaloSampling::CaloSample)m_caloCellID->calo_sample(id);
104 const auto rangeIt = dynRange.find(sampling);
105 if (rangeIt == dynRange.end())[[unlikely]]{
106 ATH_MSG_WARNING("LArR4ElecCalibCalculator::stop: sampling not found in dynRange.");
107 continue;
108 }
109 const double mARange = rangeIt->second;
110 const double uAperADC = 1000 * mARange / nUsableBits;
111 const double dac2uA = (*DAC2uAHdl)->DAC2UA(hwid); // uA/DAC
112 const double ADC2DAC = uAperADC / dac2uA;
113
114 // For cross-check:
115 const double ADC2MeV = ADC2DAC * dac2uA * uA2MeVHdl->UA2MEV(hwid);
116 const double adc2uA = ADC2DAC * dac2uA;
117 ATH_MSG_DEBUG("sub_calo=" << m_caloCellID->sub_calo(id) << ", layer " << m_caloCellID->sampling(id) << ", region=" << m_caloCellID->region(id) << ": uA/ADC "
118 << uAperADC << ", ADC/mA " << nUsableBits / mARange << ", DAC2uA " << dac2uA << ", Ramp " << ADC2DAC << ", ADC2MeV=" << ADC2MeV
119 << ", ADC2DAC*dac2uA=" << adc2uA);
120
121 std::vector<float> vRamp;
122 vRamp.push_back(0); // ignore intercept for MC
123 vRamp.push_back(ADC2DAC);
124
125 rampMC->set(hwid, CaloGain::LARMEDIUMGAIN, vRamp);
126 // re-use the same short vector for higher gain
127 vRamp[1] /= 23.0; // HIGH gain =23* lower gain
128 rampMC->set(hwid, CaloGain::LARHIGHGAIN, vRamp);
129 }
130
131 // With the backward compatible MT-migration, the LArRampMC object became
132 // "write only". It is stored in the database but on read-back turned into a
133 // LArRampSym object. Only the latter can be used
134 std::unique_ptr<LArRampSym> rampSym = std::make_unique<LArRampSym>(*larMCsymHdl, rampMC.get());
135
136 StatusCode sc = detStore()->record(std::move(rampMC), m_keyoutput);
137 if (sc.isFailure()) {
138 ATH_MSG_ERROR("Failed to record LArRampSym object with key " << m_keyoutput);
139 }
140
141 m_keyoutput += "Sym";
142 sc = detStore()->record(std::move(rampSym), m_keyoutput);
143 if (sc.isFailure()) {
144 ATH_MSG_ERROR("Failed to record LArRampSym object with key " << m_keyoutput);
145 }
146
147
148 //Pedestal: Use only one value for all channels in the MC case
149 //Again, create a run 1/2/3 style LArPedestalMC object that can be store in a COOL-referenced POOL file
150 std::vector<float> pedVec, pedRMSVec;
151 pedVec.push_back(m_pedestalValue.value());
152 pedRMSVec.push_back(m_pedestalRMS.value());
153 std::unique_ptr<LArPedestalMC> pedPtr = std::make_unique<LArPedestalMC>();
154 pedPtr->set(pedVec, pedRMSVec);
155 ATH_CHECK(detStore()->record(std::move(pedPtr), m_pedkeyoutput));
156
157
158
159 //Noise: Fill a run 1/2/3-style LArNoiseMC object that can be store in a COOL-referenced POOL file
160 std::unique_ptr<LArNoiseMC> noisePtr = std::make_unique<LArNoiseMC>();
161 ATH_CHECK(noisePtr->setGroupingType("Single", msg()));
162 ATH_CHECK(noisePtr->initialize());
163
164 SG::ReadCondHandle<CaloDetDescrManager> caloDDM{m_caloMgrKey};
165 for (const HWIdentifier hwid : symIDs) {
166 const Identifier id = (*cablingHdl)->cnvToIdentifier(hwid);
167 const auto sampling = (CaloSampling::CaloSample)m_caloCellID->calo_sample(id);
168 const CaloDetDescrElement* dde = caloDDM->get_element(id);
169 const float eta = dde->eta_raw();
170
171 const auto& pairs = noiseMap.find(sampling)->second;
172 float noise = -1;
173 for (auto [e, n] : pairs) {
174 if (eta < e) {
175 noise = n;
176 ATH_MSG_DEBUG("Sampling: " << sampling << ", eta=" << eta << ", noise=" << noise);
177 break;
178 }
179 }
180 noisePtr->set(hwid, CaloGain::LARHIGHGAIN, noise);
181 noisePtr->set(hwid, CaloGain::LARMEDIUMGAIN, noise / 23.0);
182 } // end loop over sym-ids
183
184 std::unique_ptr<LArNoiseSym> noiseSym = std::make_unique<LArNoiseSym>(*larMCsymHdl, noisePtr.get());
185
186 ATH_CHECK(detStore()->record(std::move(noisePtr), "LArNoise"));
187
188 sc = detStore()->record(std::move(noiseSym), "LArNoiseSym");
189 if (sc.isFailure()) {
190 ATH_MSG_ERROR("Failed to record LArNoiseSym object with key " << m_keyoutput);
191 }
192
193 ATH_MSG_INFO("LArR4RampCalculator has finished.");
194 return StatusCode::SUCCESS;
195} // end finalize-method.
Scalar eta() const
pseudorapidity method
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_ERROR(x,...)
#define ATH_MSG_WARNING(x,...)
#define ATH_MSG_INFO(x,...)
static Double_t sc
Gaudi::Property< float > m_pedestalRMS
Gaudi::Property< std::string > m_keyoutput
Gaudi::Property< std::string > m_pedkeyoutput
Gaudi::Property< float > m_pedestalValue
@ LARMEDIUMGAIN
Definition CaloGain.h:18
@ LARHIGHGAIN
Definition CaloGain.h:18
::StatusCode StatusCode
StatusCode definition for legacy code.
constexpr int pow(int x)
Definition conifer.h:27
#define unlikely(x)

◆ 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, 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}
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 298 of file AthCommonDataStore.h.

298 {
299 for (auto &a : m_vhka) {
301 for (auto k : keys) {
302 k->setOwner(this);
303 }
304 }
305 }

Member Data Documentation

◆ m_cablingKey

SG::ReadCondHandleKey<LArOnOffIdMapping> LArR4ElecCalibCalculator::m_cablingKey {this, "OnOffMap", "LArOnOffIdMap", "SG key for mapping object"}
private

Definition at line 35 of file LArR4ElecCalibCalculator.h.

35{this, "OnOffMap", "LArOnOffIdMap", "SG key for mapping object"};

◆ m_caloCellID

const CaloCell_ID* LArR4ElecCalibCalculator::m_caloCellID =nullptr
private

Definition at line 53 of file LArR4ElecCalibCalculator.h.

◆ m_caloMgrKey

SG::ReadCondHandleKey<CaloDetDescrManager> LArR4ElecCalibCalculator::m_caloMgrKey {this,"CaloDetDescrManager", "CaloDetDescrManager"}
private

Definition at line 39 of file LArR4ElecCalibCalculator.h.

39{this,"CaloDetDescrManager", "CaloDetDescrManager"};

◆ m_detStore

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

Pointer to StoreGate (detector store by default).

Definition at line 381 of file AthCommonDataStore.h.

◆ m_evtStore

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

Pointer to StoreGate (event store by default).

Definition at line 378 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_keyoutput

Gaudi::Property<std::string> LArR4ElecCalibCalculator::m_keyoutput {this,"KeyOutput","Ramp","SG Key of output object"}
private

Definition at line 42 of file LArR4ElecCalibCalculator.h.

42{this,"KeyOutput","Ramp","SG Key of output object"};

◆ m_lArDAC2uAKey

SG::ReadCondHandleKey<ILArDAC2uA> LArR4ElecCalibCalculator::m_lArDAC2uAKey {this,"LArDAC2uAKey","LArDAC2uASym","SG key of DAC2uA object"}
private

Definition at line 37 of file LArR4ElecCalibCalculator.h.

37{this,"LArDAC2uAKey","LArDAC2uASym","SG key of DAC2uA object"}; //Always used

◆ m_lAruA2MeVKey

SG::ReadCondHandleKey<ILAruA2MeV> LArR4ElecCalibCalculator::m_lAruA2MeVKey {this,"LAruA2MeVKey","LAruA2MeVSym","SG key of uA2MeV object"}
private

Definition at line 36 of file LArR4ElecCalibCalculator.h.

36{this,"LAruA2MeVKey","LAruA2MeVSym","SG key of uA2MeV object"}; //Always used

◆ m_mcSym

SG::ReadCondHandleKey<LArMCSym> LArR4ElecCalibCalculator::m_mcSym {this,"MCSym","LArMCSym","SG Key of LArMCSym object"}
private

Definition at line 38 of file LArR4ElecCalibCalculator.h.

38{this,"MCSym","LArMCSym","SG Key of LArMCSym object"};

◆ m_nADCBits

IntegerProperty LArR4ElecCalibCalculator::m_nADCBits {this,"nADCBits",15,"Assume 15-bit ADC"}
private

Definition at line 44 of file LArR4ElecCalibCalculator.h.

44{this,"nADCBits",15,"Assume 15-bit ADC"};

◆ m_onlineHelper

const LArOnlineID* LArR4ElecCalibCalculator::m_onlineHelper =nullptr
private

Definition at line 52 of file LArR4ElecCalibCalculator.h.

◆ m_pedestalRMS

Gaudi::Property<float> LArR4ElecCalibCalculator::m_pedestalRMS {this,"pedestalRMS",17,"Pedestal RMS for the two gains"}
private

Definition at line 48 of file LArR4ElecCalibCalculator.h.

48{this,"pedestalRMS",17,"Pedestal RMS for the two gains"};

◆ m_pedestalValue

Gaudi::Property<float> LArR4ElecCalibCalculator::m_pedestalValue {this,"pedestal",8192,"Pedestal values for the two gains"}
private

Definition at line 46 of file LArR4ElecCalibCalculator.h.

46{this,"pedestal",8192,"Pedestal values for the two gains"};

◆ m_pedkeyoutput

Gaudi::Property<std::string> LArR4ElecCalibCalculator::m_pedkeyoutput {this,"PedKeyOutput","Pedestal","SG Key of output object"}
private

Definition at line 49 of file LArR4ElecCalibCalculator.h.

49{this,"PedKeyOutput","Pedestal","SG Key of output object"};

◆ m_varHandleArraysDeclared

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

Definition at line 387 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 386 of file AthCommonDataStore.h.


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