ATLAS Offline Software
MuonDetectorBuilderTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef ACTSMUONDETECTOR_MUONDETECTORBUILDERTOOL_H
5 #define ACTSMUONDETECTOR_MUONDETECTORBUILDERTOOL_H
6 
11 
12 namespace ActsTrk{
14 
15  public:
17  MuonDetectorBuilderTool( const std::string& type, const std::string& name, const IInterface* parent );
18 
19  virtual ~MuonDetectorBuilderTool() = default;
20 
21  StatusCode initialize() override final;
22 
23  Acts::Experimental::DetectorComponent construct(const Acts::GeometryContext& context) const override final;
24 
25 
26  private:
27 
28  const MuonGMR4::MuonDetectorManager* m_detMgr{nullptr};
29  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "IdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
30 
31  Gaudi::Property<bool> m_dumpVisual{this, "DumpVisualization", true, "If set to true the DetectorVolumes are dumped into a visualization file format"};
32 
33 
34  //private method for the readout element construction
35  std::pair<std::vector<std::shared_ptr<Acts::Experimental::DetectorVolume>>,std::vector<std::shared_ptr<Acts::Surface>>> constructElements(const ActsGeometryContext& gctx,
36  const MuonGMR4::MuonChamber& mChamber, std::pair<unsigned int, unsigned int> chId) const;
37 
38  };
39 
40 }
41 #endif
ActsTrk::MuonDetectorBuilderTool::construct
Acts::Experimental::DetectorComponent construct(const Acts::GeometryContext &context) const override final
Definition: MuonDetectorBuilderTool.cxx:53
MuonGMR4::MuonChamber
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonChamber.h:39
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
ActsTrk::MuonDetectorBuilderTool::MuonDetectorBuilderTool
MuonDetectorBuilderTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard tool constructor.
Definition: MuonDetectorBuilderTool.cxx:40
ActsTrk::MuonDetectorBuilderTool::initialize
StatusCode initialize() override final
Definition: MuonDetectorBuilderTool.cxx:45
MuonGMR4
A muon chamber is a collection of readout elements belonging to the same station.
Definition: ChamberAssembleTool.h:16
Acts
Definition: MultiTrajectory.h:45
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ActsTrk::MuonDetectorBuilderTool
Definition: MuonDetectorBuilderTool.h:13
AthAlgTool.h
MuonDetectorManager.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
IDetectorVolumeBuilderTool.h
ActsGeometryContext
Include the GeoPrimitives which need to be put first.
Definition: ActsGeometryContext.h:28
ActsTrk::MuonDetectorBuilderTool::~MuonDetectorBuilderTool
virtual ~MuonDetectorBuilderTool()=default
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
ActsTrk::MuonDetectorBuilderTool::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MuonDetectorBuilderTool.h:29
ActsTrk::MuonDetectorBuilderTool::m_dumpVisual
Gaudi::Property< bool > m_dumpVisual
Definition: MuonDetectorBuilderTool.h:31
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
ActsTrk::IDetectorVolumeBuilderTool
Definition: IDetectorVolumeBuilderTool.h:15
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition: MuonDetectorBuilderTool.cxx:34
ActsTrk::MuonDetectorBuilderTool::m_detMgr
const MuonGMR4::MuonDetectorManager * m_detMgr
Definition: MuonDetectorBuilderTool.h:28
AthAlgTool
Definition: AthAlgTool.h:26
ActsTrk::MuonDetectorBuilderTool::constructElements
std::pair< std::vector< std::shared_ptr< Acts::Experimental::DetectorVolume > >, std::vector< std::shared_ptr< Acts::Surface > > > constructElements(const ActsGeometryContext &gctx, const MuonGMR4::MuonChamber &mChamber, std::pair< unsigned int, unsigned int > chId) const
Definition: MuonDetectorBuilderTool.cxx:122
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >