ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
Tools
RDOAnalysis
src
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
7
#include "
AthenaBaseComps/AthHistogramAlgorithm.h
"
8
9
#include "
StoreGate/ReadHandleKey.h
"
10
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
11
#include "
MuonStationIndex/MuonStationIndex.h
"
12
#include "
MuonSimData/MuonSimDataCollection.h
"
13
14
#include "TH1.h"
15
16
17
namespace
MuonVal
{
19
class
MuonSDOAnalysis
:
public
AthHistogramAlgorithm
{
20
21
public
:
22
using
AthHistogramAlgorithm::AthHistogramAlgorithm
;
23
virtual
StatusCode
initialize
()
override
final
;
24
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
final
;
25
private
:
27
SG::ReadHandleKey<MuonSimDataCollection>
m_inputKey
{
this
,
"InputKey"
,
"MDT_SDO"
};
29
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
this
,
"MuonIdHelperSvc"
,
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
30
31
Gaudi::Property<std::string>
m_path
{
this
,
"HistPath"
,
"MuonSDOAnalysis"
};
32
33
using
StIdx_t
=
Muon::MuonStationIndex::StIndex
;
34
using
TechIdx_t
=
Muon::MuonStationIndex::TechnologyIndex
;
35
36
Gaudi::Property<int>
m_techIdx
{
this
,
"techIndex"
, -1};
37
39
struct
HistoSet
{
41
HistoSet
() =
default
;
52
HistoSet
(
const
Muon::IMuonIdHelperSvc
* idHelperSvc,
53
const
ServiceHandle<ITHistSvc>
&
histSvc
,
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
AthHistogramAlgorithm.h
IMuonIdHelperSvc.h
MuonSimDataCollection.h
MuonStationIndex.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
Class dumping the basic distributions of the Mdt RDOs per station index.
Definition
MuonSDOAnalysis.h:19
MuonVal::MuonSDOAnalysis::TechIdx_t
Muon::MuonStationIndex::TechnologyIndex TechIdx_t
Definition
MuonSDOAnalysis.h:34
MuonVal::MuonSDOAnalysis::initialize
virtual StatusCode initialize() override final
Definition
MuonSDOAnalysis.cxx:108
MuonVal::MuonSDOAnalysis::m_histos
std::vector< HistoSet > m_histos
Definition
MuonSDOAnalysis.h:79
MuonVal::MuonSDOAnalysis::m_techIdx
Gaudi::Property< int > m_techIdx
Definition
MuonSDOAnalysis.h:36
MuonVal::MuonSDOAnalysis::m_path
Gaudi::Property< std::string > m_path
Definition
MuonSDOAnalysis.h:31
MuonVal::MuonSDOAnalysis::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Service handle of the IdHelperSvc.
Definition
MuonSDOAnalysis.h:29
MuonVal::MuonSDOAnalysis::StIdx_t
Muon::MuonStationIndex::StIndex StIdx_t
Definition
MuonSDOAnalysis.h:33
MuonVal::MuonSDOAnalysis::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
MuonVal::MuonSDOAnalysis::execute
virtual StatusCode execute(const EventContext &ctx) override final
Execute method.
Definition
MuonSDOAnalysis.cxx:157
MuonVal::MuonSDOAnalysis::m_inputKey
SG::ReadHandleKey< MuonSimDataCollection > m_inputKey
Input read handle key.
Definition
MuonSDOAnalysis.h:27
Muon::IMuonIdHelperSvc
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
Definition
IMuonIdHelperSvc.h:27
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
ServiceHandle
Definition
ClusterMakerTool.h:36
MuonVal
Class to store array like branches into the n-tuples.
Definition
HitValAlg.cxx:19
Muon::MuonStationIndex::StIndex
StIndex
enum to classify the different station layers in the muon spectrometer
Definition
MuonStationIndex.h:24
Muon::MuonStationIndex::TechnologyIndex
TechnologyIndex
enum to classify the different layers in the muon spectrometer
Definition
MuonStationIndex.h:55
MuonVal::MuonSDOAnalysis::HistoSet::identifier
int identifier
Identifier (Either the stationIndex (Mdt/Rpc) or stationName (Tgc/Mm/sTgc)).
Definition
MuonSDOAnalysis.h:59
MuonVal::MuonSDOAnalysis::HistoSet::HistoSet
HistoSet()=default
Default constructor.
MuonVal::MuonSDOAnalysis::HistoSet::h_rzPos
TH1 * h_rzPos
Position in the r-z plane.
Definition
MuonSDOAnalysis.h:71
MuonVal::MuonSDOAnalysis::HistoSet::h_pdgId
TH1 * h_pdgId
pdgId of the hit
Definition
MuonSDOAnalysis.h:61
MuonVal::MuonSDOAnalysis::HistoSet::h_sdoWord
TH1 * h_sdoWord
Encoded data word of the SDO.
Definition
MuonSDOAnalysis.h:67
MuonVal::MuonSDOAnalysis::HistoSet::h_stationEta
TH1 * h_stationEta
Station eta of the hit.
Definition
MuonSDOAnalysis.h:65
MuonVal::MuonSDOAnalysis::HistoSet::h_eventIndex
TH1 * h_eventIndex
Index of the underlying event collection.
Definition
MuonSDOAnalysis.h:73
MuonVal::MuonSDOAnalysis::HistoSet::h_localZ
TH1 * h_localZ
Definition
MuonSDOAnalysis.h:76
MuonVal::MuonSDOAnalysis::HistoSet::h_xyPos
TH1 * h_xyPos
Position in the x-y plane.
Definition
MuonSDOAnalysis.h:69
MuonVal::MuonSDOAnalysis::HistoSet::h_radius
TH1 * h_radius
Definition
MuonSDOAnalysis.h:75
MuonVal::MuonSDOAnalysis::HistoSet::h_stationPhi
TH1 * h_stationPhi
Station phi of the hit.
Definition
MuonSDOAnalysis.h:63
Generated on
for ATLAS Offline Software by
1.17.0