ATLAS Offline Software
MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef GEOMODELCHECK_NSWPLOTTINGALG_H
5 #define GEOMODELCHECK_NSWPLOTTINGALG_H
6 #include <map> //for map
7 #include <memory> //for unique_ptr
8 
13 
14 class TGraph;
15 class TH1;
16 namespace MuonGM{
18  public:
20  StatusCode initialize() override;
21  StatusCode execute() override;
22  StatusCode finalize() override;
23  unsigned int cardinality() const override final { return 1; }
24 
25  private:
26  int layerId(const Identifier& id) const;
27 
30 
31  // MuonDetectorManager from the conditions store
33  this, "DetectorManagerKey", "MuonDetectorManager",
34  "Key of input MuonDetectorManager condition data"};
35 
37  this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
38  Gaudi::Property<std::string> m_outFile{this, "OutFile", "NSWGeoPlots.root"};
40  std::map<Identifier, std::unique_ptr<TGraph>> m_nswPads{};
42  std::map<int, std::unique_ptr<TGraph>> m_nswLayers{};
44  std::map<int, std::unique_ptr<TH1>> m_nswActiveAreas{};
45  bool m_alg_run{false};
46 };
47 }
48 #endif
MuonGM::NSWGeoPlottingAlg::m_outFile
Gaudi::Property< std::string > m_outFile
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.h:38
MuonGM::NSWGeoPlottingAlg::initMicroMega
StatusCode initMicroMega()
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.cxx:303
MuonGM::NSWGeoPlottingAlg::finalize
StatusCode finalize() override
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.cxx:32
MuonGM
Ensure that the Athena extensions are properly loaded.
Definition: GeoMuonHits.h:27
AthHistogramAlgorithm::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition: AthHistogramAlgorithm.cxx:31
MuonGM::NSWGeoPlottingAlg::cardinality
unsigned int cardinality() const override final
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.h:23
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
AthHistogramAlgorithm.h
MuonGM::NSWGeoPlottingAlg
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.h:17
MuonGM::NSWGeoPlottingAlg::m_DetectorManagerKey
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_DetectorManagerKey
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonGM::NSWGeoPlottingAlg::m_alg_run
bool m_alg_run
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.h:45
MuonGM::NSWGeoPlottingAlg::execute
StatusCode execute() override
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.cxx:85
AthHistogramAlgorithm
Definition: AthHistogramAlgorithm.h:32
MuonGM::NSWGeoPlottingAlg::m_nswPads
std::map< Identifier, std::unique_ptr< TGraph > > m_nswPads
Map containing each PCB of the NSW seperately.
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.h:40
ReadCondHandleKey.h
MuonGM::NSWGeoPlottingAlg::m_nswActiveAreas
std::map< int, std::unique_ptr< TH1 > > m_nswActiveAreas
Map showing the active areas of the NSW to show the passivation.
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.h:44
MuonDetectorManager.h
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager >
MuonGM::NSWGeoPlottingAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.h:36
MuonGM::NSWGeoPlottingAlg::m_nswLayers
std::map< int, std::unique_ptr< TGraph > > m_nswLayers
Map showing the edges of the 16 layers of the NSW.
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.h:42
MuonGM::NSWGeoPlottingAlg::layerId
int layerId(const Identifier &id) const
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.cxx:345
MuonGM::NSWGeoPlottingAlg::initSTgcs
StatusCode initSTgcs()
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.cxx:364
IMuonIdHelperSvc.h
MuonGM::NSWGeoPlottingAlg::initialize
StatusCode initialize() override
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.cxx:78
ServiceHandle< Muon::IMuonIdHelperSvc >
Identifier
Definition: IdentifierFieldParser.cxx:14