ATLAS Offline Software
Loading...
Searching...
No Matches
ActsTrk::PhaseIIRDOtoTracccCellConverterAlg Class Reference

Converts Pixel and Strip PhaseII RDO container into Traccc cells, the input to the Acts GPU reconstruction chain. More...

#include <PhaseIIRDOtoTracccCellConverterAlg.h>

Inheritance diagram for ActsTrk::PhaseIIRDOtoTracccCellConverterAlg:
Collaboration diagram for ActsTrk::PhaseIIRDOtoTracccCellConverterAlg:

Public Member Functions

virtual StatusCode initialize () override
virtual StatusCode execute (const EventContext &ctx) const override
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

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

RDOtoTracccCellConverterCommons m_common {*this}
SG::ReadHandleKey< PhaseIIPixelRawDataContainer > m_ph2PixelRDOKey
SG::ReadHandleKey< PhaseIIStripRawDataContainer > m_ph2StripRDOKey
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

Converts Pixel and Strip PhaseII RDO container into Traccc cells, the input to the Acts GPU reconstruction chain.

The output of this algorithm is a Traccc container on device (GPU).

An option allows to choose whether the sorting of the cells is to take place on CPU, as part of this algorithm, or not. If not, the clusterization algorithm on GPU must be configured to sort the input cells.

The common components of this algo and RDOtoTracccCellConverterAlg are factorized in RDOtoTracccCellConverterCommons.

Definition at line 28 of file PhaseIIRDOtoTracccCellConverterAlg.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

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

Definition at line 26 of file PhaseIIRDOtoTracccCellConverterAlg.cxx.

27{
28 using size_type = traccc::edm::silicon_cell_collection::buffer::size_type;
29 using PixelRawDataContainerProxy = PhaseII::PixelRawDataTypeTraits<>::RawDataContainerProxy;
31 using StripRawDataContainerProxy = PhaseII::StripRawDataTypeTraits<>::RawDataContainerProxy;
33
34 // ---- 0. Init
35 auto ph2PixelRDOHandle = SG::makeHandle(m_ph2PixelRDOKey, ctx);
36 ATH_CHECK(ph2PixelRDOHandle.isValid());
37 auto ph2StripRDOHandle = SG::makeHandle(m_ph2StripRDOKey, ctx);
38 ATH_CHECK(ph2StripRDOHandle.isValid());
39
40 // ---- 1. Count Pixel and Strip hits: creating the traccc SoA requires
41 // knowing their size upon creation.
42
43 size_type nPix = 0, nStrip = 0;
44
45 // Pixels
46 auto pixel_rdo_container_collection_proxy = PhaseII::makeRawDataCollectionProxy(*ph2PixelRDOHandle);
47 for (PixelRawDataContainerProxy module_rdo_container_proxy : pixel_rdo_container_collection_proxy) {
48 if (!module_rdo_container_proxy.empty()) {
49 nPix += module_rdo_container_proxy.size();
50 }
51 }
52
53 // Strips
54 auto strip_rdo_container_collection_proxy = PhaseII::makeRawDataCollectionProxy(*ph2StripRDOHandle);
55
56 for (StripRawDataContainerProxy module_rdo_container_proxy : strip_rdo_container_collection_proxy) {
57 if (!module_rdo_container_proxy.empty()) {
58 for (StripRawDataProxy strip_rdo: module_rdo_container_proxy) {
59 if (!m_common.passTiming(strip_rdo.getTimeBin())) {
60 ATH_MSG_DEBUG("Strip failed timing check");
61 continue;
62 }
63 nStrip += strip_rdo.getGroupSize();
64 }
65 }
66 }
67
68 size_type const nCells = nPix + nStrip;
69
70 // ---- 2. Create the output cell buffer
71 auto host_copy = m_common.m_copiesTool->hostCopy(ctx);
72 traccc::edm::silicon_cell_collection::buffer traccc_cells_host_buffer{
73 nCells, m_common.m_hostMR->mr()};
74 host_copy->setup(traccc_cells_host_buffer)->wait();
75
76 if (nCells == 0) {
77 ATH_MSG_DEBUG("no input hits — writing empty cell collection");
78 ATH_CHECK(m_common.copyToGpuAndRecordToSG(ctx, traccc_cells_host_buffer));
79 return StatusCode::SUCCESS;
80 }
81
82 // Create a device collection around the buffer.
83 traccc::edm::silicon_cell_collection::device cells{traccc_cells_host_buffer};
84
85 // ---- 3. Convert RDOs to traccc cells
86 // The traccc buffers are not default initialized: all members must be set.
87
88 size_type cell_index = 0;
89 detray_id_type current_geometry_id = detray::geometry::identifier{}.value();
90 unsigned int current_det_cond_idx = -1;
91
92 // Convert Pixel RDOs
93 for (PixelRawDataContainerProxy module_rdo_container_proxy : pixel_rdo_container_collection_proxy) {
94 if (module_rdo_container_proxy.empty()) {
95 continue;
96 }
97 IdentifierHash const module_id_hash(module_rdo_container_proxy.identifyHash());
98 Identifier const module_id = m_common.m_pixelID->wafer_id(module_id_hash);
99 std::optional<detray_id_type> const detray_geometry_id_opt = m_common.m_geoIdMapping->athenaToDetray(module_id);
100 if (!detray_geometry_id_opt.has_value()) {
101 ATH_MSG_FATAL("No detray id found for Athena identifier " << module_id);
102 return StatusCode::FAILURE;
103 }
104 const detray_id_type detray_geometry_id{detray_geometry_id_opt.value()};
105 if (detray_geometry_id != current_geometry_id) {
106 current_geometry_id = detray_geometry_id;
107 std::optional<unsigned int> det_cond_idx_opt =
108 m_common.m_geoIdMapping->detrayToDetDescIndex(current_geometry_id);
109 if (!det_cond_idx_opt.has_value()) {
110 ATH_MSG_FATAL("No detector conditions index found for detray identifier " << current_geometry_id);
111 return StatusCode::FAILURE;
112 }
113 current_det_cond_idx = det_cond_idx_opt.value();
114 }
115
116 for (PixelRawDataProxy pixel_rdo: module_rdo_container_proxy) {
117 float activation = 1.;
118 if (m_common.m_UsePixelToTForCellActivation) {
119 activation = static_cast<float>(pixel_rdo.getToT());
120 if (activation == 0.) {
121 ATH_MSG_ERROR("input data error: RDO must not have ToT=0; RDO index: "
122 << cell_index);
123 }
124 }
125
126 traccc::edm::silicon_cell cell = cells.at(cell_index++);
127 cell.channel0() = static_cast<uint32_t>(pixel_rdo.coordinates()[0]);
128 cell.channel1() = static_cast<uint32_t>(pixel_rdo.coordinates()[1]);
129 cell.module_index() = current_det_cond_idx;
130 cell.activation() = activation;
131 cell.time() = 0;
132 }
133 }
134
135 // Convert Strip RDOs
136 for (StripRawDataContainerProxy module_rdo_container_proxy : strip_rdo_container_collection_proxy) {
137 if (module_rdo_container_proxy.empty()) {
138 continue;
139 }
140 IdentifierHash const module_id_hash(module_rdo_container_proxy.identifyHash());
141 Identifier const module_id = m_common.m_stripID->wafer_id(module_id_hash);
142 std::optional<detray_id_type> const detray_geometry_id_opt = m_common.m_geoIdMapping->athenaToDetray(module_id);
143 if (!detray_geometry_id_opt.has_value()) {
144 ATH_MSG_FATAL("No detray id found for Athena identifier " << module_id);
145 return StatusCode::FAILURE;
146 }
147 const detray_id_type detray_geometry_id{detray_geometry_id_opt.value()};
148 if (detray_geometry_id != current_geometry_id) {
149 current_geometry_id = detray_geometry_id;
150 std::optional<unsigned int> det_cond_idx_opt =
151 m_common.m_geoIdMapping->detrayToDetDescIndex(current_geometry_id);
152 if (!det_cond_idx_opt.has_value()) {
153 ATH_MSG_FATAL("No detector conditions index found for detray identifier " << current_geometry_id);
154 return StatusCode::FAILURE;
155 }
156 current_det_cond_idx = det_cond_idx_opt.value();
157 }
158
159 for (StripRawDataProxy strip_rdo: module_rdo_container_proxy) {
160 if (!m_common.passTiming(strip_rdo.getTimeBin())) {
161 ATH_MSG_DEBUG("Strip failed timing check");
162 continue;
163 }
164
165 if (m_common.m_stripID->barrel_ec(module_id) == 0) {
166 for (int i = 0; i < strip_rdo.getGroupSize(); ++i) {
167 traccc::edm::silicon_cell cell = cells.at(cell_index++);
168 cell.channel0() = static_cast<uint32_t>(strip_rdo.coordinates()[0] + i);
169 cell.channel1() = 0;
170 cell.module_index() = current_det_cond_idx;
171 cell.activation() = 1.;
172 cell.time() = 0;
173 }
174 } else {
175 for (int i = 0; i < strip_rdo.getGroupSize(); ++i) {
176 traccc::edm::silicon_cell cell = cells.at(cell_index++);
177 cell.channel0() = 0;
178 cell.channel1() = static_cast<uint32_t>(strip_rdo.coordinates()[0] + i);
179 cell.module_index() = current_det_cond_idx;
180 cell.activation() = 1.;
181 cell.time() = 0;
182 }
183 }
184 }
185 }
186
187 if (m_common.m_CPUCellSorting) {
188 // ---- 4. Sort cells
189 traccc::edm::silicon_cell_collection::buffer sorted_cells_host_buffer =
190 m_common.sortCells(*host_copy, cells);
191
192 // ---- 5. Copy host -> device buffer and write to StoreGate ---------------
193 ATH_CHECK(m_common.copyToGpuAndRecordToSG(ctx, sorted_cells_host_buffer));
194 } else {
195 // In this case the GPU clusterization algorithm must be configured to sort
196 // the cells.
197
198 // ---- 4/5. Copy host -> device buffer and write to StoreGate ---------------
199 ATH_CHECK(m_common.copyToGpuAndRecordToSG(ctx, traccc_cells_host_buffer));
200 }
201
202 // ---- 6. Accounting
203 m_common.m_nPix += nPix;
204 m_common.m_nStrip += nStrip;
205 m_common.m_nCells += nCells;
206
207 ATH_MSG_DEBUG("Wrote " << nCells << " cells to '"
208 << m_common.m_tracccCellsKey.key() << "'");
209 return StatusCode::SUCCESS;
210}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_ERROR(x,...)
#define ATH_MSG_FATAL(x,...)
SG::ReadHandleKey< PhaseIIStripRawDataContainer > m_ph2StripRDOKey
SG::ReadHandleKey< PhaseIIPixelRawDataContainer > m_ph2PixelRDOKey
GeometryIdMapping::detray_id_type detray_id_type
auto makeRawDataCollectionProxy(const T_RawDataContainerCollection &collection)
Create the top level container proxy for an RDO container collection (read only).
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
@ nStrip
Get number of strips.
Definition TauDefs.h:204
setRawEt setRawPhi nCells
setEventNumber uint32_t
typename RawData::details::traits< ContainerNonConst >::template RawDataProxy< accessPolicy > RawDataProxy
PhaseII::RawDataContainerProxy< typename Utils::ContainerAccessHelper< T_RawDataContainer, accessPolicy >::ContainerType, RawDataProxy > RawDataContainerProxy

◆ 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 ActsTrk::PhaseIIRDOtoTracccCellConverterAlg::finalize ( )
overridevirtual

Definition at line 212 of file PhaseIIRDOtoTracccCellConverterAlg.cxx.

213{
214 ATH_MSG_DEBUG("Finalizing.");
215
216 ATH_CHECK(m_common.finalize());
217
218 return StatusCode::SUCCESS;
219}

◆ initialize()

StatusCode ActsTrk::PhaseIIRDOtoTracccCellConverterAlg::initialize ( )
overridevirtual

Definition at line 14 of file PhaseIIRDOtoTracccCellConverterAlg.cxx.

15{
16 ATH_MSG_DEBUG("Initializing");
17
18 ATH_CHECK(m_common.initialize());
19
20 ATH_CHECK(m_ph2PixelRDOKey.initialize());
21 ATH_CHECK(m_ph2StripRDOKey.initialize());
22
23 return StatusCode::SUCCESS;
24}

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

◆ 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_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 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_common

RDOtoTracccCellConverterCommons ActsTrk::PhaseIIRDOtoTracccCellConverterAlg::m_common {*this}
private

Definition at line 38 of file PhaseIIRDOtoTracccCellConverterAlg.h.

38{*this};

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

SG::ReadHandleKey<PhaseIIPixelRawDataContainer> ActsTrk::PhaseIIRDOtoTracccCellConverterAlg::m_ph2PixelRDOKey
private
Initial value:
{
this, "PixelRDO", "ITkPixelRDOs"}

Definition at line 40 of file PhaseIIRDOtoTracccCellConverterAlg.h.

40 {
41 this, "PixelRDO", "ITkPixelRDOs"};

◆ m_ph2StripRDOKey

SG::ReadHandleKey<PhaseIIStripRawDataContainer> ActsTrk::PhaseIIRDOtoTracccCellConverterAlg::m_ph2StripRDOKey
private
Initial value:
{
this, "StripRDO", "ITkStripRDOs"}

Definition at line 42 of file PhaseIIRDOtoTracccCellConverterAlg.h.

42 {
43 this, "StripRDO", "ITkStripRDOs"};

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