ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
MmReadoutGeomTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONGEOMODELR4_MMREAOUDGEOMTOOL_H
6 #define MUONGEOMODELR4_MMREAOUDGEOMTOOL_H
7 
10 
15 #include <GeoModelHelpers/GeoDeDuplicator.h>
16 
17 
18 namespace MuonGMR4 {
19 
20 class MmReadoutGeomTool : public extends<AthAlgTool, IMuonReadoutGeomTool> {
21  public:
22  // Constructor
23  using base_class::base_class;
24 
26 
27 
28  private:
30  "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
31 
32  ServiceHandle<IGeoDbTagSvc> m_geoDbTagSvc{this, "GeoDbTagSvc", "GeoDbTagSvc"};
33 
34  PublicToolHandle<IMuonGeoUtilityTool> m_geoUtilTool{this,"GeoUtilTool", "" };
35 
37  struct wMMTable {
38  double stripPitch{0.};
39  double stripWidth{0.};
40  double distBotFrameStrip{0.};
41  std::vector<double> stereoAngle{};
42  std::vector<int> totalActiveStrips{};
43  std::vector<int> readoutSide{};
46  int nMissedTopEta{0};
47  std::vector<StripLayer> layers{};
48  };
49 
53  struct FactoryCache {
54 
55  using ParamBookTable = std::map<std::string, wMMTable>;
56  std::set<StripDesignPtr, StripDesignSorter> stripDesigns{};
57  std::set<StripLayerPtr, StripLayerSorter> stripLayers{};
58 
61  GeoDeDuplicator trfNodeMaker{};
62  };
63 
64 
66  StatusCode readParameterBook(FactoryCache& cache);
67 
70  FactoryCache& factory);
71 };
72 
73 } // namespace MuonGMR4
74 #endif
python.CaloAddPedShiftConfig.args
args
Definition: CaloAddPedShiftConfig.py:47
MuonGMR4::MuonDetectorManager
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonDetectorManager.h:62
MuonGMR4::MmReadoutGeomTool::wMMTable::readoutSide
std::vector< int > readoutSide
Definition: MmReadoutGeomTool.h:43
MuonGMR4::MmReadoutElement::parameterBook
Set of parameters to describe a RPC chamber.
Definition: MmReadoutElement.h:24
MuonGMR4::MmReadoutGeomTool::wMMTable::stripWidth
double stripWidth
Definition: MmReadoutGeomTool.h:39
MuonGMR4::MmReadoutGeomTool::wMMTable::stereoAngle
std::vector< double > stereoAngle
Definition: MmReadoutGeomTool.h:41
MuonGMR4::MmReadoutGeomTool::FactoryCache
Cache object to the wMMTable & store stripDesigns & layers to make the information available througho...
Definition: MmReadoutGeomTool.h:53
MuonGMR4::MmReadoutGeomTool
Definition: MmReadoutGeomTool.h:20
BchCleanup.mgr
mgr
Definition: BchCleanup.py:294
MuonGMR4::MmReadoutGeomTool::wMMTable::totalActiveStrips
std::vector< int > totalActiveStrips
Definition: MmReadoutGeomTool.h:42
MuonGMR4
The ReadoutGeomCnvAlg converts the Run4 Readout geometry build from the GeoModelXML into the legacy M...
Definition: MdtCalibInput.h:19
MuonGMR4::MmReadoutGeomTool::wMMTable::distBotFrameStrip
double distBotFrameStrip
Definition: MmReadoutGeomTool.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonGMR4::MmReadoutGeomTool::wMMTable::stripPitch
double stripPitch
Definition: MmReadoutGeomTool.h:38
AthAlgTool.h
MuonGMR4::MmReadoutGeomTool::wMMTable::layers
std::vector< StripLayer > layers
Definition: MmReadoutGeomTool.h:47
MuonGMR4::MmReadoutGeomTool::FactoryCache::trfNodeMaker
GeoDeDuplicator trfNodeMaker
Helper object to turn Amg::Transforms into GeoModel tree transform nodes.
Definition: MmReadoutGeomTool.h:61
MuonGMR4::MmReadoutGeomTool::buildReadOutElements
StatusCode buildReadOutElements(MuonDetectorManager &mgr) override final
Definition: MmReadoutGeomTool.cxx:148
MuonGMR4::MmReadoutGeomTool::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MmReadoutGeomTool.h:29
MuonGMR4::MmReadoutGeomTool::FactoryCache::stripLayers
std::set< StripLayerPtr, StripLayerSorter > stripLayers
Definition: MmReadoutGeomTool.h:57
MuonGMR4::MmReadoutGeomTool::m_geoDbTagSvc
ServiceHandle< IGeoDbTagSvc > m_geoDbTagSvc
Definition: MmReadoutGeomTool.h:32
MuonGMR4::MmReadoutGeomTool::readParameterBook
StatusCode readParameterBook(FactoryCache &cache)
Retrieves the auxillary tables from the database.
Definition: MmReadoutGeomTool.cxx:212
MuonGMR4::MmReadoutGeomTool::wMMTable
Struct to cache the relevant parameters of from the WRPC tables.
Definition: MmReadoutGeomTool.h:37
MuonGMR4::MmReadoutGeomTool::m_geoUtilTool
PublicToolHandle< IMuonGeoUtilityTool > m_geoUtilTool
Definition: MmReadoutGeomTool.h:34
MuonGMR4::MmReadoutGeomTool::wMMTable::nMissedBottomEta
int nMissedBottomEta
Definition: MmReadoutGeomTool.h:44
MuonGMR4::MmReadoutGeomTool::wMMTable::nMissedTopEta
int nMissedTopEta
Definition: MmReadoutGeomTool.h:46
IMuonReaoutGeomTool.h
MuonGMR4::MmReadoutGeomTool::wMMTable::nMissedBottomStereo
int nMissedBottomStereo
Definition: MmReadoutGeomTool.h:45
MuonGMR4::MmReadoutGeomTool::FactoryCache::stripDesigns
std::set< StripDesignPtr, StripDesignSorter > stripDesigns
Definition: MmReadoutGeomTool.h:56
MuonGMR4::MmReadoutGeomTool::FactoryCache::ParamBookTable
std::map< std::string, wMMTable > ParamBookTable
Definition: MmReadoutGeomTool.h:55
IMuonGeoUtilityTool.h
IMuonIdHelperSvc.h
IGeoDbTagSvc.h
MuonGMR4::MmReadoutElement::defineArgs
Definition: MmReadoutElement.h:49
MmReadoutElement.h
MuonGMR4::MmReadoutGeomTool::loadDimensions
StatusCode loadDimensions(MmReadoutElement::defineArgs &args, FactoryCache &factory)
Loads the chamber dimensions from GeoModel.
Definition: MmReadoutGeomTool.cxx:37
ServiceHandle< Muon::IMuonIdHelperSvc >