ATLAS Offline Software
MmReadoutGeomTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONGEOMODELR4_MMREAOUDGEOMTOOL_H
6 #define MUONGEOMODELR4_MMREAOUDGEOMTOOL_H
7 
11 
16 
17 namespace MuonGMR4 {
18 
19 class MmReadoutGeomTool : public extends<AthAlgTool, IMuonReadoutGeomTool> {
20  public:
21  // Constructor
22  MmReadoutGeomTool(const std::string &type, const std::string &name,
23  const IInterface *parent);
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 
50 
51  struct FactoryCache {
52 
53  using ParamBookTable = std::map<std::string, wMMTable>;
54  std::set<StripDesignPtr, StripDesignSorter> stripDesigns{};
55  std::set<StripLayerPtr, StripLayerSorter> stripLayers{};
56 
58 
59  };
60 
61 
63  StatusCode readParameterBook(FactoryCache& cache);
64 
67  FactoryCache& factory);
68 };
69 
70 } // namespace MuonGMR4
71 #endif
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
Definition: MmReadoutGeomTool.h:51
MuonGMR4::MmReadoutGeomTool
Definition: MmReadoutGeomTool.h:19
BchCleanup.mgr
mgr
Definition: BchCleanup.py:294
CutOutArea.h
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:20
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
test_pyathena.parent
parent
Definition: test_pyathena.py:15
MuonGMR4::MmReadoutGeomTool::wMMTable::layers
std::vector< StripLayer > layers
Definition: MmReadoutGeomTool.h:47
MuonGMR4::MmReadoutGeomTool::buildReadOutElements
StatusCode buildReadOutElements(MuonDetectorManager &mgr) override final
Definition: MmReadoutGeomTool.cxx:169
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:55
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
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:233
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
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
MuonGMR4::MmReadoutGeomTool::wMMTable::nMissedTopEta
int nMissedTopEta
Definition: MmReadoutGeomTool.h:46
IMuonReaoutGeomTool.h
MuonGMR4::MmReadoutGeomTool::MmReadoutGeomTool
MmReadoutGeomTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: MmReadoutGeomTool.cxx:36
MuonGMR4::MmReadoutGeomTool::wMMTable::nMissedBottomStereo
int nMissedBottomStereo
Definition: MmReadoutGeomTool.h:45
MuonGMR4::MmReadoutGeomTool::FactoryCache::stripDesigns
std::set< StripDesignPtr, StripDesignSorter > stripDesigns
Definition: MmReadoutGeomTool.h:54
MuonGMR4::MmReadoutGeomTool::FactoryCache::ParamBookTable
std::map< std::string, wMMTable > ParamBookTable
Definition: MmReadoutGeomTool.h:53
IMuonGeoUtilityTool.h
IMuonIdHelperSvc.h
python.CaloScaleNoiseConfig.args
args
Definition: CaloScaleNoiseConfig.py:80
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:40
ServiceHandle< Muon::IMuonIdHelperSvc >