ATLAS Offline Software
Loading...
Searching...
No Matches
MuonVal::RpcRDOAnalysis::PadHistoSet Struct Reference
Collaboration diagram for MuonVal::RpcRDOAnalysis::PadHistoSet:

Public Member Functions

 PadHistoSet (const ServiceHandle< ITHistSvc > &histSvc, const std::string &basePath, const ChIdx_t chIndex)
 Constructor instantiating the monitoring histograms.

Public Attributes

ChIdx_t chIdx {ChIdx_t::ChUnknown}
TH1 * h_status {nullptr}
TH1 * h_err {nullptr}
TH1 * h_onlineID {nullptr}
TH1 * h_lvl1ID {nullptr}
TH1 * h_bcID {nullptr}
TH1 * h_sector {nullptr}
TH1 * h_coinRpcID {nullptr}
TH1 * h_coinOnID {nullptr}
TH1 * h_coinCrc {nullptr}
TH1 * h_coinFel1ID {nullptr}
TH1 * h_coinFebcID {nullptr}
TH1 * h_firedBcID {nullptr}
TH1 * h_firedTime {nullptr}
TH1 * h_firedIjk {nullptr}
TH1 * h_firedChan {nullptr}
TH1 * h_firedOvl {nullptr}
TH1 * h_firedThr {nullptr}

Detailed Description

Definition at line 46 of file RpcRDOAnalysis.h.

Constructor & Destructor Documentation

◆ PadHistoSet()

MuonVal::RpcRDOAnalysis::PadHistoSet::PadHistoSet ( const ServiceHandle< ITHistSvc > & histSvc,
const std::string & basePath,
const ChIdx_t chIndex )

Constructor instantiating the monitoring histograms.

Parameters
histSvcReference to the histSvc to register the histograms with the file
basePathBasic path for all histograms
chIndexStation index to consider for the histogram set

Definition at line 11 of file RpcRDOAnalysis.cxx.

13 :
14 chIdx{chIndex} {
15
16 auto createHisto = [&histSvc, &basePath, chIndex](const std::string& hName,
17 const std::string& hTitle,
18 const unsigned nBins,
19 const float xLow,
20 const float xHigh) {
21 TH1* h = new TH1F(hName.c_str(), hTitle.c_str(), nBins, xLow, xHigh);
22 h->Sumw2();
23 histSvc->regHist(std::format("/{}/PAD/Chamber_{}/{}",
24 basePath,
25 chIndex != ChIdx_t::ChUnknown ? chName(chIndex) : "Inclusive",
26 hName), h).ignore();
27 return h;
28 };
29 h_status = createHisto("status", "RPC Pad Status", 100, 0, 10);
30 h_err = createHisto("error", "RPC Pad error code", 100, 0, 10);
31 h_onlineID = createHisto("onlineID", "RPC pad online ID", 100, 0, 10);
32 h_lvl1ID = createHisto("lvl1ID", "RPC Pad online ID", 100, 0, 10);
33 h_bcID = createHisto("bcid", "RPC Pad BCID", 100,0, 10);
34 h_sector = createHisto("sector", "RPC Pad Sector", 100, 0, 75);
35
36 h_coinOnID = createHisto("coinOnID", "CM Online ID", 100, 0, 10);
37 h_coinCrc = createHisto("coinCrc", "CM CRC", 100, 0 , 300);
38 h_coinFel1ID = createHisto("coinFel1ID", "CM FEL1ID", 100, 0, 10);
39 h_coinFebcID = createHisto("coinFebcID", "CM FEBCID", 100, 0, 10);
40 h_firedBcID = createHisto("h_firedBcID", "Fired Channel BCID", 100, 0, 10);
41 h_firedTime = createHisto("h_firedTime", "Fired Channel time", 100, 0, 10);
42 h_firedChan = createHisto("h_firedChan", "Fired Channel number", 100, 0, 35);
43 h_firedIjk = createHisto("h_firedIjk", "Fired Channel ijk", 100, 0, 10);
44
45 h_firedOvl = createHisto("h_firedOvl", "Fired Channel overlap", 100, 0, 10);
46 h_firedThr = createHisto("h_firedThr", "Fired Channel threshold", 100, 0, 5);
47 }
const ServiceHandle< ITHistSvc > & histSvc() const
The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a...
ChIndex chIndex(const std::string &index)
convert ChIndex name string to enum
const std::string & chName(ChIndex index)
convert ChIndex into a string
TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)

Member Data Documentation

◆ chIdx

ChIdx_t MuonVal::RpcRDOAnalysis::PadHistoSet::chIdx {ChIdx_t::ChUnknown}

Definition at line 56 of file RpcRDOAnalysis.h.

56{ChIdx_t::ChUnknown};

◆ h_bcID

TH1* MuonVal::RpcRDOAnalysis::PadHistoSet::h_bcID {nullptr}

Definition at line 62 of file RpcRDOAnalysis.h.

62{nullptr};

◆ h_coinCrc

TH1* MuonVal::RpcRDOAnalysis::PadHistoSet::h_coinCrc {nullptr}

Definition at line 67 of file RpcRDOAnalysis.h.

67{nullptr};

◆ h_coinFebcID

TH1* MuonVal::RpcRDOAnalysis::PadHistoSet::h_coinFebcID {nullptr}

Definition at line 69 of file RpcRDOAnalysis.h.

69{nullptr};

◆ h_coinFel1ID

TH1* MuonVal::RpcRDOAnalysis::PadHistoSet::h_coinFel1ID {nullptr}

Definition at line 68 of file RpcRDOAnalysis.h.

68{nullptr};

◆ h_coinOnID

TH1* MuonVal::RpcRDOAnalysis::PadHistoSet::h_coinOnID {nullptr}

Definition at line 66 of file RpcRDOAnalysis.h.

66{nullptr};

◆ h_coinRpcID

TH1* MuonVal::RpcRDOAnalysis::PadHistoSet::h_coinRpcID {nullptr}

Definition at line 65 of file RpcRDOAnalysis.h.

65{nullptr};

◆ h_err

TH1* MuonVal::RpcRDOAnalysis::PadHistoSet::h_err {nullptr}

Definition at line 59 of file RpcRDOAnalysis.h.

59{nullptr};

◆ h_firedBcID

TH1* MuonVal::RpcRDOAnalysis::PadHistoSet::h_firedBcID {nullptr}

Definition at line 71 of file RpcRDOAnalysis.h.

71{nullptr};

◆ h_firedChan

TH1* MuonVal::RpcRDOAnalysis::PadHistoSet::h_firedChan {nullptr}

Definition at line 74 of file RpcRDOAnalysis.h.

74{nullptr};

◆ h_firedIjk

TH1* MuonVal::RpcRDOAnalysis::PadHistoSet::h_firedIjk {nullptr}

Definition at line 73 of file RpcRDOAnalysis.h.

73{nullptr};

◆ h_firedOvl

TH1* MuonVal::RpcRDOAnalysis::PadHistoSet::h_firedOvl {nullptr}

Definition at line 75 of file RpcRDOAnalysis.h.

75{nullptr};

◆ h_firedThr

TH1* MuonVal::RpcRDOAnalysis::PadHistoSet::h_firedThr {nullptr}

Definition at line 76 of file RpcRDOAnalysis.h.

76{nullptr};

◆ h_firedTime

TH1* MuonVal::RpcRDOAnalysis::PadHistoSet::h_firedTime {nullptr}

Definition at line 72 of file RpcRDOAnalysis.h.

72{nullptr};

◆ h_lvl1ID

TH1* MuonVal::RpcRDOAnalysis::PadHistoSet::h_lvl1ID {nullptr}

Definition at line 61 of file RpcRDOAnalysis.h.

61{nullptr};

◆ h_onlineID

TH1* MuonVal::RpcRDOAnalysis::PadHistoSet::h_onlineID {nullptr}

Definition at line 60 of file RpcRDOAnalysis.h.

60{nullptr};

◆ h_sector

TH1* MuonVal::RpcRDOAnalysis::PadHistoSet::h_sector {nullptr}

Definition at line 63 of file RpcRDOAnalysis.h.

63{nullptr};

◆ h_status

TH1* MuonVal::RpcRDOAnalysis::PadHistoSet::h_status {nullptr}

Definition at line 58 of file RpcRDOAnalysis.h.

58{nullptr};

The documentation for this struct was generated from the following files: