ATLAS Offline Software
Loading...
Searching...
No Matches
SimHitToTruthPartAssocAlg.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 MUONTRUTHALGSR4_SIMHITTOTRUTHPARTASSOCALG_H
5#define MUONTRUTHALGSR4_SIMHITTOTRUTHPARTASSOCALG_H
6
8
11
14
16
17namespace MuonR4{
22 public:
23 using AthReentrantAlgorithm::AthReentrantAlgorithm;
24
25 virtual StatusCode initialize() override final;
26 virtual StatusCode execute(const EventContext& ctx) const override final;
27 private:
30 "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
31
32 SG::ReadHandleKey<xAOD::TruthParticleContainer> m_truthKey{this, "TruthKey", "MuonTruthParticles"};
37 };
38}
39
40#endif
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.
An algorithm that can be simultaneously executed in multiple threads.
This algorihm associates the SDO / sim hit Identifiers to the truth particle using the HepMCParticle ...
virtual StatusCode initialize() override final
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_hitDecorKey
Decoration to the hit identifier vector.
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthKey
Data dependency on the truth input container to decorate.
SG::ReadHandleKey< xAOD::MuonSimHitContainer > m_simHitKey
Data dependency on the sim hit container.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
IdHelperSvc for Identifier printing / manipulation.
virtual StatusCode execute(const EventContext &ctx) const override final
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.