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

Public Member Functions

 RdoHistoSet (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_bcid {nullptr}
 Bunch crossing ID.
TH1 * h_time {nullptr}
 Time of record.
TH1 * h_tOverThr {nullptr}
 Time over threshold.
TH1 * h_subDet {nullptr}
 sub detector
TH1 * h_boardSec {nullptr}
 board sector
TH1 * h_board {nullptr}
 board Id
TH1 * h_channelId {nullptr}
 channel Id

Detailed Description

Definition at line 79 of file RpcRDOAnalysis.h.

Constructor & Destructor Documentation

◆ RdoHistoSet()

MuonVal::RpcRDOAnalysis::RdoHistoSet::RdoHistoSet ( 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 48 of file RpcRDOAnalysis.cxx.

50 :
51 chIdx{chIndex} {
52
53 auto createHisto = [&histSvc, &basePath, chIndex](const std::string& hName,
54 const std::string& hTitle,
55 const unsigned nBins,
56 const float xLow,
57 const float xHigh) {
58 TH1* h = new TH1F(hName.c_str(), hTitle.c_str(), nBins, xLow, xHigh);
59 h->Sumw2();
60 histSvc->regHist(std::format("/{}/RDO/Chamber_{}/{}",
61 basePath,
62 chIndex != ChIdx_t::ChUnknown ? chName(chIndex) : "Inclusive",
63 hName), h).ignore();
64 return h;
65 };
66 h_bcid = createHisto("bcid", "Bunch Crossing ID", 5,10,100);
67 h_time = createHisto("time", "Recorded time", 45, 10, 100);
68 h_tOverThr = createHisto("tot", "Time over threshold", 0, 30 , 30);
69 h_subDet = createHisto("subdet", "Subdetector ID", 50, 0, 100);
70 h_boardSec = createHisto("boardsector", "Board sector ID", 50, 0, 100);
71 h_board = createHisto("boardID", "Board identifier", 50, 0, 100);
72 h_channelId = createHisto("channelID", "Channel identifier", 50,0 , 100);
73
74 }
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)
TH1 * h_tOverThr
Time over threshold.

Member Data Documentation

◆ chIdx

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

Definition at line 88 of file RpcRDOAnalysis.h.

88{ChIdx_t::ChUnknown};

◆ h_bcid

TH1* MuonVal::RpcRDOAnalysis::RdoHistoSet::h_bcid {nullptr}

Bunch crossing ID.

Definition at line 90 of file RpcRDOAnalysis.h.

90{nullptr};

◆ h_board

TH1* MuonVal::RpcRDOAnalysis::RdoHistoSet::h_board {nullptr}

board Id

Definition at line 100 of file RpcRDOAnalysis.h.

100{nullptr};

◆ h_boardSec

TH1* MuonVal::RpcRDOAnalysis::RdoHistoSet::h_boardSec {nullptr}

board sector

Definition at line 98 of file RpcRDOAnalysis.h.

98{nullptr};

◆ h_channelId

TH1* MuonVal::RpcRDOAnalysis::RdoHistoSet::h_channelId {nullptr}

channel Id

Definition at line 102 of file RpcRDOAnalysis.h.

102{nullptr};

◆ h_subDet

TH1* MuonVal::RpcRDOAnalysis::RdoHistoSet::h_subDet {nullptr}

sub detector

Definition at line 96 of file RpcRDOAnalysis.h.

96{nullptr};

◆ h_time

TH1* MuonVal::RpcRDOAnalysis::RdoHistoSet::h_time {nullptr}

Time of record.

Definition at line 92 of file RpcRDOAnalysis.h.

92{nullptr};

◆ h_tOverThr

TH1* MuonVal::RpcRDOAnalysis::RdoHistoSet::h_tOverThr {nullptr}

Time over threshold.

Definition at line 94 of file RpcRDOAnalysis.h.

94{nullptr};

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