ATLAS Offline Software
Loading...
Searching...
No Matches
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
17namespace 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
Property holding a SG store/key/clid from which a ReadHandle is made.
const ServiceHandle< ITHistSvc > & histSvc() const
The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a...
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Class dumping the basic distributions of the Mdt RDOs per station index.
Muon::MuonStationIndex::TechnologyIndex TechIdx_t
virtual StatusCode initialize() override final
std::vector< HistoSet > m_histos
Gaudi::Property< int > m_techIdx
Gaudi::Property< std::string > m_path
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Service handle of the IdHelperSvc.
Muon::MuonStationIndex::StIndex StIdx_t
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
virtual StatusCode execute() override final
SG::ReadHandleKey< MuonSimDataCollection > m_inputKey
Input read handle key.
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
Property holding a SG store/key/clid from which a ReadHandle is made.
Class to store array like branches into the n-tuples.
Definition HitValAlg.cxx:19
StIndex
enum to classify the different station layers in the muon spectrometer
TechnologyIndex
enum to classify the different layers in the muon spectrometer
int identifier
Identifier (Either the stationIndex (Mdt/Rpc) or stationName (Tgc/Mm/sTgc))
HistoSet()=default
Default constructor.
TH1 * h_rzPos
Position in the r-z plane.
TH1 * h_sdoWord
Encoded data word of the SDO.
TH1 * h_stationEta
Station eta of the hit.
TH1 * h_eventIndex
Index of the underlying event collection.
TH1 * h_xyPos
Position in the x-y plane.
TH1 * h_stationPhi
Station phi of the hit.