ATLAS Offline Software
xMuonHitAnalysis.h
Go to the documentation of this file.
1 
2 /*
3  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
4 */
5 
6 #ifndef HitAnalysis_xMuonSimHitAnalysis_H
7 #define HitAnalysis_xMuonSimHitAnalysis_H
8 
11 
15 
16 namespace MuonValR4{
18  public:
20 
21  virtual StatusCode initialize() override final;
22  virtual StatusCode execute() override final;
23  private:
25  // ACTS geometry context
26  SG::ReadHandleKey<ActsGeometryContext> m_geoCtxKey{this, "AlignmentKey", "ActsAlignment", "cond handle key"};
29  "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
30 
33 
34  Gaudi::Property<std::string> m_path{this, "HistPath", "MuonSDOAnalysis"};
35 
38 
39  Gaudi::Property<int> m_techIdx{this, "techIndex", -1};
40 
41  struct HistoSet{
48  HistoSet(const Muon::IMuonIdHelperSvc* idHelperSvc,
50  const std::string& basePath,
51  const TechIdx_t techIdx,
52  const int stIdent);
53 
55  int identifier{-1};
57  TH1* h_dirTheta{nullptr};
59  TH1* h_dirPhi{nullptr};
61  TH1* h_energy{nullptr};
63  TH1* h_deposit{nullptr};
65  TH1* h_pdgId{nullptr};
67  TH1* h_stationPhi{nullptr};
69  TH1* h_stationEta{nullptr};
71  TH1* h_localHitPos{nullptr};
73  TH1* h_localHitZ{nullptr};
75  TH1* h_globHitXY{nullptr};
77  TH1* h_globHitRZ{nullptr};
78  };
79  std::vector<HistoSet> m_histos{};
80  };
81 }
82 
83 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
MuonValR4::xMuonHitAnalysis::HistoSet::h_globHitRZ
TH1 * h_globHitRZ
Global hit position (r-z) plane.
Definition: xMuonHitAnalysis.h:77
AthHistogramAlgorithm::histSvc
const ServiceHandle< ITHistSvc > & histSvc() const
The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a...
Definition: AthHistogramAlgorithm.h:113
MuonValR4::xMuonHitAnalysis::initialize
virtual StatusCode initialize() override final
Definition: xMuonHitAnalysis.cxx:123
MuonValR4::xMuonHitAnalysis::m_inputKey
SG::ReadHandleKey< xAOD::MuonSimHitContainer > m_inputKey
Definition: xMuonHitAnalysis.h:24
AthHistogramAlgorithm::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition: AthHistogramAlgorithm.cxx:31
MuonGMR4::MuonDetectorManager
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonDetectorManager.h:62
ActsGeometryContext.h
MuonValR4::xMuonHitAnalysis::HistoSet::identifier
int identifier
Identifier (Either the stationIndex (Mdt/Rpc) or stationName (Tgc/Mm/sTgc))
Definition: xMuonHitAnalysis.h:55
Muon::MuonStationIndex::TechnologyIndex
TechnologyIndex
enum to classify the different layers in the muon spectrometer
Definition: MuonStationIndex.h:54
MuonValR4::xMuonHitAnalysis::HistoSet::h_localHitZ
TH1 * h_localHitZ
Local z-hit position.
Definition: xMuonHitAnalysis.h:73
MuonValR4::xMuonHitAnalysis::HistoSet::h_pdgId
TH1 * h_pdgId
pdgId of the hit
Definition: xMuonHitAnalysis.h:65
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
MuonValR4::xMuonHitAnalysis::HistoSet::h_stationEta
TH1 * h_stationEta
Station eta of the hit.
Definition: xMuonHitAnalysis.h:69
MuonValR4::xMuonHitAnalysis::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Service handle of the IdHelperSvc.
Definition: xMuonHitAnalysis.h:28
AthHistogramAlgorithm.h
MuonValR4::xMuonHitAnalysis::HistoSet::h_localHitPos
TH1 * h_localHitPos
Local position of the hit (signed radius) / pos in x-y plane.
Definition: xMuonHitAnalysis.h:71
MuonValR4::xMuonHitAnalysis::HistoSet::h_dirPhi
TH1 * h_dirPhi
Local phi direction of the hit.
Definition: xMuonHitAnalysis.h:59
MuonValR4::xMuonHitAnalysis::HistoSet::HistoSet
HistoSet(const Muon::IMuonIdHelperSvc *idHelperSvc, const ServiceHandle< ITHistSvc > &histSvc, const std::string &basePath, const TechIdx_t techIdx, const int stIdent)
Helper struct to define histograms spectrometer region.
Definition: xMuonHitAnalysis.cxx:16
MuonValR4::xMuonHitAnalysis::m_geoCtxKey
SG::ReadHandleKey< ActsGeometryContext > m_geoCtxKey
Definition: xMuonHitAnalysis.h:26
MuonValR4::xMuonHitAnalysis::HistoSet::h_energy
TH1 * h_energy
Energy of the hit.
Definition: xMuonHitAnalysis.h:61
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonValR4::xMuonHitAnalysis::HistoSet::h_deposit
TH1 * h_deposit
Energy deposit of the hit.
Definition: xMuonHitAnalysis.h:63
MuonDetectorManager.h
MuonSimHitContainer.h
AthHistogramAlgorithm
Definition: AthHistogramAlgorithm.h:32
MuonValR4::xMuonHitAnalysis::HistoSet::h_dirTheta
TH1 * h_dirTheta
Local theta direction of the hit.
Definition: xMuonHitAnalysis.h:57
MuonValR4::xMuonHitAnalysis::execute
virtual StatusCode execute() override final
Definition: xMuonHitAnalysis.cxx:172
MuonValR4
Lightweight algorithm to read xAOD MDT sim hits and (fast-digitised) drift circles from SG and fill a...
Definition: IPatternVisualizationTool.h:23
Muon::MuonStationIndex::StIndex
StIndex
enum to classify the different station layers in the muon spectrometer
Definition: MuonStationIndex.h:23
MuonValR4::xMuonHitAnalysis::m_path
Gaudi::Property< std::string > m_path
Definition: xMuonHitAnalysis.h:34
MuonValR4::xMuonHitAnalysis::m_techIdx
Gaudi::Property< int > m_techIdx
Definition: xMuonHitAnalysis.h:39
MuonValR4::xMuonHitAnalysis::HistoSet
Definition: xMuonHitAnalysis.h:41
Muon::IMuonIdHelperSvc
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
Definition: IMuonIdHelperSvc.h:27
MuonValR4::xMuonHitAnalysis::m_detMgr
const MuonGMR4::MuonDetectorManager * m_detMgr
MuonSimHit.
Definition: xMuonHitAnalysis.h:32
MuonValR4::xMuonHitAnalysis::HistoSet::h_globHitXY
TH1 * h_globHitXY
Global hit position (x-y) plane.
Definition: xMuonHitAnalysis.h:75
MuonValR4::xMuonHitAnalysis::HistoSet::h_stationPhi
TH1 * h_stationPhi
Station phi of the hit
Definition: xMuonHitAnalysis.h:67
MuonValR4::xMuonHitAnalysis
Definition: xMuonHitAnalysis.h:17
MuonValR4::xMuonHitAnalysis::m_histos
std::vector< HistoSet > m_histos
Definition: xMuonHitAnalysis.h:79
ServiceHandle< Muon::IMuonIdHelperSvc >