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

Class definition for the ZDC decoder class for Run 3 This class is responsible for taking the ZdcLucrodData and rendering them as ZdcModules for subsequent steps, and for defining the two output ZdcModuleContainers. More...

#include <ZdcRecRun3Decode.h>

Inheritance diagram for ZdcRecRun3Decode:
Collaboration diagram for ZdcRecRun3Decode:

Public Member Functions

 ZdcRecRun3Decode (const std::string &name, ISvcLocator *pSvcLocator)
 ~ZdcRecRun3Decode ()
StatusCode initialize () override
StatusCode execute (const EventContext &ctx) override
 Execute method.
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< 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

Gaudi::Property< int > m_ownPolicy {this, "OwnPolicy", static_cast<int> (SG::OWN_ELEMENTS)}
Gaudi::Property< int > m_DecodeRunMode {this, "DecodeRunMode", 0}
Gaudi::Property< unsigned int > m_nFragments {this,"NFragments",6,"Number of expected LUCROD fragments"}
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey {this,"EventInfoKey","EventInfo"}
SG::WriteDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey {this, "eventInfoDecorKey", m_eventInfoKey, "forwardDetFlags", "Key for EventInfo decoration object"}
SG::ReadHandleKey< ZdcLucrodDataContainer > m_zldContainerName { this, "ZdcLucrodDataContainerKey", "ZdcLucrodDataContainer", "" }
SG::WriteHandleKey< xAOD::ZdcModuleContainer > m_zdcModuleContainerName { this, "ZdcModuleContainerName", "ZdcModules", "" }
SG::WriteHandleKey< xAOD::ZdcModuleContainer > m_zdcSumContainerName { this, "ZdcSumContainerName", "ZdcSums", "" }
ToolHandle< ZdcRecChannelToolLucrod > m_ChannelTool { this, "ChannelTool", "ZdcRecChannelToolLucrod", "" }
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

Class definition for the ZDC decoder class for Run 3 This class is responsible for taking the ZdcLucrodData and rendering them as ZdcModules for subsequent steps, and for defining the two output ZdcModuleContainers.

Author
Brian Cole and Peter Steinberg, bcole.nosp@m.@cer.nosp@m.n.ch, stein.nosp@m.berg.nosp@m.@bnl..nosp@m.gov

Definition at line 44 of file ZdcRecRun3Decode.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 376 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ ZdcRecRun3Decode()

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

Definition at line 30 of file ZdcRecRun3Decode.cxx.

30 :
31
32 AthAlgorithm(name, pSvcLocator)
33{
34}
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.

◆ ~ZdcRecRun3Decode()

ZdcRecRun3Decode::~ZdcRecRun3Decode ( )

Definition at line 39 of file ZdcRecRun3Decode.cxx.

39{}

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

Execute method.

Implements AthAlgorithm.

Definition at line 90 of file ZdcRecRun3Decode.cxx.

91{
92
93 ATH_MSG_DEBUG("In ZdRecRun3");
94
95
96 ATH_MSG_DEBUG ("--> ZDC: ZdcRecRun3Decode execute starting on "
97 << ctx.evt()
98 << "th event");
99
100 //Look for the container presence
101 if (m_zldContainerName.empty()) {
102 return StatusCode::SUCCESS;
103 }
104
105 ATH_MSG_DEBUG("Trying to get LUCROD DATA!");
106 SG::ReadHandle<ZdcLucrodDataContainer> zldContainer (m_zldContainerName, ctx);
107 ATH_MSG_DEBUG("Did I get LUCROD DATA?");
108
109
110 if (zldContainer->size() < m_nFragments)
111 {
112 int zdcLucrod = 0;
113 int rpdLucrod = 0;
114 int lisLucrod = 0;
115 for (auto zld : *zldContainer)
116 {
117 uint32_t lucrod_id = zld->GetLucrodID();
118 if (lucrod_id == ZdcEventInfo::LucrodLowGain || lucrod_id == ZdcEventInfo::LucrodHighGain) // ZDC LUCRODs
119 {
120 zdcLucrod++;
121 }
122 else if (lucrod_id == ZdcEventInfo::LucrodRPD1A
123 || lucrod_id == ZdcEventInfo::LucrodRPD1C
124 || lucrod_id == ZdcEventInfo::LucrodRPD2A
125 || lucrod_id == ZdcEventInfo::LucrodRPD2C)
126 {
127 rpdLucrod++;
128 }
129 else if (lucrod_id == ZdcEventInfo::LucrodLIS) // LIS LUCROD
130 {
131 lisLucrod++;
132 }
133 else
134 {
135 ATH_MSG_WARNING("Unidentified LUCROD ID = " << lucrod_id);
136 }
137 }
138 SG::ReadHandle<xAOD::EventInfo> eventInfo (m_eventInfoKey, ctx);
139 if (!eventInfo->updateErrorState(xAOD::EventInfo::ForwardDet,xAOD::EventInfo::Error))
140 {
141 ATH_MSG_WARNING( " cannot set EventInfo error state for ForwardDet " );
142 }
143 if (!eventInfo->updateEventFlagBit(xAOD::EventInfo::ForwardDet,ZdcEventInfo::DECODINGERROR))
144 {
145 ATH_MSG_WARNING( " cannot set flag bit for ForwardDet " );
146 }
147 if (rpdLucrod < ZdcEventInfo::nTotalRpdLucrod && m_DecodeRunMode != 1)
148 {
149 if (!eventInfo->updateEventFlagBit(xAOD::EventInfo::ForwardDet,ZdcEventInfo::RPDDECODINGERROR))
150 {
151 ATH_MSG_WARNING( " cannot set RPDDECODINGERROR flag bit for ForwardDet " );
152 }
153 }
154 if (zdcLucrod < ZdcEventInfo::nTotalZdcLucrod && m_DecodeRunMode != 1)
155 {
156 if (!eventInfo->updateEventFlagBit(xAOD::EventInfo::ForwardDet,ZdcEventInfo::ZDCDECODINGERROR))
157 {
158 ATH_MSG_WARNING( " cannot set ZDCDECODINGERROR flag bit for ForwardDet " );
159 }
160 }
161 if (lisLucrod < ZdcEventInfo::nTotalLisLucrod && (m_DecodeRunMode == 1 || m_DecodeRunMode == 2))
162 {
163 if (!eventInfo->updateEventFlagBit(xAOD::EventInfo::ForwardDet,ZdcEventInfo::LISDECODINGERROR))
164 {
165 ATH_MSG_WARNING( " cannot set LISDECODINGERROR flag bit for ForwardDet " );
166 }
167 }
168 }
169
170 //Create the containers to hold the reconstructed information (you just pass the pointer and the converter does the work)
171 std::unique_ptr<xAOD::ZdcModuleContainer> moduleContainer( new xAOD::ZdcModuleContainer());
172 std::unique_ptr<xAOD::ZdcModuleAuxContainer> moduleAuxContainer( new xAOD::ZdcModuleAuxContainer() );
173 moduleContainer->setStore( moduleAuxContainer.get() );
174
175 //Create the containers to hold the reconstructed information (you just pass the pointer and the converter does the work)
176 std::unique_ptr<xAOD::ZdcModuleContainer> moduleSumContainer( new xAOD::ZdcModuleContainer());
177 std::unique_ptr<xAOD::ZdcModuleAuxContainer> moduleSumAuxContainer( new xAOD::ZdcModuleAuxContainer() );
178 moduleSumContainer->setStore( moduleSumAuxContainer.get() );
179
180 ATH_MSG_DEBUG("Trying to convert!");
181
182 // rearrange ZDC channels and perform fast reco on all channels (including non-big tubes)
183 int ncha = m_ChannelTool->convertLucrod2ZM(zldContainer.get(), moduleContainer.get(), moduleSumContainer.get() );
184 ATH_MSG_DEBUG("m_ChannelTool->convertLucrod2ZM returned " << ncha << " channels");
185
186 ATH_MSG_DEBUG("Dumping modules");
187 ATH_MSG_DEBUG( ZdcModuleToString(*moduleContainer) );
188 ATH_MSG_DEBUG("Dumping module sums");
189 ATH_MSG_DEBUG( ZdcModuleToString(*moduleSumContainer) );
190
191 // eventually reconstruct RPD, using ML libraries
192 // ATH_CHECK( m_rpdTool...)
193
194 SG::WriteHandle<xAOD::ZdcModuleContainer> moduleContainerH (m_zdcModuleContainerName, ctx);
195 ATH_CHECK( moduleContainerH.record (std::move(moduleContainer),
196 std::move(moduleAuxContainer)) );
197
198 SG::WriteHandle<xAOD::ZdcModuleContainer> moduleSumContainerH (m_zdcSumContainerName, ctx);
199 ATH_CHECK( moduleSumContainerH.record (std::move(moduleSumContainer),
200 std::move(moduleSumAuxContainer)) );
201
202 return StatusCode::SUCCESS;
203
204}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_WARNING(x,...)
std::string ZdcModuleToString(const xAOD::ZdcModule &zm)
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
SG::ReadHandleKey< ZdcLucrodDataContainer > m_zldContainerName
SG::WriteHandleKey< xAOD::ZdcModuleContainer > m_zdcSumContainerName
Gaudi::Property< int > m_DecodeRunMode
Gaudi::Property< unsigned int > m_nFragments
ToolHandle< ZdcRecChannelToolLucrod > m_ChannelTool
SG::WriteHandleKey< xAOD::ZdcModuleContainer > m_zdcModuleContainerName
@ ForwardDet
The forward detectors.
@ Error
The sub-detector issued an error.
ZdcModuleContainer_v1 ZdcModuleContainer
setEventNumber uint32_t
ZdcModuleAuxContainer_v2 ZdcModuleAuxContainer

◆ 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 ZdcRecRun3Decode::finalize ( )
override

Definition at line 208 of file ZdcRecRun3Decode.cxx.

209{
210
211 ATH_MSG_DEBUG( "--> ZDC: ZdcRecRun3Decode finalize complete" );
212
213 return StatusCode::SUCCESS;
214
215}

◆ initialize()

StatusCode ZdcRecRun3Decode::initialize ( )
override

Definition at line 43 of file ZdcRecRun3Decode.cxx.

44{
45 MsgStream mLog(msgSvc(), name());
46
47 // Reconstruction Tool
48 ATH_CHECK( m_ChannelTool.retrieve() );
49
50
51 // Reconstruction Tool
52
53 ATH_CHECK( m_zdcModuleContainerName.initialize() );
54 ATH_CHECK( m_zdcSumContainerName.initialize() );
56 ATH_CHECK( m_eventInfoKey.initialize() );
57 ATH_CHECK( m_eventInfoDecorKey.initialize() );
58
60 mLog << MSG::DEBUG << "...will OWN its cells." << endmsg;
61 else
62 mLog << MSG::DEBUG << "...will VIEW its cells." << endmsg;
63
64 if(m_DecodeRunMode == 0){
65 mLog << MSG::DEBUG << "--> ZDC: Running in ZDC+RPD mode" << endmsg;
66 m_nFragments.set(6); // default
67 }
68
69 else if(m_DecodeRunMode == 1){
70 mLog << MSG::DEBUG << "--> ZDC: Running in LIS only mode" << endmsg;
71 m_nFragments.set(1);
72 }
73 else if(m_DecodeRunMode == 2){
74 mLog << MSG::DEBUG << "--> ZDC: Running in ZDC+RPD + LIS mode" << endmsg;
75 m_nFragments.set(7);
76 }
77 else {
78 mLog << MSG::ERROR << "--> ZDC: Unknown DecodeRunMode " << m_DecodeRunMode.value() << ", should be 0, 1, or 2. Exiting." << endmsg;
79 return StatusCode::FAILURE;
80 }
81
82
83 mLog << MSG::DEBUG << "--> ZDC: ZdcRecRun3Decode initialization complete" << endmsg;
84
85 return StatusCode::SUCCESS;
86}
#define endmsg
SG::WriteDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
Gaudi::Property< int > m_ownPolicy
@ OWN_ELEMENTS
this data object owns its elements

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

◆ 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}
#define ATH_MSG_ERROR(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 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_ChannelTool

ToolHandle<ZdcRecChannelToolLucrod> ZdcRecRun3Decode::m_ChannelTool { this, "ChannelTool", "ZdcRecChannelToolLucrod", "" }
private

Definition at line 74 of file ZdcRecRun3Decode.h.

75{ this, "ChannelTool", "ZdcRecChannelToolLucrod", "" };

◆ m_DecodeRunMode

Gaudi::Property<int> ZdcRecRun3Decode::m_DecodeRunMode {this, "DecodeRunMode", 0}
private

Definition at line 59 of file ZdcRecRun3Decode.h.

59{this, "DecodeRunMode", 0}; // 0 = ZDC+RPD (default), 1 = LIS only, 2 = ZDC+RPD + LIS

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

SG::WriteDecorHandleKey<xAOD::EventInfo> ZdcRecRun3Decode::m_eventInfoDecorKey {this, "eventInfoDecorKey", m_eventInfoKey, "forwardDetFlags", "Key for EventInfo decoration object"}
private

Definition at line 63 of file ZdcRecRun3Decode.h.

63{this, "eventInfoDecorKey", m_eventInfoKey, "forwardDetFlags", "Key for EventInfo decoration object"};

◆ m_eventInfoKey

SG::ReadHandleKey<xAOD::EventInfo> ZdcRecRun3Decode::m_eventInfoKey {this,"EventInfoKey","EventInfo"}
private

Definition at line 62 of file ZdcRecRun3Decode.h.

62{this,"EventInfoKey","EventInfo"};

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

Gaudi::Property<unsigned int> ZdcRecRun3Decode::m_nFragments {this,"NFragments",6,"Number of expected LUCROD fragments"}
private

Definition at line 60 of file ZdcRecRun3Decode.h.

60{this,"NFragments",6,"Number of expected LUCROD fragments"};

◆ m_ownPolicy

Gaudi::Property<int> ZdcRecRun3Decode::m_ownPolicy {this, "OwnPolicy", static_cast<int> (SG::OWN_ELEMENTS)}
private

Definition at line 58 of file ZdcRecRun3Decode.h.

58{this, "OwnPolicy", static_cast<int> (SG::OWN_ELEMENTS)};

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

◆ m_zdcModuleContainerName

SG::WriteHandleKey<xAOD::ZdcModuleContainer> ZdcRecRun3Decode::m_zdcModuleContainerName { this, "ZdcModuleContainerName", "ZdcModules", "" }
private

Definition at line 68 of file ZdcRecRun3Decode.h.

69{ this, "ZdcModuleContainerName", "ZdcModules", "" };

◆ m_zdcSumContainerName

SG::WriteHandleKey<xAOD::ZdcModuleContainer> ZdcRecRun3Decode::m_zdcSumContainerName { this, "ZdcSumContainerName", "ZdcSums", "" }
private

Definition at line 71 of file ZdcRecRun3Decode.h.

72{ this, "ZdcSumContainerName", "ZdcSums", "" };

◆ m_zldContainerName

SG::ReadHandleKey<ZdcLucrodDataContainer> ZdcRecRun3Decode::m_zldContainerName { this, "ZdcLucrodDataContainerKey", "ZdcLucrodDataContainer", "" }
private

Definition at line 65 of file ZdcRecRun3Decode.h.

66{ this, "ZdcLucrodDataContainerKey", "ZdcLucrodDataContainer", "" };

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