ATLAS Offline Software
PrepDataToSimHitAssocAlg.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 MUONTRUTHALGSR4_PREPDATATOSIMHITASSOCALG_H
5 #define MUONTRUTHALGSR4_PREPDATATOSIMHITASSOCALG_H
6 
8 
15 #include <span>
16 namespace MuonR4{
23  public:
25 
26  StatusCode initialize() override final;
27  StatusCode execute(const EventContext & ctx) const override final;
28  private:
34  template <class ContainerType> StatusCode retrieveContainer(const EventContext& ctx,
36  const ContainerType* & contToPush) const;
45  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "IdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
47  SG::ReadHandleKey<ActsGeometryContext> m_geoCtxKey{this, "AlignmentKey", "ActsAlignment", "cond handle key"};
49  Gaudi::Property<double> m_PullCutOff{this, "AssocPull", 3.};
50  };
51 }
52 
53 
54 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
MuonR4::PrepDataToSimHitAssocAlg::initialize
StatusCode initialize() override final
Definition: PrepDataToSimHitAssocAlg.cxx:30
SG::ReadHandleKey< ContainerType >
MuonR4::PrepDataToSimHitAssocAlg
The PrepDataToSimHitAssocAlg matches the uncalibrated measurements to the MuonSimHits or to the MuonS...
Definition: PrepDataToSimHitAssocAlg.h:22
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
MuonR4::PrepDataToSimHitAssocAlg::m_decorKey
SG::WriteDecorHandleKey< xAOD::UncalibratedMeasurementContainer > m_decorKey
Definition: PrepDataToSimHitAssocAlg.h:43
MuonR4::PrepDataToSimHitAssocAlg::execute
StatusCode execute(const EventContext &ctx) const override final
Definition: PrepDataToSimHitAssocAlg.cxx:38
MuonR4::PrepDataToSimHitAssocAlg::m_geoCtxKey
SG::ReadHandleKey< ActsGeometryContext > m_geoCtxKey
Key to the geometry context.
Definition: PrepDataToSimHitAssocAlg.h:47
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
MuonR4::PrepDataToSimHitAssocAlg::m_prdHitKey
SG::ReadHandleKey< xAOD::UncalibratedMeasurementContainer > m_prdHitKey
Key to the uncalibrated measurements to decorate.
Definition: PrepDataToSimHitAssocAlg.h:40
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
UncalibratedMeasurementContainer.h
MuonDetectorManager.h
MuonR4::PrepDataToSimHitAssocAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
IdHelperSvc to decode the Identifiers.
Definition: PrepDataToSimHitAssocAlg.h:45
MuonSimHitContainer.h
AthReentrantAlgorithm.h
MuonR4::PrepDataToSimHitAssocAlg::m_PullCutOff
Gaudi::Property< double > m_PullCutOff
The number of standard deviations a measurement may be pulled apart in order to be associated.
Definition: PrepDataToSimHitAssocAlg.h:49
MuonR4::PrepDataToSimHitAssocAlg::m_simHitsKey
SG::ReadHandleKey< xAOD::MuonSimHitContainer > m_simHitsKey
Key to the associated simHit container.
Definition: PrepDataToSimHitAssocAlg.h:38
MuonR4::PrepDataToSimHitAssocAlg::retrieveContainer
StatusCode retrieveContainer(const EventContext &ctx, const SG::ReadHandleKey< ContainerType > &key, const ContainerType *&contToPush) const
Helper method to retrieve any kind of container from a ReadHandleKey.
Definition: PrepDataToSimHitAssocAlg.cxx:16
MuonR4
This header ties the generic definitions in this package.
Definition: HoughEventData.h:16
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37