15 mdttdccut_ML1(nullptr),
16 mdttdccut_ML2(nullptr),
17 mdtadc_onSegm_ML1(nullptr),
18 mdtadc_onSegm_ML2(nullptr),
30 mdttube_masked(nullptr),
33 mdt_effEntries(nullptr),
34 mdt_effCounts(nullptr),
35 mdt_effPerTube(nullptr),
37 mdt_DRvsDRerr(nullptr),
38 mdt_DRvsSegD(nullptr),
39 mdttubenoise(nullptr),
41 m_hardware_name(std::string(
name)),
48 m_mdthitsperchamber_InnerMiddleOuterLumi_bin(0),
49 m_mdthitsperchamber_InnerMiddleOuterLumi_binx(0),
50 m_mdthitsperchamber_InnerMiddleOuterLumi_biny(0),
51 m_mdthitspermultilayerLumi_bin_m1(0),
52 m_mdthitspermultilayerLumi_bin_m2(0),
53 m_mdthitspermultilayerLumi_bin_m1_binx(0),
54 m_mdthitspermultilayerLumi_bin_m1_biny(0),
55 m_mdthitspermultilayerLumi_bin_m2_biny(0),
56 m_mdthitsperML_byLayer_bin_m1(0),
57 m_mdthitsperML_byLayer_bin_m2(0),
62 if (
name.size() >= 7) {
86 else if (layerName ==
'M')
88 else if (layerName ==
'O')
90 else if (layerName ==
'E')
99 std::string_view statphi_s(
name.substr(5, 2));
111 if ((
Barrel ==
'B' &&
name.substr(0, 3) !=
"BEE" &&
name.substr(0, 3) !=
"BIS") ||
117 else if (
Side ==
'C')
119 }
else if (m_station_phi < 8 && m_station_phi > 3) {
123 else if (
Side ==
'C')
125 }
else if (m_station_phi < 12 && m_station_phi > 7) {
129 else if (
Side ==
'C')
135 else if (
Side ==
'C')
143 else if (
Side ==
'C')
145 }
else if (m_station_phi < 8 && m_station_phi > 3) {
149 else if (
Side ==
'C')
151 }
else if (m_station_phi < 12 && m_station_phi > 7) {
155 else if (
Side ==
'C')
161 else if (
Side ==
'C')
177 std::string_view station_eta_s = name_v.substr(3, 1);
178 std::string_view statphi_s = name_v.substr(5, 2);
179 if (name_v.substr(0, 4) ==
"BMF2") station_eta_s =
"3";
180 if (name_v.substr(0, 4) ==
"BMF3") station_eta_s =
"5";
182 std::string ecap_layer_IMO = std::string(name_v.substr(0, 1));
183 ecap_layer_IMO += name_v.substr(4, 1);
184 ecap_layer_IMO += station_eta_s;
187 if (name_v ==
"BML4A13") ecap_layer_IMO =
"BA5";
188 if (name_v ==
"BML5A13") ecap_layer_IMO =
"BA6";
189 if (name_v ==
"BML4C13") ecap_layer_IMO =
"BC5";
190 if (name_v ==
"BML5C13") ecap_layer_IMO =
"BC6";
193 if (name_v ==
"BME1A14" || name_v ==
"BME1A13") {
194 ecap_layer_IMO =
"BA4";
197 if (name_v ==
"BME1C14" || name_v ==
"BME1C13") {
198 ecap_layer_IMO =
"BC4";
202 if (name_v.substr(0, 5) ==
"BMF2A") ecap_layer_IMO =
"BA3";
203 if (name_v.substr(0, 5) ==
"BMF3A") ecap_layer_IMO =
"BA5";
204 if (name_v.substr(0, 5) ==
"BMF2C") ecap_layer_IMO =
"BC3";
205 if (name_v.substr(0, 5) ==
"BMF3C") ecap_layer_IMO =
"BC5";
207 std::string statphi_IMO_s = std::string(name_v.substr(1, 1));
208 statphi_IMO_s +=
',';
209 statphi_IMO_s += statphi_s;
211 if (name_v.substr(0, 3) ==
"BIR" || name_v.substr(0, 3) ==
"BIM") {
212 statphi_IMO_s +=
',';
213 statphi_IMO_s += name_v.at(2);
216 int binx =
h->GetXaxis()->FindBin(ecap_layer_IMO.c_str());
217 int biny =
h->GetYaxis()->FindBin(statphi_IMO_s.c_str());
228 std::string statphi_ml1_s = statphi_s +
",1";
229 std::string statphi_ml2_s = statphi_s +
",2";
238 if (name_v.substr(0, 4) ==
"BMF2") stateta_s =
"3";
239 if (name_v.substr(0, 4) ==
"BMF3") stateta_s =
"5";
253 if (name_v.substr(0, 5) ==
"BMF2A") ecap_layer =
"BMA3";
254 if (name_v.substr(0, 5) ==
"BMF3A") ecap_layer =
"BMA5";
255 if (name_v.substr(0, 5) ==
"BMF2C") ecap_layer =
"BMC3";
256 if (name_v.substr(0, 5) ==
"BMF3C") ecap_layer =
"BMC5";
258 int binx = h_mdthitspermultilayerLumi->GetXaxis()->FindBin(ecap_layer.c_str());
259 int biny_m1 = h_mdthitspermultilayerLumi->GetYaxis()->FindBin(statphi_ml1_s.c_str());
260 int biny_m2 = biny_m1;
261 if (!(TString(h_mdthitspermultilayerLumi->GetName()) ==
"NumberOfHitsInBAExtraPerMultiLayer_ADCCut" ||
262 TString(h_mdthitspermultilayerLumi->GetName()) ==
"NumberOfHitsInBCExtraPerMultiLayer_ADCCut"))
263 biny_m2 = h_mdthitspermultilayerLumi->GetYaxis()->FindBin(statphi_ml2_s.c_str());
272 if ((statphi_ml1_s.substr(0, 2) ==
"11" || statphi_ml1_s.substr(0, 2) ==
"15") &&
m_hardware_name.at(0) ==
'E' &&
274 statphi_ml1_s +=
",R";
275 statphi_ml2_s +=
",R";
278 m_binx = h_mdthitsperML_byLayer->GetXaxis()->FindBin(ecap_layer.c_str());
279 m_biny_m1 = h_mdthitsperML_byLayer->GetYaxis()->FindBin(statphi_ml1_s.c_str());
280 m_biny_m2 = h_mdthitsperML_byLayer->GetYaxis()->FindBin(statphi_ml2_s.c_str());