18 Book1D(
"precMatchedHitsSummed",
19 "summed precision hits matched to truth (all chambers)", 21,
22 Book1D(
"precMatchedHitsBIS",
23 "BIS precision hits matched to truth;matched hits;entries", 21,
26 Book1D(
"precMatchedHitsBIL",
27 "BIL precision hits matched to truth;matched hits;entries", 21,
30 Book1D(
"precMatchedHitsBMS",
31 "BMS precision hits matched to truth;matched hits;entries", 21,
34 Book1D(
"precMatchedHitsBML",
35 "BML precision hits matched to truth;matched hits;entries", 21,
38 Book1D(
"precMatchedHitsBOS",
39 "BOS precision hits matched to truth;matched hits;entries", 21,
42 Book1D(
"precMatchedHitsBOL",
43 "BOL precision hits matched to truth;matched hits;entries", 21,
46 Book1D(
"precMatchedHitsBEE",
47 "BEE precision hits matched to truth;matched hits;entries", 21,
50 Book1D(
"precMatchedHitsEIS",
51 "EIS precision hits matched to truth;matched hits;entries", 21,
54 Book1D(
"precMatchedHitsEIL",
55 "EIL precision hits matched to truth;matched hits;entries", 21,
58 Book1D(
"precMatchedHitsEMS",
59 "EMS precision hits matched to truth;matched hits;entries", 21,
62 Book1D(
"precMatchedHitsEML",
63 "EML precision hits matched to truth;matched hits;entries", 21,
66 Book1D(
"precMatchedHitsEOS",
67 "EOS precision hits matched to truth;matched hits;entries", 21,
70 Book1D(
"precMatchedHitsEOL",
71 "EOL precision hits matched to truth;matched hits;entries", 21,
74 Book1D(
"precMatchedHitsEES",
75 "EES precision hits matched to truth;matched hits;entries", 21,
78 Book1D(
"precMatchedHitsEEL",
79 "EEL precision hits matched to truth;matched hits;entries", 21,
82 Book1D(
"precMatchedHitsCSS",
83 "CSS precision hits matched to truth;matched hits;entries", 21,
86 Book1D(
"precMatchedHitsCSL",
87 "CSL precision hits matched to truth;matched hits;entries", 21,
91 "phiMatchedHitsSummed",
92 "summed phi hits matched to truth (all chambers)", 21, -0.5, 20.5);
95 "BM1 phi hits matched to truth;matched hits;entries", 21, -0.5, 20.5);
98 "BM2 phi hits matched to truth;matched hits;entries", 21, -0.5, 20.5);
101 "BO1 phi hits matched to truth;matched hits;entries", 21, -0.5, 20.5);
104 "BO2 phi hits matched to truth;matched hits;entries", 21, -0.5, 20.5);
106 "phiMatchedHitsT1",
"T1 phi hits matched to truth;matched hits;entries",
109 "phiMatchedHitsT2",
"T2 phi hits matched to truth;matched hits;entries",
112 "phiMatchedHitsT3",
"T3 phi hits matched to truth;matched hits;entries",
115 "phiMatchedHitsT4",
"T4 phi hits matched to truth;matched hits;entries",
119 "CSC phi hits matched to truth;matched hits;entries", 21, -0.5, 20.5);
122 "trigEtaMatchedHitsSummed",
123 "summed trigEta hits matched to truth (all chambers)", 21, -0.5, 20.5);
125 Book1D(
"trigEtaMatchedHitsBM1",
126 "BM1 trigEta hits matched to truth;matched hits;entries", 21,
129 Book1D(
"trigEtaMatchedHitsBM2",
130 "BM2 trigEta hits matched to truth;matched hits;entries", 21,
133 Book1D(
"trigEtaMatchedHitsBO1",
134 "BO1 trigEta hits matched to truth;matched hits;entries", 21,
137 Book1D(
"trigEtaMatchedHitsBO2",
138 "BO2 trigEta hits matched to truth;matched hits;entries", 21,
141 Book1D(
"trigEtaMatchedHitsT1",
142 "T1 trigEta hits matched to truth;matched hits;entries", 21,
145 Book1D(
"trigEtaMatchedHitsT2",
146 "T2 trigEta hits matched to truth;matched hits;entries", 21,
149 Book1D(
"trigEtaMatchedHitsT3",
150 "T3 trigEta hits matched to truth;matched hits;entries", 21,
153 Book1D(
"trigEtaMatchedHitsT4",
154 "T4 trigEta hits matched to truth;matched hits;entries", 21,
223 PhiIdx::BM1, muon, weight);
225 PhiIdx::BM2, muon, weight);
227 PhiIdx::BO1, muon, weight);
229 PhiIdx::BO2, muon, weight);
231 PhiIdx::T1, muon, weight);
233 PhiIdx::T2, muon, weight);
235 PhiIdx::T3, muon, weight);
237 PhiIdx::T4, muon, weight);
245 if (muon.author() != xAOD::Muon::Author::MuidCo &&
246 muon.author() != xAOD::Muon::Author::MuidSA &&
247 muon.author() != xAOD::Muon::Author::MuGirl) {
252 if (!acc.isAvailable(muon)) {
255 std::vector<unsigned int>
vec = acc(muon);
256 for (
unsigned int i = 0; i <
vec.size(); i++) {
257 hitPlots->Fill(
vec[i], weight);
265 if (muon.author() != xAOD::Muon::Author::MuidCo &&
266 muon.author() != xAOD::Muon::Author::MuidSA &&
267 muon.author() != xAOD::Muon::Author::MuGirl) {
272 if (!acc.isAvailable(muon)) {
275 const std::vector<unsigned int>&
vec = acc(muon);
284 if (muon.author() != xAOD::Muon::Author::MuidCo &&
285 muon.author() != xAOD::Muon::Author::MuidSA &&
286 muon.author() != xAOD::Muon::Author::MuGirl) {
291 if (!acc.isAvailable(muon)) {
294 const std::vector<unsigned int>&
vec = acc(muon);
std::vector< size_t > vec
Helper class to provide constant type-safe access to aux data.
TH1 * trigEtaMatchedHitsBO2
TH1 * trigEtaMatchedHitsT1
TH1 * trigEtaMatchedHitsT4
TH1 * trigEtaMatchedHitsT3
MuonTruthHitPlots(PlotBase *pParent, const std::string &sDir)
TH1 * trigEtaMatchedHitsBM1
TH1 * phiMatchedHitsSummed
TH1 * trigEtaMatchedHitsBM2
TH1 * precMatchedHitsSummed
void fill(const xAOD::Muon &muon, float weight=1.0)
void fillPlot(TH1 *hitPlots, const std::string &sInfo, const Muon::MuonStationIndex::ChIndex &index, const xAOD::Muon &muon, float weight=1.0)
TH1 * trigEtaMatchedHitsBO1
TH1 * trigEtaMatchedHitsSummed
TH1 * trigEtaMatchedHitsT2
TH1D * Book1D(std::string_view name, std::string_view labels, int nBins, float start, float end, bool prependDir=true)
Book a TH1D histogram.
PlotBase(PlotBase *parent, std::string_view sDir)
Helper class to provide constant type-safe access to aux data.
PhiIndex
enum to classify the different phi layers in the muon spectrometer
constexpr int toInt(const EnumType enumVal)
ChIndex
enum to classify the different chamber layers in the muon spectrometer
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
MuonStationIndex::PhiIndex PhiIdx
MuonStationIndex::ChIndex ChIdx
Muon_v1 Muon
Reference the current persistent version: