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

Algorithm converting xAOD space points (host containers) to traccc spacepoints (device buffer). More...

#include <xAODToTracccSpacePointConverterAlg.h>

Inheritance diagram for ActsTrk::xAODToTracccSpacePointConverterAlg:
Collaboration diagram for ActsTrk::xAODToTracccSpacePointConverterAlg:

Public Member Functions

virtual StatusCode initialize () override
 Function initializing the algorithm.
virtual StatusCode execute (const EventContext &ctx) const override
 Function executing the algorithm.
virtual StatusCode finalize () override
 Function finalizing the algorithm.
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< StoreGateSvcStoreGateSvc_t

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

std::atomic< unsigned long > m_nSpacePoints = 0
 The object counter for debug prints in finalize method.
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
The input host resident space point containers and index maps

{@

SG::ReadHandleKeyArray< xAOD::SpacePointContainerm_inputSpacePointKeys
SG::ReadHandleKey< std::vector< unsigned int > > m_inputMeasToClusterKey
The output device resident spacepoint collection name

{@

SG::WriteHandleKey< traccc::edm::spacepoint_collection::buffer > m_outputSPKey
The output host resident index map names

{@

SG::WriteHandleKey< std::vector< unsigned int > > m_outputSPContainerKey
SG::WriteHandleKey< std::vector< unsigned int > > m_outputSPIndexKey
The memory resources and copy tools

{@

ToolHandle< AthDevice::IMemoryResourcesToolm_MRs
ToolHandle< AthDevice::ICopiesToolm_copiesTool

Detailed Description

Algorithm converting xAOD space points (host containers) to traccc spacepoints (device buffer).

This algorithm retrieves the input xAOD space point containers from the event store, converts them to a single traccc spacepoint collection, copies the collection to the device and records the resulting device resident buffer in the event store. It works under the assumption that the traccc measurements of the space point clusters are available on the device and that the mapping from the traccc measurement index to the xAOD cluster index has been recorded in the event store, either by TracccMeasurementConverterAlg or by xAODToTracccMeasurementConverterAlg.

All input space points must be of the same type (pixel or strip), matching the measurement to cluster index map, so that the output collection can be passed exclusively to the corresponding seeding algorithm. The mapping from the traccc spacepoint index to the input container and the index within that container is recorded in the event store.

Author
Jackson Burzynski jacks.nosp@m.on.c.nosp@m.arl.b.nosp@m.urzy.nosp@m.nski@.nosp@m.cern.nosp@m..ch

Definition at line 48 of file xAODToTracccSpacePointConverterAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 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::xAODToTracccSpacePointConverterAlg::execute ( const EventContext & ctx) const
overridevirtual

Function executing the algorithm.

Definition at line 40 of file xAODToTracccSpacePointConverterAlg.cxx.

41{
42 using size_type = traccc::edm::spacepoint_collection::buffer::size_type;
43 constexpr unsigned int invalidIndex = std::numeric_limits<unsigned int>::max();
44
45 auto measToCluster = SG::makeHandle(m_inputMeasToClusterKey, ctx);
46 ATH_CHECK(measToCluster.isValid());
47
48 std::vector<unsigned int> clusterToMeas;
49 for (unsigned int measIdx = 0; measIdx < measToCluster->size(); ++measIdx) {
50 const unsigned int clusterIdx = (*measToCluster)[measIdx];
51 if (clusterIdx == invalidIndex) continue;
52 if (clusterIdx >= clusterToMeas.size()) clusterToMeas.resize(clusterIdx + 1, invalidIndex);
53 clusterToMeas[clusterIdx] = measIdx;
54 }
55
56 std::vector<SG::ReadHandle<xAOD::SpacePointContainer>> spacePointHandles =
57 m_inputSpacePointKeys.makeHandles(ctx);
58 size_type nSpacePoints = 0;
59 for (auto& handle : spacePointHandles) {
60 ATH_CHECK(handle.isValid());
61 nSpacePoints += handle->size();
62 }
63 ATH_MSG_DEBUG("Found " << nSpacePoints << " space points in "
64 << spacePointHandles.size() << " containers");
65
66 std::pmr::memory_resource* hostMR = m_MRs->hostMR();
67 auto hostCopy = m_copiesTool->hostCopy(ctx);
68 auto spHostBuffer = std::make_unique<traccc::edm::spacepoint_collection::buffer>(
69 nSpacePoints, hostMR ? *hostMR : m_MRs->mainMR());
70 hostCopy->setup(*spHostBuffer)->wait();
71
72 // Create a "device" collection around the buffer to work on it
73 traccc::edm::spacepoint_collection::device spacepoints{*spHostBuffer};
74
75 auto spToContainer = std::make_unique<std::vector<unsigned int>>(nSpacePoints, invalidIndex);
76 auto spToIndex = std::make_unique<std::vector<unsigned int>>(nSpacePoints, invalidIndex);
77
78 // The traccc buffers are not default initialized: all members must be set.
79 auto measurementIndexOf = [&](const xAOD::UncalibratedMeasurement* m) -> unsigned int {
80 if (m == nullptr || m->index() >= clusterToMeas.size()) return invalidIndex;
81 return clusterToMeas[m->index()];
82 };
83
85 size_type spIndex = 0;
86 for (unsigned int c = 0; c < spacePointHandles.size(); ++c) {
87 const xAOD::SpacePointContainer& container = *spacePointHandles[c];
88 for (unsigned int j = 0; j < container.size(); ++j) {
89 const xAOD::SpacePoint* xsp = container[j];
90 const auto& xmeas = xsp->measurements();
91 if (xmeas.empty() || xmeas.front() == nullptr) {
92 ATH_MSG_FATAL("Space point " << j << " in '" << m_inputSpacePointKeys[c].key()
93 << "' has no associated measurements");
94 return StatusCode::FAILURE;
95 }
96
97 const xAOD::UncalibMeasType type = xmeas.front()->type();
98 if (spacePointType == xAOD::UncalibMeasType::Other) {
99 spacePointType = type;
100 } else if (type != spacePointType) {
101 ATH_MSG_FATAL("Space point " << j << " in '" << m_inputSpacePointKeys[c].key()
102 << "' is of a different type than the previous space points, "
103 << "all input space points must be either pixel or strip");
104 return StatusCode::FAILURE;
105 }
106
107 const unsigned int idx1 = measurementIndexOf(xmeas[0]);
108 const unsigned int idx2 = (xmeas.size() > 1) ? measurementIndexOf(xmeas[1])
109 : traccc::edm::spacepoint_collection::device::INVALID_MEASUREMENT_INDEX;
110 if (idx1 == invalidIndex || (xmeas.size() > 1 && idx2 == invalidIndex)) {
111 ATH_MSG_FATAL("Space point " << j << " in '" << m_inputSpacePointKeys[c].key()
112 << "' references a cluster not covered by '" << m_inputMeasToClusterKey.key() << "'");
113 return StatusCode::FAILURE;
114 }
115
116 auto sp = spacepoints.at(spIndex);
117 sp.measurement_index_1() = idx1;
118 sp.measurement_index_2() = idx2;
119 sp.global() = {xsp->x(), xsp->y(), xsp->z()};
120 sp.z_variance() = xsp->varianceZ();
121 sp.radius_variance() = xsp->varianceR();
122
123 (*spToContainer)[spIndex] = c;
124 (*spToIndex)[spIndex] = j;
125 ++spIndex;
126 }
127 }
128
129 auto spHandle = SG::makeHandle(m_outputSPKey, ctx);
130 if (hostMR) {
131 auto deviceCopy = m_copiesTool->deviceCopy(ctx);
132 auto spDeviceBuffer = std::make_unique<traccc::edm::spacepoint_collection::buffer>(
133 spHostBuffer->capacity(), m_MRs->mainMR());
134
135 // We ignore() the setup and wait() on the copy to allow parallelism.
136 deviceCopy->setup(*spDeviceBuffer)->ignore();
137 (*deviceCopy)(*spHostBuffer, *spDeviceBuffer)->wait();
138 ATH_CHECK(spHandle.record(std::move(spDeviceBuffer)));
139 } else {
140 ATH_CHECK(spHandle.record(std::move(spHostBuffer)));
141 }
142 auto spToContainerHandle = SG::makeHandle(m_outputSPContainerKey, ctx);
143 ATH_CHECK(spToContainerHandle.record(std::move(spToContainer)));
144 auto spToIndexHandle = SG::makeHandle(m_outputSPIndexKey, ctx);
145 ATH_CHECK(spToIndexHandle.record(std::move(spToIndex)));
146
147 m_nSpacePoints += nSpacePoints;
148
149 ATH_MSG_DEBUG("Wrote " << nSpacePoints << " spacepoints to '"
150 << m_outputSPKey.key() << "'");
151 return StatusCode::SUCCESS;
152}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_FATAL(x,...)
static Double_t sp
SG::WriteHandleKey< std::vector< unsigned int > > m_outputSPContainerKey
SG::WriteHandleKey< std::vector< unsigned int > > m_outputSPIndexKey
SG::ReadHandleKey< std::vector< unsigned int > > m_inputMeasToClusterKey
SG::ReadHandleKeyArray< xAOD::SpacePointContainer > m_inputSpacePointKeys
std::atomic< unsigned long > m_nSpacePoints
The object counter for debug prints in finalize method.
ToolHandle< AthDevice::IMemoryResourcesTool > m_MRs
SG::WriteHandleKey< traccc::edm::spacepoint_collection::buffer > m_outputSPKey
float varianceZ() const
float varianceR() const
Returns the variances.
float z() const
const std::vector< const xAOD::UncalibratedMeasurement * > & measurements() const
Returns the index of the measurements.
float y() const
float x() const
virtual void handle(const Incident &inc)
Handle end of run incidents to save the metadata at that point.
const SG::AuxVectorData * container() const
Return the container holding this element.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
float j(const xAOD::IParticle &, const xAOD::TrackMeasurementValidation &hit, const Eigen::Matrix3d &jab_inv)
SpacePointContainer_v1 SpacePointContainer
Define the version of the space point container.
UncalibratedMeasurement_v1 UncalibratedMeasurement
Define the version of the uncalibrated measurement class.
UncalibMeasType
Define the type of the uncalibrated measurement.

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

Function finalizing the algorithm.

Definition at line 154 of file xAODToTracccSpacePointConverterAlg.cxx.

155{
156 ATH_MSG_DEBUG("Finalizing.");
157
158 ATH_MSG_INFO("Converted total number of space points = " << m_nSpacePoints);
159
160 return StatusCode::SUCCESS;
161}
#define ATH_MSG_INFO(x,...)

◆ initialize()

StatusCode ActsTrk::xAODToTracccSpacePointConverterAlg::initialize ( )
overridevirtual

Function initializing the algorithm.

Definition at line 17 of file xAODToTracccSpacePointConverterAlg.cxx.

18{
19 ATH_MSG_DEBUG("Initializing.");
20
21 if (m_inputSpacePointKeys.empty()) {
22 ATH_MSG_FATAL("No input space point containers configured");
23 return StatusCode::FAILURE;
24 }
25
26 ATH_CHECK(m_inputSpacePointKeys.initialize());
28
29 ATH_CHECK(m_outputSPKey.initialize());
31 ATH_CHECK(m_outputSPIndexKey.initialize());
32
33 ATH_CHECK(m_MRs.retrieve());
34 ATH_CHECK(m_copiesTool.retrieve());
35
36 ATH_MSG_DEBUG("Successfully initialized");
37 return StatusCode::SUCCESS;
38}

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

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

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

Set filter decision:

Reimplemented in AthFilterAlgorithm.

Definition at line 99 of file AthCommonAlgorithm.h.

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

◆ sysExecute()

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

Execute an algorithm.

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

Reimplemented in AthAnalysisAlgorithm.

Definition at line 80 of file AthCommonAlgorithm.cxx.

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

◆ sysInitialize()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

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

Definition at line 60 of file AthCommonAlgorithm.cxx.

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

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

Member Data Documentation

◆ m_copiesTool

ToolHandle<AthDevice::ICopiesTool> ActsTrk::xAODToTracccSpacePointConverterAlg::m_copiesTool
private
Initial value:
{
this, "CopiesTool", "", "Tool that provides host and device copy objects"}

Definition at line 92 of file xAODToTracccSpacePointConverterAlg.h.

92 {
93 this, "CopiesTool", "", "Tool that provides host and device copy objects"};

◆ m_detStore

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

Pointer to StoreGate (detector store by default).

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

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

Pointer to StoreGate (event store by default).

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

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

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

Empty if no symlinks were found.

Definition at line 108 of file AthCommonAlgorithm.h.

◆ m_inputMeasToClusterKey

SG::ReadHandleKey<std::vector<unsigned int> > ActsTrk::xAODToTracccSpacePointConverterAlg::m_inputMeasToClusterKey
private
Initial value:
{
this, "InputMeasToCluster", "",
"Input mapping from traccc measurement index to xAOD cluster index"}

Definition at line 65 of file xAODToTracccSpacePointConverterAlg.h.

65 {
66 this, "InputMeasToCluster", "",
67 "Input mapping from traccc measurement index to xAOD cluster index"};

◆ m_inputSpacePointKeys

SG::ReadHandleKeyArray<xAOD::SpacePointContainer> ActsTrk::xAODToTracccSpacePointConverterAlg::m_inputSpacePointKeys
private
Initial value:
{
this, "InputSpacePoints", {}, "Input xAOD space point containers"}

Definition at line 63 of file xAODToTracccSpacePointConverterAlg.h.

63 {
64 this, "InputSpacePoints", {}, "Input xAOD space point containers"};

◆ m_MRs

ToolHandle<AthDevice::IMemoryResourcesTool> ActsTrk::xAODToTracccSpacePointConverterAlg::m_MRs
private
Initial value:
{
this, "MemoryResourcesTool", "",
"The memory resources tool to use for allocating memory on the host and the device"}

Definition at line 89 of file xAODToTracccSpacePointConverterAlg.h.

89 {
90 this, "MemoryResourcesTool", "",
91 "The memory resources tool to use for allocating memory on the host and the device"};

◆ m_nSpacePoints

std::atomic<unsigned long> ActsTrk::xAODToTracccSpacePointConverterAlg::m_nSpacePoints = 0
mutableprivate

The object counter for debug prints in finalize method.

Definition at line 97 of file xAODToTracccSpacePointConverterAlg.h.

◆ m_outputSPContainerKey

SG::WriteHandleKey<std::vector<unsigned int> > ActsTrk::xAODToTracccSpacePointConverterAlg::m_outputSPContainerKey
private
Initial value:
{
this, "OutputSPToHostContainer", "",
"Output mapping from traccc spacepoint index to input container number"}

Definition at line 79 of file xAODToTracccSpacePointConverterAlg.h.

79 {
80 this, "OutputSPToHostContainer", "",
81 "Output mapping from traccc spacepoint index to input container number"};

◆ m_outputSPIndexKey

SG::WriteHandleKey<std::vector<unsigned int> > ActsTrk::xAODToTracccSpacePointConverterAlg::m_outputSPIndexKey
private
Initial value:
{
this, "OutputSPToHostIndex", "",
"Output mapping from traccc spacepoint index to index in the input container"}

Definition at line 82 of file xAODToTracccSpacePointConverterAlg.h.

82 {
83 this, "OutputSPToHostIndex", "",
84 "Output mapping from traccc spacepoint index to index in the input container"};

◆ m_outputSPKey

SG::WriteHandleKey<traccc::edm::spacepoint_collection::buffer> ActsTrk::xAODToTracccSpacePointConverterAlg::m_outputSPKey
private
Initial value:
{
this, "OutputTracccSpacepoints", "",
"Output traccc spacepoint collection buffer"}

Definition at line 72 of file xAODToTracccSpacePointConverterAlg.h.

72 {
73 this, "OutputTracccSpacepoints", "",
74 "Output traccc spacepoint collection buffer"};

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


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