ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonDetDescr
MuonGeoModelTest
src
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
9
#include "
AthenaBaseComps/AthHistogramAlgorithm.h
"
10
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
11
#include "
MuonReadoutGeometry/MuonDetectorManager.h
"
12
#include "
StoreGate/ReadCondHandleKey.h
"
13
14
class
TGraph;
15
class
TH1;
16
namespace
MuonGM
{
17
class
NSWGeoPlottingAlg
:
public
AthHistogramAlgorithm
{
18
public
:
19
using
AthHistogramAlgorithm::AthHistogramAlgorithm
;
20
StatusCode
initialize
()
override
;
21
StatusCode
execute
(
const
EventContext& ctx)
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
28
StatusCode
initMicroMega
();
29
StatusCode
initSTgcs
();
30
31
// MuonDetectorManager from the conditions store
32
SG::ReadCondHandleKey<MuonGM::MuonDetectorManager>
m_DetectorManagerKey
{
33
this
,
"DetectorManagerKey"
,
"MuonDetectorManager"
,
34
"Key of input MuonDetectorManager condition data"
};
35
36
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
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
AthHistogramAlgorithm.h
IMuonIdHelperSvc.h
MuonDetectorManager.h
ReadCondHandleKey.h
AthHistogramAlgorithm::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
MuonGM::NSWGeoPlottingAlg
Definition
MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.h:17
MuonGM::NSWGeoPlottingAlg::initSTgcs
StatusCode initSTgcs()
Definition
MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.cxx:365
MuonGM::NSWGeoPlottingAlg::initMicroMega
StatusCode initMicroMega()
Definition
MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.cxx:304
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::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
MuonGM::NSWGeoPlottingAlg::execute
StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.cxx:85
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
MuonGM::NSWGeoPlottingAlg::m_DetectorManagerKey
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_DetectorManagerKey
Definition
MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.h:32
MuonGM::NSWGeoPlottingAlg::m_outFile
Gaudi::Property< std::string > m_outFile
Definition
MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.h:38
MuonGM::NSWGeoPlottingAlg::finalize
StatusCode finalize() override
Definition
MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.cxx:32
MuonGM::NSWGeoPlottingAlg::initialize
StatusCode initialize() override
Definition
MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.cxx:78
MuonGM::NSWGeoPlottingAlg::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
MuonGM::NSWGeoPlottingAlg::layerId
int layerId(const Identifier &id) const
Definition
MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.cxx:346
MuonGM::NSWGeoPlottingAlg::cardinality
unsigned int cardinality() const override final
Definition
MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.h:23
MuonGM::NSWGeoPlottingAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition
MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.h:36
MuonGM::NSWGeoPlottingAlg::m_alg_run
bool m_alg_run
Definition
MuonDetDescr/MuonGeoModelTest/src/NSWGeoPlottingAlg.h:45
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
ServiceHandle
Definition
ClusterMakerTool.h:36
const
Identifier
Definition
IdentifierFieldParser.cxx:14
MuonGM
Ensure that the Athena extensions are properly loaded.
Definition
GeoMuonHits.h:27
Generated on
for ATLAS Offline Software by
1.17.0