Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
TruthSegToTruthPartAssocAlg.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_TruthSegToTruthPartAssocAlg_H
5 #define MUONTRUTHSEGMENTMAKER_TruthSegToTruthPartAssocAlg_H
6 
8 
12 
16 
17 
18 namespace MuonR4{
25  public:
26  using AthReentrantAlgorithm::AthReentrantAlgorithm;
27 
28  virtual StatusCode initialize() override final;
29  virtual StatusCode execute(const EventContext& ctx) const override final;
30  private:
32  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "IdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
34  SG::ReadHandleKey<xAOD::TruthParticleContainer> m_truthKey{this, "TruthKey", "MuonTruthParticles"};
36  Gaudi::Property<std::vector<std::string>> m_simHitIds{this, "SimHitIds", {}};
40  SG::WriteDecorHandleKey<xAOD::TruthParticleContainer> m_segLinkKey{this, "SegmentToPartKey", m_truthKey, "truthSegmentLinks"};
42  SG::ReadHandleKey<xAOD::MuonSegmentContainer> m_segmentKey{this, "SegmentKey", "TruthSegmentsR4"};
45 
46  };
47 }
48 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer >
MuonR4::TruthSegToTruthPartAssocAlg
The TruthSegToTruthPartAssocAlg associates the TruthSegments with the primary TruthParticle from the ...
Definition: TruthSegToTruthPartAssocAlg.h:24
TruthParticleContainer.h
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
SG::ReadHandleKey< xAOD::TruthParticleContainer >
MuonR4::TruthSegToTruthPartAssocAlg::m_truthLinkKey
SG::WriteDecorHandleKey< xAOD::MuonSegmentContainer > m_truthLinkKey
Key of the truthParticleLink decorated onto the segment.
Definition: TruthSegToTruthPartAssocAlg.h:44
MuonSegmentContainer.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
MuonR4::TruthSegToTruthPartAssocAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
IdHelperSvc to decode the Identifiers.
Definition: TruthSegToTruthPartAssocAlg.h:32
MuonR4::TruthSegToTruthPartAssocAlg::initialize
virtual StatusCode initialize() override final
Definition: TruthSegToTruthPartAssocAlg.cxx:26
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
MuonR4::TruthSegToTruthPartAssocAlg::m_simHitIds
Gaudi::Property< std::vector< std::string > > m_simHitIds
List of simHit id decorations to read from the truth particle.
Definition: TruthSegToTruthPartAssocAlg.h:36
MuonR4::TruthSegToTruthPartAssocAlg::m_simHitKeys
SG::ReadDecorHandleKeyArray< xAOD::TruthParticleContainer > m_simHitKeys
Declaration of the dependency on the simHit decorations.
Definition: TruthSegToTruthPartAssocAlg.h:38
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonR4::TruthSegToTruthPartAssocAlg::m_segLinkKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_segLinkKey
Declaration of the segmentLink to the truth particle.
Definition: TruthSegToTruthPartAssocAlg.h:40
MuonR4::TruthSegToTruthPartAssocAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: TruthSegToTruthPartAssocAlg.cxx:38
AthReentrantAlgorithm.h
MuonR4::TruthSegToTruthPartAssocAlg::m_segmentKey
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_segmentKey
Key to the truth segment container to associate.
Definition: TruthSegToTruthPartAssocAlg.h:42
MuonR4::TruthSegToTruthPartAssocAlg::m_truthKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthKey
Key to the truth particle container to associate.
Definition: TruthSegToTruthPartAssocAlg.h:34
MuonR4
This header ties the generic definitions in this package.
Definition: HoughEventData.h:16
ReadDecorHandleKeyArray.h
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >