ATLAS Offline Software
xAODSimHitToMdtMeasCnvAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef XAODMUONSIMHITCNV_xAODSimHitToMdtMeasurementCnvAlg_H
5 #define XAODMUONSIMHITCNV_xAODSimHitToMdtMeasurementCnvAlg_H
6 
8 
12 
16 
19 
22 #include <CLHEP/Random/RandomEngine.h>
30  public:
31  xAODSimHitToMdtMeasCnvAlg(const std::string& name, ISvcLocator* pSvcLocator);
32 
34 
35  StatusCode execute(const EventContext& ctx) const override;
36  StatusCode initialize() override;
37 
38  private:
39  CLHEP::HepRandomEngine* getRandomEngine(const EventContext& ctx) const;
40 
41  SG::ReadHandleKey<xAOD::MuonSimHitContainer> m_readKey{this, "InputCollection", "xMdtSimHits",
42  "Name of the new xAOD SimHit collection"};
43 
44  SG::WriteHandleKey<xAOD::MdtDriftCircleContainer> m_writeKey{this, "OutputContainer", "xAODMdtCircles",
45  "Output container"};
46 
49 
50  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
51 
52  ServiceHandle<IAthRNGSvc> m_rndmSvc{this, "RndmSvc", "AthRNGSvc", ""}; // Random number service
53  Gaudi::Property<std::string> m_streamName{this, "RandomStream", "MdtSimHitForkLifting"};
54 
55  SG::ReadCondHandleKey<MuonCalib::MdtCalibDataContainer> m_calibDbKey{this, "CalibDataKey", "MdtCalibConstants",
56  "Conditions object containing the calibrations"};
57 
58 
59 };
60 
61 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
MuonGMR4::MuonDetectorManager
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonDetectorManager.h:61
xAODSimHitToMdtMeasCnvAlg::xAODSimHitToMdtMeasCnvAlg
xAODSimHitToMdtMeasCnvAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: xAODSimHitToMdtMeasCnvAlg.cxx:20
xAODSimHitToMdtMeasCnvAlg
The xAODSimHitToMdtMasCnvAlg is a short cut towards the MdtDriftCircle measurement It takes the SimHi...
Definition: xAODSimHitToMdtMeasCnvAlg.h:29
MdtCalibDataContainer.h
xAODSimHitToMdtMeasCnvAlg::m_writeKey
SG::WriteHandleKey< xAOD::MdtDriftCircleContainer > m_writeKey
Definition: xAODSimHitToMdtMeasCnvAlg.h:44
IMdtCalibrationTool.h
xAODSimHitToMdtMeasCnvAlg::m_rndmSvc
ServiceHandle< IAthRNGSvc > m_rndmSvc
Definition: xAODSimHitToMdtMeasCnvAlg.h:52
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
xAODSimHitToMdtMeasCnvAlg::getRandomEngine
CLHEP::HepRandomEngine * getRandomEngine(const EventContext &ctx) const
Definition: xAODSimHitToMdtMeasCnvAlg.cxx:96
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
xAODSimHitToMdtMeasCnvAlg::m_calibDbKey
SG::ReadCondHandleKey< MuonCalib::MdtCalibDataContainer > m_calibDbKey
Definition: xAODSimHitToMdtMeasCnvAlg.h:55
xAODSimHitToMdtMeasCnvAlg::m_DetMgr
const MuonGMR4::MuonDetectorManager * m_DetMgr
Access to the new readout geometry.
Definition: xAODSimHitToMdtMeasCnvAlg.h:48
xAODSimHitToMdtMeasCnvAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: xAODSimHitToMdtMeasCnvAlg.h:50
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonDetectorManager.h
MuonSimHitContainer.h
xAODSimHitToMdtMeasCnvAlg::initialize
StatusCode initialize() override
Definition: xAODSimHitToMdtMeasCnvAlg.cxx:24
ReadCondHandleKey.h
AthReentrantAlgorithm.h
MdtDriftCircleContainer.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
SG::ReadCondHandleKey< MuonCalib::MdtCalibDataContainer >
xAODSimHitToMdtMeasCnvAlg::~xAODSimHitToMdtMeasCnvAlg
~xAODSimHitToMdtMeasCnvAlg()=default
xAODSimHitToMdtMeasCnvAlg::execute
StatusCode execute(const EventContext &ctx) const override
Definition: xAODSimHitToMdtMeasCnvAlg.cxx:32
xAODSimHitToMdtMeasCnvAlg::m_readKey
SG::ReadHandleKey< xAOD::MuonSimHitContainer > m_readKey
Definition: xAODSimHitToMdtMeasCnvAlg.h:41
xAODSimHitToMdtMeasCnvAlg::m_streamName
Gaudi::Property< std::string > m_streamName
Definition: xAODSimHitToMdtMeasCnvAlg.h:53
IMuonIdHelperSvc.h
IAthRNGSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >