ATLAS Offline Software
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 
10 
15 
16 
17 
18 #include "TH1.h"
19 
20 namespace MuonVal{
22  public:
24  ~RpcRDOAnalysis() = default;
25 
26 
27  virtual StatusCode initialize() override final;
28  virtual StatusCode execute() override final;
29 
30  private:
31  SG::ReadHandleKey<RpcPadContainer> m_inputKeyPad{this, "InputPadKey", "RPCPAD"};
33  SG::ReadCondHandleKey<Muon::RpcCablingMap> m_cablingKey{this, "CablingKey", "MuonNRPC_CablingMap",
34  "Key of MuonNRPC_CablingMap"};
35 
36 
37 
40  "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
41 
42  Gaudi::Property<std::string> m_path{this, "HistPath", "RpcRDOAnalysis"};
43 
44 
46  struct PadHistoSet{
47 
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 {
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
MuonVal::RpcRDOAnalysis::RdoHistoSet::h_subDet
TH1 * h_subDet
sub detector
Definition: RpcRDOAnalysis.h:96
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
MuonVal::RpcRDOAnalysis::m_inputKeyRdo
SG::ReadHandleKey< xAOD::NRPCRDOContainer > m_inputKeyRdo
Definition: RpcRDOAnalysis.h:32
MuonVal::RpcRDOAnalysis::PadHistoSet::h_firedTime
TH1 * h_firedTime
Definition: RpcRDOAnalysis.h:72
MuonVal::RpcRDOAnalysis::PadHistoSet::h_coinRpcID
TH1 * h_coinRpcID
Definition: RpcRDOAnalysis.h:65
AthHistogramAlgorithm::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition: AthHistogramAlgorithm.cxx:31
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
MuonVal::RpcRDOAnalysis::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Service handle of the IdHelperSvc.
Definition: RpcRDOAnalysis.h:39
MuonVal::RpcRDOAnalysis::RdoHistoSet::h_tOverThr
TH1 * h_tOverThr
Time over threshold.
Definition: RpcRDOAnalysis.h:94
MuonVal::RpcRDOAnalysis::PadHistoSet::h_coinFebcID
TH1 * h_coinFebcID
Definition: RpcRDOAnalysis.h:69
MuonVal::RpcRDOAnalysis::PadHistoSet::h_coinCrc
TH1 * h_coinCrc
Definition: RpcRDOAnalysis.h:67
MuonVal::RpcRDOAnalysis::PadHistoSet::h_sector
TH1 * h_sector
Definition: RpcRDOAnalysis.h:63
MuonVal::RpcRDOAnalysis::PadHistoSet::h_firedBcID
TH1 * h_firedBcID
Definition: RpcRDOAnalysis.h:71
MuonVal::RpcRDOAnalysis::RdoHistoSet::h_channelId
TH1 * h_channelId
channel Id
Definition: RpcRDOAnalysis.h:102
RpcCablingMap.h
MuonVal::RpcRDOAnalysis::PadHistoSet::h_firedIjk
TH1 * h_firedIjk
Definition: RpcRDOAnalysis.h:73
MuonVal::RpcRDOAnalysis
Definition: RpcRDOAnalysis.h:21
MuonVal::RpcRDOAnalysis::m_rdoHistos
std::vector< RdoHistoSet > m_rdoHistos
Definition: RpcRDOAnalysis.h:106
MuonVal::RpcRDOAnalysis::m_inputKeyPad
SG::ReadHandleKey< RpcPadContainer > m_inputKeyPad
Definition: RpcRDOAnalysis.h:31
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
MuonVal::RpcRDOAnalysis::PadHistoSet::h_firedChan
TH1 * h_firedChan
Definition: RpcRDOAnalysis.h:74
MuonVal::RpcRDOAnalysis::PadHistoSet::h_lvl1ID
TH1 * h_lvl1ID
Definition: RpcRDOAnalysis.h:61
MuonVal::RpcRDOAnalysis::RdoHistoSet::h_boardSec
TH1 * h_boardSec
board sector
Definition: RpcRDOAnalysis.h:98
AthHistogramAlgorithm.h
MuonVal::RpcRDOAnalysis::RdoHistoSet::h_board
TH1 * h_board
board Id
Definition: RpcRDOAnalysis.h:100
MuonVal::RpcRDOAnalysis::m_cablingKey
SG::ReadCondHandleKey< Muon::RpcCablingMap > m_cablingKey
Definition: RpcRDOAnalysis.h:33
MuonVal::RpcRDOAnalysis::PadHistoSet::h_err
TH1 * h_err
Definition: RpcRDOAnalysis.h:59
Muon::MuonStationIndex::chIndex
ChIndex chIndex(const std::string &index)
convert ChIndex name string to enum
Definition: MuonStationIndex.cxx:11
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
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::PadHistoSet::h_firedOvl
TH1 * h_firedOvl
Definition: RpcRDOAnalysis.h:75
MuonVal::RpcRDOAnalysis::PadHistoSet::h_firedThr
TH1 * h_firedThr
Definition: RpcRDOAnalysis.h:76
MuonVal::RpcRDOAnalysis::PadHistoSet::chIdx
ChIdx_t chIdx
Definition: RpcRDOAnalysis.h:56
MuonVal::RpcRDOAnalysis::PadHistoSet::h_coinFel1ID
TH1 * h_coinFel1ID
Definition: RpcRDOAnalysis.h:68
MuonVal::RpcRDOAnalysis::execute
virtual StatusCode execute() override final
Definition: RpcRDOAnalysis.cxx:100
MuonVal::RpcRDOAnalysis::RdoHistoSet::h_bcid
TH1 * h_bcid
Bunch crossing ID.
Definition: RpcRDOAnalysis.h:90
AthHistogramAlgorithm
Definition: AthHistogramAlgorithm.h:32
ReadCondHandleKey.h
MuonVal
Class to store array like branches into the n-tuples.
Definition: HitValAlg.cxx:19
MuonVal::RpcRDOAnalysis::PadHistoSet::h_onlineID
TH1 * h_onlineID
Definition: RpcRDOAnalysis.h:60
MuonVal::RpcRDOAnalysis::RdoHistoSet
Definition: RpcRDOAnalysis.h:79
MuonVal::RpcRDOAnalysis::m_padHistos
std::vector< PadHistoSet > m_padHistos
Definition: RpcRDOAnalysis.h:105
MuonVal::RpcRDOAnalysis::RdoHistoSet::h_time
TH1 * h_time
Time of record.
Definition: RpcRDOAnalysis.h:92
MuonVal::RpcRDOAnalysis::PadHistoSet::h_status
TH1 * h_status
Definition: RpcRDOAnalysis.h:58
SG::ReadCondHandleKey< Muon::RpcCablingMap >
MuonVal::RpcRDOAnalysis::PadHistoSet::h_bcID
TH1 * h_bcID
Definition: RpcRDOAnalysis.h:62
MuonVal::RpcRDOAnalysis::PadHistoSet::h_coinOnID
TH1 * h_coinOnID
Definition: RpcRDOAnalysis.h:66
MuonVal::RpcRDOAnalysis::~RpcRDOAnalysis
~RpcRDOAnalysis()=default
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
private
#define private
Definition: xAODTruthCnvAlg.h:20
RpcPadContainer.h
Muon::MuonStationIndex::ChIndex
ChIndex
enum to classify the different chamber layers in the muon spectrometer
Definition: MuonStationIndex.h:15
MuonVal::RpcRDOAnalysis::m_path
Gaudi::Property< std::string > m_path
Definition: RpcRDOAnalysis.h:42
MuonVal::RpcRDOAnalysis::initialize
virtual StatusCode initialize() override final
Definition: RpcRDOAnalysis.cxx:76
IMuonIdHelperSvc.h
MuonVal::RpcRDOAnalysis::RdoHistoSet::chIdx
ChIdx_t chIdx
Definition: RpcRDOAnalysis.h:88
MuonVal::RpcRDOAnalysis::PadHistoSet
Definition: RpcRDOAnalysis.h:46
NRPCRDOContainer.h
ServiceHandle< Muon::IMuonIdHelperSvc >
RpcPadContainer
Use IdentifiableContainer with RpcPad.
Definition: RpcPadContainer.h:23