Definition at line 79 of file RpcRDOAnalysis.h.
◆ RdoHistoSet()
| MuonVal::RpcRDOAnalysis::RdoHistoSet::RdoHistoSet |
( |
const ServiceHandle< ITHistSvc > & | histSvc, |
|
|
const std::string & | basePath, |
|
|
const ChIdx_t | chIndex ) |
Constructor instantiating the monitoring histograms.
- Parameters
-
| histSvc | Reference to the histSvc to register the histograms with the file |
| basePath | Basic path for all histograms |
| chIndex | Station index to consider for the histogram set |
Definition at line 48 of file RpcRDOAnalysis.cxx.
50 :
52
53 auto createHisto = [&
histSvc, &basePath,
chIndex](
const std::string& hName,
54 const std::string& hTitle,
56 const float xLow,
57 const float xHigh) {
58 TH1*
h =
new TH1F(hName.c_str(), hTitle.c_str(), nBins, xLow, xHigh);
60 histSvc->regHist(std::format(
"/{}/RDO/Chamber_{}/{}",
61 basePath,
63 hName), h).ignore();
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_boardSec
board sector
TH1 * h_channelId
channel Id
TH1 * h_subDet
sub detector
TH1 * h_time
Time of record.
TH1 * h_bcid
Bunch crossing ID.
TH1 * h_tOverThr
Time over threshold.
◆ chIdx
| ChIdx_t MuonVal::RpcRDOAnalysis::RdoHistoSet::chIdx {ChIdx_t::ChUnknown} |
◆ h_bcid
| TH1* MuonVal::RpcRDOAnalysis::RdoHistoSet::h_bcid {nullptr} |
◆ h_board
| TH1* MuonVal::RpcRDOAnalysis::RdoHistoSet::h_board {nullptr} |
◆ h_boardSec
| TH1* MuonVal::RpcRDOAnalysis::RdoHistoSet::h_boardSec {nullptr} |
◆ h_channelId
| TH1* MuonVal::RpcRDOAnalysis::RdoHistoSet::h_channelId {nullptr} |
◆ h_subDet
| TH1* MuonVal::RpcRDOAnalysis::RdoHistoSet::h_subDet {nullptr} |
◆ h_time
| TH1* MuonVal::RpcRDOAnalysis::RdoHistoSet::h_time {nullptr} |
◆ h_tOverThr
| TH1* MuonVal::RpcRDOAnalysis::RdoHistoSet::h_tOverThr {nullptr} |
The documentation for this struct was generated from the following files: