ATLAS Offline Software
Loading...
Searching...
No Matches
TruthMeasMarkerAlg.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 MUONOBJECTMARKER_TRUTHMEASMARKER_H
5#define MUONOBJECTMARKER_TRUTHMEASMARKER_H
6
8
13
17
18namespace MuonR4{
19 /*** @brief TruthMeasMarkerAlg loops over the truth segments and searches the xAOD::UncalibrtedMeasurements
20 * matched to the sim hits making up the segment */
22 public:
23 using AthReentrantAlgorithm::AthReentrantAlgorithm;
25
26 virtual StatusCode initialize() override final;
27 virtual StatusCode execute(const EventContext& ctx) const override final;
28 private:
30 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "IdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
32 SG::ReadHandleKey<xAOD::MuonSegmentContainer> m_segKey{this, "SegmentKey", "MuonTruthSegments" };
34 Gaudi::Property<std::string> m_writeMarker{this, "writeMarker", "matchedToTruthSeg"};
36 Gaudi::Property<std::string> m_segLink{this, "SegmentLinkKey", "truthSegmentLinks"};
38 Gaudi::Property<std::string> m_simLink{this, "SimHitLink", "simHitLink"};
47 };
48}
49
50#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.
An algorithm that can be simultaneously executed in multiple threads.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
IdHelperSvc to decode the Identifiers.
Gaudi::Property< std::string > m_segLink
Key to indicate the associated MuonSegment link.
virtual StatusCode execute(const EventContext &ctx) const override final
SG::ReadDecorHandleKeyArray< xAOD::UncalibratedMeasurementContainer > m_prdLinkKeys
Dependency on the sim hit decoration.
SG::ReadHandleKeyArray< xAOD::UncalibratedMeasurementContainer > m_measKeys
Key to the prd containers in the event.
SG::WriteDecorHandleKeyArray< xAOD::UncalibratedMeasurementContainer > m_writeMarkKeys
Key to the marker decoration.
SG::WriteDecorHandleKeyArray< xAOD::UncalibratedMeasurementContainer > m_writeSegLinkKeys
Key to the segment link decoration.
Gaudi::Property< std::string > m_simLink
Decoration key of the prd -> simHit association.
virtual StatusCode initialize() override final
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_segKey
Key to the primary muon container to select the muon from.
Gaudi::Property< std::string > m_writeMarker
Key that's decorated to mark the uncalibrated measurement.
Property holding a SG store/key/clid from which a ReadHandle is made.
This header ties the generic definitions in this package.
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
DecorHandleKeyArray< ReadDecorHandle< T, S >, ReadDecorHandleKey< T >, Gaudi::DataHandle::Reader > ReadDecorHandleKeyArray
DecorHandleKeyArray< WriteDecorHandle< T, S >, WriteDecorHandleKey< T >, Gaudi::DataHandle::Writer > WriteDecorHandleKeyArray
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray
#define private