ATLAS Offline Software
Loading...
Searching...
No Matches
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
8
12
14namespace 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 */
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"};
30 m_segmentKey, "truthParticleLink"};
31
33 m_segmentKey, "truthSegmentLinks"};
34 };
35}
36
37#endif
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_segmentKey
Declare the input truth segment key.
virtual StatusCode execute(const EventContext &ctx) const override final
SG::ReadDecorHandleKey< xAOD::MuonSegmentContainer > m_truthPartLinkKey
Declare the dependency on the truth particle link.
virtual StatusCode initialize() override final
SG::WriteDecorHandleKey< xAOD::MuonSegmentContainer > m_connectKey
Declare the decoration written by the algorithm.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
This header ties the generic definitions in this package.