ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
Tools
RDOAnalysis
src
MdtRDOAnalysis.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 MDT_RDO_ANALYSIS_H
5
#define MDT_RDO_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 "
MuonRDO/MdtCsmContainer.h
"
13
14
#include "TH1.h"
15
16
17
namespace
MuonVal
{
19
class
MdtRDOAnalysis
:
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<MdtCsmContainer>
m_inputKey
{
this
,
"InputKey"
,
"MDTCSM"
};
29
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
this
,
"MuonIdHelperSvc"
,
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
30
31
Gaudi::Property<std::string>
m_path
{
this
,
"HistPath"
,
"MdtRDOAnalysis"
};
32
33
34
using
StIdx_t
=
Muon::MuonStationIndex::StIndex
;
36
struct
HistoSet
{
38
HistoSet
() =
default
;
43
HistoSet
(
const
ServiceHandle<ITHistSvc>
&
histSvc
,
44
const
std::string& basePath,
45
const
StIdx_t
stIdx
);
46
47
StIdx_t
stIdx
{StIdx_t::StUnknown};
48
TH1*
h_subID
{
nullptr
};
49
TH1*
h_mrodID
{
nullptr
};
50
TH1*
h_csmID
{
nullptr
};
51
TH1*
h_tdcID
{
nullptr
};
52
TH1*
h_chanID
{
nullptr
};
53
TH1*
h_coarse
{
nullptr
};
54
TH1*
h_fine
{
nullptr
};
55
TH1*
h_width
{
nullptr
};
56
};
57
std::vector<HistoSet>
m_histos
{};
58
};
59
}
60
#endif
// MDT_RDO_ANALYSIS_H
AthHistogramAlgorithm.h
IMuonIdHelperSvc.h
MdtCsmContainer.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::MdtRDOAnalysis
Class dumping the basic distributions of the Mdt RDOs per station index.
Definition
MdtRDOAnalysis.h:19
MuonVal::MdtRDOAnalysis::m_histos
std::vector< HistoSet > m_histos
Definition
MdtRDOAnalysis.h:57
MuonVal::MdtRDOAnalysis::execute
virtual StatusCode execute(const EventContext &ctx) override final
Execute method.
Definition
MdtRDOAnalysis.cxx:62
MuonVal::MdtRDOAnalysis::m_path
Gaudi::Property< std::string > m_path
Definition
MdtRDOAnalysis.h:31
MuonVal::MdtRDOAnalysis::m_inputKey
SG::ReadHandleKey< MdtCsmContainer > m_inputKey
Input read handle key.
Definition
MdtRDOAnalysis.h:27
MuonVal::MdtRDOAnalysis::initialize
virtual StatusCode initialize() override final
Definition
MdtRDOAnalysis.cxx:46
MuonVal::MdtRDOAnalysis::StIdx_t
Muon::MuonStationIndex::StIndex StIdx_t
Definition
MdtRDOAnalysis.h:34
MuonVal::MdtRDOAnalysis::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
MuonVal::MdtRDOAnalysis::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Service handle of the IdHelperSvc.
Definition
MdtRDOAnalysis.h:29
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
MuonVal::MdtRDOAnalysis::HistoSet::h_mrodID
TH1 * h_mrodID
Definition
MdtRDOAnalysis.h:49
MuonVal::MdtRDOAnalysis::HistoSet::h_csmID
TH1 * h_csmID
Definition
MdtRDOAnalysis.h:50
MuonVal::MdtRDOAnalysis::HistoSet::h_chanID
TH1 * h_chanID
Definition
MdtRDOAnalysis.h:52
MuonVal::MdtRDOAnalysis::HistoSet::h_tdcID
TH1 * h_tdcID
Definition
MdtRDOAnalysis.h:51
MuonVal::MdtRDOAnalysis::HistoSet::h_subID
TH1 * h_subID
Definition
MdtRDOAnalysis.h:48
MuonVal::MdtRDOAnalysis::HistoSet::HistoSet
HistoSet()=default
Default constructor.
MuonVal::MdtRDOAnalysis::HistoSet::h_fine
TH1 * h_fine
Definition
MdtRDOAnalysis.h:54
MuonVal::MdtRDOAnalysis::HistoSet::h_width
TH1 * h_width
Definition
MdtRDOAnalysis.h:55
MuonVal::MdtRDOAnalysis::HistoSet::h_coarse
TH1 * h_coarse
Definition
MdtRDOAnalysis.h:53
MuonVal::MdtRDOAnalysis::HistoSet::stIdx
StIdx_t stIdx
Definition
MdtRDOAnalysis.h:47
Generated on
for ATLAS Offline Software by
1.17.0