ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
MuonPatternRecognition
MuonTruthAlgsR4
src
MuonToTruthAssocAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef MUONTRUTHALGSR4_MUONTRUTHMATCHINGALG_H
6
#define MUONTRUTHALGSR4_MUONTRUTHMATCHINGALG_H
7
8
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
9
10
#include "
xAODTruth/TruthParticleContainer.h
"
11
#include "
xAODMuon/MuonContainer.h
"
12
13
#include "
StoreGate/ReadHandleKey.h
"
14
#include "
StoreGate/ReadDecorHandleKeyArray.h
"
15
#include "
StoreGate/ReadHandleKeyArray.h
"
16
#include "
StoreGate/WriteDecorHandleKey.h
"
17
18
namespace
MuonR4
{
21
class
MuonToTruthAssocAlg
:
public
AthReentrantAlgorithm
{
22
public
:
23
using
AthReentrantAlgorithm::AthReentrantAlgorithm;
24
virtual
StatusCode
initialize
()
override
final
;
25
virtual
StatusCode
execute
(
const
EventContext& ctx)
const
override
final
;
26
private
:
28
SG::ReadHandleKey<xAOD::TruthParticleContainer>
m_truthKey
{
this
,
"TruthKey"
,
"MuonTruthParticles"
};
31
SG::ReadHandleKey<xAOD::MuonSegmentContainer>
m_segmentKey
{
this
,
"SegmentKey"
,
"MuonSegmentsFromR4"
};
34
SG::ReadHandleKeyArray<xAOD::TrackParticleContainer>
m_trkKeys
{
this
,
"TrackKeys"
, {}};
36
SG::ReadDecorHandleKeyArray<SG::AuxVectorBase>
m_decorKeys
{
this
,
"DeocrationKeys"
, {}};
38
SG::ReadHandleKey<xAOD::MuonContainer>
m_muonKey
{
this
,
"MuonKey"
,
"MuonsR4"
};
40
SG::WriteDecorHandleKey<xAOD::MuonContainer>
m_truthPartLinkKey
{
this
,
"TruthPartLinkKey"
,
m_muonKey
,
"truthParticleLink"
};
41
};
42
}
43
44
#endif
AthReentrantAlgorithm.h
MuonContainer.h
TruthParticleContainer.h
ReadDecorHandleKeyArray.h
ReadHandleKeyArray.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::MuonToTruthAssocAlg
Algorithm to match the xAOD::Muon objects to xAOD::TruthParticles stemming from the TruthMuons contai...
Definition
MuonToTruthAssocAlg.h:21
MuonR4::MuonToTruthAssocAlg::m_muonKey
SG::ReadHandleKey< xAOD::MuonContainer > m_muonKey
the actual muon container that we want to decorate
Definition
MuonToTruthAssocAlg.h:38
MuonR4::MuonToTruthAssocAlg::m_trkKeys
SG::ReadHandleKeyArray< xAOD::TrackParticleContainer > m_trkKeys
Additional track container dependencies.
Definition
MuonToTruthAssocAlg.h:34
MuonR4::MuonToTruthAssocAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition
MuonToTruthAssocAlg.cxx:41
MuonR4::MuonToTruthAssocAlg::initialize
virtual StatusCode initialize() override final
Definition
MuonToTruthAssocAlg.cxx:28
MuonR4::MuonToTruthAssocAlg::m_truthKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthKey
Declare the dependency on the truth particle container.
Definition
MuonToTruthAssocAlg.h:28
MuonR4::MuonToTruthAssocAlg::m_segmentKey
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_segmentKey
Declare the dependency on the reconstructed segment container to establish the reco -> truth link fro...
Definition
MuonToTruthAssocAlg.h:31
MuonR4::MuonToTruthAssocAlg::m_truthPartLinkKey
SG::WriteDecorHandleKey< xAOD::MuonContainer > m_truthPartLinkKey
Explicitly declare the truth particle link decoration.
Definition
MuonToTruthAssocAlg.h:40
MuonR4::MuonToTruthAssocAlg::m_decorKeys
SG::ReadDecorHandleKeyArray< SG::AuxVectorBase > m_decorKeys
Collector of all the decoration dependencies what are implicitly needed.
Definition
MuonToTruthAssocAlg.h:36
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
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
SG::ReadHandleKeyArray
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray
Definition
StoreGate/StoreGate/ReadHandleKeyArray.h:32
Generated on
for ATLAS Offline Software by
1.17.0