ATLAS Offline Software
MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.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 MUONGEOMODELTESTR4_GEOMODELRTGCTEST_H
5 #define MUONGEOMODELTESTR4_GEOMODELRTGCTEST_H
6 
9 #include <set>
18 
19 namespace MuonGM {
20 
22  public:
23  GeoModelTgcTest(const std::string& name, ISvcLocator* pSvcLocator);
24 
25  StatusCode initialize() override;
26  StatusCode execute() override;
27  StatusCode finalize() override;
28  unsigned int cardinality() const override final { return 1; }
29 
30  private:
31 
32  void dumpReadoutXML(const MuonGM::MuonDetectorManager& detMgr);
33  StatusCode dumpToTree(const EventContext& ctx, const TgcReadoutElement* readoutEle);
34 
37  this, "DetectorManagerKey", "MuonDetectorManager",
38  "Key of input MuonDetectorManager condition data"};
39 
41  this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
42 
44  std::set<Identifier> m_testStations{};
45 
48  Gaudi::Property<std::vector<std::string>> m_selectStat{
49  this, "TestStations", {}, "Constrain the stations to be tested"};
50 
52  MuonVal::MuonTesterTree m_tree{"TgcGeoModelTree", "GEOMODELTESTER"};
53 
54  Gaudi::Property<std::string> m_readoutXML{this, "ReadoutXML", "" ,
55  "Path to the XML containing the readout element structure."};
56 
62 
63 
67 
68 
81 
82 
86 
90 
91 
97 
99 
102 
107 
115 
116 
117 };
118 
119 }
120 #endif
MuonGM::GeoModelTgcTest::m_shortWidth
MuonVal::ScalarBranch< float > & m_shortWidth
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:69
MuonGM::GeoModelTgcTest::dumpToTree
StatusCode dumpToTree(const EventContext &ctx, const TgcReadoutElement *readoutEle)
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.cxx:170
MuonGM
Ensure that the Athena extensions are properly loaded.
Definition: GeoMuonHits.h:27
MuonGM::GeoModelTgcTest::m_gangCenter
MuonVal::ThreeVectorBranch m_gangCenter
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:100
MuonGM::GeoModelTgcTest::m_tree
MuonVal::MuonTesterTree m_tree
Write a TTree for validation purposes.
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:52
MuonGM::GeoModelTgcTest::m_readoutTransform
MuonVal::CoordTransformBranch m_readoutTransform
Transformation of the readout element (Translation, ColX, ColY, ColZ)
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:65
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:575
CoordTransformBranch.h
MuonGM::GeoModelTgcTest::m_layHeight
MuonVal::VectorBranch< float > & m_layHeight
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:113
MuonGM::GeoModelTgcTest::m_locStripBottom
MuonVal::TwoVectorBranch m_locStripBottom
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:88
MuonGM::GeoModelTgcTest::m_detMgrKey
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_detMgrKey
MuonDetectorManager from the conditions store.
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:36
MuonGM::GeoModelTgcTest::initialize
StatusCode initialize() override
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.cxx:94
MuonGM::GeoModelTgcTest::m_stripLongWidth
MuonVal::VectorBranch< float > & m_stripLongWidth
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:95
MuonGM::GeoModelTgcTest::m_layShortWidth
MuonVal::VectorBranch< float > & m_layShortWidth
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:111
MuonGM::GeoModelTgcTest::m_locStripCenter
MuonVal::TwoVectorBranch m_locStripCenter
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:87
MuonGM::GeoModelTgcTest::execute
StatusCode execute() override
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.cxx:127
MuonGM::GeoModelTgcTest::m_readoutXML
Gaudi::Property< std::string > m_readoutXML
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:54
MuonGM::GeoModelTgcTest::m_stripLength
MuonVal::VectorBranch< float > & m_stripLength
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:98
MuonVal::VectorBranch< uint8_t >
MuonTesterTree.h
MuonGM::GeoModelTgcTest::m_stPhi
MuonVal::ScalarBranch< short > & m_stPhi
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:60
MuonGM::GeoModelTgcTest::m_gangNumWires
MuonVal::VectorBranch< uint8_t > & m_gangNumWires
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:105
ThreeVectorBranch.h
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
MuonGM::GeoModelTgcTest::m_stEta
MuonVal::ScalarBranch< short > & m_stEta
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:59
MuonGM::GeoModelTgcTest::m_gangNum
MuonVal::VectorBranch< unsigned int > & m_gangNum
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:104
MuonGM::GeoModelTgcTest::m_ALineTransZ
MuonVal::ScalarBranch< float > & m_ALineTransZ
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:77
MuonGM::GeoModelTgcTest::m_gangLength
MuonVal::VectorBranch< float > & m_gangLength
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:106
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonGM::GeoModelTgcTest::m_stripCenter
MuonVal::ThreeVectorBranch m_stripCenter
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:83
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::GeoModelTgcTest::m_ALineTransS
MuonVal::ScalarBranch< float > & m_ALineTransS
Alignment parameters.
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:75
MuonGM::GeoModelTgcTest::m_stripNum
MuonVal::VectorBranch< unsigned int > & m_stripNum
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:93
MuonGM::GeoModelTgcTest::m_ALineTransT
MuonVal::ScalarBranch< float > & m_ALineTransT
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:76
MuonGM::GeoModelTgcTest::m_nGasGaps
MuonVal::ScalarBranch< uint8_t > & m_nGasGaps
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:73
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
IdentifierBranch.h
MuonGM::GeoModelTgcTest
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:21
MuonGM::GeoModelTgcTest::m_testStations
std::set< Identifier > m_testStations
Set of stations to be tested.
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:44
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonGM::GeoModelTgcTest::m_thickness
MuonVal::ScalarBranch< float > & m_thickness
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:72
MuonGM::TgcReadoutElement
A TgcReadoutElement corresponds to a single TGC chamber; therefore typically a TGC station contains s...
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/TgcReadoutElement.h:42
MuonGM::GeoModelTgcTest::m_stLayout
MuonVal::ScalarBranch< std::string > & m_stLayout
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:61
MuonGM::GeoModelTgcTest::m_height
MuonVal::ScalarBranch< float > & m_height
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:71
MuonGM::GeoModelTgcTest::m_stripBottom
MuonVal::ThreeVectorBranch m_stripBottom
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:84
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
AthHistogramAlgorithm
Definition: AthHistogramAlgorithm.h:32
MuonGM::GeoModelTgcTest::m_layTans
MuonVal::CoordSystemsBranch m_layTans
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:108
MuonGM::GeoModelTgcTest::finalize
StatusCode finalize() override
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.cxx:90
MuonGM::GeoModelTgcTest::m_layNumWires
MuonVal::VectorBranch< uint16_t > & m_layNumWires
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:114
ReadCondHandleKey.h
MuonGM::GeoModelTgcTest::m_locStripTop
MuonVal::TwoVectorBranch m_locStripTop
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:89
MuonGM::GeoModelTgcTest::m_stripShortWidth
MuonVal::VectorBranch< float > & m_stripShortWidth
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:94
MuonGM::GeoModelTgcTest::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:40
MuonVal::ScalarBranch< unsigned short >
MuonGM::GeoModelTgcTest::m_locGangPos
MuonVal::TwoVectorBranch m_locGangPos
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:101
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
MuonGM::GeoModelTgcTest::dumpReadoutXML
void dumpReadoutXML(const MuonGM::MuonDetectorManager &detMgr)
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.cxx:279
MuonVal::MuonTesterTree::newScalar
ScalarBranch< T > & newScalar(const std::string &name)
MuonGM::GeoModelTgcTest::m_stripGasGap
MuonVal::VectorBranch< uint8_t > & m_stripGasGap
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:92
MuonGM::GeoModelTgcTest::m_layNumber
MuonVal::VectorBranch< uint8_t > & m_layNumber
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:110
MuonVal::CoordSystemsBranch
Helper class to dump the Amg::Transformations into 4 three vector branches.
Definition: CoordTransformBranch.h:28
MuonDetectorManager.h
MuonGM::GeoModelTgcTest::m_layMeasPhi
MuonVal::VectorBranch< bool > & m_layMeasPhi
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:109
MuonGM::GeoModelTgcTest::m_selectStat
Gaudi::Property< std::vector< std::string > > m_selectStat
String should be formated like <stationName><stationEta><A/C><stationPhi>
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:48
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager >
MuonGM::GeoModelTgcTest::m_layLongWidth
MuonVal::VectorBranch< float > & m_layLongWidth
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:112
MuonGM::MuonDetectorManager
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonDetectorManager.h:49
MuonGM::GeoModelTgcTest::GeoModelTgcTest
GeoModelTgcTest(const std::string &name, ISvcLocator *pSvcLocator)
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.cxx:87
MuonGM::GeoModelTgcTest::m_stripPitch
MuonVal::VectorBranch< float > & m_stripPitch
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:96
MuonGM::GeoModelTgcTest::m_alignableNode
MuonVal::CoordTransformBranch m_alignableNode
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:66
TwoVectorBranch.h
TgcReadoutElement.h
MuonGM::GeoModelTgcTest::m_gangGasGap
MuonVal::VectorBranch< uint8_t > & m_gangGasGap
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:103
MuonGM::GeoModelTgcTest::m_ALineRotZ
MuonVal::ScalarBranch< float > & m_ALineRotZ
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:80
MuonGM::GeoModelTgcTest::cardinality
unsigned int cardinality() const override final
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:28
MuonGM::GeoModelTgcTest::m_stripTop
MuonVal::ThreeVectorBranch m_stripTop
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:85
MuonGM::GeoModelTgcTest::m_ALineRotT
MuonVal::ScalarBranch< float > & m_ALineRotT
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:79
MuonGM::GeoModelTgcTest::m_ALineRotS
MuonVal::ScalarBranch< float > & m_ALineRotS
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:78
MuonGM::GeoModelTgcTest::m_stIndex
MuonVal::ScalarBranch< unsigned short > & m_stIndex
Identifier of the readout element.
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:58
IMuonIdHelperSvc.h
MuonVal::TwoVectorBranch
Definition: TwoVectorBranch.h:15
ServiceHandle< Muon::IMuonIdHelperSvc >
MuonGM::GeoModelTgcTest::m_longWidth
MuonVal::ScalarBranch< float > & m_longWidth
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.h:70