ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
MuonPatternRecognition
MuonTruthAlgsR4
src
TruthSegConnectionAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef MUONTRUTHSEGMENTMAKER_TRUTHSEGCONNECTALG_H
5
#define MUONTRUTHSEGMENTMAKER_TRUTHSEGCONNECTALG_H
6
7
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
8
9
#include "
StoreGate/ReadHandleKey.h
"
10
#include "
StoreGate/ReadDecorHandleKey.h
"
11
#include "
StoreGate/WriteDecorHandleKey.h
"
12
13
#include "
xAODMuon/MuonSegmentContainer.h
"
14
namespace
MuonR4
{
15
/*** @brief Algorithm that connects segments stemming from the same
16
* truth G4 track. The matching is primarly based on the
17
* commonly shared truth particle. If the particle is skimmed
18
* due to pile-up truth particle surpression, then the
19
* G4 track id is used for matching */
20
class
TruthSegConnectionAlg
:
public
AthReentrantAlgorithm
{
21
public
:
22
using
AthReentrantAlgorithm::AthReentrantAlgorithm;
23
virtual
StatusCode
initialize
()
override
final
;
24
virtual
StatusCode
execute
(
const
EventContext& ctx)
const
override
final
;
25
private
:
27
SG::ReadHandleKey<xAOD::MuonSegmentContainer>
m_segmentKey
{
this
,
"SegmentKey"
,
"MuonTruthSegments"
};
29
SG::ReadDecorHandleKey<xAOD::MuonSegmentContainer>
m_truthPartLinkKey
{
this
,
"TruthParticleLinkKey"
,
30
m_segmentKey
,
"truthParticleLink"
};
31
32
SG::WriteDecorHandleKey<xAOD::MuonSegmentContainer>
m_connectKey
{
this
,
"ConnectionLabel"
,
33
m_segmentKey
,
"truthSegmentLinks"
};
34
};
35
}
36
37
#endif
AthReentrantAlgorithm.h
MuonSegmentContainer.h
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
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::TruthSegConnectionAlg
Definition
TruthSegConnectionAlg.h:20
MuonR4::TruthSegConnectionAlg::m_segmentKey
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_segmentKey
Declare the input truth segment key.
Definition
TruthSegConnectionAlg.h:27
MuonR4::TruthSegConnectionAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition
TruthSegConnectionAlg.cxx:51
MuonR4::TruthSegConnectionAlg::m_truthPartLinkKey
SG::ReadDecorHandleKey< xAOD::MuonSegmentContainer > m_truthPartLinkKey
Declare the dependency on the truth particle link.
Definition
TruthSegConnectionAlg.h:29
MuonR4::TruthSegConnectionAlg::initialize
virtual StatusCode initialize() override final
Definition
TruthSegConnectionAlg.cxx:44
MuonR4::TruthSegConnectionAlg::m_connectKey
SG::WriteDecorHandleKey< xAOD::MuonSegmentContainer > m_connectKey
Declare the decoration written by the algorithm.
Definition
TruthSegConnectionAlg.h:32
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
MuonR4
This header ties the generic definitions in this package.
Definition
GlobalPattern.h:14
Generated on
for ATLAS Offline Software by
1.17.0