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 
19 class TgcReadoutGeomTool : public extends<AthAlgTool, IMuonReadoutGeomTool> {
20  public:
21  // Constructor
22  TgcReadoutGeomTool(const std::string &type, const std::string &name,
23  const IInterface *parent);
24 
25 
27 
28  private:
32  "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
33 
34  ServiceHandle<IGeoDbTagSvc> m_geoDbTagSvc{this, "GeoDbTagSvc", "GeoDbTagSvc"};
35 
36  PublicToolHandle<IMuonGeoUtilityTool> m_geoUtilTool{this,"GeoUtilTool", "" };
37 
39  struct wTgcTable {
40  std::vector<double> bottomStripPos{};
41  std::vector<double> topStripPos{};
42  std::vector<unsigned int> wireGangs{};
43  double wirePitch{0.};
44  unsigned int gasGap{0};
45  };
46  struct FactoryCache {
47  using ParamBookTable = std::map<std::string, wTgcTable>;
49 
50  using ReadoutTable = std::map<std::string, StripLayerPtr>;
53 
56  };
57 
59  StatusCode readParameterBook(FactoryCache& cache);
62 
63  IdentifierHash layerHash(const TgcReadoutElement::defineArgs& args, const int gasGap, const int doubPhi, const bool measPhi) const;
64 
65 };
66 
67 } // namespace MuonGMR4
68 #endif
dumpTgcDigiDeadChambers.gasGap
list gasGap
Definition: dumpTgcDigiDeadChambers.py:33
MuonGMR4::TgcReadoutGeomTool::wTgcTable::topStripPos
std::vector< double > topStripPos
Definition: TgcReadoutGeomTool.h:41
MuonGMR4::TgcReadoutGeomTool::FactoryCache::stripDesigns
ReadoutTable stripDesigns
Definition: TgcReadoutGeomTool.h:52
MuonGMR4::MuonDetectorManager
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonDetectorManager.h:62
MuonGMR4::MmReadoutElement::parameterBook
Set of parameters to describe a RPC chamber.
Definition: MmReadoutElement.h:24
MuonGMR4::TgcReadoutGeomTool::FactoryCache::ReadoutTable
std::map< std::string, StripLayerPtr > ReadoutTable
Definition: TgcReadoutGeomTool.h:50
MuonGMR4::TgcReadoutGeomTool::wTgcTable
Helper struct to cache the essential readout parameters from the WTGC tables.
Definition: TgcReadoutGeomTool.h:39
MuonGMR4::TgcReadoutGeomTool::wTgcTable::gasGap
unsigned int gasGap
Definition: TgcReadoutGeomTool.h:44
MuonGMR4::TgcReadoutGeomTool::wTgcTable::wirePitch
double wirePitch
Definition: TgcReadoutGeomTool.h:43
MuonGMR4::RadialStripDesignSet
std::set< RadialStripDesignPtr, RadialDesignSorter > RadialStripDesignSet
Definition: RadialStripDesign.h:113
MuonGMR4::TgcReadoutGeomTool::FactoryCache::stripLayouts
RadialStripDesignSet stripLayouts
Definition: TgcReadoutGeomTool.h:54
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:207
MuonGMR4
The ReadoutGeomCnvAlg converts the Run4 Readout geometry build from the GeoModelXML into the legacy M...
Definition: MdtCalibInput.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:31
AthAlgTool.h
MuonGMR4::TgcReadoutGeomTool::readParameterBook
StatusCode readParameterBook(FactoryCache &cache)
Retrieves the auxillary tables from the database.
Definition: TgcReadoutGeomTool.cxx:221
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:43
MuonGMR4::TgcReadoutGeomTool::FactoryCache::wireLayouts
WireGroupDesignSet wireLayouts
Definition: TgcReadoutGeomTool.h:55
MuonGMR4::TgcReadoutGeomTool::FactoryCache::ParamBookTable
std::map< std::string, wTgcTable > ParamBookTable
Definition: TgcReadoutGeomTool.h:47
MuonGMR4::TgcReadoutGeomTool::buildReadOutElements
StatusCode buildReadOutElements(MuonDetectorManager &mgr) override final
Definition: TgcReadoutGeomTool.cxx:155
MuonGMR4::TgcReadoutElement::defineArgs
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/TgcReadoutElement.h:45
MuonGMR4::TgcReadoutGeomTool
Definition: TgcReadoutGeomTool.h:19
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
MuonGMR4::TgcReadoutGeomTool::wTgcTable::bottomStripPos
std::vector< double > bottomStripPos
Definition: TgcReadoutGeomTool.h:40
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
MuonGMR4::TgcReadoutGeomTool::wTgcTable::wireGangs
std::vector< unsigned int > wireGangs
Definition: TgcReadoutGeomTool.h:42
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:39
MuonGMR4::TgcReadoutGeomTool::FactoryCache::wireDesigns
ReadoutTable wireDesigns
Definition: TgcReadoutGeomTool.h:51
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
IMuonReaoutGeomTool.h
TgcReadoutElement.h
MuonGMR4::TgcReadoutGeomTool::m_geoDbTagSvc
ServiceHandle< IGeoDbTagSvc > m_geoDbTagSvc
Definition: TgcReadoutGeomTool.h:34
MuonGMR4::TgcReadoutGeomTool::FactoryCache
Definition: TgcReadoutGeomTool.h:46
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:36
ServiceHandle< Muon::IMuonIdHelperSvc >