ATLAS Offline Software
Loading...
Searching...
No Matches
MuonVal::MdtRDOAnalysis::HistoSet Struct Reference

Histograms per station index. More...

Collaboration diagram for MuonVal::MdtRDOAnalysis::HistoSet:

Public Member Functions

 HistoSet ()=default
 Default constructor.
 HistoSet (const ServiceHandle< ITHistSvc > &histSvc, const std::string &basePath, const StIdx_t stIdx)
 Constructor instantiating the monitoring histograms.

Public Attributes

StIdx_t stIdx {StIdx_t::StUnknown}
TH1 * h_subID {nullptr}
TH1 * h_mrodID {nullptr}
TH1 * h_csmID {nullptr}
TH1 * h_tdcID {nullptr}
TH1 * h_chanID {nullptr}
TH1 * h_coarse {nullptr}
TH1 * h_fine {nullptr}
TH1 * h_width {nullptr}

Detailed Description

Histograms per station index.

Definition at line 36 of file MdtRDOAnalysis.h.

Constructor & Destructor Documentation

◆ HistoSet() [1/2]

MuonVal::MdtRDOAnalysis::HistoSet::HistoSet ( )
default

Default constructor.

◆ HistoSet() [2/2]

MuonVal::MdtRDOAnalysis::HistoSet::HistoSet ( const ServiceHandle< ITHistSvc > & histSvc,
const std::string & basePath,
const StIdx_t stIdx )

Constructor instantiating the monitoring histograms.

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

Definition at line 18 of file MdtRDOAnalysis.cxx.

20 :
21 stIdx{stIndex} {
22
23 auto createHisto = [stIndex, &histSvc, &basePath](const std::string& hName,
24 const std::string& hTitle,
25 const unsigned nBins,
26 const float xLow,
27 const float xHigh){
28 TH1* h = new TH1F(hName.c_str(), hTitle.c_str(), nBins, xLow, xHigh);
29 histSvc->regHist(std::format("/{}/RDO/Station_{}/{}",
30 basePath,
31 stIndex != StIdx_t::StUnknown ? stName(stIndex) : "Inclusive",
32 hName), h).ignore();
33 return h;
34 };
35
36 h_subID = createHisto("subDetId", "Subdetector ID", 100, 0 , 150);
37 h_mrodID = createHisto("mrodID", "MROD ID", 100, 0, 150);
38 h_csmID = createHisto("csmID", "CSM ID", 100, 0, 10);
39 h_tdcID = createHisto("tdcID", "TDC ID", 100, 0, 50);
40 h_chanID = createHisto("channelID", "Channel ID", 100, 0, 50);
41 h_coarse = createHisto("coarseTime", "Drift time (coarse)", 100, 0, 100);
42 h_fine = createHisto("fineTime", "Drift time (fine)", 100, 0, 50);
43 h_width = createHisto("width", "Width", 100, 0, 500);
44 }
const ServiceHandle< ITHistSvc > & histSvc() const
The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a...
const std::string & stName(StIndex index)
convert StIndex into a string
TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)

Member Data Documentation

◆ h_chanID

TH1* MuonVal::MdtRDOAnalysis::HistoSet::h_chanID {nullptr}

Definition at line 52 of file MdtRDOAnalysis.h.

52{nullptr};

◆ h_coarse

TH1* MuonVal::MdtRDOAnalysis::HistoSet::h_coarse {nullptr}

Definition at line 53 of file MdtRDOAnalysis.h.

53{nullptr};

◆ h_csmID

TH1* MuonVal::MdtRDOAnalysis::HistoSet::h_csmID {nullptr}

Definition at line 50 of file MdtRDOAnalysis.h.

50{nullptr};

◆ h_fine

TH1* MuonVal::MdtRDOAnalysis::HistoSet::h_fine {nullptr}

Definition at line 54 of file MdtRDOAnalysis.h.

54{nullptr};

◆ h_mrodID

TH1* MuonVal::MdtRDOAnalysis::HistoSet::h_mrodID {nullptr}

Definition at line 49 of file MdtRDOAnalysis.h.

49{nullptr};

◆ h_subID

TH1* MuonVal::MdtRDOAnalysis::HistoSet::h_subID {nullptr}

Definition at line 48 of file MdtRDOAnalysis.h.

48{nullptr};

◆ h_tdcID

TH1* MuonVal::MdtRDOAnalysis::HistoSet::h_tdcID {nullptr}

Definition at line 51 of file MdtRDOAnalysis.h.

51{nullptr};

◆ h_width

TH1* MuonVal::MdtRDOAnalysis::HistoSet::h_width {nullptr}

Definition at line 55 of file MdtRDOAnalysis.h.

55{nullptr};

◆ stIdx

StIdx_t MuonVal::MdtRDOAnalysis::HistoSet::stIdx {StIdx_t::StUnknown}

Definition at line 47 of file MdtRDOAnalysis.h.

47{StIdx_t::StUnknown};

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