93 auto* hist_npxd =
findHist(
"PhysicsObjectsMiraBelle/hist_npxd");
94 auto* hist_nsvd =
findHist(
"PhysicsObjectsMiraBelle/hist_nsvd");
95 auto* hist_ncdc =
findHist(
"PhysicsObjectsMiraBelle/hist_ncdc");
96 auto* hist_topdig =
findHist(
"PhysicsObjectsMiraBelle/hist_topdig");
97 auto* hist_DetPhotonARICH =
findHist(
"PhysicsObjectsMiraBelle/hist_DetPhotonARICH");
98 auto* hist_klmTotalHits =
findHist(
"PhysicsObjectsMiraBelle/hist_klmTotalHits");
99 auto* hist_klmClusterLayers =
findHist(
"PhysicsObjectsMiraBelle/hist_klmClusterLayers");
100 auto* hist_dD0 =
findHist(
"PhysicsObjectsMiraBelle/hist_dD0");
101 auto* hist_dZ0 =
findHist(
"PhysicsObjectsMiraBelle/hist_dZ0");
102 auto* hist_dPtcms =
findHist(
"PhysicsObjectsMiraBelle/hist_dPtcms");
103 auto* hist_Pval =
findHist(
"PhysicsObjectsMiraBelle/hist_Pval");
104 auto* hist_nExtraCDCHits =
findHist(
"PhysicsObjectsMiraBelle/hist_nExtraCDCHits");
105 auto* hist_nECLClusters =
findHist(
"PhysicsObjectsMiraBelle/hist_nECLClusters");
106 auto* hist_muid =
findHist(
"PhysicsObjectsMiraBelle/hist_muid");
107 auto* hist_inv_p =
findHist(
"PhysicsObjectsMiraBelle/hist_inv_p");
108 auto* hist_ndf =
findHist(
"PhysicsObjectsMiraBelle/hist_ndf");
109 auto* hist_D0 =
findHist(
"PhysicsObjectsMiraBelle/hist_D0");
110 auto* hist_Z0 =
findHist(
"PhysicsObjectsMiraBelle/hist_Z0");
111 auto* hist_theta =
findHist(
"PhysicsObjectsMiraBelle/hist_theta");
112 auto* hist_Phi0 =
findHist(
"PhysicsObjectsMiraBelle/hist_Phi0");
113 auto* hist_Pt =
findHist(
"PhysicsObjectsMiraBelle/hist_Pt");
114 auto* hist_Mom =
findHist(
"PhysicsObjectsMiraBelle/hist_Mom");
115 auto* hist_klmTotalBarrelHits =
findHist(
"PhysicsObjectsMiraBelle/hist_klmTotalBarrelHits");
116 auto* hist_klmTotalEndcapHits =
findHist(
"PhysicsObjectsMiraBelle/hist_klmTotalEndcapHits");
117 auto* hist_dPhicms =
findHist(
"PhysicsObjectsMiraBelle/hist_dPhicms");
118 auto* hist_hltEff =
findHist(
"PhysicsObjectsMiraBelle/hist_hltEff");
120 if (hist_npxd ==
nullptr) {
121 B2ERROR(
"Can not find the hist_npxd histogram!");
124 if (hist_nsvd ==
nullptr) {
125 B2ERROR(
"Can not find the hist_nsvd histogram!");
128 if (hist_ncdc ==
nullptr) {
129 B2ERROR(
"Can not find the hist_ncdc histogram!");
132 if (hist_topdig ==
nullptr) {
133 B2ERROR(
"Can not find the hist_topdig histogram!");
136 if (hist_DetPhotonARICH ==
nullptr) {
137 B2ERROR(
"Can not find the hist_DetPhotonARICH histogram!");
140 if (hist_klmTotalHits ==
nullptr) {
141 B2ERROR(
"Can not find the hist_klmTotalHits histogram!");
144 if (hist_klmClusterLayers ==
nullptr) {
145 B2ERROR(
"Can not find the hist_klmClusterLayers histogram!");
148 if (hist_dD0 ==
nullptr) {
149 B2ERROR(
"Can not find the hist_dD0 histogram!");
152 if (hist_dZ0 ==
nullptr) {
153 B2ERROR(
"Can not find the hist_dZ0 histogram!");
156 if (hist_dPtcms ==
nullptr) {
157 B2ERROR(
"Can not find the hist_dPtcms histogram!");
160 if (hist_Pval ==
nullptr) {
161 B2ERROR(
"Can not find the hist_Pval histogram!");
164 if (hist_nExtraCDCHits ==
nullptr) {
165 B2ERROR(
"Can not find the hist_nExtraCDCHits histogram!");
168 if (hist_nECLClusters ==
nullptr) {
169 B2ERROR(
"Can not find the hist_nECLClusters histogram!");
172 if (hist_muid ==
nullptr) {
173 B2ERROR(
"Can not find the hist_muid histogram!");
176 if (hist_inv_p ==
nullptr) {
177 B2ERROR(
"Can not find the hist_inv_p histogram!");
180 if (hist_ndf ==
nullptr) {
181 B2ERROR(
"Can not find the hist_ndf histogram!");
184 if (hist_D0 ==
nullptr) {
185 B2ERROR(
"Can not find the hist_D0 histogram!");
188 if (hist_Z0 ==
nullptr) {
189 B2ERROR(
"Can not find the hist_Z0 histogram!");
192 if (hist_theta ==
nullptr) {
193 B2ERROR(
"Can not find the hist_theta histogram!");
196 if (hist_Phi0 ==
nullptr) {
197 B2ERROR(
"Can not find the hist_Phi0 histogram!");
200 if (hist_Pt ==
nullptr) {
201 B2ERROR(
"Can not find the hist_Pt histogram!");
204 if (hist_Mom ==
nullptr) {
205 B2ERROR(
"Can not find the hist_Mom histogram!");
208 if (hist_klmTotalBarrelHits ==
nullptr) {
209 B2ERROR(
"Can not find the hist_klmTotalBarrelHits histogram!");
212 if (hist_klmTotalEndcapHits ==
nullptr) {
213 B2ERROR(
"Can not find the hist_klmTotalEndcapHits histogram!");
216 if (hist_dPhicms ==
nullptr) {
217 B2ERROR(
"Can not find the hist_dPhicms histogram!");
220 if (hist_hltEff ==
nullptr) {
221 B2ERROR(
"Can not find the hist_hltEff histogram!");
237 mumu_main->cd(9); hist_DetPhotonARICH->Draw();
238 mumu_main->cd(10); hist_klmClusterLayers->Draw();
239 mumu_main->cd(11); hist_nExtraCDCHits->Draw();
240 mumu_main->cd(12); hist_nECLClusters->Draw();
259 double mean_npxd = hist_npxd->GetMean();
260 double mean_nsvd = hist_nsvd->GetMean();
261 double mean_ncdc = hist_ncdc->GetMean();
262 double mean_nklmlayer = hist_klmClusterLayers->GetMean();
263 double mean_nklm = hist_klmTotalHits->GetMean();
264 double mean_nbklm = hist_klmTotalBarrelHits->GetMean();
265 double mean_neklm = hist_klmTotalEndcapHits->GetMean();
266 double mean_topdig = hist_topdig->GetMean();
267 double mean_parich = hist_DetPhotonARICH->GetMean();
268 double mean_ncdc_ex = hist_nExtraCDCHits->GetMean();
269 double mean_necl = hist_nECLClusters->GetMean();
270 double mean_muid = hist_muid->GetMean();
271 double mean_d0 = hist_D0->GetMean();
272 double mean_z0 = hist_Z0->GetMean();
273 double mean_pval = hist_Pval->GetMean();
274 double mean_ndf = hist_ndf->GetMean();
275 double dif_ndf_ncdc = mean_ndf - mean_ncdc;
276 double mean_dd0 = hist_dD0->GetMean();
277 double mean_dz0 = hist_dZ0->GetMean();
278 double mean_dpt = hist_dPtcms->GetMean();
279 double rms_dd0 = hist_dD0->GetRMS();
280 double rms_dz0 = hist_dZ0->GetRMS();
281 double rms_dpt = hist_dPtcms->GetRMS();
285 int ntot = hist_nsvd->GetEntries();
286 double neve_mumu = ntot;
287 double goodmu_frac = -1.;
288 double pval_frac_0 = -1.;
289 double pval_frac_1 = -1.;
290 double nocdc_frac = -1.;
291 double notop_frac = -1.;
292 double noarich_frac = -1.;
293 double muidcontent = hist_muid->GetBinContent(1);
294 double goodmu_o_badmu = -1.;
295 if (muidcontent != 0) {
296 goodmu_o_badmu = hist_muid->GetBinContent(20) / muidcontent;
298 goodmu_o_badmu = 0.0;
300 double pval_more95 = 0.0;
301 double pval_less05 = 0.0;
302 for (
int i = 95; i < 100; i++) pval_more95 += hist_Pval->GetBinContent(i + 1);
303 for (
int i = 0; i < 5; i++) pval_less05 += hist_Pval->GetBinContent(i + 1);
305 goodmu_frac = hist_muid->GetBinContent(20) / neve_mumu;
306 pval_frac_0 = pval_less05 / neve_mumu;
307 pval_frac_1 = pval_more95 / neve_mumu;
308 nocdc_frac = hist_ncdc->GetBinContent(1) / neve_mumu;
309 notop_frac = hist_topdig->GetBinContent(1) / neve_mumu;
310 noarich_frac = hist_DetPhotonARICH->GetBinContent(1) / neve_mumu;
320 double peak_mumu = hist_inv_p->GetXaxis()->GetBinCenter(hist_inv_p->GetMaximumBin());
321 TF1* f_mumuInvM =
new TF1(
"f_mumuInvM",
"gaus", peak_mumu - 0.05, peak_mumu + 0.05);
322 f_mumuInvM->SetParameters(hist_inv_p->GetMaximum(), peak_mumu, 0.045);
323 f_mumuInvM->SetParLimits(1, peak_mumu - 0.05, peak_mumu + 0.05);
324 f_mumuInvM->SetParLimits(2, 0.01, 0.08);
325 hist_inv_p->Fit(f_mumuInvM,
"R");
326 double fit_mumumass = f_mumuInvM->GetParameter(1);
327 if (fit_mumumass < 9.) fit_mumumass = 9.;
328 if (fit_mumumass > 12.) fit_mumumass = 12.;
329 double fit_mumumass_error = f_mumuInvM->GetParError(1);
330 double pull_mumumass = (fit_mumumass -
m_reference_mumu) / fit_mumumass_error;
331 double fit_sigma_mumu = f_mumuInvM->GetParameter(2);
334 double Nmumu_ECLMuonPair = hist_hltEff->GetBinContent(2);
335 double Nmumu_ECLMuonPairSelectmumu = hist_hltEff->GetBinContent(3);
338 mon_mumu->setVariable(
"mean_npxd", mean_npxd);
339 mon_mumu->setVariable(
"mean_nsvd", mean_nsvd);
340 mon_mumu->setVariable(
"mean_ncdc", mean_ncdc);
341 mon_mumu->setVariable(
"mean_nklmlayer", mean_nklmlayer);
342 mon_mumu->setVariable(
"mean_nklm", mean_nklm);
343 mon_mumu->setVariable(
"mean_nbklm", mean_nbklm);
344 mon_mumu->setVariable(
"mean_neklm", mean_neklm);
345 mon_mumu->setVariable(
"mean_topdig", mean_topdig);
346 mon_mumu->setVariable(
"mean_parich", mean_parich);
347 mon_mumu->setVariable(
"mean_ncdc_ex", mean_ncdc_ex);
348 mon_mumu->setVariable(
"mean_necl", mean_necl);
349 mon_mumu->setVariable(
"mean_muid", mean_muid);
350 mon_mumu->setVariable(
"mean_d0", mean_d0);
351 mon_mumu->setVariable(
"mean_z0", mean_z0);
352 mon_mumu->setVariable(
"mean_pval", mean_pval);
353 mon_mumu->setVariable(
"mean_ndf", mean_ndf);
354 mon_mumu->setVariable(
"dif_ndf_ncdc", dif_ndf_ncdc);
355 mon_mumu->setVariable(
"mean_dd0", mean_dd0);
356 mon_mumu->setVariable(
"mean_dz0", mean_dz0);
357 mon_mumu->setVariable(
"mean_dpt", mean_dpt);
358 mon_mumu->setVariable(
"rms_dd0", rms_dd0);
359 mon_mumu->setVariable(
"rms_dz0", rms_dz0);
360 mon_mumu->setVariable(
"rms_dpt", rms_dpt);
361 mon_mumu->setVariable(
"sigma68_dd0", sigma68_dd0);
362 mon_mumu->setVariable(
"sigma68_dz0", sigma68_dz0);
363 mon_mumu->setVariable(
"sigma68_dpt", sigma68_dpt);
364 mon_mumu->setVariable(
"neve_mumu", neve_mumu);
365 mon_mumu->setVariable(
"goodmu_frac", goodmu_frac);
366 mon_mumu->setVariable(
"goodmu_o_badmu", goodmu_o_badmu);
367 mon_mumu->setVariable(
"pval_frac_0", pval_frac_0);
368 mon_mumu->setVariable(
"pval_frac_1", pval_frac_1);
369 mon_mumu->setVariable(
"nocdc_frac", nocdc_frac);
370 mon_mumu->setVariable(
"notop_frac", notop_frac);
371 mon_mumu->setVariable(
"noarich_frac", noarich_frac);
372 mon_mumu->setVariable(
"fit_mumumass", fit_mumumass);
373 mon_mumu->setVariable(
"fit_mumumass_error", fit_mumumass_error);
374 mon_mumu->setVariable(
"pull_mumumass", pull_mumumass);
375 mon_mumu->setVariable(
"sigma_mumumass", fit_sigma_mumu);
376 mon_mumu->setVariable(
"Nmumu_ECLMuonPair", Nmumu_ECLMuonPair);
377 mon_mumu->setVariable(
"Nmumu_ECLMuonPairSelectmumu", Nmumu_ECLMuonPairSelectmumu);
381 auto* hist_D0_InvM =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_InvM");
382 auto* hist_delta_m =
findHist(
"PhysicsObjectsMiraBelleDst/hist_delta_m");
383 auto* hist_D0_softpi_PID_ALL_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_softpi_PID_ALL_pion");
384 auto* hist_D0_softpi_PID_SVD_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_softpi_PID_SVD_pion");
385 auto* hist_D0_softpi_PID_CDC_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_softpi_PID_CDC_pion");
386 auto* hist_D0_softpi_PID_TOP_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_softpi_PID_TOP_pion");
387 auto* hist_D0_softpi_PID_ARICH_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_softpi_PID_ARICH_pion");
388 auto* hist_D0_softpi_PID_ECL_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_softpi_PID_ECL_pion");
389 auto* hist_D0_softpi_PID_KLM_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_softpi_PID_KLM_pion");
390 auto* hist_D0_pi_PID_ALL_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_pi_PID_ALL_pion");
391 auto* hist_D0_pi_PID_SVD_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_pi_PID_SVD_pion");
392 auto* hist_D0_pi_PID_CDC_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_pi_PID_CDC_pion");
393 auto* hist_D0_pi_PID_TOP_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_pi_PID_TOP_pion");
394 auto* hist_D0_pi_PID_ARICH_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_pi_PID_ARICH_pion");
395 auto* hist_D0_pi_PID_ECL_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_pi_PID_ECL_pion");
396 auto* hist_D0_pi_PID_KLM_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_pi_PID_KLM_pion");
397 auto* hist_D0_K_PID_ALL_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_K_PID_ALL_kaon");
398 auto* hist_D0_K_PID_SVD_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_K_PID_SVD_kaon");
399 auto* hist_D0_K_PID_CDC_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_K_PID_CDC_kaon");
400 auto* hist_D0_K_PID_TOP_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_K_PID_TOP_kaon");
401 auto* hist_D0_K_PID_ARICH_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_K_PID_ARICH_kaon");
402 auto* hist_D0_K_PID_ECL_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_K_PID_ECL_kaon");
403 auto* hist_D0_K_PID_KLM_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_K_PID_KLM_kaon");
404 auto* hist_sideband_D0_softpi_PID_ALL_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_softpi_PID_ALL_pion");
405 auto* hist_sideband_D0_softpi_PID_SVD_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_softpi_PID_SVD_pion");
406 auto* hist_sideband_D0_softpi_PID_CDC_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_softpi_PID_CDC_pion");
407 auto* hist_sideband_D0_softpi_PID_TOP_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_softpi_PID_TOP_pion");
408 auto* hist_sideband_D0_softpi_PID_ARICH_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_softpi_PID_ARICH_pion");
409 auto* hist_sideband_D0_softpi_PID_ECL_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_softpi_PID_ECL_pion");
410 auto* hist_sideband_D0_softpi_PID_KLM_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_softpi_PID_KLM_pion");
411 auto* hist_sideband_D0_pi_PID_ALL_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_pi_PID_ALL_pion");
412 auto* hist_sideband_D0_pi_PID_SVD_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_pi_PID_SVD_pion");
413 auto* hist_sideband_D0_pi_PID_CDC_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_pi_PID_CDC_pion");
414 auto* hist_sideband_D0_pi_PID_TOP_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_pi_PID_TOP_pion");
415 auto* hist_sideband_D0_pi_PID_ARICH_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_pi_PID_ARICH_pion");
416 auto* hist_sideband_D0_pi_PID_ECL_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_pi_PID_ECL_pion");
417 auto* hist_sideband_D0_pi_PID_KLM_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_pi_PID_KLM_pion");
418 auto* hist_sideband_D0_K_PID_ALL_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_K_PID_ALL_kaon");
419 auto* hist_sideband_D0_K_PID_SVD_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_K_PID_SVD_kaon");
420 auto* hist_sideband_D0_K_PID_CDC_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_K_PID_CDC_kaon");
421 auto* hist_sideband_D0_K_PID_TOP_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_K_PID_TOP_kaon");
422 auto* hist_sideband_D0_K_PID_ARICH_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_K_PID_ARICH_kaon");
423 auto* hist_sideband_D0_K_PID_ECL_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_K_PID_ECL_kaon");
424 auto* hist_sideband_D0_K_PID_KLM_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_K_PID_KLM_kaon");
425 auto* hist_D0_pi0_InvM =
findHist(
"PhysicsObjectsMiraBelleDst2/hist_D0_pi0_InvM");
426 if (hist_D0_InvM ==
nullptr) {
427 B2ERROR(
"Can not find the hist_D0_InvM histogram!");
430 if (hist_delta_m ==
nullptr) {
431 B2ERROR(
"Can not find the hist_delta_m histogram!");
434 if (hist_D0_softpi_PID_ALL_pion ==
nullptr) {
435 B2ERROR(
"Can not find the hist_D0_softpi_PID_ALL_pion histogram!");
438 if (hist_D0_softpi_PID_SVD_pion ==
nullptr) {
439 B2ERROR(
"Can not find the hist_D0_softpi_PID_SVD_pion histogram!");
442 if (hist_D0_softpi_PID_CDC_pion ==
nullptr) {
443 B2ERROR(
"Can not find the hist_D0_softpi_PID_CDC_pion histogram!");
446 if (hist_D0_softpi_PID_TOP_pion ==
nullptr) {
447 B2ERROR(
"Can not find the hist_D0_softpi_PID_TOP_pion histogram!");
450 if (hist_D0_softpi_PID_ARICH_pion ==
nullptr) {
451 B2ERROR(
"Can not find the hist_D0_softpi_PID_ARICH_pion histogram!");
454 if (hist_D0_softpi_PID_ECL_pion ==
nullptr) {
455 B2ERROR(
"Can not find the hist_D0_softpi_PID_ECL_pion histogram!");
458 if (hist_D0_softpi_PID_KLM_pion ==
nullptr) {
459 B2ERROR(
"Can not find the hist_D0_softpi_PID_KLM_pion histogram!");
462 if (hist_D0_pi_PID_ALL_pion ==
nullptr) {
463 B2ERROR(
"Can not find the hist_D0_pi_PID_ALL_pion histogram!");
466 if (hist_D0_pi_PID_SVD_pion ==
nullptr) {
467 B2ERROR(
"Can not find the hist_D0_pi_PID_SVD_pion histogram!");
470 if (hist_D0_pi_PID_CDC_pion ==
nullptr) {
471 B2ERROR(
"Can not find the hist_D0_pi_PID_CDC_pion histogram!");
474 if (hist_D0_pi_PID_TOP_pion ==
nullptr) {
475 B2ERROR(
"Can not find the hist_D0_pi_PID_TOP_pion histogram!");
478 if (hist_D0_pi_PID_ARICH_pion ==
nullptr) {
479 B2ERROR(
"Can not find the hist_D0_pi_PID_ARICH_pion histogram!");
482 if (hist_D0_pi_PID_ECL_pion ==
nullptr) {
483 B2ERROR(
"Can not find the hist_D0_pi_PID_ECL_pion histogram!");
486 if (hist_D0_pi_PID_KLM_pion ==
nullptr) {
487 B2ERROR(
"Can not find the hist_D0_pi_PID_KLM_pion histogram!");
490 if (hist_D0_K_PID_ALL_kaon ==
nullptr) {
491 B2ERROR(
"Can not find the hist_D0_K_PID_ALL_kaon histogram!");
494 if (hist_D0_K_PID_SVD_kaon ==
nullptr) {
495 B2ERROR(
"Can not find the hist_D0_K_PID_SVD_kaon histogram!");
498 if (hist_D0_K_PID_CDC_kaon ==
nullptr) {
499 B2ERROR(
"Can not find the hist_D0_K_PID_CDC_kaon histogram!");
502 if (hist_D0_K_PID_TOP_kaon ==
nullptr) {
503 B2ERROR(
"Can not find the hist_D0_K_PID_TOP_kaon histogram!");
506 if (hist_D0_K_PID_ARICH_kaon ==
nullptr) {
507 B2ERROR(
"Can not find the hist_D0_K_PID_ARICH_kaon histogram!");
510 if (hist_D0_K_PID_ECL_kaon ==
nullptr) {
511 B2ERROR(
"Can not find the hist_D0_K_PID_ECL_kaon histogram!");
514 if (hist_D0_K_PID_KLM_kaon ==
nullptr) {
515 B2ERROR(
"Can not find the hist_D0_K_PID_KLM_kaon histogram!");
518 if (hist_sideband_D0_softpi_PID_ALL_pion ==
nullptr) {
519 B2ERROR(
"Can not find the hist_sideband_D0_softpi_PID_ALL_pion histogram!");
522 if (hist_sideband_D0_softpi_PID_SVD_pion ==
nullptr) {
523 B2ERROR(
"Can not find the hist_sideband_D0_softpi_PID_SVD_pion histogram!");
526 if (hist_sideband_D0_softpi_PID_CDC_pion ==
nullptr) {
527 B2ERROR(
"Can not find the hist_sideband_D0_softpi_PID_CDC_pion histogram!");
530 if (hist_sideband_D0_softpi_PID_TOP_pion ==
nullptr) {
531 B2ERROR(
"Can not find the hist_sideband_D0_softpi_PID_TOP_pion histogram!");
534 if (hist_sideband_D0_softpi_PID_ARICH_pion ==
nullptr) {
535 B2ERROR(
"Can not find the hist_sideband_D0_softpi_PID_ARICH_pion histogram!");
538 if (hist_sideband_D0_softpi_PID_ECL_pion ==
nullptr) {
539 B2ERROR(
"Can not find the hist_sideband_D0_softpi_PID_ECL_pion histogram!");
542 if (hist_sideband_D0_softpi_PID_KLM_pion ==
nullptr) {
543 B2ERROR(
"Can not find the hist_sideband_D0_softpi_PID_KLM_pion histogram!");
546 if (hist_sideband_D0_pi_PID_ALL_pion ==
nullptr) {
547 B2ERROR(
"Can not find the hist_sideband_D0_pi_PID_ALL_pion histogram!");
550 if (hist_sideband_D0_pi_PID_SVD_pion ==
nullptr) {
551 B2ERROR(
"Can not find the hist_sideband_D0_pi_PID_SVD_pion histogram!");
554 if (hist_sideband_D0_pi_PID_CDC_pion ==
nullptr) {
555 B2ERROR(
"Can not find the hist_sideband_D0_pi_PID_CDC_pion histogram!");
558 if (hist_sideband_D0_pi_PID_TOP_pion ==
nullptr) {
559 B2ERROR(
"Can not find the hist_sideband_D0_pi_PID_TOP_pion histogram!");
562 if (hist_sideband_D0_pi_PID_ARICH_pion ==
nullptr) {
563 B2ERROR(
"Can not find the hist_sideband_D0_pi_PID_ARICH_pion histogram!");
566 if (hist_sideband_D0_pi_PID_ECL_pion ==
nullptr) {
567 B2ERROR(
"Can not find the hist_sideband_D0_pi_PID_ECL_pion histogram!");
570 if (hist_sideband_D0_pi_PID_KLM_pion ==
nullptr) {
571 B2ERROR(
"Can not find the hist_sideband_D0_pi_PID_KLM_pion histogram!");
574 if (hist_sideband_D0_K_PID_ALL_kaon ==
nullptr) {
575 B2ERROR(
"Can not find the hist_sideband_D0_K_PID_ALL_kaon histogram!");
578 if (hist_sideband_D0_K_PID_SVD_kaon ==
nullptr) {
579 B2ERROR(
"Can not find the hist_sideband_D0_K_PID_SVD_kaon histogram!");
582 if (hist_sideband_D0_K_PID_CDC_kaon ==
nullptr) {
583 B2ERROR(
"Can not find the hist_sideband_D0_K_PID_CDC_kaon histogram!");
586 if (hist_sideband_D0_K_PID_TOP_kaon ==
nullptr) {
587 B2ERROR(
"Can not find the hist_sideband_D0_K_PID_TOP_kaon histogram!");
590 if (hist_sideband_D0_K_PID_ARICH_kaon ==
nullptr) {
591 B2ERROR(
"Can not find the hist_sideband_D0_K_PID_ARICH_kaon histogram!");
594 if (hist_sideband_D0_K_PID_ECL_kaon ==
nullptr) {
595 B2ERROR(
"Can not find the hist_sideband_D0_K_PID_ECL_kaon histogram!");
598 if (hist_sideband_D0_K_PID_KLM_kaon ==
nullptr) {
599 B2ERROR(
"Can not find the hist_sideband_D0_K_PID_KLM_kaon histogram!");
602 if (hist_D0_pi0_InvM ==
nullptr) {
603 B2ERROR(
"Can not find the hist_D0_pi0_InvM histogram!");
607 TF1* f_InvM =
new TF1(
"f_InvM",
"[0]*TMath::Gaus(x,[1],[2])+[3]*pow(x-[4],2)+[5]", 1.81, 1.95);
608 f_InvM->SetParNames(
"Height",
"#mu",
"#sigma",
"a",
"b",
"c");
609 f_InvM->SetParameters(hist_D0_InvM->GetMaximum(), 1.86, 5e-3, 0., 1.86, 0.);
610 hist_D0_InvM->Fit(f_InvM,
"",
"", 1.81, 1.95);
611 f_InvM->SetLineColor(kRed);
613 TF1* f_delta_m =
new TF1(
"f_delta_m",
"[0]*TMath::Gaus(x,[1],[2])+[3]*pow(x-[4],2)+[5]", 0.14, 0.16);
614 f_delta_m->SetParNames(
"Height",
"#mu",
"#sigma",
"a",
"b",
"c");
615 f_delta_m->SetParameters(hist_delta_m->GetMaximum(), 0.145, 5e-4, 0., 0.145, 0.);
616 hist_delta_m->Fit(f_delta_m,
"",
"", 0.14, 0.16);
617 f_delta_m->SetLineColor(kRed);
619 TF1* f_pi0_InvM =
new TF1(
"f_pi0_InvM",
"[0]*TMath::Gaus(x,[1],[2])+[3]*pow(x-[4],2)+[5]", 0.09, 0.17);
620 f_pi0_InvM->SetParNames(
"Height",
"#mu",
"#sigma",
"a",
"b",
"c");
621 f_pi0_InvM->SetParameters(hist_D0_pi0_InvM->GetMaximum(), 0.13, 5e-3, 0., 0.13, 0.);
622 hist_D0_pi0_InvM->Fit(f_pi0_InvM,
"",
"", 0.09, 0.17);
623 f_pi0_InvM->SetLineColor(kRed);
626 TF1* f_gaus_InvM =
new TF1(
"f_gaus_InvM",
"gaus", 1.81, 1.95);
627 f_gaus_InvM->SetParameters(f_InvM->GetParameter(0), f_InvM->GetParameter(1), f_InvM->GetParameter(2));
628 double InvM_bin_width = hist_D0_InvM->GetXaxis()->GetBinWidth(1);
629 double neve_dst = f_gaus_InvM->Integral(1.81, 1.95) / InvM_bin_width;
631 TF1* f_gaus_pi0_InvM =
new TF1(
"f_gaus_pi0_InvM",
"gaus", 0.09, 0.17);
632 f_gaus_pi0_InvM->SetParameters(f_pi0_InvM->GetParameter(0), f_pi0_InvM->GetParameter(1), f_pi0_InvM->GetParameter(2));
633 double pi0_InvM_bin_width = hist_D0_pi0_InvM->GetXaxis()->GetBinWidth(1);
634 double neve_pi0 = f_gaus_pi0_InvM->Integral(0.09, 0.17) / pi0_InvM_bin_width;
637 hist_D0_softpi_PID_ALL_pion->Sumw2();
638 hist_D0_softpi_PID_SVD_pion->Sumw2();
639 hist_D0_softpi_PID_CDC_pion->Sumw2();
640 hist_D0_softpi_PID_TOP_pion->Sumw2();
641 hist_D0_softpi_PID_ARICH_pion->Sumw2();
642 hist_D0_softpi_PID_ECL_pion->Sumw2();
643 hist_D0_softpi_PID_KLM_pion->Sumw2();
644 hist_D0_pi_PID_ALL_pion->Sumw2();
645 hist_D0_pi_PID_SVD_pion->Sumw2();
646 hist_D0_pi_PID_CDC_pion->Sumw2();
647 hist_D0_pi_PID_TOP_pion->Sumw2();
648 hist_D0_pi_PID_ARICH_pion->Sumw2();
649 hist_D0_pi_PID_ECL_pion->Sumw2();
650 hist_D0_pi_PID_KLM_pion->Sumw2();
651 hist_D0_K_PID_ALL_kaon->Sumw2();
652 hist_D0_K_PID_SVD_kaon->Sumw2();
653 hist_D0_K_PID_CDC_kaon->Sumw2();
654 hist_D0_K_PID_TOP_kaon->Sumw2();
655 hist_D0_K_PID_ARICH_kaon->Sumw2();
656 hist_D0_K_PID_ECL_kaon->Sumw2();
657 hist_D0_K_PID_KLM_kaon->Sumw2();
658 hist_sideband_D0_softpi_PID_ALL_pion->Sumw2();
659 hist_sideband_D0_softpi_PID_SVD_pion->Sumw2();
660 hist_sideband_D0_softpi_PID_CDC_pion->Sumw2();
661 hist_sideband_D0_softpi_PID_TOP_pion->Sumw2();
662 hist_sideband_D0_softpi_PID_ARICH_pion->Sumw2();
663 hist_sideband_D0_softpi_PID_ECL_pion->Sumw2();
664 hist_sideband_D0_softpi_PID_KLM_pion->Sumw2();
665 hist_sideband_D0_pi_PID_ALL_pion->Sumw2();
666 hist_sideband_D0_pi_PID_SVD_pion->Sumw2();
667 hist_sideband_D0_pi_PID_CDC_pion->Sumw2();
668 hist_sideband_D0_pi_PID_TOP_pion->Sumw2();
669 hist_sideband_D0_pi_PID_ARICH_pion->Sumw2();
670 hist_sideband_D0_pi_PID_ECL_pion->Sumw2();
671 hist_sideband_D0_pi_PID_KLM_pion->Sumw2();
672 hist_sideband_D0_K_PID_ALL_kaon->Sumw2();
673 hist_sideband_D0_K_PID_SVD_kaon->Sumw2();
674 hist_sideband_D0_K_PID_CDC_kaon->Sumw2();
675 hist_sideband_D0_K_PID_TOP_kaon->Sumw2();
676 hist_sideband_D0_K_PID_ARICH_kaon->Sumw2();
677 hist_sideband_D0_K_PID_ECL_kaon->Sumw2();
678 hist_sideband_D0_K_PID_KLM_kaon->Sumw2();
681 hist_sideband_D0_softpi_PID_ALL_pion->Scale(
m_scale_dst);
682 hist_sideband_D0_softpi_PID_SVD_pion->Scale(
m_scale_dst);
683 hist_sideband_D0_softpi_PID_CDC_pion->Scale(
m_scale_dst);
684 hist_sideband_D0_softpi_PID_TOP_pion->Scale(
m_scale_dst);
685 hist_sideband_D0_softpi_PID_ARICH_pion->Scale(
m_scale_dst);
686 hist_sideband_D0_softpi_PID_ECL_pion->Scale(
m_scale_dst);
687 hist_sideband_D0_softpi_PID_KLM_pion->Scale(
m_scale_dst);
688 hist_sideband_D0_pi_PID_ALL_pion->Scale(
m_scale_dst);
689 hist_sideband_D0_pi_PID_SVD_pion->Scale(
m_scale_dst);
690 hist_sideband_D0_pi_PID_CDC_pion->Scale(
m_scale_dst);
691 hist_sideband_D0_pi_PID_TOP_pion->Scale(
m_scale_dst);
692 hist_sideband_D0_pi_PID_ARICH_pion->Scale(
m_scale_dst);
693 hist_sideband_D0_pi_PID_ECL_pion->Scale(
m_scale_dst);
694 hist_sideband_D0_pi_PID_KLM_pion->Scale(
m_scale_dst);
695 hist_sideband_D0_K_PID_ALL_kaon->Scale(
m_scale_dst);
696 hist_sideband_D0_K_PID_SVD_kaon->Scale(
m_scale_dst);
697 hist_sideband_D0_K_PID_CDC_kaon->Scale(
m_scale_dst);
698 hist_sideband_D0_K_PID_TOP_kaon->Scale(
m_scale_dst);
699 hist_sideband_D0_K_PID_ARICH_kaon->Scale(
m_scale_dst);
700 hist_sideband_D0_K_PID_ECL_kaon->Scale(
m_scale_dst);
701 hist_sideband_D0_K_PID_KLM_kaon->Scale(
m_scale_dst);
704 hist_D0_softpi_PID_ALL_pion->Add(hist_sideband_D0_softpi_PID_ALL_pion, -1);
705 hist_D0_softpi_PID_SVD_pion->Add(hist_sideband_D0_softpi_PID_SVD_pion, -1);
706 hist_D0_softpi_PID_CDC_pion->Add(hist_sideband_D0_softpi_PID_CDC_pion, -1);
707 hist_D0_softpi_PID_TOP_pion->Add(hist_sideband_D0_softpi_PID_TOP_pion, -1);
708 hist_D0_softpi_PID_ARICH_pion->Add(hist_sideband_D0_softpi_PID_ARICH_pion, -1);
709 hist_D0_softpi_PID_ECL_pion->Add(hist_sideband_D0_softpi_PID_ECL_pion, -1);
710 hist_D0_softpi_PID_KLM_pion->Add(hist_sideband_D0_softpi_PID_KLM_pion, -1);
711 hist_D0_pi_PID_ALL_pion->Add(hist_sideband_D0_pi_PID_ALL_pion, -1);
712 hist_D0_pi_PID_SVD_pion->Add(hist_sideband_D0_pi_PID_SVD_pion, -1);
713 hist_D0_pi_PID_CDC_pion->Add(hist_sideband_D0_pi_PID_CDC_pion, -1);
714 hist_D0_pi_PID_TOP_pion->Add(hist_sideband_D0_pi_PID_TOP_pion, -1);
715 hist_D0_pi_PID_ARICH_pion->Add(hist_sideband_D0_pi_PID_ARICH_pion, -1);
716 hist_D0_pi_PID_ECL_pion->Add(hist_sideband_D0_pi_PID_ECL_pion, -1);
717 hist_D0_pi_PID_KLM_pion->Add(hist_sideband_D0_pi_PID_KLM_pion, -1);
718 hist_D0_K_PID_ALL_kaon->Add(hist_sideband_D0_K_PID_ALL_kaon, -1);
719 hist_D0_K_PID_SVD_kaon->Add(hist_sideband_D0_K_PID_SVD_kaon, -1);
720 hist_D0_K_PID_CDC_kaon->Add(hist_sideband_D0_K_PID_CDC_kaon, -1);
721 hist_D0_K_PID_TOP_kaon->Add(hist_sideband_D0_K_PID_TOP_kaon, -1);
722 hist_D0_K_PID_ARICH_kaon->Add(hist_sideband_D0_K_PID_ARICH_kaon, -1);
723 hist_D0_K_PID_ECL_kaon->Add(hist_sideband_D0_K_PID_ECL_kaon, -1);
724 hist_D0_K_PID_KLM_kaon->Add(hist_sideband_D0_K_PID_KLM_kaon, -1);
730 hist_D0_InvM->Draw();
731 f_InvM->Draw(
"SAME");
733 hist_delta_m->Draw();
734 f_delta_m->Draw(
"SAME");
736 hist_D0_pi0_InvM->Draw();
737 f_pi0_InvM->Draw(
"SAME");
740 dst_pi_val->cd(1); hist_D0_pi_PID_ALL_pion->Draw();
741 dst_pi_val->cd(2); hist_D0_pi_PID_SVD_pion->Draw();
742 dst_pi_val->cd(3); hist_D0_pi_PID_CDC_pion->Draw();
743 dst_pi_val->cd(4); hist_D0_pi_PID_TOP_pion->Draw();
744 dst_pi_val->cd(5); hist_D0_pi_PID_ARICH_pion->Draw();
745 dst_pi_val->cd(6); hist_D0_pi_PID_ECL_pion->Draw();
746 dst_pi_val->cd(7); hist_D0_pi_PID_KLM_pion->Draw();
749 dst_k_val->cd(1); hist_D0_K_PID_ALL_kaon->Draw();
750 dst_k_val->cd(2); hist_D0_K_PID_SVD_kaon->Draw();
751 dst_k_val->cd(3); hist_D0_K_PID_CDC_kaon->Draw();
752 dst_k_val->cd(4); hist_D0_K_PID_TOP_kaon->Draw();
753 dst_k_val->cd(5); hist_D0_K_PID_ARICH_kaon->Draw();
754 dst_k_val->cd(6); hist_D0_K_PID_ECL_kaon->Draw();
755 dst_k_val->cd(7); hist_D0_K_PID_KLM_kaon->Draw();
758 double mean_D0_InvM = f_InvM->GetParameter(1);
759 double width_D0_InvM = f_InvM->GetParameter(2);
760 double mean_delta_m = f_delta_m->GetParameter(1);
761 double width_delta_m = f_delta_m->GetParameter(2);
762 double mean_pi0_InvM = f_pi0_InvM->GetParameter(1);
763 double width_pi0_InvM = f_pi0_InvM->GetParameter(2);
764 double mean_D0_softpi_PID_ALL_pion = hist_D0_softpi_PID_ALL_pion->GetMean();
765 double mean_D0_softpi_PID_SVD_pion = hist_D0_softpi_PID_SVD_pion->GetMean();
766 double mean_D0_softpi_PID_CDC_pion = hist_D0_softpi_PID_CDC_pion->GetMean();
767 double mean_D0_softpi_PID_TOP_pion = hist_D0_softpi_PID_TOP_pion->GetMean();
768 double mean_D0_softpi_PID_ARICH_pion = hist_D0_softpi_PID_ARICH_pion->GetMean();
769 double mean_D0_softpi_PID_ECL_pion = hist_D0_softpi_PID_ECL_pion->GetMean();
770 double mean_D0_softpi_PID_KLM_pion = hist_D0_softpi_PID_KLM_pion->GetMean();
771 double mean_D0_pi_PID_ALL_pion = hist_D0_pi_PID_ALL_pion->GetMean();
772 double mean_D0_pi_PID_SVD_pion = hist_D0_pi_PID_SVD_pion->GetMean();
773 double mean_D0_pi_PID_CDC_pion = hist_D0_pi_PID_CDC_pion->GetMean();
774 double mean_D0_pi_PID_TOP_pion = hist_D0_pi_PID_TOP_pion->GetMean();
775 double mean_D0_pi_PID_ARICH_pion = hist_D0_pi_PID_ARICH_pion->GetMean();
776 double mean_D0_pi_PID_ECL_pion = hist_D0_pi_PID_ECL_pion->GetMean();
777 double mean_D0_pi_PID_KLM_pion = hist_D0_pi_PID_KLM_pion->GetMean();
778 double mean_D0_K_PID_ALL_kaon = hist_D0_K_PID_ALL_kaon->GetMean();
779 double mean_D0_K_PID_SVD_kaon = hist_D0_K_PID_SVD_kaon->GetMean();
780 double mean_D0_K_PID_CDC_kaon = hist_D0_K_PID_CDC_kaon->GetMean();
781 double mean_D0_K_PID_TOP_kaon = hist_D0_K_PID_TOP_kaon->GetMean();
782 double mean_D0_K_PID_ARICH_kaon = hist_D0_K_PID_ARICH_kaon->GetMean();
783 double mean_D0_K_PID_ECL_kaon = hist_D0_K_PID_ECL_kaon->GetMean();
784 double mean_D0_K_PID_KLM_kaon = hist_D0_K_PID_KLM_kaon->GetMean();
787 mon_dst->setVariable(
"neve_dst", neve_dst);
788 mon_dst->setVariable(
"neve_pi0", neve_pi0);
789 mon_dst->setVariable(
"mean_D0_InvM", mean_D0_InvM);
790 mon_dst->setVariable(
"width_D0_InvM", width_D0_InvM);
791 mon_dst->setVariable(
"mean_delta_m", mean_delta_m);
792 mon_dst->setVariable(
"width_delta_m", width_delta_m);
793 mon_dst->setVariable(
"mean_pi0_InvM", mean_pi0_InvM);
794 mon_dst->setVariable(
"width_pi0_InvM", width_pi0_InvM);
795 mon_dst->setVariable(
"mean_D0_softpi_PID_ALL_pion", mean_D0_softpi_PID_ALL_pion);
796 mon_dst->setVariable(
"mean_D0_softpi_PID_SVD_pion", mean_D0_softpi_PID_SVD_pion);
797 mon_dst->setVariable(
"mean_D0_softpi_PID_CDC_pion", mean_D0_softpi_PID_CDC_pion);
798 mon_dst->setVariable(
"mean_D0_softpi_PID_TOP_pion", mean_D0_softpi_PID_TOP_pion);
799 mon_dst->setVariable(
"mean_D0_softpi_PID_ARICH_pion", mean_D0_softpi_PID_ARICH_pion);
800 mon_dst->setVariable(
"mean_D0_softpi_PID_ECL_pion", mean_D0_softpi_PID_ECL_pion);
801 mon_dst->setVariable(
"mean_D0_softpi_PID_KLM_pion", mean_D0_softpi_PID_KLM_pion);
802 mon_dst->setVariable(
"mean_D0_pi_PID_ALL_pion", mean_D0_pi_PID_ALL_pion);
803 mon_dst->setVariable(
"mean_D0_pi_PID_SVD_pion", mean_D0_pi_PID_SVD_pion);
804 mon_dst->setVariable(
"mean_D0_pi_PID_CDC_pion", mean_D0_pi_PID_CDC_pion);
805 mon_dst->setVariable(
"mean_D0_pi_PID_TOP_pion", mean_D0_pi_PID_TOP_pion);
806 mon_dst->setVariable(
"mean_D0_pi_PID_ARICH_pion", mean_D0_pi_PID_ARICH_pion);
807 mon_dst->setVariable(
"mean_D0_pi_PID_ECL_pion", mean_D0_pi_PID_ECL_pion);
808 mon_dst->setVariable(
"mean_D0_pi_PID_KLM_pion", mean_D0_pi_PID_KLM_pion);
809 mon_dst->setVariable(
"mean_D0_K_PID_ALL_kaon", mean_D0_K_PID_ALL_kaon);
810 mon_dst->setVariable(
"mean_D0_K_PID_SVD_kaon", mean_D0_K_PID_SVD_kaon);
811 mon_dst->setVariable(
"mean_D0_K_PID_CDC_kaon", mean_D0_K_PID_CDC_kaon);
812 mon_dst->setVariable(
"mean_D0_K_PID_TOP_kaon", mean_D0_K_PID_TOP_kaon);
813 mon_dst->setVariable(
"mean_D0_K_PID_ARICH_kaon", mean_D0_K_PID_ARICH_kaon);
814 mon_dst->setVariable(
"mean_D0_K_PID_ECL_kaon", mean_D0_K_PID_ECL_kaon);
815 mon_dst->setVariable(
"mean_D0_K_PID_KLM_kaon", mean_D0_K_PID_KLM_kaon);
818 if (
auto* ptr =
findHist(
"PhysicsObjectsMiraBelleTau/hist_L1ECL1x1"); ptr !=
nullptr) {
819 for (
int bin = 1; bin <= ptr->GetXaxis()->GetNbins(); bin++) {
820 std::string label = std::string(
"ECL_1_1_") + ptr->GetXaxis()->GetBinLabel(bin);
821 mon_tautau->setVariable(label, ptr->GetBinContent(bin));
824 if (
auto* ptr =
findHist(
"PhysicsObjectsMiraBelleTau/hist_L1ECL1x3"); ptr !=
nullptr) {
825 for (
int bin = 1; bin <= ptr->GetXaxis()->GetNbins(); bin++) {
826 std::string label = std::string(
"ECL_1_3_") + ptr->GetXaxis()->GetBinLabel(bin);
827 mon_tautau->setVariable(label, ptr->GetBinContent(bin));
830 if (
auto* ptr =
findHist(
"PhysicsObjectsMiraBelleTau/hist_L1CDC1x1"); ptr !=
nullptr) {
831 for (
int bin = 1; bin <= ptr->GetXaxis()->GetNbins(); bin++) {
832 std::string label = std::string(
"CDC_1_1_") + ptr->GetXaxis()->GetBinLabel(bin);
833 mon_tautau->setVariable(label, ptr->GetBinContent(bin));
836 if (
auto* ptr =
findHist(
"PhysicsObjectsMiraBelleTau/hist_L1CDC1x3"); ptr !=
nullptr) {
837 for (
int bin = 1; bin <= ptr->GetXaxis()->GetNbins(); bin++) {
838 std::string label = std::string(
"CDC_1_3_") + ptr->GetXaxis()->GetBinLabel(bin);
839 mon_tautau->setVariable(label, ptr->GetBinContent(bin));
842 if (
auto* ptr =
findHist(
"PhysicsObjectsMiraBelleTau/hist_L1CDCKLM1x1"); ptr !=
nullptr) {
843 for (
int bin = 1; bin <= ptr->GetXaxis()->GetNbins(); bin++) {
844 std::string label = std::string(
"CDCKLM_1_1_") + ptr->GetXaxis()->GetBinLabel(bin);
845 mon_tautau->setVariable(label, ptr->GetBinContent(bin));
848 if (
auto* ptr =
findHist(
"PhysicsObjectsMiraBelleTau/hist_L1CDCKLM1x3"); ptr !=
nullptr) {
849 for (
int bin = 1; bin <= ptr->GetXaxis()->GetNbins(); bin++) {
850 std::string label = std::string(
"CDCKLM_1_3_") + ptr->GetXaxis()->GetBinLabel(bin);
851 mon_tautau->setVariable(label, ptr->GetBinContent(bin));
858 auto* histbh_npxd =
findHist(
"PhysicsObjectsMiraBelleBhabha/hist_npxd");
859 auto* histbh_nsvd =
findHist(
"PhysicsObjectsMiraBelleBhabha/hist_nsvd");
860 auto* histbh_ncdc =
findHist(
"PhysicsObjectsMiraBelleBhabha/hist_ncdc");
861 auto* histbh_topdig =
findHist(
"PhysicsObjectsMiraBelleBhabha/hist_topdig");
862 auto* histbh_DetPhotonARICH =
findHist(
"PhysicsObjectsMiraBelleBhabha/hist_DetPhotonARICH");
863 auto* histbh_dD0 =
findHist(
"PhysicsObjectsMiraBelleBhabha/hist_dD0");
864 auto* histbh_dZ0 =
findHist(
"PhysicsObjectsMiraBelleBhabha/hist_dZ0");
865 auto* histbh_dPtcms =
findHist(
"PhysicsObjectsMiraBelleBhabha/hist_dPtcms");
866 auto* histbh_Pval =
findHist(
"PhysicsObjectsMiraBelleBhabha/hist_Pval");
867 auto* histbh_nExtraCDCHits =
findHist(
"PhysicsObjectsMiraBelleBhabha/hist_nExtraCDCHits");
868 auto* histbh_nECLClusters =
findHist(
"PhysicsObjectsMiraBelleBhabha/hist_nECLClusters");
869 auto* histbh_electronid =
findHist(
"PhysicsObjectsMiraBelleBhabha/hist_electronid");
870 auto* histbh_inv_p =
findHist(
"PhysicsObjectsMiraBelleBhabha/hist_inv_p");
871 auto* histbh_ndf =
findHist(
"PhysicsObjectsMiraBelleBhabha/hist_ndf");
872 auto* histbh_D0 =
findHist(
"PhysicsObjectsMiraBelleBhabha/hist_D0");
873 auto* histbh_Z0 =
findHist(
"PhysicsObjectsMiraBelleBhabha/hist_Z0");
874 auto* histbh_theta =
findHist(
"PhysicsObjectsMiraBelleBhabha/hist_theta");
875 auto* histbh_Phi0 =
findHist(
"PhysicsObjectsMiraBelleBhabha/hist_Phi0");
876 auto* histbh_Pt =
findHist(
"PhysicsObjectsMiraBelleBhabha/hist_Pt");
877 auto* histbh_Mom =
findHist(
"PhysicsObjectsMiraBelleBhabha/hist_Mom");
878 auto* histbh_dPhicms =
findHist(
"PhysicsObjectsMiraBelleBhabha/hist_dPhicms");
880 if (histbh_npxd ==
nullptr) {
881 B2ERROR(
"Can not find the histbh_npxd histogram!");
884 if (histbh_nsvd ==
nullptr) {
885 B2ERROR(
"Can not find the histbh_nsvd histogram!");
888 if (histbh_ncdc ==
nullptr) {
889 B2ERROR(
"Can not find the histbh_ncdc histogram!");
892 if (histbh_topdig ==
nullptr) {
893 B2ERROR(
"Can not find the histbh_topdig histogram!");
896 if (histbh_DetPhotonARICH ==
nullptr) {
897 B2ERROR(
"Can not find the histbh_DetPhotonARICH histogram!");
900 if (histbh_dD0 ==
nullptr) {
901 B2ERROR(
"Can not find the histbh_dD0 histogram!");
904 if (histbh_dZ0 ==
nullptr) {
905 B2ERROR(
"Can not find the histbh_dZ0 histogram!");
908 if (histbh_dPtcms ==
nullptr) {
909 B2ERROR(
"Can not find the histbh_dPtcms histogram!");
912 if (histbh_Pval ==
nullptr) {
913 B2ERROR(
"Can not find the histbh_Pval histogram!");
916 if (histbh_nExtraCDCHits ==
nullptr) {
917 B2ERROR(
"Can not find the histbh_nExtraCDCHits histogram!");
920 if (histbh_nECLClusters ==
nullptr) {
921 B2ERROR(
"Can not find the histbh_nECLClusters histogram!");
924 if (histbh_electronid ==
nullptr) {
925 B2ERROR(
"Can not find the histbh_electronid histogram!");
928 if (histbh_inv_p ==
nullptr) {
929 B2ERROR(
"Can not find the histbh_inv_p histogram!");
932 if (histbh_ndf ==
nullptr) {
933 B2ERROR(
"Can not find the histbh_ndf histogram!");
936 if (histbh_D0 ==
nullptr) {
937 B2ERROR(
"Can not find the histbh_D0 histogram!");
940 if (histbh_Z0 ==
nullptr) {
941 B2ERROR(
"Can not find the histbh_Z0 histogram!");
944 if (histbh_theta ==
nullptr) {
945 B2ERROR(
"Can not find the histbh_theta histogram!");
948 if (histbh_Phi0 ==
nullptr) {
949 B2ERROR(
"Can not find the histbh_Phi0 histogram!");
952 if (histbh_Pt ==
nullptr) {
953 B2ERROR(
"Can not find the histbh_Pt histogram!");
956 if (histbh_Mom ==
nullptr) {
957 B2ERROR(
"Can not find the histbh_Mom histogram!");
960 if (histbh_dPhicms ==
nullptr) {
961 B2ERROR(
"Can not find the histbh_dPhicms histogram!");
991 double bh_mean_npxd = histbh_npxd->GetMean();
992 double bh_mean_nsvd = histbh_nsvd->GetMean();
993 double bh_mean_ncdc = histbh_ncdc->GetMean();
994 double bh_mean_topdig = histbh_topdig->GetMean();
995 double bh_mean_parich = histbh_DetPhotonARICH->GetMean();
996 double bh_mean_ncdc_ex = histbh_nExtraCDCHits->GetMean();
997 double bh_mean_necl = histbh_nECLClusters->GetMean();
998 double bh_mean_electronid = histbh_electronid->GetMean();
999 double bh_mean_d0 = histbh_D0->GetMean();
1000 double bh_mean_z0 = histbh_Z0->GetMean();
1001 double bh_mean_pval = histbh_Pval->GetMean();
1002 double bh_mean_ndf = histbh_ndf->GetMean();
1003 double bh_dif_ndf_ncdc = mean_ndf - mean_ncdc;
1004 double bh_mean_dd0 = histbh_dD0->GetMean();
1005 double bh_mean_dz0 = histbh_dZ0->GetMean();
1006 double bh_mean_dpt = histbh_dPtcms->GetMean();
1007 double bh_rms_dd0 = histbh_dD0->GetRMS();
1008 double bh_rms_dz0 = histbh_dZ0->GetRMS();
1009 double bh_rms_dpt = histbh_dPtcms->GetRMS();
1010 double bh_sigma68_dd0 =
getSigma68(histbh_dD0);
1011 double bh_sigma68_dz0 =
getSigma68(histbh_dZ0);
1012 double bh_sigma68_dpt =
getSigma68(histbh_dPtcms);
1013 int bh_ntot = histbh_nECLClusters->GetEntries();
1014 double bh_neve_bhabha = bh_ntot;
1015 int bh_ntot_sign = histbh_nsvd->GetEntries();
1016 double bh_neve_bhabha_sign = bh_ntot_sign;
1017 double bh_goode_frac = -1.;
1018 double bh_pval_frac_0 = -1.;
1019 double bh_pval_frac_1 = -1.;
1020 double bh_nocdc_frac = -1.;
1021 double bh_notop_frac = -1.;
1022 double bh_noarich_frac = -1.;
1023 double eidcontent = histbh_electronid->GetBinContent(1);
1024 double bh_goode_o_bade;
1025 if (eidcontent != 0) {
1026 bh_goode_o_bade = histbh_electronid->GetBinContent(20) / eidcontent;
1028 bh_goode_o_bade = 0.0;
1030 double bh_pval_more95 = 0.0;
1031 double bh_pval_less05 = 0.0;
1032 for (
int i = 95; i < 100; i++) bh_pval_more95 += histbh_Pval->GetBinContent(i + 1);
1033 for (
int i = 0; i < 5; i++) bh_pval_less05 += histbh_Pval->GetBinContent(i + 1);
1034 if (bh_neve_bhabha_sign != 0) {
1035 bh_goode_frac = histbh_electronid->GetBinContent(20) / bh_neve_bhabha_sign;
1036 bh_pval_frac_0 = bh_pval_less05 / bh_neve_bhabha_sign;
1037 bh_pval_frac_1 = bh_pval_more95 / bh_neve_bhabha_sign;
1038 bh_nocdc_frac = histbh_ncdc->GetBinContent(1) / bh_neve_bhabha_sign;
1039 bh_notop_frac = histbh_topdig->GetBinContent(1) / bh_neve_bhabha_sign;
1040 bh_noarich_frac = histbh_DetPhotonARICH->GetBinContent(1) / bh_neve_bhabha_sign;
1042 bh_goode_frac = 0.0;
1043 bh_pval_frac_0 = 0.0;
1044 bh_pval_frac_1 = 0.0;
1045 bh_nocdc_frac = 0.0;
1046 bh_notop_frac = 0.0;
1047 bh_noarich_frac = 0.0;
1050 mon_bhabha->setVariable(
"bh_mean_npxd", bh_mean_npxd);
1051 mon_bhabha->setVariable(
"bh_mean_nsvd", bh_mean_nsvd);
1052 mon_bhabha->setVariable(
"bh_mean_ncdc", bh_mean_ncdc);
1053 mon_bhabha->setVariable(
"bh_mean_topdig", bh_mean_topdig);
1054 mon_bhabha->setVariable(
"bh_mean_parich", bh_mean_parich);
1055 mon_bhabha->setVariable(
"bh_mean_ncdc_ex", bh_mean_ncdc_ex);
1056 mon_bhabha->setVariable(
"bh_mean_necl", bh_mean_necl);
1057 mon_bhabha->setVariable(
"bh_mean_electronid", bh_mean_electronid);
1058 mon_bhabha->setVariable(
"bh_mean_d0", bh_mean_d0);
1059 mon_bhabha->setVariable(
"bh_mean_z0", bh_mean_z0);
1060 mon_bhabha->setVariable(
"bh_mean_pval", bh_mean_pval);
1061 mon_bhabha->setVariable(
"bh_mean_ndf", bh_mean_ndf);
1062 mon_bhabha->setVariable(
"bh_dif_ndf_ncdc", bh_dif_ndf_ncdc);
1063 mon_bhabha->setVariable(
"bh_mean_dd0", bh_mean_dd0);
1064 mon_bhabha->setVariable(
"bh_mean_dz0", bh_mean_dz0);
1065 mon_bhabha->setVariable(
"bh_mean_dpt", bh_mean_dpt);
1066 mon_bhabha->setVariable(
"bh_rms_dd0", bh_rms_dd0);
1067 mon_bhabha->setVariable(
"bh_rms_dz0", bh_rms_dz0);
1068 mon_bhabha->setVariable(
"bh_rms_dpt", bh_rms_dpt);
1069 mon_bhabha->setVariable(
"bh_sigma68_dd0", bh_sigma68_dd0);
1070 mon_bhabha->setVariable(
"bh_sigma68_dz0", bh_sigma68_dz0);
1071 mon_bhabha->setVariable(
"bh_sigma68_dpt", bh_sigma68_dpt);
1072 mon_bhabha->setVariable(
"bh_neve_bhabha", bh_neve_bhabha);
1073 mon_bhabha->setVariable(
"bh_neve_bhabha_sign", bh_neve_bhabha_sign);
1074 mon_bhabha->setVariable(
"bh_goode_frac", bh_goode_frac);
1075 mon_bhabha->setVariable(
"bh_goode_o_bade", bh_goode_o_bade);
1076 mon_bhabha->setVariable(
"bh_pval_frac_0", bh_pval_frac_0);
1077 mon_bhabha->setVariable(
"bh_pval_frac_1", bh_pval_frac_1);
1078 mon_bhabha->setVariable(
"bh_nocdc_frac", bh_nocdc_frac);
1079 mon_bhabha->setVariable(
"bh_notop_frac", bh_notop_frac);
1080 mon_bhabha->setVariable(
"bh_noarich_frac", bh_noarich_frac);
1083 auto* histhad_nECLClusters =
findHist(
"PhysicsObjectsMiraBelleHadron/hist_nECLClusters");
1084 auto* histhad_visibleEnergyCMSnorm =
findHist(
"PhysicsObjectsMiraBelleHadron/hist_visibleEnergyCMSnorm");
1085 auto* histhad_EsumCMSnorm =
findHist(
"PhysicsObjectsMiraBelleHadron/hist_EsumCMSnorm");
1086 auto* histhad_R2 =
findHist(
"PhysicsObjectsMiraBelleHadron/hist_R2");
1087 auto* histhad_physicsresultsH =
findHist(
"PhysicsObjectsMiraBelleHadron/hist_physicsresultsH");
1089 if (histhad_nECLClusters ==
nullptr) {
1090 B2ERROR(
"Can not find the histhad_nECLClusters histogram!");
1093 if (histhad_visibleEnergyCMSnorm ==
nullptr) {
1094 B2ERROR(
"Can not find the histhad_visibleEnergyCMSnorm histogram!");
1097 if (histhad_EsumCMSnorm ==
nullptr) {
1098 B2ERROR(
"Can not find the histhad_EsumCMSnorm histogram!");
1101 if (histhad_R2 ==
nullptr) {
1102 B2ERROR(
"Can not find the histhad_R2 histogram!");
1105 if (histhad_physicsresultsH ==
nullptr) {
1106 B2ERROR(
"Can not find the histhad_physicsresultsH histogram!");
1114 hadron_main->cd(2); histhad_visibleEnergyCMSnorm->Draw();
1118 double had_ntot = histhad_physicsresultsH->GetBinContent(3);
1119 double ratio_hadron_bhabha = 0.;
1121 double ratio_pull_hadBhabha = -10.;
1122 double error_ratio = -10.;
1124 ratio_hadron_bhabha = had_ntot / bh_neve_bhabha;
1126 error_ratio = ratio_hadron_bhabha *
sqrt((1 / had_ntot) + (1 / bh_neve_bhabha));
1127 ratio_pull_hadBhabha = (ratio_hadron_bhabha -
m_reference_hadb) / error_ratio;
1130 mon_bhabha->setVariable(
"had_ntot", had_ntot);
1131 mon_hadron->setVariable(
"ratio_hadron_bhabha", ratio_hadron_bhabha);
1132 mon_hadron->setVariable(
"error_ratio", error_ratio);
1133 mon_hadron->setVariable(
"ratio_pull_hadBhabha", ratio_pull_hadBhabha);
1135 B2DEBUG(20,
"DQMHistAnalysisMiraBelle : endRun called");