ATLAS Offline Software
MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.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 MUONGEOMODELTEST_GEOMODELMMTEST_H
5 #define MUONGEOMODELTEST_GEOMODELMMTEST_H
6 
9 #include <set>
18 
19 namespace MuonGM {
20 
22  public:
23  GeoModelMmTest(const std::string& name, ISvcLocator* pSvcLocator);
24 
25  StatusCode initialize() override;
26  StatusCode execute() override;
27  StatusCode finalize() override;
28 
29  private:
30 
32  // ReadCondHandleKey is a class template is used for handling and managing conditions.
33  //this declaration is creating an instance of ReadCondHandleKey specialized for MuonGM::MuonDetectorManager
34  //and associating it with "DetectorManagerKey" in the current class.
35  //The property "DetectorManagerKey" will be used to access condition data related to the MuonDetectorManager.
37  this, "DetectorManagerKey", "MuonDetectorManager",
38  "Key of input MuonDetectorManager condition data"};
39 
40  // handling (like data access) for the service of related to handling muon identifiers (like MicroMegas)
42  this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
43 
45  std::set<Identifier> m_testStations{};
46 
50  Gaudi::Property<std::vector<std::string>> m_selectStat{
51  this, "TestStations", {}, "Constrain the stations to be tested"};
52 
53  StatusCode dumpToTree(const EventContext& ctx, const MuonGM::MMReadoutElement* detEl);
54 
55  MuonVal::MuonTesterTree m_tree{"MmGeoModelTree", "GEOMODELTESTER"};
56 
62 
64 
65 
69 
74 
79 
80  MuonVal::ScalarBranch<float>& m_ActiveHeightR{m_tree.newScalar<float>("ActiveHeightR")}; //active area's Height
81  MuonVal::ScalarBranch<float>& m_ActiveWidthS{m_tree.newScalar<float>("ActiveWidthS")}; //active area's small width
82  MuonVal::ScalarBranch<float>& m_ActiveWidthL{m_tree.newScalar<float>("ActiveWidthL")}; //active area's large width
83 
84 
87 
94 
95 };
96 
97 }
98 #endif
MuonGM::GeoModelMmTest::m_ActiveHeightR
MuonVal::ScalarBranch< float > & m_ActiveHeightR
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:80
MuonGM
Ensure that the Athena extensions are properly loaded.
Definition: GeoMuonHits.h:27
MuonGM::GeoModelMmTest::execute
StatusCode execute() override
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.cxx:67
MuonGM::GeoModelMmTest::m_selectStat
Gaudi::Property< std::vector< std::string > > m_selectStat
String should be formated like MM<L or S><1 or 2><A/C><layer> Example string MML1A6 ,...
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:50
MuonGM::GeoModelMmTest::m_tree
MuonVal::MuonTesterTree m_tree
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:55
MuonGM::GeoModelMmTest::m_ActiveWidthS
MuonVal::ScalarBranch< float > & m_ActiveWidthS
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:81
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:575
CoordTransformBranch.h
MuonGM::GeoModelMmTest::initialize
StatusCode initialize() override
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.cxx:23
MuonGM::GeoModelMmTest::m_stripActiveLengthRight
MuonVal::VectorBranch< float > & m_stripActiveLengthRight
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:73
MuonGM::GeoModelMmTest::m_channel
MuonVal::VectorBranch< uint > & m_channel
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:68
MuonGM::GeoModelMmTest::m_locStripCenter
MuonVal::TwoVectorBranch m_locStripCenter
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:78
MuonGM::GeoModelMmTest::m_testStations
std::set< Identifier > m_testStations
Set of stations to be tested.
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:45
MuonGM::GeoModelMmTest::m_stripActiveLength
MuonVal::VectorBranch< float > & m_stripActiveLength
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:71
MuonVal::VectorBranch< bool >
MuonTesterTree.h
MuonGM::GeoModelMmTest::GeoModelMmTest
GeoModelMmTest(const std::string &name, ISvcLocator *pSvcLocator)
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.cxx:16
ThreeVectorBranch.h
MuonGM::GeoModelMmTest::m_stationEta
MuonVal::ScalarBranch< short > & m_stationEta
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:58
MuonGM::GeoModelMmTest::m_stationPhi
MuonVal::ScalarBranch< short > & m_stationPhi
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:59
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonGM::GeoModelMmTest::m_stripRightEdge
MuonVal::ThreeVectorBranch m_stripRightEdge
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:77
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::GeoModelMmTest::m_stripRotGasGap
MuonVal::VectorBranch< uint8_t > & m_stripRotGasGap
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:90
MuonGM::GeoModelMmTest::m_stripCenter
MuonVal::ThreeVectorBranch m_stripCenter
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:75
uint
unsigned int uint
Definition: LArOFPhaseFill.cxx:20
MMReadoutElement.h
MuonGM::GeoModelMmTest::m_gasGap
MuonVal::VectorBranch< short > & m_gasGap
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:67
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
IdentifierBranch.h
MuonGM::GeoModelMmTest::m_ActiveWidthL
MuonVal::ScalarBranch< float > & m_ActiveWidthL
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:82
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonGM::GeoModelMmTest::m_stripLeftEdge
MuonVal::ThreeVectorBranch m_stripLeftEdge
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:76
MuonGM::GeoModelMmTest::m_stationIndex
MuonVal::ScalarBranch< unsigned short > & m_stationIndex
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:57
MuonGM::GeoModelMmTest::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:41
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
AthHistogramAlgorithm
Definition: AthHistogramAlgorithm.h:32
MuonGM::GeoModelMmTest::m_stStripPitch
MuonVal::ScalarBranch< float > & m_stStripPitch
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:63
MuonGM::GeoModelMmTest::m_firstStripPos
MuonVal::TwoVectorBranch m_firstStripPos
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:91
ReadCondHandleKey.h
MuonGM::GeoModelMmTest::m_readoutTransform
MuonVal::CoordTransformBranch m_readoutTransform
Transformation of the readout element (Translation, ColX, ColY, ColZ)
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:86
MuonGM::GeoModelMmTest
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:21
MuonVal::ScalarBranch< unsigned short >
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
MuonGM::GeoModelMmTest::m_stripRot
MuonVal::CoordSystemsBranch m_stripRot
Rotation matrix of the respective strip layers.
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:89
MuonVal::MuonTesterTree::newScalar
ScalarBranch< T > & newScalar(const std::string &name)
MuonVal::CoordSystemsBranch
Helper class to dump the Amg::Transformations into 4 three vector branches.
Definition: CoordTransformBranch.h:28
MuonGM::GeoModelMmTest::m_detMgrKey
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_detMgrKey
MuonDetectorManager from the conditions store.
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:36
MuonDetectorManager.h
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager >
MuonGM::GeoModelMmTest::m_multilayer
MuonVal::ScalarBranch< short > & m_multilayer
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:61
MuonGM::MMReadoutElement
An MMReadoutElement corresponds to a single STGC module; therefore typicaly a barrel muon station con...
Definition: MMReadoutElement.h:23
MuonGM::GeoModelMmTest::finalize
StatusCode finalize() override
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.cxx:19
MuonGM::GeoModelMmTest::m_readoutFirstStrip
MuonVal::VectorBranch< unsigned > & m_readoutFirstStrip
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:93
TwoVectorBranch.h
MuonGM::GeoModelMmTest::dumpToTree
StatusCode dumpToTree(const EventContext &ctx, const MuonGM::MMReadoutElement *detEl)
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.cxx:128
MuonGM::GeoModelMmTest::m_stationName
MuonVal::ScalarBranch< int > & m_stationName
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:60
MuonGM::GeoModelMmTest::m_readoutSide
MuonVal::VectorBranch< int > & m_readoutSide
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:92
MuonGM::GeoModelMmTest::m_stripLength
MuonVal::VectorBranch< float > & m_stripLength
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:70
MuonGM::GeoModelMmTest::m_stripActiveLengthLeft
MuonVal::VectorBranch< float > & m_stripActiveLengthLeft
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:72
IMuonIdHelperSvc.h
MuonVal::TwoVectorBranch
Definition: TwoVectorBranch.h:15
MuonGM::GeoModelMmTest::m_isStereo
MuonVal::VectorBranch< bool > & m_isStereo
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelMmTest.h:66
ServiceHandle< Muon::IMuonIdHelperSvc >