ATLAS Offline Software
TgcReadoutGeomTool.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_TgcREAOUDGEOMTOOL_H
6 #define MUONGEOMODELR4_TgcREAOUDGEOMTOOL_H
7 
11 
16 
17 namespace MuonGMR4 {
18 
20  virtual public IMuonReadoutGeomTool {
21  public:
22  // Constructor
23  TgcReadoutGeomTool(const std::string &type, const std::string &name,
24  const IInterface *parent);
25 
26 
28 
29  private:
33  "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
34 
35  ServiceHandle<IGeoDbTagSvc> m_geoDbTagSvc{this, "GeoDbTagSvc", "GeoDbTagSvc"};
36 
37  PublicToolHandle<IMuonGeoUtilityTool> m_geoUtilTool{this,"GeoUtilTool", "" };
38 
40  struct wTgcTable {
41  std::vector<double> bottomStripPos{};
42  std::vector<double> topStripPos{};
43  std::vector<unsigned int> wireGangs{};
44  double wirePitch{0.};
45  unsigned int gasGap{0};
46  };
47  struct FactoryCache {
48  using ParamBookTable = std::map<std::string, wTgcTable>;
50 
51  using ReadoutTable = std::map<std::string, StripLayerPtr>;
54 
57  };
58 
60  StatusCode readParameterBook(FactoryCache& cache);
63 
64  IdentifierHash layerHash(const TgcReadoutElement::defineArgs& args, const int gasGap, const int doubPhi, const bool measPhi) const;
65 
66 };
67 
68 } // namespace MuonGMR4
69 #endif
dumpTgcDigiDeadChambers.gasGap
list gasGap
Definition: dumpTgcDigiDeadChambers.py:33
MuonGMR4::TgcReadoutGeomTool::wTgcTable::topStripPos
std::vector< double > topStripPos
Definition: TgcReadoutGeomTool.h:42
MuonGMR4::TgcReadoutGeomTool::FactoryCache::stripDesigns
ReadoutTable stripDesigns
Definition: TgcReadoutGeomTool.h:53
MuonGMR4::MuonDetectorManager
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonDetectorManager.h:61
MuonGMR4::MmReadoutElement::parameterBook
Set of parameters to describe a RPC chamber.
Definition: MmReadoutElement.h:23
MuonGMR4::TgcReadoutGeomTool::FactoryCache::ReadoutTable
std::map< std::string, StripLayerPtr > ReadoutTable
Definition: TgcReadoutGeomTool.h:51
MuonGMR4::TgcReadoutGeomTool::wTgcTable
Helper struct to cache the essential readout parameters from the WTGC tables.
Definition: TgcReadoutGeomTool.h:40
MuonGMR4::TgcReadoutGeomTool::wTgcTable::gasGap
unsigned int gasGap
Definition: TgcReadoutGeomTool.h:45
MuonGMR4::TgcReadoutGeomTool::wTgcTable::wirePitch
double wirePitch
Definition: TgcReadoutGeomTool.h:44
MuonGMR4::RadialStripDesignSet
std::set< RadialStripDesignPtr, RadialDesignSorter > RadialStripDesignSet
Definition: RadialStripDesign.h:113
MuonGMR4::TgcReadoutGeomTool::FactoryCache::stripLayouts
RadialStripDesignSet stripLayouts
Definition: TgcReadoutGeomTool.h:55
BchCleanup.mgr
mgr
Definition: BchCleanup.py:294
CutOutArea.h
MuonGMR4::TgcReadoutGeomTool::layerHash
IdentifierHash layerHash(const TgcReadoutElement::defineArgs &args, const int gasGap, const int doubPhi, const bool measPhi) const
MuonGMR4::TgcReadoutGeomTool::writeSectorMapping
StatusCode writeSectorMapping(const MuonDetectorManager &mgr) const
Map the Tgc sectors to the classical Muon System sectors.
Definition: TgcReadoutGeomTool.cxx:206
MuonGMR4
A muon chamber is a collection of readout elements belonging to the same station.
Definition: ChamberAssembleTool.h:16
MuonGMR4::IMuonReadoutGeomTool
Definition: IMuonReaoutGeomTool.h:20
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonGMR4::TgcReadoutGeomTool::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: TgcReadoutGeomTool.h:32
AthAlgTool.h
MuonGMR4::TgcReadoutGeomTool::readParameterBook
StatusCode readParameterBook(FactoryCache &cache)
Retrieves the auxillary tables from the database.
Definition: TgcReadoutGeomTool.cxx:220
test_pyathena.parent
parent
Definition: test_pyathena.py:15
MuonGMR4::TgcReadoutGeomTool::loadDimensions
StatusCode loadDimensions(TgcReadoutElement::defineArgs &args, FactoryCache &factory)
Loads the chamber dimensions from GeoModel.
Definition: TgcReadoutGeomTool.cxx:42
MuonGMR4::TgcReadoutGeomTool::FactoryCache::wireLayouts
WireGroupDesignSet wireLayouts
Definition: TgcReadoutGeomTool.h:56
MuonGMR4::TgcReadoutGeomTool::FactoryCache::ParamBookTable
std::map< std::string, wTgcTable > ParamBookTable
Definition: TgcReadoutGeomTool.h:48
MuonGMR4::TgcReadoutGeomTool::buildReadOutElements
StatusCode buildReadOutElements(MuonDetectorManager &mgr) override final
Retrieves the GeoModel from the GeoModelSvc and append the ReadoutElements of the Given MuonDetectorT...
Definition: TgcReadoutGeomTool.cxx:154
MuonGMR4::TgcReadoutElement::defineArgs
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/TgcReadoutElement.h:42
MuonGMR4::TgcReadoutGeomTool
Definition: TgcReadoutGeomTool.h:20
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
MuonGMR4::TgcReadoutGeomTool::wTgcTable::bottomStripPos
std::vector< double > bottomStripPos
Definition: TgcReadoutGeomTool.h:41
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
MuonGMR4::TgcReadoutGeomTool::wTgcTable::wireGangs
std::vector< unsigned int > wireGangs
Definition: TgcReadoutGeomTool.h:43
MuonGMR4::WireGroupDesignSet
std::set< WireDesignPtr, WireDesignSorter > WireGroupDesignSet
Definition: WireGroupDesign.h:103
MuonGMR4::TgcReadoutGeomTool::TgcReadoutGeomTool
TgcReadoutGeomTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TgcReadoutGeomTool.cxx:35
MuonGMR4::TgcReadoutGeomTool::FactoryCache::wireDesigns
ReadoutTable wireDesigns
Definition: TgcReadoutGeomTool.h:52
AthAlgTool
Definition: AthAlgTool.h:26
IdentifierHash
Definition: IdentifierHash.h:38
IMuonReaoutGeomTool.h
TgcReadoutElement.h
MuonGMR4::TgcReadoutGeomTool::m_geoDbTagSvc
ServiceHandle< IGeoDbTagSvc > m_geoDbTagSvc
Definition: TgcReadoutGeomTool.h:35
MuonGMR4::TgcReadoutGeomTool::FactoryCache
Definition: TgcReadoutGeomTool.h:47
IMuonGeoUtilityTool.h
IMuonIdHelperSvc.h
python.CaloScaleNoiseConfig.args
args
Definition: CaloScaleNoiseConfig.py:80
IGeoDbTagSvc.h
MuonGMR4::TgcReadoutGeomTool::m_geoUtilTool
PublicToolHandle< IMuonGeoUtilityTool > m_geoUtilTool
Definition: TgcReadoutGeomTool.h:37
ServiceHandle< Muon::IMuonIdHelperSvc >