10 #include <dqm/analysis/modules/DQMHistAnalysisMiraBelle.h>
24 DQMHistAnalysisMiraBelleModule::DQMHistAnalysisMiraBelleModule()
28 setDescription(
"Modify and analyze the data quality histograms of MiraBelle");
48 mumu_main =
new TCanvas(
"mumu_main",
"mumu_main", 0, 0, 800, 600);
49 mumu_resolution =
new TCanvas(
"mumu_resolution",
"mumu_resolution", 0, 0, 800, 600);
50 mumu_muon_val =
new TCanvas(
"mumu_muon_val",
"mumu_muon_val", 0, 0, 400, 400);
51 dst_mass =
new TCanvas(
"dst_mass",
"dst_mass", 0, 0, 1200, 400);
52 dst_pi_val =
new TCanvas(
"dst_pi_val",
"dst_pi_val", 0, 0, 800, 400);
53 dst_k_val =
new TCanvas(
"dst_k_val",
"dst_k_val", 0, 0, 800, 400);
63 B2DEBUG(20,
"DQMHistAnalysisMiraBelle: initialized.");
68 B2DEBUG(20,
"DQMHistAnalysisMiraBelle: beginRun called.");
73 B2DEBUG(20,
"DQMHistAnalysisOutputMiraBelle: event called.");
80 TH1* hist_npxd =
findHist(
"PhysicsObjectsMiraBelle/hist_npxd");
81 TH1* hist_nsvd =
findHist(
"PhysicsObjectsMiraBelle/hist_nsvd");
82 TH1* hist_ncdc =
findHist(
"PhysicsObjectsMiraBelle/hist_ncdc");
83 TH1* hist_topdig =
findHist(
"PhysicsObjectsMiraBelle/hist_topdig");
84 TH1* hist_DetPhotonARICH =
findHist(
"PhysicsObjectsMiraBelle/hist_DetPhotonARICH");
85 TH1* hist_klmTotalHits =
findHist(
"PhysicsObjectsMiraBelle/hist_klmTotalHits");
86 TH1* hist_klmClusterLayers =
findHist(
"PhysicsObjectsMiraBelle/hist_klmClusterLayers");
87 TH1* hist_dD0 =
findHist(
"PhysicsObjectsMiraBelle/hist_dD0");
88 TH1* hist_dZ0 =
findHist(
"PhysicsObjectsMiraBelle/hist_dZ0");
89 TH1* hist_dPtcms =
findHist(
"PhysicsObjectsMiraBelle/hist_dPtcms");
90 TH1* hist_Pval =
findHist(
"PhysicsObjectsMiraBelle/hist_Pval");
91 TH1* hist_nExtraCDCHits =
findHist(
"PhysicsObjectsMiraBelle/hist_nExtraCDCHits");
92 TH1* hist_nECLClusters =
findHist(
"PhysicsObjectsMiraBelle/hist_nECLClusters");
93 TH1* hist_muid =
findHist(
"PhysicsObjectsMiraBelle/hist_muid");
94 TH1* hist_inv_p =
findHist(
"PhysicsObjectsMiraBelle/hist_inv_p");
95 TH1* hist_ndf =
findHist(
"PhysicsObjectsMiraBelle/hist_ndf");
96 TH1* hist_D0 =
findHist(
"PhysicsObjectsMiraBelle/hist_D0");
97 TH1* hist_Z0 =
findHist(
"PhysicsObjectsMiraBelle/hist_Z0");
98 TH1* hist_theta =
findHist(
"PhysicsObjectsMiraBelle/hist_theta");
99 TH1* hist_Phi0 =
findHist(
"PhysicsObjectsMiraBelle/hist_Phi0");
100 TH1* hist_Pt =
findHist(
"PhysicsObjectsMiraBelle/hist_Pt");
101 TH1* hist_Mom =
findHist(
"PhysicsObjectsMiraBelle/hist_Mom");
102 TH1* hist_klmTotalBarrelHits =
findHist(
"PhysicsObjectsMiraBelle/hist_klmTotalBarrelHits");
103 TH1* hist_klmTotalEndcapHits =
findHist(
"PhysicsObjectsMiraBelle/hist_klmTotalEndcapHits");
104 TH1* hist_dPhicms =
findHist(
"PhysicsObjectsMiraBelle/hist_dPhicms");
117 mumu_main->cd(9); hist_DetPhotonARICH->Draw();
118 mumu_main->cd(10); hist_klmClusterLayers->Draw();
119 mumu_main->cd(11); hist_nExtraCDCHits->Draw();
120 mumu_main->cd(12); hist_nECLClusters->Draw();
139 float mean_npxd = hist_npxd->GetMean();
140 float mean_nsvd = hist_nsvd->GetMean();
141 float mean_ncdc = hist_ncdc->GetMean();
142 float mean_nklmlayer = hist_klmClusterLayers->GetMean();
143 float mean_nklm = hist_klmTotalHits->GetMean();
144 float mean_nbklm = hist_klmTotalBarrelHits->GetMean();
145 float mean_neklm = hist_klmTotalEndcapHits->GetMean();
146 float mean_topdig = hist_topdig->GetMean();
147 float mean_parich = hist_DetPhotonARICH->GetMean();
148 float mean_ncdc_ex = hist_nExtraCDCHits->GetMean();
149 float mean_necl = hist_nECLClusters->GetMean();
150 float mean_muid = hist_muid->GetMean();
151 float mean_d0 = hist_D0->GetMean();
152 float mean_z0 = hist_Z0->GetMean();
153 float mean_pval = hist_Pval->GetMean();
154 float mean_ndf = hist_ndf->GetMean();
155 float dif_ndf_ncdc = mean_ndf - mean_ncdc;
156 float mean_dd0 = hist_dD0->GetMean();
157 float mean_dz0 = hist_dZ0->GetMean();
158 float mean_dpt = hist_dPtcms->GetMean();
159 float rms_dd0 = hist_dD0->GetRMS();
160 float rms_dz0 = hist_dZ0->GetRMS();
161 float rms_dpt = hist_dPtcms->GetRMS();
165 int ntot = hist_nsvd->GetEntries();
166 float neve_mumu = ntot;
167 float goodmu_frac = hist_muid->GetBinContent(20) / (float)ntot;
168 float goodmu_o_badmu = hist_muid->GetBinContent(20) / (float)hist_muid->GetBinContent(1);
169 float pval_more95 = 0;
170 float pval_less05 = 0;
171 for (
int i = 95; i < 100; i++) pval_more95 += hist_Pval->GetBinContent(i + 1);
172 for (
int i = 0; i < 5; i++) pval_less05 += hist_Pval->GetBinContent(i + 1);
173 float pval_frac_0 = pval_less05 / (float)ntot;
174 float pval_frac_1 = pval_more95 / (float)ntot;
175 float nocdc_frac = hist_ncdc->GetBinContent(1) / (float)ntot;
176 float notop_frac = hist_topdig->GetBinContent(1) / (float)ntot;
177 float noarich_frac = hist_DetPhotonARICH->GetBinContent(1) / (float)ntot;
179 float peak_mumu = hist_inv_p->GetXaxis()->GetBinCenter(hist_inv_p->GetMaximumBin());
180 TF1* f_mumuInvM =
new TF1(
"f_mumuInvM",
"gaus", peak_mumu - 0.04, peak_mumu + 0.04);
181 f_mumuInvM->SetParameters(hist_inv_p->GetMaximum(), peak_mumu, 0.045);
182 f_mumuInvM->SetParLimits(1, peak_mumu - 0.04, peak_mumu + 0.04);
183 f_mumuInvM->SetParLimits(2, 0.01, 0.06);
184 hist_inv_p->Fit(f_mumuInvM,
"R");
185 float fit_mumumass = f_mumuInvM->GetParameter(1);
186 if (fit_mumumass < 9) fit_mumumass = 9;
187 if (fit_mumumass > 12) fit_mumumass = 12;
228 TH1* hist_D0_InvM =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_InvM");
229 TH1* hist_delta_m =
findHist(
"PhysicsObjectsMiraBelleDst/hist_delta_m");
230 TH1* hist_D0_softpi_PID_ALL_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_softpi_PID_ALL_pion");
231 TH1* hist_D0_softpi_PID_SVD_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_softpi_PID_SVD_pion");
232 TH1* hist_D0_softpi_PID_CDC_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_softpi_PID_CDC_pion");
233 TH1* hist_D0_softpi_PID_TOP_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_softpi_PID_TOP_pion");
234 TH1* hist_D0_softpi_PID_ARICH_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_softpi_PID_ARICH_pion");
235 TH1* hist_D0_softpi_PID_ECL_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_softpi_PID_ECL_pion");
236 TH1* hist_D0_softpi_PID_KLM_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_softpi_PID_KLM_pion");
237 TH1* hist_D0_pi_PID_ALL_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_pi_PID_ALL_pion");
238 TH1* hist_D0_pi_PID_SVD_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_pi_PID_SVD_pion");
239 TH1* hist_D0_pi_PID_CDC_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_pi_PID_CDC_pion");
240 TH1* hist_D0_pi_PID_TOP_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_pi_PID_TOP_pion");
241 TH1* hist_D0_pi_PID_ARICH_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_pi_PID_ARICH_pion");
242 TH1* hist_D0_pi_PID_ECL_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_pi_PID_ECL_pion");
243 TH1* hist_D0_pi_PID_KLM_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_pi_PID_KLM_pion");
244 TH1* hist_D0_K_PID_ALL_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_K_PID_ALL_kaon");
245 TH1* hist_D0_K_PID_SVD_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_K_PID_SVD_kaon");
246 TH1* hist_D0_K_PID_CDC_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_K_PID_CDC_kaon");
247 TH1* hist_D0_K_PID_TOP_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_K_PID_TOP_kaon");
248 TH1* hist_D0_K_PID_ARICH_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_K_PID_ARICH_kaon");
249 TH1* hist_D0_K_PID_ECL_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_K_PID_ECL_kaon");
250 TH1* hist_D0_K_PID_KLM_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_D0_K_PID_KLM_kaon");
251 TH1* hist_sideband_D0_softpi_PID_ALL_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_softpi_PID_ALL_pion");
252 TH1* hist_sideband_D0_softpi_PID_SVD_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_softpi_PID_SVD_pion");
253 TH1* hist_sideband_D0_softpi_PID_CDC_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_softpi_PID_CDC_pion");
254 TH1* hist_sideband_D0_softpi_PID_TOP_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_softpi_PID_TOP_pion");
255 TH1* hist_sideband_D0_softpi_PID_ARICH_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_softpi_PID_ARICH_pion");
256 TH1* hist_sideband_D0_softpi_PID_ECL_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_softpi_PID_ECL_pion");
257 TH1* hist_sideband_D0_softpi_PID_KLM_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_softpi_PID_KLM_pion");
258 TH1* hist_sideband_D0_pi_PID_ALL_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_pi_PID_ALL_pion");
259 TH1* hist_sideband_D0_pi_PID_SVD_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_pi_PID_SVD_pion");
260 TH1* hist_sideband_D0_pi_PID_CDC_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_pi_PID_CDC_pion");
261 TH1* hist_sideband_D0_pi_PID_TOP_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_pi_PID_TOP_pion");
262 TH1* hist_sideband_D0_pi_PID_ARICH_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_pi_PID_ARICH_pion");
263 TH1* hist_sideband_D0_pi_PID_ECL_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_pi_PID_ECL_pion");
264 TH1* hist_sideband_D0_pi_PID_KLM_pion =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_pi_PID_KLM_pion");
265 TH1* hist_sideband_D0_K_PID_ALL_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_K_PID_ALL_kaon");
266 TH1* hist_sideband_D0_K_PID_SVD_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_K_PID_SVD_kaon");
267 TH1* hist_sideband_D0_K_PID_CDC_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_K_PID_CDC_kaon");
268 TH1* hist_sideband_D0_K_PID_TOP_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_K_PID_TOP_kaon");
269 TH1* hist_sideband_D0_K_PID_ARICH_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_K_PID_ARICH_kaon");
270 TH1* hist_sideband_D0_K_PID_ECL_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_K_PID_ECL_kaon");
271 TH1* hist_sideband_D0_K_PID_KLM_kaon =
findHist(
"PhysicsObjectsMiraBelleDst/hist_sideband_D0_K_PID_KLM_kaon");
272 TH1* hist_D0_pi0_InvM =
findHist(
"PhysicsObjectsMiraBelleDst2/hist_D0_pi0_InvM");
275 TF1* f_InvM =
new TF1(
"f_InvM",
"[0]*TMath::Gaus(x,[1],[2])+[3]*pow(x-[4],2)+[5]", 1.81, 1.95);
276 f_InvM->SetParNames(
"Height",
"#mu",
"#sigma",
"a",
"b",
"c");
277 f_InvM->SetParameters(hist_D0_InvM->GetMaximum(), 1.86, 5e-3, 0., 1.86, 0.);
278 hist_D0_InvM->Fit(f_InvM,
"",
"", 1.81, 1.95);
279 f_InvM->SetLineColor(kRed);
281 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);
282 f_delta_m->SetParNames(
"Height",
"#mu",
"#sigma",
"a",
"b",
"c");
283 f_delta_m->SetParameters(hist_delta_m->GetMaximum(), 0.145, 5e-4, 0., 0.145, 0.);
284 hist_delta_m->Fit(f_delta_m,
"",
"", 0.14, 0.16);
285 f_delta_m->SetLineColor(kRed);
287 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);
288 f_pi0_InvM->SetParNames(
"Height",
"#mu",
"#sigma",
"a",
"b",
"c");
289 f_pi0_InvM->SetParameters(hist_D0_pi0_InvM->GetMaximum(), 0.13, 5e-3, 0., 0.13, 0.);
290 hist_D0_pi0_InvM->Fit(f_pi0_InvM,
"",
"", 0.09, 0.17);
291 f_pi0_InvM->SetLineColor(kRed);
294 TF1* f_gaus_InvM =
new TF1(
"f_gaus_InvM",
"gaus", 1.81, 1.95);
295 f_gaus_InvM->SetParameters(f_InvM->GetParameter(0), f_InvM->GetParameter(1), f_InvM->GetParameter(2));
296 float InvM_bin_width = hist_D0_InvM->GetXaxis()->GetBinWidth(1);
297 float neve_dst = f_gaus_InvM->Integral(1.81, 1.95) / InvM_bin_width;
299 TF1* f_gaus_pi0_InvM =
new TF1(
"f_gaus_pi0_InvM",
"gaus", 0.09, 0.17);
300 f_gaus_pi0_InvM->SetParameters(f_pi0_InvM->GetParameter(0), f_pi0_InvM->GetParameter(1), f_pi0_InvM->GetParameter(2));
301 float pi0_InvM_bin_width = hist_D0_pi0_InvM->GetXaxis()->GetBinWidth(1);
302 float neve_pi0 = f_gaus_pi0_InvM->Integral(0.09, 0.17) / pi0_InvM_bin_width;
305 hist_D0_softpi_PID_ALL_pion->Sumw2();
306 hist_D0_softpi_PID_SVD_pion->Sumw2();
307 hist_D0_softpi_PID_CDC_pion->Sumw2();
308 hist_D0_softpi_PID_TOP_pion->Sumw2();
309 hist_D0_softpi_PID_ARICH_pion->Sumw2();
310 hist_D0_softpi_PID_ECL_pion->Sumw2();
311 hist_D0_softpi_PID_KLM_pion->Sumw2();
312 hist_D0_pi_PID_ALL_pion->Sumw2();
313 hist_D0_pi_PID_SVD_pion->Sumw2();
314 hist_D0_pi_PID_CDC_pion->Sumw2();
315 hist_D0_pi_PID_TOP_pion->Sumw2();
316 hist_D0_pi_PID_ARICH_pion->Sumw2();
317 hist_D0_pi_PID_ECL_pion->Sumw2();
318 hist_D0_pi_PID_KLM_pion->Sumw2();
319 hist_D0_K_PID_ALL_kaon->Sumw2();
320 hist_D0_K_PID_SVD_kaon->Sumw2();
321 hist_D0_K_PID_CDC_kaon->Sumw2();
322 hist_D0_K_PID_TOP_kaon->Sumw2();
323 hist_D0_K_PID_ARICH_kaon->Sumw2();
324 hist_D0_K_PID_ECL_kaon->Sumw2();
325 hist_D0_K_PID_KLM_kaon->Sumw2();
326 hist_sideband_D0_softpi_PID_ALL_pion->Sumw2();
327 hist_sideband_D0_softpi_PID_SVD_pion->Sumw2();
328 hist_sideband_D0_softpi_PID_CDC_pion->Sumw2();
329 hist_sideband_D0_softpi_PID_TOP_pion->Sumw2();
330 hist_sideband_D0_softpi_PID_ARICH_pion->Sumw2();
331 hist_sideband_D0_softpi_PID_ECL_pion->Sumw2();
332 hist_sideband_D0_softpi_PID_KLM_pion->Sumw2();
333 hist_sideband_D0_pi_PID_ALL_pion->Sumw2();
334 hist_sideband_D0_pi_PID_SVD_pion->Sumw2();
335 hist_sideband_D0_pi_PID_CDC_pion->Sumw2();
336 hist_sideband_D0_pi_PID_TOP_pion->Sumw2();
337 hist_sideband_D0_pi_PID_ARICH_pion->Sumw2();
338 hist_sideband_D0_pi_PID_ECL_pion->Sumw2();
339 hist_sideband_D0_pi_PID_KLM_pion->Sumw2();
340 hist_sideband_D0_K_PID_ALL_kaon->Sumw2();
341 hist_sideband_D0_K_PID_SVD_kaon->Sumw2();
342 hist_sideband_D0_K_PID_CDC_kaon->Sumw2();
343 hist_sideband_D0_K_PID_TOP_kaon->Sumw2();
344 hist_sideband_D0_K_PID_ARICH_kaon->Sumw2();
345 hist_sideband_D0_K_PID_ECL_kaon->Sumw2();
346 hist_sideband_D0_K_PID_KLM_kaon->Sumw2();
349 hist_sideband_D0_softpi_PID_ALL_pion->Scale(
m_scale_dst);
350 hist_sideband_D0_softpi_PID_SVD_pion->Scale(
m_scale_dst);
351 hist_sideband_D0_softpi_PID_CDC_pion->Scale(
m_scale_dst);
352 hist_sideband_D0_softpi_PID_TOP_pion->Scale(
m_scale_dst);
353 hist_sideband_D0_softpi_PID_ARICH_pion->Scale(
m_scale_dst);
354 hist_sideband_D0_softpi_PID_ECL_pion->Scale(
m_scale_dst);
355 hist_sideband_D0_softpi_PID_KLM_pion->Scale(
m_scale_dst);
356 hist_sideband_D0_pi_PID_ALL_pion->Scale(
m_scale_dst);
357 hist_sideband_D0_pi_PID_SVD_pion->Scale(
m_scale_dst);
358 hist_sideband_D0_pi_PID_CDC_pion->Scale(
m_scale_dst);
359 hist_sideband_D0_pi_PID_TOP_pion->Scale(
m_scale_dst);
360 hist_sideband_D0_pi_PID_ARICH_pion->Scale(
m_scale_dst);
361 hist_sideband_D0_pi_PID_ECL_pion->Scale(
m_scale_dst);
362 hist_sideband_D0_pi_PID_KLM_pion->Scale(
m_scale_dst);
363 hist_sideband_D0_K_PID_ALL_kaon->Scale(
m_scale_dst);
364 hist_sideband_D0_K_PID_SVD_kaon->Scale(
m_scale_dst);
365 hist_sideband_D0_K_PID_CDC_kaon->Scale(
m_scale_dst);
366 hist_sideband_D0_K_PID_TOP_kaon->Scale(
m_scale_dst);
367 hist_sideband_D0_K_PID_ARICH_kaon->Scale(
m_scale_dst);
368 hist_sideband_D0_K_PID_ECL_kaon->Scale(
m_scale_dst);
369 hist_sideband_D0_K_PID_KLM_kaon->Scale(
m_scale_dst);
372 hist_D0_softpi_PID_ALL_pion->Add(hist_sideband_D0_softpi_PID_ALL_pion, -1);
373 hist_D0_softpi_PID_SVD_pion->Add(hist_sideband_D0_softpi_PID_SVD_pion, -1);
374 hist_D0_softpi_PID_CDC_pion->Add(hist_sideband_D0_softpi_PID_CDC_pion, -1);
375 hist_D0_softpi_PID_TOP_pion->Add(hist_sideband_D0_softpi_PID_TOP_pion, -1);
376 hist_D0_softpi_PID_ARICH_pion->Add(hist_sideband_D0_softpi_PID_ARICH_pion, -1);
377 hist_D0_softpi_PID_ECL_pion->Add(hist_sideband_D0_softpi_PID_ECL_pion, -1);
378 hist_D0_softpi_PID_KLM_pion->Add(hist_sideband_D0_softpi_PID_KLM_pion, -1);
379 hist_D0_pi_PID_ALL_pion->Add(hist_sideband_D0_pi_PID_ALL_pion, -1);
380 hist_D0_pi_PID_SVD_pion->Add(hist_sideband_D0_pi_PID_SVD_pion, -1);
381 hist_D0_pi_PID_CDC_pion->Add(hist_sideband_D0_pi_PID_CDC_pion, -1);
382 hist_D0_pi_PID_TOP_pion->Add(hist_sideband_D0_pi_PID_TOP_pion, -1);
383 hist_D0_pi_PID_ARICH_pion->Add(hist_sideband_D0_pi_PID_ARICH_pion, -1);
384 hist_D0_pi_PID_ECL_pion->Add(hist_sideband_D0_pi_PID_ECL_pion, -1);
385 hist_D0_pi_PID_KLM_pion->Add(hist_sideband_D0_pi_PID_KLM_pion, -1);
386 hist_D0_K_PID_ALL_kaon->Add(hist_sideband_D0_K_PID_ALL_kaon, -1);
387 hist_D0_K_PID_SVD_kaon->Add(hist_sideband_D0_K_PID_SVD_kaon, -1);
388 hist_D0_K_PID_CDC_kaon->Add(hist_sideband_D0_K_PID_CDC_kaon, -1);
389 hist_D0_K_PID_TOP_kaon->Add(hist_sideband_D0_K_PID_TOP_kaon, -1);
390 hist_D0_K_PID_ARICH_kaon->Add(hist_sideband_D0_K_PID_ARICH_kaon, -1);
391 hist_D0_K_PID_ECL_kaon->Add(hist_sideband_D0_K_PID_ECL_kaon, -1);
392 hist_D0_K_PID_KLM_kaon->Add(hist_sideband_D0_K_PID_KLM_kaon, -1);
398 hist_D0_InvM->Draw();
399 f_InvM->Draw(
"SAME");
401 hist_delta_m->Draw();
402 f_delta_m->Draw(
"SAME");
404 hist_D0_pi0_InvM->Draw();
405 f_pi0_InvM->Draw(
"SAME");
408 dst_pi_val->cd(1); hist_D0_pi_PID_ALL_pion->Draw();
409 dst_pi_val->cd(2); hist_D0_pi_PID_SVD_pion->Draw();
410 dst_pi_val->cd(3); hist_D0_pi_PID_CDC_pion->Draw();
411 dst_pi_val->cd(4); hist_D0_pi_PID_TOP_pion->Draw();
412 dst_pi_val->cd(5); hist_D0_pi_PID_ARICH_pion->Draw();
413 dst_pi_val->cd(6); hist_D0_pi_PID_ECL_pion->Draw();
414 dst_pi_val->cd(7); hist_D0_pi_PID_KLM_pion->Draw();
417 dst_k_val->cd(1); hist_D0_K_PID_ALL_kaon->Draw();
418 dst_k_val->cd(2); hist_D0_K_PID_SVD_kaon->Draw();
419 dst_k_val->cd(3); hist_D0_K_PID_CDC_kaon->Draw();
420 dst_k_val->cd(4); hist_D0_K_PID_TOP_kaon->Draw();
421 dst_k_val->cd(5); hist_D0_K_PID_ARICH_kaon->Draw();
422 dst_k_val->cd(6); hist_D0_K_PID_ECL_kaon->Draw();
423 dst_k_val->cd(7); hist_D0_K_PID_KLM_kaon->Draw();
426 float mean_D0_InvM = f_InvM->GetParameter(1);
427 float width_D0_InvM = f_InvM->GetParameter(2);
428 float mean_delta_m = f_delta_m->GetParameter(1);
429 float width_delta_m = f_delta_m->GetParameter(2);
430 float mean_pi0_InvM = f_pi0_InvM->GetParameter(1);
431 float width_pi0_InvM = f_pi0_InvM->GetParameter(2);
432 float mean_D0_softpi_PID_ALL_pion = hist_D0_softpi_PID_ALL_pion->GetMean();
433 float mean_D0_softpi_PID_SVD_pion = hist_D0_softpi_PID_SVD_pion->GetMean();
434 float mean_D0_softpi_PID_CDC_pion = hist_D0_softpi_PID_CDC_pion->GetMean();
435 float mean_D0_softpi_PID_TOP_pion = hist_D0_softpi_PID_TOP_pion->GetMean();
436 float mean_D0_softpi_PID_ARICH_pion = hist_D0_softpi_PID_ARICH_pion->GetMean();
437 float mean_D0_softpi_PID_ECL_pion = hist_D0_softpi_PID_ECL_pion->GetMean();
438 float mean_D0_softpi_PID_KLM_pion = hist_D0_softpi_PID_KLM_pion->GetMean();
439 float mean_D0_pi_PID_ALL_pion = hist_D0_pi_PID_ALL_pion->GetMean();
440 float mean_D0_pi_PID_SVD_pion = hist_D0_pi_PID_SVD_pion->GetMean();
441 float mean_D0_pi_PID_CDC_pion = hist_D0_pi_PID_CDC_pion->GetMean();
442 float mean_D0_pi_PID_TOP_pion = hist_D0_pi_PID_TOP_pion->GetMean();
443 float mean_D0_pi_PID_ARICH_pion = hist_D0_pi_PID_ARICH_pion->GetMean();
444 float mean_D0_pi_PID_ECL_pion = hist_D0_pi_PID_ECL_pion->GetMean();
445 float mean_D0_pi_PID_KLM_pion = hist_D0_pi_PID_KLM_pion->GetMean();
446 float mean_D0_K_PID_ALL_kaon = hist_D0_K_PID_ALL_kaon->GetMean();
447 float mean_D0_K_PID_SVD_kaon = hist_D0_K_PID_SVD_kaon->GetMean();
448 float mean_D0_K_PID_CDC_kaon = hist_D0_K_PID_CDC_kaon->GetMean();
449 float mean_D0_K_PID_TOP_kaon = hist_D0_K_PID_TOP_kaon->GetMean();
450 float mean_D0_K_PID_ARICH_kaon = hist_D0_K_PID_ARICH_kaon->GetMean();
451 float mean_D0_K_PID_ECL_kaon = hist_D0_K_PID_ECL_kaon->GetMean();
452 float mean_D0_K_PID_KLM_kaon = hist_D0_K_PID_KLM_kaon->GetMean();
486 B2DEBUG(20,
"DQMHistAnalysisMiraBelle : endRun called");
492 B2DEBUG(20,
"terminate called");
TCanvas * dst_k_val
TCanvas object for PID distributions of K.
void initialize() override final
Initialize the Module.
bool m_enableAlert
Enable alert by base color of canvases.
~DQMHistAnalysisMiraBelleModule()
Destructor.
TCanvas * mumu_resolution
TCanvas object for resolution display.
void terminate() override final
Termination action.
TCanvas * dst_pi_val
TCanvas object for PID distributions of pi.
Belle2::MonitoringObject * mon_dst
MonitoringObject for D* events.
void event() override final
Event processor.
TCanvas * mumu_main
TCanvas object for main display.
TCanvas * mumu_muon_val
TCanvas object for mumu values display.
Belle2::MonitoringObject * mon_mumu
MonitoringObject for mumu events.
void endRun() override final
End-of-run action.
TCanvas * dst_mass
TCanvas object for D0 mass, delta mass, and pi0 mass.
double m_scale_dst
Scale factor "signal region" / "sideband", assuming uniform events.
void beginRun() override final
Called when entering a new run.
The base class for the histogram analysis module.
static TH1 * findHist(const std::string &histname, bool onlyIfUpdated=false)
Get histogram from list (no other search).
double getSigma68(TH1 *h) const
Helper function to compute half of the central interval covering 68% of a distribution.
static MonitoringObject * getMonitoringObject(const std::string &histname)
Get MonitoringObject with given name (new object is created if non-existing)
void setDescription(const std::string &description)
Sets the description of the module.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
void setVariable(const std::string &var, float val, float upErr=-1., float dwErr=-1)
set value to float variable (new variable is made if not yet existing)
void addCanvas(TCanvas *canv)
Add Canvas to monitoring object.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.