ATLAS Offline Software
sTgcPadPlottingAlg.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 GEOMODELCHECK_STGCPADPLOTTINGALG_H
5 #define GEOMODELCHECK_STGCPADPLOTTINGALG_H
6 #include <map> //for map
7 #include <memory> //for unique_ptr
8 
13 
14 class TGraph;
15 class TH2;
21  public:
22  sTgcPadPlottingAlg(const std::string& name, ISvcLocator* pSvcLocator);
23 
24  StatusCode initialize() override;
25  StatusCode execute() override;
26  StatusCode finalize() override;
27  unsigned int cardinality() const override final { return 1; }
28 
29  private:
30 
31  int layerId(const Identifier& id) const;
32  std::string padName(const Identifier& padId) const;
34 
35  // MuonDetectorManager from the conditions store
37  this, "DetectorManagerKey", "MuonDetectorManager",
38  "Key of input MuonDetectorManager condition data"};
39 
41  this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
42  Gaudi::Property<std::string> m_outFile{this, "OutFile", "sTgcPadPlots.root"};
43 
45  std::map<Identifier, std::unique_ptr<TGraph>> m_nswPads{};
46  std::map<Identifier, std::unique_ptr<TH2>> m_nswPadDist{};
47  bool m_alg_run{false};
48 };
49 
50 #endif
sTgcPadPlottingAlg::m_nswPadDist
std::map< Identifier, std::unique_ptr< TH2 > > m_nswPadDist
Definition: sTgcPadPlottingAlg.h:46
sTgcPadPlottingAlg::cardinality
unsigned int cardinality() const override final
Definition: sTgcPadPlottingAlg.h:27
sTgcPadPlottingAlg::m_nswPads
std::map< Identifier, std::unique_ptr< TGraph > > m_nswPads
Map containing each PCB of the NSW seperately.
Definition: sTgcPadPlottingAlg.h:45
sTgcPadPlottingAlg::initialize
StatusCode initialize() override
Definition: sTgcPadPlottingAlg.cxx:63
sTgcPadPlottingAlg::m_DetectorManagerKey
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_DetectorManagerKey
Definition: sTgcPadPlottingAlg.h:36
sTgcPadPlottingAlg
Simple algorithm to plot the sTGC pad positions.
Definition: sTgcPadPlottingAlg.h:20
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
sTgcPadPlottingAlg::m_alg_run
bool m_alg_run
Definition: sTgcPadPlottingAlg.h:47
sTgcPadPlottingAlg::sTgcPadPlottingAlg
sTgcPadPlottingAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: sTgcPadPlottingAlg.cxx:21
AthHistogramAlgorithm.h
sTgcPadPlottingAlg::m_outFile
Gaudi::Property< std::string > m_outFile
Definition: sTgcPadPlottingAlg.h:42
sTgcPadPlottingAlg::initSTgcs
StatusCode initSTgcs()
Definition: sTgcPadPlottingAlg.cxx:109
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
sTgcPadPlottingAlg::finalize
StatusCode finalize() override
Definition: sTgcPadPlottingAlg.cxx:25
AthHistogramAlgorithm
Definition: AthHistogramAlgorithm.h:32
TH2
Definition: rootspy.cxx:373
sTgcPadPlottingAlg::padName
std::string padName(const Identifier &padId) const
Definition: sTgcPadPlottingAlg.cxx:50
ReadCondHandleKey.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
MuonDetectorManager.h
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager >
sTgcPadPlottingAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: sTgcPadPlottingAlg.h:40
sTgcPadPlottingAlg::execute
StatusCode execute() override
Definition: sTgcPadPlottingAlg.cxx:70
sTgcPadPlottingAlg::layerId
int layerId(const Identifier &id) const
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >