ATLAS Offline Software
Loading...
Searching...
No Matches
MuonR4::TruthSegToTruthPartAssocAlg Class Reference

The TruthSegToTruthPartAssocAlg associates the TruthSegments with the primary TruthParticle from the IP. More...

#include <TruthSegToTruthPartAssocAlg.h>

Inheritance diagram for MuonR4::TruthSegToTruthPartAssocAlg:
Collaboration diagram for MuonR4::TruthSegToTruthPartAssocAlg:

Public Member Functions

virtual StatusCode initialize () override final
virtual StatusCode execute (const EventContext &ctx) const override final
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
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
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.
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

ServiceHandle< Muon::IMuonIdHelperSvcm_idHelperSvc {this, "IdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
 IdHelperSvc to decode the Identifiers.
SG::ReadHandleKey< xAOD::TruthParticleContainerm_truthKey {this, "TruthKey", "MuonTruthParticles"}
 Key to the truth particle container to associate.
Gaudi::Property< std::vector< std::string > > m_simHitIds {this, "SimHitIds", {}}
 List of simHit id decorations to read from the truth particle.
SG::ReadDecorHandleKeyArray< xAOD::TruthParticleContainerm_simHitKeys {this, "TruthSimHitIdKeys", {}}
 Declaration of the dependency on the simHit decorations.
SG::WriteDecorHandleKey< xAOD::TruthParticleContainerm_segLinkKey {this, "SegmentToPartKey", m_truthKey, "truthSegmentLinks"}
 Declaration of the segmentLink to the truth particle.
SG::ReadHandleKey< xAOD::MuonSegmentContainerm_segmentKey {this, "SegmentKey", "MuonTruthSegments"}
 Key to the truth segment container to associate.
SG::WriteDecorHandleKey< xAOD::MuonSegmentContainerm_truthLinkKey {this, "TruthToPartKey", m_segmentKey, "truthParticleLink"}
 Key of the truthParticleLink decorated onto the segment.
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

The TruthSegToTruthPartAssocAlg associates the TruthSegments with the primary TruthParticle from the IP.

At the same time, the truth particles are linked to all the associated segment candidates.

To perform the matching, the SDO identifiers decorated to the TruthParticle are compared with the SDO identifiers of the truth hits making up the truth segment.

Definition at line 24 of file TruthSegToTruthPartAssocAlg.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

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::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.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64{
65 return 0;
66}

◆ 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 MuonR4::TruthSegToTruthPartAssocAlg::execute ( const EventContext & ctx) const
finaloverridevirtual

Initialize the Identifier decorators

Setup a vector with the truth particles and the associated hits

Fetch the segment container

Setup the write decorators

Finally sort the segments along the trajectory

Definition at line 39 of file TruthSegToTruthPartAssocAlg.cxx.

39 {
40
41 const xAOD::TruthParticleContainer* truthParticles{nullptr};
42 ATH_CHECK(SG::get(truthParticles, m_truthKey, ctx));
43
44 using IdDecorHandle_t = SG::ReadDecorHandle<xAOD::TruthParticleContainer, std::vector<unsigned long long>>;
45 using SegLink_t = ElementLink<xAOD::MuonSegmentContainer>;
46 using SegLinkVec_t = std::vector<SegLink_t>;
47 SG::WriteDecorHandle<xAOD::TruthParticleContainer, SegLinkVec_t> segLinkDecor{m_segLinkKey ,ctx};
48
50 std::vector<IdDecorHandle_t> idDecorHandles{};
51 for (const SG::ReadDecorHandleKey<xAOD::TruthParticleContainer>& hitKey : m_simHitKeys) {
52 idDecorHandles.emplace_back(hitKey, ctx);
53 }
55 using IdSet_t = std::unordered_set<Identifier>;
56 using TruthTuple_t = std::tuple<const xAOD::TruthParticle*, IdSet_t>;
57 std::vector<TruthTuple_t> truthPartWithIds{};
58 truthPartWithIds.reserve(truthParticles->size());
59 for (const xAOD::TruthParticle* truthMuon : *truthParticles){
60 segLinkDecor(*truthMuon).clear();
61 IdSet_t assocIds{};
62 ATH_MSG_DEBUG("Truth muon "<<truthMuon->pt()<<", eta: "<<truthMuon->eta()<<", "<<truthMuon->phi()
63 <<", barcode: "<< HepMC::uniqueID(truthMuon));
64 for (const IdDecorHandle_t& hitDecor : idDecorHandles) {
65 std::ranges::transform(hitDecor(*truthMuon), std::inserter(assocIds, assocIds.begin()),
66 [this](unsigned long long rawId){
67 const Identifier id{rawId};
68 ATH_MSG_VERBOSE(" --- associated hit id: "<<m_idHelperSvc->toString(id));
69 return id;
70 });
71 }
72 truthPartWithIds.emplace_back(std::make_tuple(truthMuon, std::move(assocIds)));
73 }
75 const xAOD::MuonSegmentContainer* segments{nullptr};
76 ATH_CHECK(SG::get(segments, m_segmentKey, ctx));
77
79 using TruthPartLink_t = ElementLink<xAOD::TruthParticleContainer>;
80 SG::WriteDecorHandle<xAOD::MuonSegmentContainer, TruthPartLink_t> truthLinkDecor{m_truthLinkKey, ctx};
81
82
83 for (const xAOD::MuonSegment* segment : *segments){
84 std::unordered_set<const xAOD::MuonSimHit*> simHits = getMatchingSimHits(*segment);
85 ATH_MSG_DEBUG("Reconstructed truth segment "<<SegmentFit::toString(SegmentFit::localSegmentPars(*segment))
86 <<" chamberId: "<<Muon::MuonStationIndex::chName(segment->chamberIndex())
87 <<", phi: "<<segment->sector()<<", nPrecHits: "<<segment->nPrecisionHits()
88 <<", nDoF: "<<segment->numberDoF()<<" sim hits: "<<simHits.size());
89 if (msgLvl(MSG::VERBOSE)){
90 std::vector<const xAOD::MuonSimHit*> sortedHits{simHits.begin(), simHits.end()};
91 std::ranges::sort(sortedHits, [](const xAOD::MuonSimHit* a, const xAOD::MuonSimHit* b){
92 return a->identify() < b->identify();
93 });
94 for (const xAOD::MuonSimHit* hit: sortedHits) {
95 ATH_MSG_VERBOSE(" --- associated sim hit: "<<m_idHelperSvc->toString(hit->identify())
96 <<", locPos: "<<Amg::toString(xAOD::toEigen(hit->localPosition()))
97 <<", locDir: "<<Amg::toString(xAOD::toEigen(hit->localDirection()))
98 <<", "<<hit->genParticleLink());
99 }
100 }
101 /* now find the truth particle with all associated hits */
102 const auto best_itr = std::ranges::max_element(truthPartWithIds,
103 [&simHits](const TruthTuple_t& truthTupleA,
104 const TruthTuple_t& truthTupleB) {
105 return countMatched(simHits, std::get<1>(truthTupleA)) <
106 countMatched(simHits, std::get<1>(truthTupleB));
107 });
108 if (best_itr == truthPartWithIds.end()) {
109 ATH_MSG_WARNING("No truth particle matched the truth hits of the segment");
110 continue;
111 }
112 if (1.*countMatched(simHits, std::get<1>(*best_itr)) < 0.5* simHits.size()) {
113 if (msgLvl(MSG::VERBOSE)) {
114 for (const auto& [truthMuon, assocIds]: truthPartWithIds){
115 std::stringstream unMatchedStr{};
116 unsigned int counts{0};
117 for (const xAOD::MuonSimHit* hit: simHits) {
118 if (!assocIds.count(hit->identify())){
119 unMatchedStr<<" *** "<<m_idHelperSvc->toString(hit->identify())<<std::endl;
120 } else {
121 ++counts;
122 }
123 }
124 if (!counts) continue;
125 ATH_MSG_VERBOSE("Truth muon "<<truthMuon->pt()<<", eta: "<<truthMuon->eta()<<", "<<truthMuon->phi()
126 <<", barcode: "<<HepMC::uniqueID(truthMuon)<<", matched hits: "<<counts<<", unmatched: "<<std::endl<<unMatchedStr.str());
127 }
128 }
129 continue;
130 }
131 const xAOD::TruthParticle* truthPart{std::get<0>(*best_itr)};
132 segLinkDecor(*truthPart).emplace_back(segments, segment->index());
133 truthLinkDecor(*segment) = TruthPartLink_t{truthParticles, truthPart->index()};
134
135 }
137 for (const xAOD::TruthParticle* truthMuon : *truthParticles){
138 const Amg::Vector3D dir = Amg::Vector3D{truthMuon->px(), truthMuon->py(), truthMuon->pz()}.normalized();
139 const xAOD::TruthVertex* vtx{truthMuon->prodVtx()};
140 const Amg::Vector3D pos = (vtx? Amg::Vector3D{vtx->x(), vtx->y(), vtx->z()} : Amg::Vector3D::Zero());
141 SegLinkVec_t& linkedSegs{segLinkDecor(*truthMuon)};
142 std::ranges::sort(linkedSegs,[&pos, &dir](const SegLink_t& linkA, const SegLink_t& linkB){
143 return dir.dot((*linkA)->position() - pos) <
144 dir.dot((*linkB)->position() - pos);
145 });
146 }
147 return StatusCode::SUCCESS;
148 }
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
static Double_t a
bool msgLvl(const MSG::Level lvl) const
size_type size() const noexcept
Returns the number of elements in the collection.
SG::WriteDecorHandleKey< xAOD::MuonSegmentContainer > m_truthLinkKey
Key of the truthParticleLink decorated onto the segment.
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthKey
Key to the truth particle container to associate.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
IdHelperSvc to decode the Identifiers.
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_segLinkKey
Declaration of the segmentLink to the truth particle.
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_segmentKey
Key to the truth segment container to associate.
SG::ReadDecorHandleKeyArray< xAOD::TruthParticleContainer > m_simHitKeys
Declaration of the dependency on the simHit decorations.
size_t index() const
Return the index of this element within its container.
float z() const
Vertex longitudinal distance along the beam line form the origin.
float y() const
Vertex y displacement.
float x() const
Vertex x displacement.
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Eigen::Matrix< double, 3, 1 > Vector3D
int uniqueID(const T &p)
Parameters localSegmentPars(const xAOD::MuonSegment &seg)
Returns the localSegPars decoration from a xAODMuon::Segment.
std::string toString(const Parameters &pars)
Dumps the parameters into a string with labels in front of each number.
std::unordered_set< const xAOD::MuonSimHit * > getMatchingSimHits(const xAOD::MuonSegment &segment)
: Returns all sim hits matched to a xAOD::MuonSegment
ElementLink< MuonR4::SegmentContainer > SegLink_t
Abrivation of the link to the reco segment container.
std::vector< SegLink_t > SegLinkVec_t
unsigned int countMatched(const simHitSet &truthHits, const simHitSet &recoHits)
const std::string & chName(ChIndex index)
convert ChIndex into a string
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
MuonSegmentContainer_v1 MuonSegmentContainer
Definition of the current "MuonSegment container version".
TruthVertex_v1 TruthVertex
Typedef to implementation.
Definition TruthVertex.h:15
MuonSimHit_v1 MuonSimHit
Defined the version of the MuonSimHit.
Definition MuonSimHit.h:12
TruthParticle_v1 TruthParticle
Typedef to implementation.
MuonSegment_v1 MuonSegment
Reference the current persistent version:
TruthParticleContainer_v1 TruthParticleContainer
Declare the latest version of the truth particle container.

◆ 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 & AthCommonReentrantAlgorithm< 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 94 of file AthCommonReentrantAlgorithm.cxx.

90{
91 // If we didn't find any symlinks to add, just return the collection
92 // from the base class. Otherwise, return the extended collection.
93 if (!m_extendedExtraObjects.empty()) {
95 }
97}
An algorithm that can be simultaneously executed in multiple threads.

◆ filterPassed()

virtual bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96 {
97 return execState( ctx ).filterPassed();
98 }
virtual bool filterPassed(const EventContext &ctx) const

◆ initialize()

StatusCode MuonR4::TruthSegToTruthPartAssocAlg::initialize ( )
finaloverridevirtual

Definition at line 27 of file TruthSegToTruthPartAssocAlg.cxx.

27 {
28 ATH_CHECK(m_truthKey.initialize());
29 for (const std::string& hitIds : m_simHitIds) {
30 m_simHitKeys.emplace_back(m_truthKey, hitIds);
31 }
32 ATH_CHECK(m_simHitKeys.initialize());
33 ATH_CHECK(m_segLinkKey.initialize());
34 ATH_CHECK(m_segmentKey.initialize());
35 ATH_CHECK(m_truthLinkKey.initialize());
36 ATH_CHECK(m_idHelperSvc.retrieve());
37 return StatusCode::SUCCESS;
38 }
Gaudi::Property< std::vector< std::string > > m_simHitIds
List of simHit id decorations to read from the truth particle.

◆ 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()

◆ 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 AthCommonReentrantAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100 {
102 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const

◆ sysExecute()

StatusCode AthCommonReentrantAlgorithm< 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.

Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.

77{
78 return BaseAlg::sysExecute (ctx);
79}

◆ sysInitialize()

StatusCode AthCommonReentrantAlgorithm< 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 HypoBase, and InputMakerBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

107 {
109
110 if (sc.isFailure()) {
111 return sc;
112 }
113
114 ServiceHandle<ICondSvc> cs("CondSvc",name());
115 for (auto h : outputHandles()) {
116 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
117 // do this inside the loop so we don't create the CondSvc until needed
118 if ( cs.retrieve().isFailure() ) {
119 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
120 return StatusCode::SUCCESS;
121 }
122 if (cs->regHandle(this,*h).isFailure()) {
124 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125 << " with CondSvc");
126 }
127 }
128 }
129 return sc;
130}
#define ATH_MSG_ERROR(x)
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_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 AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

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

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.h.

◆ m_idHelperSvc

ServiceHandle<Muon::IMuonIdHelperSvc> MuonR4::TruthSegToTruthPartAssocAlg::m_idHelperSvc {this, "IdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
private

IdHelperSvc to decode the Identifiers.

Definition at line 32 of file TruthSegToTruthPartAssocAlg.h.

32{this, "IdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};

◆ m_segLinkKey

SG::WriteDecorHandleKey<xAOD::TruthParticleContainer> MuonR4::TruthSegToTruthPartAssocAlg::m_segLinkKey {this, "SegmentToPartKey", m_truthKey, "truthSegmentLinks"}
private

Declaration of the segmentLink to the truth particle.

Definition at line 40 of file TruthSegToTruthPartAssocAlg.h.

40{this, "SegmentToPartKey", m_truthKey, "truthSegmentLinks"};

◆ m_segmentKey

SG::ReadHandleKey<xAOD::MuonSegmentContainer> MuonR4::TruthSegToTruthPartAssocAlg::m_segmentKey {this, "SegmentKey", "MuonTruthSegments"}
private

Key to the truth segment container to associate.

Definition at line 42 of file TruthSegToTruthPartAssocAlg.h.

42{this, "SegmentKey", "MuonTruthSegments"};

◆ m_simHitIds

Gaudi::Property<std::vector<std::string> > MuonR4::TruthSegToTruthPartAssocAlg::m_simHitIds {this, "SimHitIds", {}}
private

List of simHit id decorations to read from the truth particle.

Definition at line 36 of file TruthSegToTruthPartAssocAlg.h.

36{this, "SimHitIds", {}};

◆ m_simHitKeys

SG::ReadDecorHandleKeyArray<xAOD::TruthParticleContainer> MuonR4::TruthSegToTruthPartAssocAlg::m_simHitKeys {this, "TruthSimHitIdKeys", {}}
private

Declaration of the dependency on the simHit decorations.

Definition at line 38 of file TruthSegToTruthPartAssocAlg.h.

38{this, "TruthSimHitIdKeys", {}};

◆ m_truthKey

SG::ReadHandleKey<xAOD::TruthParticleContainer> MuonR4::TruthSegToTruthPartAssocAlg::m_truthKey {this, "TruthKey", "MuonTruthParticles"}
private

Key to the truth particle container to associate.

Definition at line 34 of file TruthSegToTruthPartAssocAlg.h.

34{this, "TruthKey", "MuonTruthParticles"};

◆ m_truthLinkKey

SG::WriteDecorHandleKey<xAOD::MuonSegmentContainer> MuonR4::TruthSegToTruthPartAssocAlg::m_truthLinkKey {this, "TruthToPartKey", m_segmentKey, "truthParticleLink"}
private

Key of the truthParticleLink decorated onto the segment.

Definition at line 44 of file TruthSegToTruthPartAssocAlg.h.

44{this, "TruthToPartKey", m_segmentKey, "truthParticleLink"};

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