ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
Tools
HitAnalysis
src
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
9
#include "
AthenaBaseComps/AthHistogramAlgorithm.h
"
10
#include "
StoreGate/ReadHandleKey.h
"
11
12
#include "
xAODMuonSimHit/MuonSimHitContainer.h
"
13
#include "
MuonReadoutGeometryR4/MuonDetectorManager.h
"
14
#include "
ActsGeometryInterfaces/GeometryContext.h
"
15
16
namespace
MuonValR4
{
17
class
xMuonHitAnalysis
:
public
AthHistogramAlgorithm
{
18
public
:
19
using
AthHistogramAlgorithm::AthHistogramAlgorithm
;
20
21
virtual
StatusCode
initialize
()
override
final
;
22
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
final
;
23
private
:
24
SG::ReadHandleKey<xAOD::MuonSimHitContainer>
m_inputKey
{
this
,
"InputKey"
,
""
};
25
// ACTS geometry context
26
SG::ReadHandleKey<ActsTrk::GeometryContext>
m_geoCtxKey
{
this
,
"AlignmentKey"
,
"ActsAlignment"
,
"cond handle key"
};
28
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
this
,
"MuonIdHelperSvc"
,
29
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
30
32
const
MuonGMR4::MuonDetectorManager
*
m_detMgr
{
nullptr
};
33
34
Gaudi::Property<std::string>
m_path
{
this
,
"HistPath"
,
"MuonSDOAnalysis"
};
35
36
using
StIdx_t
=
Muon::MuonStationIndex::StIndex
;
37
using
TechIdx_t
=
Muon::MuonStationIndex::TechnologyIndex
;
38
39
Gaudi::Property<int>
m_techIdx
{
this
,
"techIndex"
, -1};
40
41
struct
HistoSet
{
48
HistoSet
(
const
Muon::IMuonIdHelperSvc
* idHelperSvc,
49
const
ServiceHandle<ITHistSvc>
&
histSvc
,
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
AthHistogramAlgorithm.h
GeometryContext.h
MuonDetectorManager.h
MuonSimHitContainer.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
MuonGMR4::MuonDetectorManager
Definition
MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonDetectorManager.h:62
MuonValR4::xMuonHitAnalysis
Definition
xMuonHitAnalysis.h:17
MuonValR4::xMuonHitAnalysis::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Service handle of the IdHelperSvc.
Definition
xMuonHitAnalysis.h:28
MuonValR4::xMuonHitAnalysis::m_geoCtxKey
SG::ReadHandleKey< ActsTrk::GeometryContext > m_geoCtxKey
Definition
xMuonHitAnalysis.h:26
MuonValR4::xMuonHitAnalysis::m_histos
std::vector< HistoSet > m_histos
Definition
xMuonHitAnalysis.h:79
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::m_detMgr
const MuonGMR4::MuonDetectorManager * m_detMgr
MuonSimHit.
Definition
xMuonHitAnalysis.h:32
MuonValR4::xMuonHitAnalysis::m_inputKey
SG::ReadHandleKey< xAOD::MuonSimHitContainer > m_inputKey
Definition
xMuonHitAnalysis.h:24
MuonValR4::xMuonHitAnalysis::TechIdx_t
Muon::MuonStationIndex::TechnologyIndex TechIdx_t
Definition
xMuonHitAnalysis.h:37
MuonValR4::xMuonHitAnalysis::StIdx_t
Muon::MuonStationIndex::StIndex StIdx_t
Definition
xMuonHitAnalysis.h:36
MuonValR4::xMuonHitAnalysis::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
MuonValR4::xMuonHitAnalysis::initialize
virtual StatusCode initialize() override final
Definition
xMuonHitAnalysis.cxx:123
MuonValR4::xMuonHitAnalysis::execute
virtual StatusCode execute(const EventContext &ctx) override final
Execute method.
Definition
xMuonHitAnalysis.cxx:172
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
MuonValR4
Lightweight algorithm to read xAOD MDT sim hits and (fast-digitised) drift circles from SG and fill a...
Definition
SpacePointWriter.cxx:32
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
MuonValR4::xMuonHitAnalysis::HistoSet::h_dirPhi
TH1 * h_dirPhi
Local phi direction of the hit.
Definition
xMuonHitAnalysis.h:59
MuonValR4::xMuonHitAnalysis::HistoSet::h_deposit
TH1 * h_deposit
Energy deposit of the hit.
Definition
xMuonHitAnalysis.h:63
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_stationEta
TH1 * h_stationEta
Station eta of the hit.
Definition
xMuonHitAnalysis.h:69
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::HistoSet::h_energy
TH1 * h_energy
Energy of the hit.
Definition
xMuonHitAnalysis.h:61
MuonValR4::xMuonHitAnalysis::HistoSet::h_stationPhi
TH1 * h_stationPhi
Station phi of the hit.
Definition
xMuonHitAnalysis.h:67
MuonValR4::xMuonHitAnalysis::HistoSet::h_localHitZ
TH1 * h_localHitZ
Local z-hit position.
Definition
xMuonHitAnalysis.h:73
MuonValR4::xMuonHitAnalysis::HistoSet::h_globHitXY
TH1 * h_globHitXY
Global hit position (x-y) plane.
Definition
xMuonHitAnalysis.h:75
MuonValR4::xMuonHitAnalysis::HistoSet::identifier
int identifier
Identifier (Either the stationIndex (Mdt/Rpc) or stationName (Tgc/Mm/sTgc)).
Definition
xMuonHitAnalysis.h:55
MuonValR4::xMuonHitAnalysis::HistoSet::h_dirTheta
TH1 * h_dirTheta
Local theta direction of the hit.
Definition
xMuonHitAnalysis.h:57
MuonValR4::xMuonHitAnalysis::HistoSet::h_pdgId
TH1 * h_pdgId
pdgId of the hit
Definition
xMuonHitAnalysis.h:65
MuonValR4::xMuonHitAnalysis::HistoSet::h_globHitRZ
TH1 * h_globHitRZ
Global hit position (r-z) plane.
Definition
xMuonHitAnalysis.h:77
Generated on
for ATLAS Offline Software by
1.17.0