ATLAS Offline Software
Loading...
Searching...
No Matches
TrackToTruthPartAssocAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef MUONTRUTHSEGMENTMAKER_TrackToTruthPartAssocAlg_H
5#define MUONTRUTHSEGMENTMAKER_TrackToTruthPartAssocAlg_H
6
8
11
14
17
18namespace MuonR4{
25 public:
26 using AthReentrantAlgorithm::AthReentrantAlgorithm;
27
28 StatusCode initialize() override final;
29 StatusCode execute(const EventContext& ctx) const override final;
30 private:
32 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "IdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
34 ServiceHandle<Muon::IMuonEDMHelperSvc> m_edmHelperSvc{this, "EdmHelperSvc", "Muon::MuonEDMHelperSvc/MuonEDMHelperSvc"};
35
36
39
40 TrkReadKey_t m_trkKey{this, "TrackCollection", "MSTrks"};
42 TrkWriteDecorKey_t m_originWriteKey{this, "TruthOriginWriteKey", m_trkKey, "truthOrigin"};
43 TrkWriteDecorKey_t m_typeWriteKey{this, "TruthTypeWriteKey", m_trkKey, "truthType"};
44 TrkWriteDecorKey_t m_linkWriteKey{this, "TruthLinkWriteKey", m_trkKey, "truthParticleLink"};
49
50 TruthReadKey_t m_truthMuonKey{this, "TruthMuonKey", "MuonTruthParticles"};
51
53 Gaudi::Property<std::vector<std::string>> m_simHitIds{this, "SimHitIds", {}};
55 TruthDecorArr_t m_simHitKeys{this, "TruthSimHitIdKeys", {}};
56
57 TruthDecor_t m_truMuOriginKey{this, "TruthMuonOriginKey", m_truthMuonKey, "truthOrigin"};
58 TruthDecor_t m_truMuTypeKey{this, "TruthMuonTypeKey", m_truthMuonKey, "truthType"};
59
60 };
61}
62
63#endif
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
The TrackToTruthPartAssocAlg matches the reconstructed tracks to truth muons.
SG::ReadHandleKey< xAOD::TruthParticleContainer > TruthReadKey_t
Input truth particle keys.
TruthDecorArr_t m_simHitKeys
Declaration of the dependency on the simHit decorations.
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > TrkWriteDecorKey_t
SG::ReadDecorHandleKeyArray< xAOD::TruthParticleContainer > TruthDecorArr_t
SG::ReadHandleKey< xAOD::TrackParticleContainer > TrkReadKey_t
TrkWriteDecorKey_t m_originWriteKey
Decorations to be written to the TrackParticle truthOrigin/truthType/truthParticleLink.
ServiceHandle< Muon::IMuonEDMHelperSvc > m_edmHelperSvc
Helper service to handle the Identifiers of measurements.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
IdHelperSvc to decode the Identifiers.
StatusCode execute(const EventContext &ctx) const override final
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > TruthDecor_t
Gaudi::Property< std::vector< std::string > > m_simHitIds
List of simHit id decorations to read from the truth particle.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
This header ties the generic definitions in this package.
DecorHandleKeyArray< ReadDecorHandle< T, S >, ReadDecorHandleKey< T >, Gaudi::DataHandle::Reader > ReadDecorHandleKeyArray