ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
MuonPatternRecognition
MuonTruthAlgsR4
src
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
7
#include <
AthenaBaseComps/AthReentrantAlgorithm.h
>
8
9
#include <
xAODTruth/TruthParticleContainer.h
>
10
#include <
xAODTracking/TrackParticleContainer.h
>
11
12
#include <
StoreGate/ReadDecorHandleKeyArray.h
>
13
#include <
StoreGate/WriteDecorHandleKey.h
>
14
15
#include <
MuonIdHelpers/IMuonIdHelperSvc.h
>
16
#include <
MuonRecHelperTools/IMuonEDMHelperSvc.h
>
17
18
namespace
MuonR4
{
24
class
TrackToTruthPartAssocAlg
:
public
AthReentrantAlgorithm
{
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
37
using
TrkReadKey_t
=
SG::ReadHandleKey<xAOD::TrackParticleContainer>
;
38
using
TrkWriteDecorKey_t
=
SG::WriteDecorHandleKey<xAOD::TrackParticleContainer>
;
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_classificationWriteKey
{
this
,
"TruthClassificationWriteKey"
,
m_trkKey
,
"truthClassification"
};
45
TrkWriteDecorKey_t
m_linkWriteKey
{
this
,
"TruthLinkWriteKey"
,
m_trkKey
,
"truthParticleLink"
};
47
using
TruthReadKey_t
=
SG::ReadHandleKey<xAOD::TruthParticleContainer>
;
48
using
TruthReadDecorKey_t
=
SG::ReadDecorHandleKey<xAOD::TruthParticleContainer>
;
49
using
TruthReadDecorKeyArr_t
=
SG::ReadDecorHandleKeyArray<xAOD::TruthParticleContainer>
;
50
51
TruthReadKey_t
m_truthMuonKey
{
this
,
"TruthMuonKey"
,
"MuonTruthParticles"
};
52
54
Gaudi::Property<std::vector<std::string>>
m_simHitIds
{
this
,
"SimHitIds"
, {}};
56
TruthReadDecorKeyArr_t
m_simHitKeys
{
this
,
"TruthSimHitIdKeys"
, {}};
61
TruthReadDecorKey_t
m_truMuOriginKey
{
this
,
"TruthMuonOriginKey"
,
m_truthMuonKey
,
"truthOrigin"
};
62
TruthReadDecorKey_t
m_truMuTypeKey
{
this
,
"TruthMuonTypeKey"
,
m_truthMuonKey
,
"truthType"
};
63
TruthReadDecorKey_t
m_truMuClassificationKey
{
this
,
"TruthMuonClassificationKey"
,
m_truthMuonKey
,
"truthClassification"
};
64
65
};
66
}
67
68
#endif
AthReentrantAlgorithm.h
TrackParticleContainer.h
TruthParticleContainer.h
IMuonEDMHelperSvc.h
IMuonIdHelperSvc.h
ReadDecorHandleKeyArray.h
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::TrackToTruthPartAssocAlg
The TrackToTruthPartAssocAlg matches the reconstructed tracks to truth muons.
Definition
TrackToTruthPartAssocAlg.h:24
MuonR4::TrackToTruthPartAssocAlg::m_truMuOriginKey
TruthReadDecorKey_t m_truMuOriginKey
FIXME ReadDecorHandle should not be used to access dynamic variables applied by the algorithm which c...
Definition
TrackToTruthPartAssocAlg.h:61
MuonR4::TrackToTruthPartAssocAlg::m_simHitKeys
TruthReadDecorKeyArr_t m_simHitKeys
Declaration of the dependency on the simHit decorations.
Definition
TrackToTruthPartAssocAlg.h:56
MuonR4::TrackToTruthPartAssocAlg::m_linkWriteKey
TrkWriteDecorKey_t m_linkWriteKey
Definition
TrackToTruthPartAssocAlg.h:45
MuonR4::TrackToTruthPartAssocAlg::m_typeWriteKey
TrkWriteDecorKey_t m_typeWriteKey
Definition
TrackToTruthPartAssocAlg.h:43
MuonR4::TrackToTruthPartAssocAlg::m_classificationWriteKey
TrkWriteDecorKey_t m_classificationWriteKey
Definition
TrackToTruthPartAssocAlg.h:44
MuonR4::TrackToTruthPartAssocAlg::TruthReadKey_t
SG::ReadHandleKey< xAOD::TruthParticleContainer > TruthReadKey_t
Input truth particle keys.
Definition
TrackToTruthPartAssocAlg.h:47
MuonR4::TrackToTruthPartAssocAlg::m_truMuClassificationKey
TruthReadDecorKey_t m_truMuClassificationKey
Definition
TrackToTruthPartAssocAlg.h:63
MuonR4::TrackToTruthPartAssocAlg::TruthReadDecorKeyArr_t
SG::ReadDecorHandleKeyArray< xAOD::TruthParticleContainer > TruthReadDecorKeyArr_t
Definition
TrackToTruthPartAssocAlg.h:49
MuonR4::TrackToTruthPartAssocAlg::TrkWriteDecorKey_t
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > TrkWriteDecorKey_t
Definition
TrackToTruthPartAssocAlg.h:38
MuonR4::TrackToTruthPartAssocAlg::TruthReadDecorKey_t
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > TruthReadDecorKey_t
Definition
TrackToTruthPartAssocAlg.h:48
MuonR4::TrackToTruthPartAssocAlg::m_trkKey
TrkReadKey_t m_trkKey
Definition
TrackToTruthPartAssocAlg.h:40
MuonR4::TrackToTruthPartAssocAlg::initialize
StatusCode initialize() override final
Definition
TrackToTruthPartAssocAlg.cxx:21
MuonR4::TrackToTruthPartAssocAlg::TrkReadKey_t
SG::ReadHandleKey< xAOD::TrackParticleContainer > TrkReadKey_t
Definition
TrackToTruthPartAssocAlg.h:37
MuonR4::TrackToTruthPartAssocAlg::m_originWriteKey
TrkWriteDecorKey_t m_originWriteKey
Decorations to be written to the TrackParticle truthOrigin/truthType/truthParticleLink.
Definition
TrackToTruthPartAssocAlg.h:42
MuonR4::TrackToTruthPartAssocAlg::m_edmHelperSvc
ServiceHandle< Muon::IMuonEDMHelperSvc > m_edmHelperSvc
Helper service to handle the Identifiers of measurements.
Definition
TrackToTruthPartAssocAlg.h:34
MuonR4::TrackToTruthPartAssocAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
IdHelperSvc to decode the Identifiers.
Definition
TrackToTruthPartAssocAlg.h:32
MuonR4::TrackToTruthPartAssocAlg::execute
StatusCode execute(const EventContext &ctx) const override final
Definition
TrackToTruthPartAssocAlg.cxx:43
MuonR4::TrackToTruthPartAssocAlg::m_simHitIds
Gaudi::Property< std::vector< std::string > > m_simHitIds
List of simHit id decorations to read from the truth particle.
Definition
TrackToTruthPartAssocAlg.h:54
MuonR4::TrackToTruthPartAssocAlg::m_truMuTypeKey
TruthReadDecorKey_t m_truMuTypeKey
Definition
TrackToTruthPartAssocAlg.h:62
MuonR4::TrackToTruthPartAssocAlg::m_truthMuonKey
TruthReadKey_t m_truthMuonKey
Definition
TrackToTruthPartAssocAlg.h:51
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition
StoreGate/StoreGate/ReadDecorHandleKey.h:86
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
SG::ReadDecorHandleKeyArray
DecorHandleKeyArray< ReadDecorHandle< T, S >, ReadDecorHandleKey< T >, Gaudi::DataHandle::Reader > ReadDecorHandleKeyArray
Definition
StoreGate/StoreGate/ReadDecorHandleKeyArray.h:35
Generated on
for ATLAS Offline Software by
1.17.0