ATLAS Offline Software
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 
17 namespace 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"};
32  SG::ReadHandleKey<xAOD::TruthParticleContainer> m_truthKey{this, "TruthKey", "MuonTruthParticles"};
37  };
38 }
39 
40 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer >
MuonR4::SimHitToTruthPartAssocAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
IdHelperSvc for Identifier printing / manipulation.
Definition: SimHitToTruthPartAssocAlg.h:29
MuonR4::SimHitToTruthPartAssocAlg::m_simHitKey
SG::ReadHandleKey< xAOD::MuonSimHitContainer > m_simHitKey
Data dependency on the sim hit container.
Definition: SimHitToTruthPartAssocAlg.h:36
TruthParticleContainer.h
MuonR4::SimHitToTruthPartAssocAlg::m_hitDecorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_hitDecorKey
Decoration to the hit identifier vector.
Definition: SimHitToTruthPartAssocAlg.h:34
SG::ReadHandleKey< xAOD::TruthParticleContainer >
MuonR4::SimHitToTruthPartAssocAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: SimHitToTruthPartAssocAlg.cxx:24
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
MuonR4::SimHitToTruthPartAssocAlg::m_truthKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthKey
Data dependency on the truth input container to decorate.
Definition: SimHitToTruthPartAssocAlg.h:32
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonR4::SimHitToTruthPartAssocAlg::initialize
virtual StatusCode initialize() override final
Definition: SimHitToTruthPartAssocAlg.cxx:17
MuonSimHitContainer.h
AthReentrantAlgorithm.h
MuonR4
This header ties the generic definitions in this package.
Definition: HoughEventData.h:16
IMuonIdHelperSvc.h
MuonR4::SimHitToTruthPartAssocAlg
This algorihm associates the SDO / sim hit Identifiers to the truth particle using the HepMCParticle ...
Definition: SimHitToTruthPartAssocAlg.h:21
ServiceHandle< Muon::IMuonIdHelperSvc >