 |
ATLAS Offline Software
|
Go to the documentation of this file.
4 #ifndef MUONTRUTHALGSR4_RECOSEGTOTRUTHASSOCALG_H
5 #define MUONTRUTHALGSR4_RECOSEGTOTRUTHASSOCALG_H
22 using AthReentrantAlgorithm::AthReentrantAlgorithm;
31 std::unordered_set<const xAOD::MuonSimHit*>
hits{};
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 ReadDecorHandle is made.
SG::ReadDecorHandleKey< xAOD::MuonSegmentContainer > m_truthSegLinkKey
Key to the truth segment -> truth particle association.
virtual StatusCode execute(const EventContext &ctx) const override final
SG::WriteDecorHandleKey< xAOD::MuonSegmentContainer > m_segTruthSegLinkKey
Output key to the associated truth segment link decoration.
Class describing a MuonSegment.
virtual StatusCode initialize() override final
Helper struct of segments with simHits & associated spectrometer sector.
SG::WriteDecorHandleKey< xAOD::MuonSegmentContainer > m_segTruthLinkKey
Output key to the associated truth particle decoration.
std::vector< SegmentWithTruth > matchSimHits(const xAOD::MuonSegmentContainer &segments) const
Loops over the segment container and fetches the segments with truth matched hits.
std::vector< SegmentWithTruth > SegWithTruthVec_t
An algorithm that can be simultaneously executed in multiple threads.
std::unordered_set< const xAOD::MuonSimHit * > hits
list of associated sim hits
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
SG::ReadDecorHandleKey< xAOD::MuonSegmentContainer > m_segPrdLinkKey
Key to the associated uncalibrated measurement decoration.
::StatusCode StatusCode
StatusCode definition for legacy code.
const xAOD::MuonSegment * segment
segment pointer of interest
This header ties the generic definitions in this package.
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_segmentKey
Key to the reconstructed segment container to truth match.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_truthSegKey
Key to the truth segment container.
Algorithm to match the reconstructed muon segment with the truth segment & with the truth particle.