ATLAS Offline Software
Loading...
Searching...
No Matches
MuonVal::TgcRDOAnalysis::HistoSet Struct Reference
Collaboration diagram for MuonVal::TgcRDOAnalysis::HistoSet:

Public Member Functions

 HistoSet (const TgcIdHelper &idHelper, const ServiceHandle< ITHistSvc > &histSvc, const std::string &basePath, const int stName)
 Constructor instantiating the monitoring histograms.

Public Attributes

int stationName {-1}
TH1 * h_tgcID {nullptr}
TH1 * h_tgcSubDetID {nullptr}
TH1 * h_tgcRodID {nullptr}
TH1 * h_tgcTrigType {nullptr}
TH1 * h_tgcBcID {nullptr}
TH1 * h_tgcL1ID {nullptr}
TH1 * h_bcTag {nullptr}
TH1 * h_subDetID {nullptr}
TH1 * h_rodID {nullptr}
TH1 * h_sswID {nullptr}
TH1 * h_slbID {nullptr}
TH1 * h_bcID {nullptr}
TH1 * h_l1ID {nullptr}
TH1 * h_type {nullptr}
TH1 * h_slbType {nullptr}
TH1 * h_bitPos {nullptr}
TH1 * h_track {nullptr}
TH1 * h_adj {nullptr}

Detailed Description

Definition at line 36 of file TgcRDOAnalysis.h.

Constructor & Destructor Documentation

◆ HistoSet()

MuonVal::TgcRDOAnalysis::HistoSet::HistoSet ( const TgcIdHelper & idHelper,
const ServiceHandle< ITHistSvc > & histSvc,
const std::string & basePath,
const int stName )

Constructor instantiating the monitoring histograms.

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

Definition at line 12 of file TgcRDOAnalysis.cxx.

15 :
17 auto createHisto = [&](const std::string& hName,
18 const std::string& hTitle,
19 const unsigned nBins,
20 const float xLow,
21 const float xHigh) {
22 TH1* h = new TH1F(hName.c_str(), hTitle.c_str(), nBins, xLow, xHigh);
23 h->Sumw2();
24 histSvc->regHist(std::format("/{}/RDO/Station_{}/{}",
25 basePath,
26 stName > 0 ? idHelper.stationNameString(stName) : "Inclusive",
27 hName), h).ignore();
28 return h;
29 };
30 h_tgcID = createHisto("tgcID", "TGC ID", 100, 0, 25);
31 h_tgcSubDetID = createHisto("tgcSubDetID", "TGC sub-detector ID", 100, 0, 110);
32 h_tgcRodID = createHisto("tgcRodID", "TGC ROD ID", 100, 0, 15);
33 h_tgcTrigType = createHisto("tgcTrigType", "TGC trigger type", 100, 0, 2);
34 h_tgcBcID = createHisto("tgcBcID", "TGC BCID", 100, 0, 2);
35 h_tgcL1ID = createHisto("tgcL1ID", "TGC L1ID", 100, 0, 2);
36 h_bcTag = createHisto("bcTag", "BC Tag", 100, 0, 5);
37 h_subDetID = createHisto("subDetID", "Sub-detector ID", 100, 0, 110);
38 h_rodID = createHisto("rodID", "ROD ID", 100, 0, 15);
39 h_sswID = createHisto("sswID", "SSW ID", 100, 0, 10);
40 h_slbID = createHisto("slbID", "SLB ID", 100, 0, 30);
41 h_bcID = createHisto("bcID", "BCID", 100, 0, 10);
42 h_l1ID = createHisto("l1ID", "L1ID", 100, 0, 10);
43 h_type = createHisto("type", "type (hit or coinc)", 100, 0, 10);
44 h_slbType = createHisto("slbType", "SLB type", 100, 0, 10);
45 h_bitPos = createHisto("bitPos", "Bitmap position", 100, 0, 220);
46 h_track = createHisto("track", "tracklet", 100, 0, 10);
47 h_adj = createHisto("adj", "Adjacent", 100, 0, 2);
48 }
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 & stationNameString(const int &index) const
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_adj

TH1* MuonVal::TgcRDOAnalysis::HistoSet::h_adj {nullptr}

Definition at line 66 of file TgcRDOAnalysis.h.

66{nullptr};

◆ h_bcID

TH1* MuonVal::TgcRDOAnalysis::HistoSet::h_bcID {nullptr}

Definition at line 60 of file TgcRDOAnalysis.h.

60{nullptr};

◆ h_bcTag

TH1* MuonVal::TgcRDOAnalysis::HistoSet::h_bcTag {nullptr}

Definition at line 55 of file TgcRDOAnalysis.h.

55{nullptr};

◆ h_bitPos

TH1* MuonVal::TgcRDOAnalysis::HistoSet::h_bitPos {nullptr}

Definition at line 64 of file TgcRDOAnalysis.h.

64{nullptr};

◆ h_l1ID

TH1* MuonVal::TgcRDOAnalysis::HistoSet::h_l1ID {nullptr}

Definition at line 61 of file TgcRDOAnalysis.h.

61{nullptr};

◆ h_rodID

TH1* MuonVal::TgcRDOAnalysis::HistoSet::h_rodID {nullptr}

Definition at line 57 of file TgcRDOAnalysis.h.

57{nullptr};

◆ h_slbID

TH1* MuonVal::TgcRDOAnalysis::HistoSet::h_slbID {nullptr}

Definition at line 59 of file TgcRDOAnalysis.h.

59{nullptr};

◆ h_slbType

TH1* MuonVal::TgcRDOAnalysis::HistoSet::h_slbType {nullptr}

Definition at line 63 of file TgcRDOAnalysis.h.

63{nullptr};

◆ h_sswID

TH1* MuonVal::TgcRDOAnalysis::HistoSet::h_sswID {nullptr}

Definition at line 58 of file TgcRDOAnalysis.h.

58{nullptr};

◆ h_subDetID

TH1* MuonVal::TgcRDOAnalysis::HistoSet::h_subDetID {nullptr}

Definition at line 56 of file TgcRDOAnalysis.h.

56{nullptr};

◆ h_tgcBcID

TH1* MuonVal::TgcRDOAnalysis::HistoSet::h_tgcBcID {nullptr}

Definition at line 53 of file TgcRDOAnalysis.h.

53{nullptr};

◆ h_tgcID

TH1* MuonVal::TgcRDOAnalysis::HistoSet::h_tgcID {nullptr}

Definition at line 49 of file TgcRDOAnalysis.h.

49{nullptr};

◆ h_tgcL1ID

TH1* MuonVal::TgcRDOAnalysis::HistoSet::h_tgcL1ID {nullptr}

Definition at line 54 of file TgcRDOAnalysis.h.

54{nullptr};

◆ h_tgcRodID

TH1* MuonVal::TgcRDOAnalysis::HistoSet::h_tgcRodID {nullptr}

Definition at line 51 of file TgcRDOAnalysis.h.

51{nullptr};

◆ h_tgcSubDetID

TH1* MuonVal::TgcRDOAnalysis::HistoSet::h_tgcSubDetID {nullptr}

Definition at line 50 of file TgcRDOAnalysis.h.

50{nullptr};

◆ h_tgcTrigType

TH1* MuonVal::TgcRDOAnalysis::HistoSet::h_tgcTrigType {nullptr}

Definition at line 52 of file TgcRDOAnalysis.h.

52{nullptr};

◆ h_track

TH1* MuonVal::TgcRDOAnalysis::HistoSet::h_track {nullptr}

Definition at line 65 of file TgcRDOAnalysis.h.

65{nullptr};

◆ h_type

TH1* MuonVal::TgcRDOAnalysis::HistoSet::h_type {nullptr}

Definition at line 62 of file TgcRDOAnalysis.h.

62{nullptr};

◆ stationName

int MuonVal::TgcRDOAnalysis::HistoSet::stationName {-1}

Definition at line 48 of file TgcRDOAnalysis.h.

48{-1};

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