ATLAS Offline Software
TruthMeasMarkerAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef MUONOBJECTMARKER_TRUTHMEASMARKER_H
5 #define MUONOBJECTMARKER_TRUTHMEASMARKER_H
6 
8 
12 
16 
17 namespace MuonR4{
18  /*** @brief TruthMeasMarkerAlg loops over the truth segments and searches the xAOD::UncalibrtedMeasurements
19  * matched to the sim hits making up the segment */
21  public:
23  ~TruthMeasMarkerAlg() = default;
24 
25  virtual StatusCode initialize() override final;
26  virtual StatusCode execute(const EventContext& ctx) const override final;
27  private:
29  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "IdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
31  SG::ReadHandleKey<xAOD::MuonSegmentContainer> m_segKey{this, "SegmentKey", "TruthSegmentsR4" };
32 
34  Gaudi::Property<std::string> m_writeMarker{this, "writeMarker", "matchedToTruthSeg"};
36  Gaudi::Property<std::string> m_segLink{this, "SegmentLinkKey", "truthSegLinks"};
43  };
44 }
45 
46 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
MuonR4::TruthMeasMarkerAlg::m_writeMarker
Gaudi::Property< std::string > m_writeMarker
Key that's decorated to mark the uncalibrated measurement.
Definition: TruthMeasMarkerAlg.h:34
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
MuonR4::TruthMeasMarkerAlg::m_measKeys
SG::ReadHandleKeyArray< xAOD::UncalibratedMeasurementContainer > m_measKeys
Key to the segment container to fetch the marked segments.
Definition: TruthMeasMarkerAlg.h:38
MuonR4::TruthMeasMarkerAlg::m_segLink
Gaudi::Property< std::string > m_segLink
Key to indicate the associated MuonSegment link.
Definition: TruthMeasMarkerAlg.h:36
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
MuonR4::TruthMeasMarkerAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
IdHelperSvc to decode the Identifiers.
Definition: TruthMeasMarkerAlg.h:29
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
MuonSegmentContainer.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
MuonR4::TruthMeasMarkerAlg::m_segKey
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_segKey
Key to the primary muon container to select the muon from
Definition: TruthMeasMarkerAlg.h:31
MuonR4::TruthMeasMarkerAlg::m_writeSegLinkKeys
SG::WriteDecorHandleKeyArray< xAOD::UncalibratedMeasurementContainer > m_writeSegLinkKeys
Key to the segment link decoration.
Definition: TruthMeasMarkerAlg.h:42
MuonR4::TruthMeasMarkerAlg::initialize
virtual StatusCode initialize() override final
Definition: TruthMeasMarkerAlg.cxx:24
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
UncalibratedMeasurementContainer.h
MuonR4::TruthMeasMarkerAlg
Definition: TruthMeasMarkerAlg.h:20
AthReentrantAlgorithm.h
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
MuonR4::TruthMeasMarkerAlg::~TruthMeasMarkerAlg
~TruthMeasMarkerAlg()=default
MuonR4::TruthMeasMarkerAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: TruthMeasMarkerAlg.cxx:39
MuonR4
This header ties the generic definitions in this package.
Definition: HoughEventData.h:16
WriteDecorHandleKeyArray.h
IMuonIdHelperSvc.h
ServiceHandle
Definition: ClusterMakerTool.h:37
MuonR4::TruthMeasMarkerAlg::m_writeMarkKeys
SG::WriteDecorHandleKeyArray< xAOD::UncalibratedMeasurementContainer > m_writeMarkKeys
Key to the marker decoration.
Definition: TruthMeasMarkerAlg.h:40