ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
Tools
RDOAnalysis
src
RpcRDOAnalysis.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 RPC_RDO_ANALYSIS_H
5
#define RPC_RDO_ANALYSIS_H
6
7
#include "
AthenaBaseComps/AthHistogramAlgorithm.h
"
8
#include "
StoreGate/ReadHandleKey.h
"
9
#include "
StoreGate/ReadCondHandleKey.h
"
10
11
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
12
#include "
MuonRDO/RpcPadContainer.h
"
13
#include "
xAODMuonRDO/NRPCRDOContainer.h
"
14
#include "
MuonCablingData/RpcCablingMap.h
"
15
16
17
18
#include "TH1.h"
19
20
namespace
MuonVal
{
21
class
RpcRDOAnalysis
:
public
AthHistogramAlgorithm
{
22
public
:
23
using
AthHistogramAlgorithm::AthHistogramAlgorithm
;
24
~RpcRDOAnalysis
() =
default
;
25
26
27
virtual
StatusCode
initialize
() override final;
28
virtual StatusCode
execute
(
const
EventContext& ctx) override final;
29
30
private
:
31
SG
::ReadHandleKey<
RpcPadContainer
>
m_inputKeyPad
{
this
,
"InputPadKey"
,
"RPCPAD"
};
32
SG::ReadHandleKey<xAOD::NRPCRDOContainer>
m_inputKeyRdo
{
this
,
"InputRdoKey"
,
"RPCPAD"
};
33
SG::ReadCondHandleKey<Muon::RpcCablingMap>
m_cablingKey
{
this
,
"CablingKey"
,
"MuonNRPC_CablingMap"
,
34
"Key of MuonNRPC_CablingMap"
};
35
36
37
39
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
this
,
"MuonIdHelperSvc"
,
40
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
41
42
Gaudi::Property<std::string>
m_path
{
this
,
"HistPath"
,
"RpcRDOAnalysis"
};
43
44
45
using
ChIdx_t
=
Muon::MuonStationIndex::ChIndex
;
46
struct
PadHistoSet
{
47
52
PadHistoSet
(
const
ServiceHandle<ITHistSvc>
&
histSvc
,
53
const
std::string& basePath,
54
const
ChIdx_t
chIndex
);
55
56
ChIdx_t
chIdx
{ChIdx_t::ChUnknown};
57
58
TH1*
h_status
{
nullptr
};
59
TH1*
h_err
{
nullptr
};
60
TH1*
h_onlineID
{
nullptr
};
61
TH1*
h_lvl1ID
{
nullptr
};
62
TH1*
h_bcID
{
nullptr
};
63
TH1*
h_sector
{
nullptr
};
64
65
TH1*
h_coinRpcID
{
nullptr
};
66
TH1*
h_coinOnID
{
nullptr
};
67
TH1*
h_coinCrc
{
nullptr
};
68
TH1*
h_coinFel1ID
{
nullptr
};
69
TH1*
h_coinFebcID
{
nullptr
};
70
71
TH1*
h_firedBcID
{
nullptr
};
72
TH1*
h_firedTime
{
nullptr
};
73
TH1*
h_firedIjk
{
nullptr
};
74
TH1*
h_firedChan
{
nullptr
};
75
TH1*
h_firedOvl
{
nullptr
};
76
TH1*
h_firedThr
{
nullptr
};
77
};
78
79
struct
RdoHistoSet
{
84
RdoHistoSet
(
const
ServiceHandle<ITHistSvc>
&
histSvc
,
85
const
std::string& basePath,
86
const
ChIdx_t
chIndex
);
87
88
ChIdx_t
chIdx
{ChIdx_t::ChUnknown};
90
TH1*
h_bcid
{
nullptr
};
92
TH1*
h_time
{
nullptr
};
94
TH1*
h_tOverThr
{
nullptr
};
96
TH1*
h_subDet
{
nullptr
};
98
TH1*
h_boardSec
{
nullptr
};
100
TH1*
h_board
{
nullptr
};
102
TH1*
h_channelId
{
nullptr
};
103
};
104
105
std::vector<PadHistoSet>
m_padHistos
{};
106
std::vector<RdoHistoSet>
m_rdoHistos
{};
107
};
108
}
109
110
#endif
// RPC_RDO_ANALYSIS_H
AthHistogramAlgorithm.h
IMuonIdHelperSvc.h
NRPCRDOContainer.h
ReadCondHandleKey.h
RpcCablingMap.h
RpcPadContainer.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::RpcRDOAnalysis
Definition
RpcRDOAnalysis.h:21
MuonVal::RpcRDOAnalysis::initialize
virtual StatusCode initialize() override final
Definition
RpcRDOAnalysis.cxx:76
MuonVal::RpcRDOAnalysis::m_rdoHistos
std::vector< RdoHistoSet > m_rdoHistos
Definition
RpcRDOAnalysis.h:106
MuonVal::RpcRDOAnalysis::m_inputKeyRdo
SG::ReadHandleKey< xAOD::NRPCRDOContainer > m_inputKeyRdo
Definition
RpcRDOAnalysis.h:32
MuonVal::RpcRDOAnalysis::m_inputKeyPad
SG::ReadHandleKey< RpcPadContainer > m_inputKeyPad
Definition
RpcRDOAnalysis.h:31
MuonVal::RpcRDOAnalysis::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Service handle of the IdHelperSvc.
Definition
RpcRDOAnalysis.h:39
MuonVal::RpcRDOAnalysis::execute
virtual StatusCode execute(const EventContext &ctx) override final
Execute method.
Definition
RpcRDOAnalysis.cxx:100
MuonVal::RpcRDOAnalysis::m_path
Gaudi::Property< std::string > m_path
Definition
RpcRDOAnalysis.h:42
MuonVal::RpcRDOAnalysis::m_cablingKey
SG::ReadCondHandleKey< Muon::RpcCablingMap > m_cablingKey
Definition
RpcRDOAnalysis.h:33
MuonVal::RpcRDOAnalysis::~RpcRDOAnalysis
~RpcRDOAnalysis()=default
MuonVal::RpcRDOAnalysis::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
MuonVal::RpcRDOAnalysis::m_padHistos
std::vector< PadHistoSet > m_padHistos
Definition
RpcRDOAnalysis.h:105
MuonVal::RpcRDOAnalysis::ChIdx_t
Muon::MuonStationIndex::ChIndex ChIdx_t
Definition
RpcRDOAnalysis.h:45
RpcPadContainer
Use IdentifiableContainer with RpcPad.
Definition
RpcPadContainer.h:23
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
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
const
MuonVal
Class to store array like branches into the n-tuples.
Definition
HitValAlg.cxx:19
Muon::MuonStationIndex::chIndex
ChIndex chIndex(const std::string &index)
convert ChIndex name string to enum
Definition
MuonStationIndex.cxx:12
Muon::MuonStationIndex::ChIndex
ChIndex
enum to classify the different chamber layers in the muon spectrometer
Definition
MuonStationIndex.h:16
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
MuonVal::RpcRDOAnalysis::PadHistoSet::chIdx
ChIdx_t chIdx
Definition
RpcRDOAnalysis.h:56
MuonVal::RpcRDOAnalysis::PadHistoSet::PadHistoSet
PadHistoSet(const ServiceHandle< ITHistSvc > &histSvc, const std::string &basePath, const ChIdx_t chIndex)
Constructor instantiating the monitoring histograms.
Definition
RpcRDOAnalysis.cxx:11
MuonVal::RpcRDOAnalysis::PadHistoSet::h_coinFel1ID
TH1 * h_coinFel1ID
Definition
RpcRDOAnalysis.h:68
MuonVal::RpcRDOAnalysis::PadHistoSet::h_coinFebcID
TH1 * h_coinFebcID
Definition
RpcRDOAnalysis.h:69
MuonVal::RpcRDOAnalysis::PadHistoSet::h_firedBcID
TH1 * h_firedBcID
Definition
RpcRDOAnalysis.h:71
MuonVal::RpcRDOAnalysis::PadHistoSet::h_firedThr
TH1 * h_firedThr
Definition
RpcRDOAnalysis.h:76
MuonVal::RpcRDOAnalysis::PadHistoSet::h_err
TH1 * h_err
Definition
RpcRDOAnalysis.h:59
MuonVal::RpcRDOAnalysis::PadHistoSet::h_sector
TH1 * h_sector
Definition
RpcRDOAnalysis.h:63
MuonVal::RpcRDOAnalysis::PadHistoSet::h_status
TH1 * h_status
Definition
RpcRDOAnalysis.h:58
MuonVal::RpcRDOAnalysis::PadHistoSet::h_firedOvl
TH1 * h_firedOvl
Definition
RpcRDOAnalysis.h:75
MuonVal::RpcRDOAnalysis::PadHistoSet::h_onlineID
TH1 * h_onlineID
Definition
RpcRDOAnalysis.h:60
MuonVal::RpcRDOAnalysis::PadHistoSet::h_firedIjk
TH1 * h_firedIjk
Definition
RpcRDOAnalysis.h:73
MuonVal::RpcRDOAnalysis::PadHistoSet::h_bcID
TH1 * h_bcID
Definition
RpcRDOAnalysis.h:62
MuonVal::RpcRDOAnalysis::PadHistoSet::h_lvl1ID
TH1 * h_lvl1ID
Definition
RpcRDOAnalysis.h:61
MuonVal::RpcRDOAnalysis::PadHistoSet::h_coinCrc
TH1 * h_coinCrc
Definition
RpcRDOAnalysis.h:67
MuonVal::RpcRDOAnalysis::PadHistoSet::h_firedTime
TH1 * h_firedTime
Definition
RpcRDOAnalysis.h:72
MuonVal::RpcRDOAnalysis::PadHistoSet::h_coinRpcID
TH1 * h_coinRpcID
Definition
RpcRDOAnalysis.h:65
MuonVal::RpcRDOAnalysis::PadHistoSet::h_firedChan
TH1 * h_firedChan
Definition
RpcRDOAnalysis.h:74
MuonVal::RpcRDOAnalysis::PadHistoSet::h_coinOnID
TH1 * h_coinOnID
Definition
RpcRDOAnalysis.h:66
MuonVal::RpcRDOAnalysis::RdoHistoSet::h_boardSec
TH1 * h_boardSec
board sector
Definition
RpcRDOAnalysis.h:98
MuonVal::RpcRDOAnalysis::RdoHistoSet::h_channelId
TH1 * h_channelId
channel Id
Definition
RpcRDOAnalysis.h:102
MuonVal::RpcRDOAnalysis::RdoHistoSet::h_subDet
TH1 * h_subDet
sub detector
Definition
RpcRDOAnalysis.h:96
MuonVal::RpcRDOAnalysis::RdoHistoSet::h_time
TH1 * h_time
Time of record.
Definition
RpcRDOAnalysis.h:92
MuonVal::RpcRDOAnalysis::RdoHistoSet::chIdx
ChIdx_t chIdx
Definition
RpcRDOAnalysis.h:88
MuonVal::RpcRDOAnalysis::RdoHistoSet::h_bcid
TH1 * h_bcid
Bunch crossing ID.
Definition
RpcRDOAnalysis.h:90
MuonVal::RpcRDOAnalysis::RdoHistoSet::h_board
TH1 * h_board
board Id
Definition
RpcRDOAnalysis.h:100
MuonVal::RpcRDOAnalysis::RdoHistoSet::RdoHistoSet
RdoHistoSet(const ServiceHandle< ITHistSvc > &histSvc, const std::string &basePath, const ChIdx_t chIndex)
Constructor instantiating the monitoring histograms.
Definition
RpcRDOAnalysis.cxx:48
MuonVal::RpcRDOAnalysis::RdoHistoSet::h_tOverThr
TH1 * h_tOverThr
Time over threshold.
Definition
RpcRDOAnalysis.h:94
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0