ATLAS Offline Software
MuonDetectorNavTest.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 MUONDETECTORNAVTEST_MUONDETECTORNAVTEST_H
5 #define MUONDETECTORNAVTEST_MUONDETECTORNAVTEST_H
6 
9 
12 
19 
22 
23 #include "Acts/MagneticField/MagneticFieldContext.hpp"
24 #include "Acts/Navigation/DetectorNavigator.hpp"
25 
26 namespace ActsTrk {
28  public:
29  MuonDetectorNavTest(const std::string& name, ISvcLocator* pSvcLocator);
30 
31  ~MuonDetectorNavTest() = default;
32 
33  StatusCode execute() override;
34  StatusCode initialize() override;
35  StatusCode finalize() override;
36 
37  private:
38 
39  Amg::Transform3D toGlobalTrf(const ActsGeometryContext& gctx, const Identifier& hitId) const;
40 
41  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "IdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
42 
43  SG::ReadCondHandleKey<AtlasFieldCacheCondObj> m_fieldCacheCondObjInputKey {this, "AtlasFieldCacheCondObj", "fieldCondObj", "Name of the Magnetic Field conditions object key"};
44 
45  SG::ReadHandleKey<ActsGeometryContext> m_geoCtxKey{this, "AlignmentKey", "ActsAlignment", "cond handle key"};
46 
47  SG::ReadHandleKey<xAOD::TruthParticleContainer> m_truthParticleKey{this, "TruthKey", "TruthParticles", "key"};
48 
50 
51  SG::ReadHandleKeyArray<xAOD::MuonSimHitContainer> m_inSimHitKeys {this, "SimHitKeys",{ "xMdtSimHits","xRpcSimHits","xTgcSimHits","xStgcSimHits","xMmSimHits"}, "xAOD SimHit collections"};
52 
53  ServiceHandle<ActsTrk::IDetectorVolumeSvc> m_detVolSvc{this, "DetectorVolumeSvc", "DetectorVolumeSvc"};
54 
55  MuonVal::MuonTesterTree m_tree{"MuonNavigationTestR4", "MuonNavigationTestR4"};
59 
60  };
61 }
62 #endif
ReadHandleKeyArray.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ActsTrk::MuonDetectorNavTest::MuonDetectorNavTest
MuonDetectorNavTest(const std::string &name, ISvcLocator *pSvcLocator)
Definition: MuonDetectorNavTest.cxx:64
MuonGMR4::MuonDetectorManager
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonDetectorManager.h:62
ActsTrk::MuonDetectorNavTest::m_tree
MuonVal::MuonTesterTree m_tree
Definition: MuonDetectorNavTest.h:55
ActsGeometryContext.h
TruthParticleContainer.h
ActsTrk::MuonDetectorNavTest::m_truthIdentifier
MuonVal::ScalarBranch< std::string > & m_truthIdentifier
Definition: MuonDetectorNavTest.h:58
ATLASMagneticFieldWrapper.h
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
MuonTesterTree.h
ActsTrk::MuonDetectorNavTest::execute
StatusCode execute() override
Definition: MuonDetectorNavTest.cxx:96
SG::ReadHandleKey< ActsGeometryContext >
AthHistogramAlgorithm.h
ActsTrk::MuonDetectorNavTest
Definition: MuonDetectorNavTest.h:27
ActsTrk::MuonDetectorNavTest::m_fieldCacheCondObjInputKey
SG::ReadCondHandleKey< AtlasFieldCacheCondObj > m_fieldCacheCondObjInputKey
Definition: MuonDetectorNavTest.h:43
ActsTrk::MuonDetectorNavTest::m_r4DetMgr
const MuonGMR4::MuonDetectorManager * m_r4DetMgr
Definition: MuonDetectorNavTest.h:49
ActsTrk::MuonDetectorNavTest::m_geoCtxKey
SG::ReadHandleKey< ActsGeometryContext > m_geoCtxKey
Definition: MuonDetectorNavTest.h:45
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ActsTrk::MuonDetectorNavTest::m_truthParticleKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthParticleKey
Definition: MuonDetectorNavTest.h:47
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
MuonDetectorManager.h
ActsTrk::MuonDetectorNavTest::~MuonDetectorNavTest
~MuonDetectorNavTest()=default
MuonSimHitContainer.h
ActsTrk::MuonDetectorNavTest::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MuonDetectorNavTest.h:41
AthHistogramAlgorithm
Definition: AthHistogramAlgorithm.h:32
ActsTrk::MuonDetectorNavTest::initialize
StatusCode initialize() override
Definition: MuonDetectorNavTest.cxx:74
ActsGeometryContext
Include the GeoPrimitives which need to be put first.
Definition: ActsGeometryContext.h:27
ReadCondHandleKey.h
ActsTrk::MuonDetectorNavTest::m_inSimHitKeys
SG::ReadHandleKeyArray< xAOD::MuonSimHitContainer > m_inSimHitKeys
Definition: MuonDetectorNavTest.h:51
ActsTrk::MuonDetectorNavTest::finalize
StatusCode finalize() override
Definition: MuonDetectorNavTest.cxx:89
IDetectorVolumeSvc.h
MuonVal::ScalarBranch< float >
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
MuonVal::MuonTesterTree::newScalar
ScalarBranch< T > & newScalar(const std::string &name)
SG::ReadCondHandleKey< AtlasFieldCacheCondObj >
ActsTrk::MuonDetectorNavTest::m_propagatedIdentifier
MuonVal::ScalarBranch< std::string > & m_propagatedIdentifier
Definition: MuonDetectorNavTest.h:57
ActsTrk::MuonDetectorNavTest::m_detVolSvc
ServiceHandle< ActsTrk::IDetectorVolumeSvc > m_detVolSvc
Definition: MuonDetectorNavTest.h:53
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition: MuonDetectorBuilderTool.cxx:49
ActsTrk::MuonDetectorNavTest::m_distanceBetweenHits
MuonVal::ScalarBranch< float > & m_distanceBetweenHits
Definition: MuonDetectorNavTest.h:56
IMuonIdHelperSvc.h
ActsTrk::MuonDetectorNavTest::toGlobalTrf
Amg::Transform3D toGlobalTrf(const ActsGeometryContext &gctx, const Identifier &hitId) const
Definition: MuonDetectorNavTest.cxx:67
ServiceHandle< Muon::IMuonIdHelperSvc >
Identifier
Definition: IdentifierFieldParser.cxx:14