ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
MuonPatternRecognition
MuonTruthAlgsR4
src
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
7
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
8
9
#include "
StoreGate/ReadHandleKey.h
"
10
#include "
StoreGate/WriteDecorHandleKey.h
"
11
12
#include "
xAODTruth/TruthParticleContainer.h
"
13
#include "
xAODMuonSimHit/MuonSimHitContainer.h
"
14
15
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
16
17
namespace
MuonR4
{
21
class
SimHitToTruthPartAssocAlg
:
public
AthReentrantAlgorithm
{
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
:
29
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
this
,
"MuonIdHelperSvc"
,
30
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
31
32
SG::ReadHandleKey<xAOD::TruthParticleContainer>
m_truthKey
{
this
,
"TruthKey"
,
"MuonTruthParticles"
};
34
SG::WriteDecorHandleKey<xAOD::TruthParticleContainer>
m_hitDecorKey
{
this
,
"HitIdDecoration"
,
m_truthKey
,
"hitIds"
};
36
SG::ReadHandleKey<xAOD::MuonSimHitContainer>
m_simHitKey
{
this
,
"SimHitContainer"
,
""
};
37
};
38
}
39
40
#endif
AthReentrantAlgorithm.h
TruthParticleContainer.h
IMuonIdHelperSvc.h
MuonSimHitContainer.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
MuonR4::SimHitToTruthPartAssocAlg
This algorihm associates the SDO / sim hit Identifiers to the truth particle using the HepMCParticle ...
Definition
SimHitToTruthPartAssocAlg.h:21
MuonR4::SimHitToTruthPartAssocAlg::initialize
virtual StatusCode initialize() override final
Definition
SimHitToTruthPartAssocAlg.cxx:19
MuonR4::SimHitToTruthPartAssocAlg::m_hitDecorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_hitDecorKey
Decoration to the hit identifier vector.
Definition
SimHitToTruthPartAssocAlg.h:34
MuonR4::SimHitToTruthPartAssocAlg::m_truthKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthKey
Data dependency on the truth input container to decorate.
Definition
SimHitToTruthPartAssocAlg.h:32
MuonR4::SimHitToTruthPartAssocAlg::m_simHitKey
SG::ReadHandleKey< xAOD::MuonSimHitContainer > m_simHitKey
Data dependency on the sim hit container.
Definition
SimHitToTruthPartAssocAlg.h:36
MuonR4::SimHitToTruthPartAssocAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
IdHelperSvc for Identifier printing / manipulation.
Definition
SimHitToTruthPartAssocAlg.h:29
MuonR4::SimHitToTruthPartAssocAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition
SimHitToTruthPartAssocAlg.cxx:26
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
ServiceHandle
Definition
ClusterMakerTool.h:36
MuonR4
This header ties the generic definitions in this package.
Definition
GlobalPattern.h:14
Generated on
for ATLAS Offline Software by
1.17.0