 |
ATLAS Offline Software
|
#include <LArLATOMEBuilderAlg.h>
|
| LArLATOMEBuilderAlg (const std::string &name, ISvcLocator *pSvcLocator) |
|
StatusCode | initialize () override |
|
StatusCode | execute (const EventContext &ctx) const override |
|
StatusCode | finalize () override |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual bool | isClonable () const override |
| Specify if the algorithm is clonable. More...
|
|
virtual unsigned int | cardinality () const override |
| Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
|
|
virtual StatusCode | sysExecute (const EventContext &ctx) override |
| Execute an algorithm. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
virtual bool | filterPassed (const EventContext &ctx) const |
|
virtual void | setFilterPassed (bool state, const EventContext &ctx) const |
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
|
SG::ReadHandleKey< xAOD::EventInfo > | m_eventInfoKey {this,"EventInfo","EventInfo","SG Key of EventInfo object"} |
|
SG::ReadHandleKey< LArDigitContainer > | m_digitKey {this, "LArDigitKey","SC", "SG Key of the SC LArDigitContainer"} |
|
SG::WriteHandleKey< LArRawSCContainer > | m_larRawSCKey {this,"LArRawSCKey","SC_ET_RECO","SG key of the output LArRawSCContainer"} |
|
SG::ReadCondHandleKey< LArOnOffIdMapping > | m_cablingKey {this, "CablingSCKey","LArOnOffIdMapSC","SG Key of LArOnOffIdMapping object"} |
|
SG::ReadCondHandleKey< ILArPedestal > | m_keyPedestalSC {this,"LArPedestalKeySC","LArPedestalSC","SG key of LArPedestal conditions object"} |
|
SG::ReadCondHandleKey< ILArOFC > | m_keyOFCSC {this,"LArOFCKeySC","LArOFCSC","SG key of LArOFC conditions object"} |
|
SG::ReadCondHandleKey< ILArRamp > | m_keyRampSC {this,"LArRampKeySC","LArRampSC","SG key of LArRamp conditions object"} |
|
SG::ReadCondHandleKey< ILArDAC2uA > | m_keyDAC2uASC {this,"LArDAC2uAKeySC","LArDAC2uASC","SG key of LArDAC2uA conditions object"} |
|
SG::ReadCondHandleKey< ILAruA2MeV > | m_keyuA2MeVSC {this,"LAruA2MeVKeySC","LAruA2MeVSC","SG key of LAruA2MeV conditions object"} |
|
SG::ReadCondHandleKey< ILArHVScaleCorr > | m_keyHVScaleCorrSC {this,"LArHVScaleCorrKeySC","LArHVScaleCorrSC","SG key of LArHVScaleCorr conditions object"} |
|
SG::ReadCondHandleKey< ILArMphysOverMcal > | m_keyMphysOverMcalSC {this,"LArMphysOverMcalKeySC","LArMphysOverMcalSC","SG key of LArMphysOverMcal conditions object"} |
|
Gaudi::Property< int > | m_startSample {this,"startEnergy",0,"the first energy to compute with respect to the BCID"} |
|
Gaudi::Property< int > | m_nEnergies {this, "nEnergies", 1, "how many energies to compute"} |
|
Gaudi::Property< bool > | m_applyHVCorrection {this, "applyHVCorrection", true, "apply HV correction"} |
|
Gaudi::Property< bool > | m_applyMphysOverMcal {this, "applyMphysOverMcal", true, "apply MphysOverMcal correction"} |
|
Gaudi::Property< bool > | m_useR0 {this, "useR0", false, "use R0 from Ramp"} |
|
Gaudi::Property< bool > | m_isADCBas {this, "isADCBas", true, "Digits are ADC BAS"} |
|
const LArOnlineID_Base * | m_onlineId = nullptr |
|
DataObjIDColl | m_extendedExtraObjects |
| Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
|
|
StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) More...
|
|
StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) More...
|
|
std::vector< SG::VarHandleKeyArray * > | m_vhka |
|
bool | m_varHandleArraysDeclared |
|
Definition at line 30 of file LArLATOMEBuilderAlg.h.
◆ StoreGateSvc_t
◆ LArLATOMEBuilderAlg()
LArLATOMEBuilderAlg::LArLATOMEBuilderAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ cardinality()
unsigned int AthReentrantAlgorithm::cardinality |
( |
| ) |
const |
|
overridevirtualinherited |
Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
Override this to return 0 for reentrant algorithms.
Override this to return 0 for reentrant algorithms.
Definition at line 55 of file AthReentrantAlgorithm.cxx.
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode LArLATOMEBuilderAlg::execute |
( |
const EventContext & |
ctx | ) |
const |
|
override |
will take from DB later
lets store the floats in case we decide to do a float computation here in the future
scs
Definition at line 56 of file LArLATOMEBuilderAlg.cxx.
59 unsigned int event_bcid = thisEvent->bcid();
65 ATH_CHECK(outputContainerHdl.record(std::make_unique<LArRawSCContainer>()));
66 auto *outputContainer = outputContainerHdl.ptr();
68 outputContainer->reserve(inputContainer->size());
70 dataItemsPool.reserve(inputContainer->size());
75 if (!Peds)
return StatusCode::FAILURE;
79 if (!OFCs)
return StatusCode::FAILURE;
83 if (!Ramps)
return StatusCode::FAILURE;
87 if (!DAC2uAs)
return StatusCode::FAILURE;
91 if (!uA2MeVs)
return StatusCode::FAILURE;
95 if (!MphysOverMcals)
return StatusCode::FAILURE;
99 if (!HVScaleCorrs)
return StatusCode::FAILURE;
111 return StatusCode::FAILURE;
113 const std::vector<uint16_t>& bcids = digitSC->
BCId();
116 const std::vector<short>& samples=
digit->samples();
122 float dac2ua=DAC2uAs->
DAC2UA(
id);
123 float ua2mev=uA2MeVs->
UA2MEV(
id);
129 ATH_MSG_ERROR(
"No valid pedestal for connected channel " <<
id.get_identifier32().get_compact() <<
" gain " <<
gain);
130 return StatusCode::FAILURE;
133 ATH_MSG_ERROR(
"No valid ofca for connected channel " <<
id.get_identifier32().get_compact() <<
" gain " <<
gain);
134 return StatusCode::FAILURE;
137 ATH_MSG_ERROR(
"No valid ofcb for connected channel " <<
id.get_identifier32().get_compact() <<
" gain " <<
gain);
138 return StatusCode::FAILURE;
141 ATH_MSG_ERROR(
"No valid ramp for connected channel " <<
id.get_identifier32().get_compact() <<
" gain " <<
gain);
142 return StatusCode::FAILURE;
145 ATH_MSG_ERROR(
"wrong ramp size for connected channel " <<
id.get_identifier32().get_compact() <<
" gain " <<
gain);
146 return StatusCode::FAILURE;
149 ATH_MSG_ERROR(
"No valid dac2ua for connected channel " <<
id.get_identifier32().get_compact());
150 return StatusCode::FAILURE;
153 ATH_MSG_ERROR(
"No valid ua2mev for connected channel " <<
id.get_identifier32().get_compact());
154 return StatusCode::FAILURE;
157 ATH_MSG_ERROR(
"No valid mphys for connected channel " <<
id.get_identifier32().get_compact() <<
" gain " <<
gain);
158 return StatusCode::FAILURE;
161 ATH_MSG_ERROR(
"No valid hvcorr for connected channel " <<
id.get_identifier32().get_compact());
162 return StatusCode::FAILURE;
166 std::vector<float> ofca_mev(ofca.size());
167 std::vector<float> ofcb_mev(ofca.size());
170 for (
unsigned int i = 0;
i < ofca.size(); ++
i) {
171 ofca_mev[
i] = ofca[
i] * ramp[1] * dac2ua * ua2mev / ELSB;
172 ofcb_mev[
i] = ofcb[
i] * ramp[1] * dac2ua * ua2mev / ELSB;
174 ofca_mev[
i] /= mphys;
175 ofcb_mev[
i] /= mphys;
178 ofca_mev[
i] *= hvcorr;
179 ofcb_mev[
i] *= hvcorr;
183 float suma=0;
for(
auto a:ofca)suma+=
a;
184 float sumb=0;
for(
auto b:ofcb)sumb+=
b;
185 peda=
ped-ramp[0]/ramp[1]*suma;
186 pedb=
ped-ramp[0]/ramp[1]*sumb;
189 bool aoverflow=
false;
190 bool boverflow=
false;
191 bool pedoverflow=
false;
193 std::vector<int> ofca_int(ofca.size(),0);
194 std::vector<int> ofcb_int(ofca.size(),0);
198 const int pedHardpoint = 3;
199 const int firLSBdropped = 8;
200 const int satLSBdropped = 6;
201 const int paramBitSize = 18;
203 for (
unsigned int i = 0;
i < ofca.size(); ++
i) {
204 if (!
floatToInt(ofca_mev[
i], ofca_int[
i], firLSBdropped - pedHardpoint,
208 if (!
floatToInt(ofcb_mev[
i], ofcb_int[
i], satLSBdropped - pedHardpoint,
213 if(!
floatToInt(peda,peda_int,pedHardpoint,paramBitSize))pedoverflow=
true;
214 if(!
floatToInt(pedb,pedb_int,pedHardpoint,paramBitSize))pedoverflow=
true;
216 unsigned int nsamples = samples.size();
217 unsigned int firsamples=4;
219 for(
unsigned int is=0; is<
nsamples; ++is){
220 if(bcids[is]==event_bcid) startSample=is;
222 int maxNenergies = 0;
224 ATH_MSG_WARNING(
"could not find correct BCID for recomputing the energies, event BCID="<<event_bcid<<
" first sample BCID " << (
nsamples?bcids[0]:-1));
227 maxNenergies=
nsamples-firsamples-startSample+1;
235 if((
int)nEnergies>maxNenergies){
236 ATH_MSG_WARNING(
"requested nEnergies > maxNenergies " <<
m_nEnergies <<
">" <<maxNenergies<<
". setting nEnegries to maxNenergies");
237 nEnergies=maxNenergies;
240 std::vector<unsigned short> newBCIDs(nEnergies,0);
241 std::vector<int> newEnergies(nEnergies,0);
242 std::vector<int> tauEnergies(nEnergies,0);
243 std::vector<bool> passSelections(nEnergies,
false);
244 std::vector<bool> satur(nEnergies,
false);
245 const unsigned int nMaxBitsEnergy=18;
246 const unsigned int nMaxBitsEnergyTau=22;
248 for(
unsigned int ss=0;
ss<nEnergies; ++
ss){
251 int64_t computedEtau=0;
252 unsigned short bcid = bcids[startSample+
ss];
254 for(
unsigned int is=0; is<firsamples; ++is){
255 int sample = samples[startSample +
ss + is];
258 computedE +=
static_cast<int64_t
>(
sample - peda_int) * ofca_int[is];
259 computedEtau +=
static_cast<int64_t
>(
sample - pedb_int) * ofcb_int[is];
261 computedE=computedE>>firLSBdropped;
262 computedEtau=computedEtau>>satLSBdropped;
264 if(std::abs(computedE)>
std::pow(2,nMaxBitsEnergy-1)){
266 computedE =
std::pow(2, nMaxBitsEnergy - 1) - 1;
270 if (std::abs(computedEtau) >
std::pow(2, nMaxBitsEnergyTau - 1)) {
271 if (computedEtau >= 0)
272 computedEtau =
std::pow(2, nMaxBitsEnergyTau - 1) - 1;
274 computedEtau = -
std::pow(2, nMaxBitsEnergyTau - 1) + 1;
276 newEnergies[
ss] = computedE;
277 tauEnergies[
ss] = computedEtau;
278 bool passSelection =
false;
279 if (computedE < 0 && computedE > -80) {
280 if (computedEtau > 8 * computedE && computedEtau < -8 * computedE)
281 passSelection =
true;
282 }
else if (computedE < 800) {
283 if (computedEtau > -8 * computedE && computedEtau < 8 * computedE)
284 passSelection =
true;
285 }
else if (computedE >= 800) {
286 if (computedEtau > -8 * computedE && computedEtau < 16 * computedE)
287 passSelection =
true;
289 passSelections[
ss] = passSelection;
291 LArRawSC* scraw = dataItemsPool.nextElementPtr();
296 scraw->
setBCIds(std::move(newBCIDs));
305 outputContainer->push_back(scraw);
310 return StatusCode::SUCCESS;
◆ 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
◆ extraOutputDeps()
const DataObjIDColl & AthReentrantAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 79 of file AthReentrantAlgorithm.cxx.
86 return Algorithm::extraOutputDeps();
◆ filterPassed()
virtual bool AthReentrantAlgorithm::filterPassed |
( |
const EventContext & |
ctx | ) |
const |
|
inlinevirtualinherited |
◆ finalize()
StatusCode LArLATOMEBuilderAlg::finalize |
( |
| ) |
|
|
override |
◆ floatToInt()
bool LArLATOMEBuilderAlg::floatToInt |
( |
float |
val, |
|
|
int & |
newval, |
|
|
int |
hardpoint, |
|
|
int |
size |
|
) |
| |
|
staticprivate |
◆ initialize()
StatusCode LArLATOMEBuilderAlg::initialize |
( |
| ) |
|
|
override |
◆ 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.
◆ isClonable()
bool AthReentrantAlgorithm::isClonable |
( |
| ) |
const |
|
overridevirtualinherited |
Specify if the algorithm is clonable.
Reentrant algorithms are clonable.
Reimplemented in Simulation::BeamEffectsAlg, InDet::SiTrackerSpacePointFinder, InDet::SCT_Clusterization, InDet::SiSPSeededTrackFinder, SCTRawDataProvider, InDet::GNNSeedingTrackMaker, SCT_PrepDataToxAOD, RoIBResultToxAOD, InDet::SiSPGNNTrackMaker, SCT_CablingCondAlgFromCoraCool, SCT_ReadCalibDataTestAlg, SCT_CablingCondAlgFromText, SCT_ReadCalibChipDataTestAlg, SCT_TestCablingAlg, SCT_ConfigurationConditionsTestAlg, ITkPixelCablingAlg, ITkStripCablingAlg, SCTEventFlagWriter, SCT_ConditionsSummaryTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_TdaqEnabledTestAlg, SCT_SiliconConditionsTestAlg, SCTSiLorentzAngleTestAlg, SCT_ByteStreamErrorsTestAlg, SCT_ConditionsParameterTestAlg, SCT_FlaggedConditionTestAlg, SCT_StripVetoTestAlg, SCT_RawDataToxAOD, and SCTSiPropertiesTestAlg.
Definition at line 44 of file AthReentrantAlgorithm.cxx.
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ 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()
◆ renounceArray()
◆ setFilterPassed()
virtual void AthReentrantAlgorithm::setFilterPassed |
( |
bool |
state, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
inlinevirtualinherited |
◆ sysExecute()
StatusCode AthReentrantAlgorithm::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.
Definition at line 67 of file AthReentrantAlgorithm.cxx.
69 return Gaudi::Algorithm::sysExecute (ctx);
◆ sysInitialize()
StatusCode AthReentrantAlgorithm::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 InputMakerBase, and HypoBase.
Definition at line 96 of file AthReentrantAlgorithm.cxx.
107 if ( cs.retrieve().isFailure() ) {
109 return StatusCode::SUCCESS;
111 if (cs->regHandle(
this,*
h).isFailure()) {
112 sc = StatusCode::FAILURE;
113 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
◆ 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()
◆ m_applyHVCorrection
Gaudi::Property<bool> LArLATOMEBuilderAlg::m_applyHVCorrection {this, "applyHVCorrection", true, "apply HV correction"} |
|
private |
◆ m_applyMphysOverMcal
Gaudi::Property<bool> LArLATOMEBuilderAlg::m_applyMphysOverMcal {this, "applyMphysOverMcal", true, "apply MphysOverMcal correction"} |
|
private |
◆ m_cablingKey
◆ m_detStore
◆ m_digitKey
◆ m_eventInfoKey
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthReentrantAlgorithm::m_extendedExtraObjects |
|
privateinherited |
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 153 of file AthReentrantAlgorithm.h.
◆ m_isADCBas
Gaudi::Property<bool> LArLATOMEBuilderAlg::m_isADCBas {this, "isADCBas", true, "Digits are ADC BAS"} |
|
private |
◆ m_keyDAC2uASC
◆ m_keyHVScaleCorrSC
◆ m_keyMphysOverMcalSC
◆ m_keyOFCSC
◆ m_keyPedestalSC
◆ m_keyRampSC
◆ m_keyuA2MeVSC
◆ m_larRawSCKey
◆ m_nEnergies
Gaudi::Property<int> LArLATOMEBuilderAlg::m_nEnergies {this, "nEnergies", 1, "how many energies to compute"} |
|
private |
◆ m_onlineId
◆ m_startSample
Gaudi::Property<int> LArLATOMEBuilderAlg::m_startSample {this,"startEnergy",0,"the first energy to compute with respect to the BCID"} |
|
private |
◆ m_useR0
Gaudi::Property<bool> LArLATOMEBuilderAlg::m_useR0 {this, "useR0", false, "use R0 from Ramp"} |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
Liquid Argon SuperCell raw data.
bool valid() const
Test to see if the proxy has been initialized.
void setChannel(const unsigned chan)
Set channel number.
virtual const float & UA2MEV(const HWIdentifier &chid) const
SG::WriteHandleKey< LArRawSCContainer > m_larRawSCKey
void setEnergies(const std::vector< int > &&energies)
Set energies .
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
void setPedOverflow(bool overflow)
@set pedestal Overflow
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
float round(const float toRound, const unsigned int decimals)
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 setPassTauSelection(const std::vector< bool > &&pass)
@set true if passes the tau selection
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
static bool floatToInt(float val, int &newval, int hardpoint, int size)
reproduce LDPB package computation in https://gitlab.cern.ch/atlas-lar-online/onlinelatomedb/-/blob/m...
virtual const float & MphysOverMcal(const HWIdentifier &chid, int gain) const
Gaudi::Property< bool > m_isADCBas
unsigned int SourceId() const
void setOFCaOverflow(bool overflow)
@set OFCa Overflow
SG::ReadHandleKey< LArDigitContainer > m_digitKey
void setOFCbOverflow(bool overflow)
@set OFCb Overflow
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
const LArOnlineID_Base * m_onlineId
virtual void setOwner(IDataHandleHolder *o)=0
SG::ReadCondHandleKey< ILArOFC > m_keyOFCSC
Gaudi::Property< bool > m_applyMphysOverMcal
void setTauEnergies(const std::vector< int > &&tauEnergies)
Set energies*taus .
AthReentrantAlgorithm()
Default constructor:
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
Liquid Argon digit base class.
SG::ReadCondHandleKey< ILAruA2MeV > m_keyuA2MeVSC
SG::ReadCondHandleKey< ILArPedestal > m_keyPedestalSC
SG::ReadCondHandleKey< ILArMphysOverMcal > m_keyMphysOverMcalSC
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual const float & HVScaleCorr(const HWIdentifier &chid) const
SG::ReadCondHandleKey< ILArDAC2uA > m_keyDAC2uASC
SG::ReadCondHandleKey< ILArHVScaleCorr > m_keyHVScaleCorrSC
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Gaudi::Property< int > m_nEnergies
Base class for LArDigits taken by LATOME.
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
virtual OFCRef_t OFC_b(const HWIdentifier &CellID, int gain, int tbin=0) const
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Helper for the Liquid Argon Calorimeter cell identifiers.
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
virtual StatusCode sysInitialize() override
Override sysInitialize.
Gaudi::Property< bool > m_applyHVCorrection
StatusCode initialize(bool used=true)
setEventNumber setTimeStamp bcid
Gaudi::Property< int > m_startSample
void setHardwareId(const HWIdentifier id)
Set identifier.
virtual RampRef_t ADC2DAC(const HWIdentifier &CellID, int gain) const
SG::ReadCondHandleKey< ILArRamp > m_keyRampSC
#define ATH_MSG_WARNING(x)
void setBCIds(const std::vector< unsigned short > &&bcids)
Set bcids.
a typed memory pool that saves time spent allocation small object. This is typically used by containe...
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
constexpr int pow(int base, int exp) noexcept
void setSourceId(const unsigned sourceId)
Set source id.
void setSaturation(const std::vector< bool > &&satur)
@set saturation flags
const std::vector< unsigned short > & BCId() const
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Gaudi::Property< bool > m_useR0
virtual float pedestal(const HWIdentifier &CellID, int gain) const
Proxy for accessing a range of float values like a vector.
constexpr int pow2(int x)
virtual const float & DAC2UA(const HWIdentifier &chid) const
access to DAC2UA conversion factor index by Identifier, and gain setting
virtual OFCRef_t OFC_a(const HWIdentifier &CellID, int gain, int tbin=0) const
access to OFCs by online ID, gain, and tbin (!=0 for testbeam)