ATLAS Offline Software
MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.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 MUONGEOMODELTESTR4_GEOMODELMDTTEST_H
5 #define MUONGEOMODELTESTR4_GEOMODELMDTTEST_H
6 
9 #include <set>
17 
18 namespace MuonGM {
19 
21  public:
22  GeoModelMdtTest(const std::string& name, ISvcLocator* pSvcLocator);
23 
24  StatusCode initialize() override;
25  StatusCode execute() override;
26  StatusCode finalize() override;
27  unsigned int cardinality() const override final { return 1; }
28 
29  private:
30  StatusCode dumpToTree(const EventContext& ctx, const MdtReadoutElement* readoutEle);
31 
32  // MuonDetectorManager from the conditions store
34  this, "DetectorManagerKey", "MuonDetectorManager",
35  "Key of input MuonDetectorManager condition data"};
36 
37  SG::ReadCondHandleKey<MuonMDT_CablingMap> m_cablingKey{this, "CablingKey", "MuonMDT_CablingMap",
38  "Key of output MDT cabling map"};
40  this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
41 
43  std::set<Identifier> m_testStations{};
44 
47  Gaudi::Property<std::vector<std::string>> m_selectStat{
48  this, "TestStations", {"BIL1A3"}};
49 
50  Gaudi::Property<bool> m_dumpSurfaces{this, "dumpSurfaces", false, "Adds the bounds and surfaces of each tube to the dump"};
51 
52 
54  MuonVal::MuonTesterTree m_tree{"MdtGeoModelTree", "GEOMODELTESTER"};
55 
60  MuonVal::ScalarBranch<short>& m_stML{m_tree.newScalar<short>("stationMultiLayer")};
62 
65 
66 
70 
75 
80 
82 
91 
94 
100 
108 
128 
135 
136 };
137 
138 } // namespace MuonGM
139 #endif
MuonGM::GeoModelMdtTest::m_asBuiltPosPitchY
MuonVal::ScalarBranch< float > & m_asBuiltPosPitchY
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:125
MuonGM::GeoModelMdtTest::m_layDistTubeLay
MuonVal::VectorBranch< unsigned short > & m_layDistTubeLay
Distorted transformations.
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:96
MuonGM::GeoModelMdtTest::m_asBuiltPosAlpha
MuonVal::ScalarBranch< float > & m_asBuiltPosAlpha
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:124
MuonGM::GeoModelMdtTest::m_asBuiltPosZ0
MuonVal::ScalarBranch< float > & m_asBuiltPosZ0
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:123
MuonGM
Ensure that the Athena extensions are properly loaded.
Definition: GeoMuonHits.h:27
MuonGM::GeoModelMdtTest::m_asBuiltPosPitchZ
MuonVal::ScalarBranch< float > & m_asBuiltPosPitchZ
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:126
MuonGM::GeoModelMdtTest::initialize
StatusCode initialize() override
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.cxx:23
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:575
MuonGM::GeoModelMdtTest::m_tubeLength
MuonVal::VectorBranch< double > & m_tubeLength
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:83
MuonGM::GeoModelMdtTest::m_tubeLay
MuonVal::VectorBranch< unsigned short > & m_tubeLay
Readout each tube specifically.
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:77
MuonGM::GeoModelMdtTest::m_layDist
MuonVal::CoordSystemsBranch m_layDist
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:99
MuonGM::GeoModelMdtTest::m_BLineTr
MuonVal::ScalarBranch< float > & m_BLineTr
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:117
CoordTransformBranch.h
MuonGM::GeoModelMdtTest::m_readoutTransform
MuonVal::CoordTransformBranch m_readoutTransform
Transformation of the underlying GeoModel element (Translation, ColX, ColY, ColZ)
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:68
MuonGM::GeoModelMdtTest::cardinality
unsigned int cardinality() const override final
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:27
MuonGM::GeoModelMdtTest::m_tubeTransform
MuonVal::CoordSystemsBranch m_tubeTransform
Ideal transformations to the tube rest frame.
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:81
MuonGM::GeoModelMdtTest::m_BLineEn
MuonVal::ScalarBranch< float > & m_BLineEn
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:120
MuonGM::GeoModelMdtTest::m_cablingKey
SG::ReadCondHandleKey< MuonMDT_CablingMap > m_cablingKey
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:37
MuonGM::GeoModelMdtTest::m_wireLength
MuonVal::VectorBranch< double > & m_wireLength
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:85
MuonGM::GeoModelMdtTest::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:39
MuonVal::VectorBranch< unsigned short >
MuonTesterTree.h
MuonGM::GeoModelMdtTest::m_ALineRotS
MuonVal::ScalarBranch< float > & m_ALineRotS
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:105
ThreeVectorBranch.h
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
MuonGM::GeoModelMdtTest::m_BLineTw
MuonVal::ScalarBranch< float > & m_BLineTw
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:115
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonGM::GeoModelMdtTest::m_asBuiltNegAlpha
MuonVal::ScalarBranch< float > & m_asBuiltNegAlpha
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:131
MuonGM::GeoModelMdtTest::m_BLineBn
MuonVal::ScalarBranch< float > & m_BLineBn
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:112
MuonGM::GeoModelMdtTest::m_testStations
std::set< Identifier > m_testStations
Set of stations to be tested.
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:43
MuonGM::GeoModelMdtTest::m_cablingTdcId
MuonVal::VectorBranch< uint8_t > & m_cablingTdcId
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:89
MuonGM::GeoModelMdtTest::m_ALineTransS
MuonVal::ScalarBranch< float > & m_ALineTransS
Alignment parameters.
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:102
AthHistogramAlgorithm.h
MuonVal::CoordTransformBranch
Helper class to dump the Amg::Transformations into a single three vector branch The first entry is th...
Definition: CoordTransformBranch.h:15
MuonGM::GeoModelMdtTest::m_detMgrKey
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_detMgrKey
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:33
MuonGM::GeoModelMdtTest::m_stML
MuonVal::ScalarBranch< short > & m_stML
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:60
MuonGM::GeoModelMdtTest::m_layDistPosAlongWire
MuonVal::VectorBranch< double > & m_layDistPosAlongWire
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:98
MuonGM::GeoModelMdtTest::m_ALineTransZ
MuonVal::ScalarBranch< float > & m_ALineTransZ
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:104
MuonGM::GeoModelMdtTest::m_BLinePg
MuonVal::ScalarBranch< float > & m_BLinePg
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:116
MuonGM::GeoModelMdtTest::m_BLineSn
MuonVal::ScalarBranch< float > & m_BLineSn
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:114
MuonGM::GeoModelMdtTest::m_tubeNum
MuonVal::VectorBranch< unsigned short > & m_tubeNum
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:78
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
IdentifierBranch.h
MuonGM::MdtReadoutElement
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MdtReadoutElement.h:50
MuonMDT_CablingMap.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonGM::GeoModelMdtTest::m_asBuiltPosY0
MuonVal::ScalarBranch< float > & m_asBuiltPosY0
AS-built parameters.
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:122
MuonGM::GeoModelMdtTest::m_BLineBp
MuonVal::ScalarBranch< float > & m_BLineBp
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:111
MuonGM::GeoModelMdtTest::m_numTubes
MuonVal::ScalarBranch< unsigned short > & m_numTubes
Number of tubes per layer.
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:72
MuonGM::GeoModelMdtTest::m_cablingTdcCh
MuonVal::VectorBranch< uint8_t > & m_cablingTdcCh
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:90
MuonGM::GeoModelMdtTest::m_layDistTubeNum
MuonVal::VectorBranch< unsigned short > & m_layDistTubeNum
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:97
MuonGM::GeoModelMdtTest::m_BLineEp
MuonVal::ScalarBranch< float > & m_BLineEp
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:119
MuonGM::GeoModelMdtTest::m_alignableNode
MuonVal::CoordTransformBranch m_alignableNode
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:69
MuonGM::GeoModelMdtTest::m_cablingMROD
MuonVal::VectorBranch< uint8_t > & m_cablingMROD
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:88
MuonGM::GeoModelMdtTest::m_tubePitch
MuonVal::ScalarBranch< double > & m_tubePitch
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:64
MuonGM::GeoModelMdtTest::m_ALineRotT
MuonVal::ScalarBranch< float > & m_ALineRotT
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:106
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
AthHistogramAlgorithm
Definition: AthHistogramAlgorithm.h:32
MuonGM::GeoModelMdtTest::m_asBuiltNegPitchZ
MuonVal::ScalarBranch< float > & m_asBuiltNegPitchZ
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:133
MuonGM::GeoModelMdtTest::m_ALineRotZ
MuonVal::ScalarBranch< float > & m_ALineRotZ
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:107
MuonGM::GeoModelMdtTest::m_cablingCSM
MuonVal::VectorBranch< uint8_t > & m_cablingCSM
Cabling information.
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:87
MuonGM::GeoModelMdtTest::dumpToTree
StatusCode dumpToTree(const EventContext &ctx, const MdtReadoutElement *readoutEle)
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.cxx:93
ReadCondHandleKey.h
MuonGM::GeoModelMdtTest::m_asBuiltNegStagg
MuonVal::ScalarBranch< int > & m_asBuiltNegStagg
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:134
MuonGM::GeoModelMdtTest::m_tubeRad
MuonVal::ScalarBranch< double > & m_tubeRad
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:63
MuonGM::GeoModelMdtTest::m_asBuiltPosStagg
MuonVal::ScalarBranch< int > & m_asBuiltPosStagg
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:127
MuonVal::ScalarBranch< unsigned short >
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
MuonVal::MuonTesterTree::newScalar
ScalarBranch< T > & newScalar(const std::string &name)
MuonGM::GeoModelMdtTest::m_stIndex
MuonVal::ScalarBranch< unsigned short > & m_stIndex
Identifier of the readout element.
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:57
MuonGM::GeoModelMdtTest::m_asBuiltNegZ0
MuonVal::ScalarBranch< float > & m_asBuiltNegZ0
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:130
MuonVal::CoordSystemsBranch
Helper class to dump the Amg::Transformations into 4 three vector branches.
Definition: CoordTransformBranch.h:28
MuonGM::GeoModelMdtTest::m_BLineEg
MuonVal::ScalarBranch< float > & m_BLineEg
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:118
MuonGM::GeoModelMdtTest::m_dumpSurfaces
Gaudi::Property< bool > m_dumpSurfaces
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:50
MuonDetectorManager.h
MuonGM::GeoModelMdtTest::m_BLineBz
MuonVal::ScalarBranch< float > & m_BLineBz
B Line chamber defomrations.
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:110
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager >
MuonGM::GeoModelMdtTest::m_stEta
MuonVal::ScalarBranch< short > & m_stEta
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:58
MuonGM::GeoModelMdtTest::m_asBuiltNegPitchY
MuonVal::ScalarBranch< float > & m_asBuiltNegPitchY
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:132
MuonGM::GeoModelMdtTest::m_BLineSp
MuonVal::ScalarBranch< float > & m_BLineSp
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:113
MuonGM::GeoModelMdtTest::execute
StatusCode execute() override
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.cxx:61
MuonGM::GeoModelMdtTest::m_numLayers
MuonVal::ScalarBranch< unsigned short > & m_numLayers
Number of tubes per layer.
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:74
MuonGM::GeoModelMdtTest::GeoModelMdtTest
GeoModelMdtTest(const std::string &name, ISvcLocator *pSvcLocator)
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.cxx:19
MuonGM::GeoModelMdtTest::m_stPhi
MuonVal::ScalarBranch< short > & m_stPhi
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:59
MuonGM::GeoModelMdtTest
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:20
MuonGM::GeoModelMdtTest::m_roPos
MuonVal::ThreeVectorBranch m_roPos
Position of the readout.
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:93
MuonGM::GeoModelMdtTest::m_asBuiltNegY0
MuonVal::ScalarBranch< float > & m_asBuiltNegY0
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:129
MuonGM::GeoModelMdtTest::m_tree
MuonVal::MuonTesterTree m_tree
Write a TTree for validation purposes.
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:54
MuonGM::GeoModelMdtTest::m_chamberDesign
MuonVal::ScalarBranch< std::string > & m_chamberDesign
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:61
IMuonIdHelperSvc.h
MuonGM::GeoModelMdtTest::m_activeTubeLength
MuonVal::VectorBranch< double > & m_activeTubeLength
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:84
MuonGM::GeoModelMdtTest::finalize
StatusCode finalize() override
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.cxx:89
MuonGM::GeoModelMdtTest::m_selectStat
Gaudi::Property< std::vector< std::string > > m_selectStat
String should be formated like <stationName><stationEta><A/C><stationPhi>
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:47
ServiceHandle< Muon::IMuonIdHelperSvc >
MuonGM::GeoModelMdtTest::m_ALineTransT
MuonVal::ScalarBranch< float > & m_ALineTransT
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMdtTest.h:103