ATLAS Offline Software
MuonSpectrometer
MuonPhaseII
MuonDetDescr
ActsMuonDetectorTest
src
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
7
#include "
xAODTruth/TruthParticleContainer.h
"
8
#include "
xAODMuonSimHit/MuonSimHitContainer.h
"
9
10
#include <
AthenaBaseComps/AthHistogramAlgorithm.h
>
11
#include <
MuonIdHelpers/IMuonIdHelperSvc.h
>
12
13
#include <
ActsGeometryInterfaces/ActsGeometryContext.h
>
14
#include "
ActsGeometry/ATLASMagneticFieldWrapper.h
"
15
#include <
ActsGeometryInterfaces/IDetectorVolumeSvc.h
>
16
#include <
StoreGate/ReadCondHandleKey.h
>
17
#include <
StoreGate/ReadHandleKeyArray.h
>
18
#include <
StoreGate/ReadHandleKey.h
>
19
20
#include <
MuonReadoutGeometryR4/MuonDetectorManager.h
>
21
#include "
MuonTesterTree/MuonTesterTree.h
"
22
23
#include "Acts/MagneticField/MagneticFieldContext.hpp"
24
#include "Acts/Navigation/DetectorNavigator.hpp"
25
26
namespace
ActsTrk
{
27
class
MuonDetectorNavTest
:
public
AthHistogramAlgorithm
{
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
49
const
MuonGMR4::MuonDetectorManager
*
m_r4DetMgr
{
nullptr
};
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"
};
56
MuonVal::ScalarBranch<float>
&
m_distanceBetweenHits
{
m_tree
.
newScalar
<
float
>(
"distanceBetweenHits"
)};
57
MuonVal::ScalarBranch<std::string>
&
m_propagatedIdentifier
{
m_tree
.
newScalar
<std::string>(
"propagatedIdentifier"
)};
58
MuonVal::ScalarBranch<std::string>
&
m_truthIdentifier
{
m_tree
.
newScalar
<std::string>(
"truthIdentifier"
)};
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
Generated on Thu Nov 7 2024 21:21:54 for ATLAS Offline Software by
1.8.18