ATLAS Offline Software
MuonSDOAnalysis.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 Muon_SDO_ANALYSIS_H
5 #define Muon_SDO_ANALYSIS_H
6 
8 
13 
14 #include "TH1.h"
15 
16 
17 namespace MuonVal{
20 
21  public:
23  virtual StatusCode initialize() override final;
24  virtual StatusCode execute() override final;
25  private:
29  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
30 
31  Gaudi::Property<std::string> m_path{this, "HistPath", "MuonSDOAnalysis"};
32 
35 
36  Gaudi::Property<int> m_techIdx{this, "techIndex", -1};
37 
39  struct HistoSet{
41  HistoSet() = default;
52  HistoSet(const Muon::IMuonIdHelperSvc* idHelperSvc,
54  const std::string& basePath,
55  const TechIdx_t techIdx,
56  const int stIdent);
57 
59  int identifier{-1};
61  TH1* h_pdgId{nullptr};
63  TH1* h_stationPhi{nullptr};
65  TH1* h_stationEta{nullptr};
67  TH1* h_sdoWord{nullptr};
69  TH1* h_xyPos{nullptr};
71  TH1* h_rzPos{nullptr};
73  TH1* h_eventIndex{nullptr};
74 
75  TH1* h_radius{nullptr};
76  TH1* h_localZ{nullptr};
77  };
78 
79  std::vector<HistoSet> m_histos{};
80 
81  };
82 }
83 #endif // MDT_RDO_ANALYSIS_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
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
AthHistogramAlgorithm::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition: AthHistogramAlgorithm.cxx:31
MuonVal::MuonSDOAnalysis::HistoSet::h_stationPhi
TH1 * h_stationPhi
Station phi of the hit
Definition: MuonSDOAnalysis.h:63
Muon::MuonStationIndex::TechnologyIndex
TechnologyIndex
enum to classify the different layers in the muon spectrometer
Definition: MuonStationIndex.h:54
MuonVal::MuonSDOAnalysis::HistoSet::h_stationEta
TH1 * h_stationEta
Station eta of the hit.
Definition: MuonSDOAnalysis.h:65
MuonVal::MuonSDOAnalysis::m_inputKey
SG::ReadHandleKey< MuonSimDataCollection > m_inputKey
Input read handle key.
Definition: MuonSDOAnalysis.h:27
MuonVal::MuonSDOAnalysis::initialize
virtual StatusCode initialize() override final
Definition: MuonSDOAnalysis.cxx:108
SG::ReadHandleKey< MuonSimDataCollection >
MuonVal::MuonSDOAnalysis::HistoSet::h_xyPos
TH1 * h_xyPos
Position in the x-y plane.
Definition: MuonSDOAnalysis.h:69
AthHistogramAlgorithm.h
MuonVal::MuonSDOAnalysis::execute
virtual StatusCode execute() override final
Definition: MuonSDOAnalysis.cxx:157
MuonVal::MuonSDOAnalysis::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Service handle of the IdHelperSvc.
Definition: MuonSDOAnalysis.h:29
MuonVal::MuonSDOAnalysis::HistoSet::h_localZ
TH1 * h_localZ
Definition: MuonSDOAnalysis.h:76
MuonVal::MuonSDOAnalysis
Class dumping the basic distributions of the Mdt RDOs per station index.
Definition: MuonSDOAnalysis.h:19
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonVal::MuonSDOAnalysis::HistoSet::identifier
int identifier
Identifier (Either the stationIndex (Mdt/Rpc) or stationName (Tgc/Mm/sTgc))
Definition: MuonSDOAnalysis.h:59
MuonVal::MuonSDOAnalysis::HistoSet::h_radius
TH1 * h_radius
Definition: MuonSDOAnalysis.h:75
AthHistogramAlgorithm
Definition: AthHistogramAlgorithm.h:32
Muon::MuonStationIndex::StIndex
StIndex
enum to classify the different station layers in the muon spectrometer
Definition: MuonStationIndex.h:23
MuonVal::MuonSDOAnalysis::HistoSet::h_pdgId
TH1 * h_pdgId
pdgId of the hit
Definition: MuonSDOAnalysis.h:61
MuonVal
Class to store array like branches into the n-tuples.
Definition: HitValAlg.cxx:19
MuonVal::MuonSDOAnalysis::HistoSet::h_eventIndex
TH1 * h_eventIndex
Index of the underlying event collection.
Definition: MuonSDOAnalysis.h:73
MuonVal::MuonSDOAnalysis::HistoSet::h_sdoWord
TH1 * h_sdoWord
Encoded data word of the SDO.
Definition: MuonSDOAnalysis.h:67
MuonVal::MuonSDOAnalysis::m_techIdx
Gaudi::Property< int > m_techIdx
Definition: MuonSDOAnalysis.h:36
Muon::IMuonIdHelperSvc
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
Definition: IMuonIdHelperSvc.h:27
MuonVal::MuonSDOAnalysis::m_path
Gaudi::Property< std::string > m_path
Definition: MuonSDOAnalysis.h:31
MuonVal::MuonSDOAnalysis::HistoSet::HistoSet
HistoSet()=default
Default constructor.
MuonStationIndex.h
MuonSimDataCollection.h
IMuonIdHelperSvc.h
MuonVal::MuonSDOAnalysis::HistoSet
Histograms per station index.
Definition: MuonSDOAnalysis.h:39
ServiceHandle< Muon::IMuonIdHelperSvc >
MuonVal::MuonSDOAnalysis::m_histos
std::vector< HistoSet > m_histos
Definition: MuonSDOAnalysis.h:79
MuonVal::MuonSDOAnalysis::HistoSet::h_rzPos
TH1 * h_rzPos
Position in the r-z plane.
Definition: MuonSDOAnalysis.h:71