ATLAS Offline Software
MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 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 
18  public:
19  NSWGeoPlottingAlg(const std::string& name, ISvcLocator* pSvcLocator);
20 
21  StatusCode initialize() override;
22  StatusCode execute() override;
23  StatusCode finalize() override;
24  unsigned int cardinality() const override final { return 1; }
25 
26  private:
27  int layerId(const Identifier& id) const;
28 
31 
32  // MuonDetectorManager from the conditions store
34  this, "DetectorManagerKey", "MuonDetectorManager",
35  "Key of input MuonDetectorManager condition data"};
36 
38  this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
39  Gaudi::Property<std::string> m_outFile{this, "OutFile", "NSWGeoPlots.root"};
41  std::map<Identifier, std::unique_ptr<TGraph>> m_nswPads{};
43  std::map<int, std::unique_ptr<TGraph>> m_nswLayers{};
45  std::map<int, std::unique_ptr<TH1>> m_nswActiveAreas{};
46  bool m_alg_run{false};
47 };
48 
49 #endif
NSWGeoPlottingAlg::initSTgcs
StatusCode initSTgcs()
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.cxx:368
NSWGeoPlottingAlg
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.h:17
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:45
NSWGeoPlottingAlg::initialize
StatusCode initialize() override
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.cxx:81
NSWGeoPlottingAlg::NSWGeoPlottingAlg
NSWGeoPlottingAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.cxx:31
NSWGeoPlottingAlg::m_DetectorManagerKey
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_DetectorManagerKey
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.h:33
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
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:43
NSWGeoPlottingAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.h:37
AthHistogramAlgorithm.h
NSWGeoPlottingAlg::execute
StatusCode execute() override
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.cxx:88
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthHistogramAlgorithm
Definition: AthHistogramAlgorithm.h:32
ReadCondHandleKey.h
NSWGeoPlottingAlg::m_alg_run
bool m_alg_run
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.h:46
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
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:41
MuonDetectorManager.h
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager >
NSWGeoPlottingAlg::cardinality
unsigned int cardinality() const override final
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.h:24
NSWGeoPlottingAlg::finalize
StatusCode finalize() override
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.cxx:34
NSWGeoPlottingAlg::m_outFile
Gaudi::Property< std::string > m_outFile
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.h:39
NSWGeoPlottingAlg::layerId
int layerId(const Identifier &id) const
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.cxx:349
IMuonIdHelperSvc.h
NSWGeoPlottingAlg::initMicroMega
StatusCode initMicroMega()
Definition: MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.cxx:307
ServiceHandle< Muon::IMuonIdHelperSvc >
Identifier
Definition: IdentifierFieldParser.cxx:14