ATLAS Offline Software
Loading...
Searching...
No Matches
MdtReadoutGeomTool.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_MDTREAOUDGEOMTOOL_H
6#define MUONGEOMODELR4_MDTREAOUDGEOMTOOL_H
7
10
15
16namespace MuonGMR4 {
19class MdtReadoutGeomTool : public extends<AthAlgTool,IMuonReadoutGeomTool> {
20 public:
21 // Constructor
22 using base_class::base_class;
23
24
25 StatusCode buildReadOutElements(MuonDetectorManager &mgr) override final;
26
27 private:
29 this, "IdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
30
32 "GeoDbTagSvc"};
33
34 PublicToolHandle<IMuonGeoUtilityTool> m_geoUtilTool{this,"GeoUtilTool", "" };
36 using ParamBookTable = std::map<std::string, parameterBook>;
37
38 struct FactoryCache {
42 std::unordered_set<Identifier> readoutOnLeftSide{};
45 std::unordered_map<Identifier, CutTubeSet> cutTubes{};
47 };
48
50 StatusCode readParameterBook(FactoryCache& facCache) const;
52 StatusCode loadDimensions(FactoryCache& facCache, MdtReadoutElement::defineArgs& args) const;
53
54};
55
56} // namespace MuonGMR4
57#endif
Implementation of the IMuonReadoutGeomTool to construct MdtReadoutElements from the list of published...
ServiceHandle< IGeoDbTagSvc > m_geoDbTagSvc
PublicToolHandle< IMuonGeoUtilityTool > m_geoUtilTool
StatusCode loadDimensions(FactoryCache &facCache, MdtReadoutElement::defineArgs &args) const
Loads the chamber dimensions from GeoModel.
StatusCode readParameterBook(FactoryCache &facCache) const
Retrieves the auxillary tables from the database.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
StatusCode buildReadOutElements(MuonDetectorManager &mgr) override final
MdtReadoutElement::parameterBook parameterBook
std::map< std::string, parameterBook > ParamBookTable
std::set< CutTubes, std::less<> > CutTubeSet
The ReadoutGeomCnvAlg converts the Run4 Readout geometry build from the GeoModelXML into the legacy M...
std::set< MdtTubeLayerPtr, MdtTubeLayerSorter > MdtTubeLayerSet
std::unordered_map< Identifier, CutTubeSet > cutTubes
std::unordered_set< Identifier > readoutOnLeftSide
List of chambers that have the readout chip at negative Z.
Constructor taking the GeoModel parent node of the tube nodes.