ROOT Analysis for the Inclusive Detachted Dilepton Trigger Lines
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

381 lines
16 KiB

  1. #include "TH1D.h"
  2. #include "TH2D.h"
  3. #include "THStack.h"
  4. #include "TGraph.h"
  5. #include "TTree.h"
  6. #include "TChain.h"
  7. #include "TFile.h"
  8. #include "TCanvas.h"
  9. #include "TROOT.h"
  10. #include "TStyle.h"
  11. #include "TColor.h"
  12. #include "TLorentzVector.h"
  13. #include "TRandom3.h"
  14. #include "TLegend.h"
  15. #include "TLatex.h"
  16. #include "RooDataHist.h"
  17. #include "RooRealVar.h"
  18. #include "RooPlot.h"
  19. #include "RooGaussian.h"
  20. #include "RooExponential.h"
  21. #include "RooRealConstant.h"
  22. #include "RooAddPdf.h"
  23. #include "RooFitResult.h"
  24. #include "RooProduct.h"
  25. #include "RooCrystalBall.h"
  26. #include "RooBreitWigner.h"
  27. #include "RooArgSet.h"
  28. #include "RooFFTConvPdf.h"
  29. #include "RooNovosibirsk.h"
  30. #include <string>
  31. #include <iostream>
  32. #include <cmath>
  33. const int nBins = 70;
  34. const Double_t MASS_HIST_MIN = 5100.;
  35. const Double_t MASS_HIST_MAX = 5700.;
  36. const Double_t MASS_HIST_FIT_MIN = 5100.;
  37. const Double_t MASS_HIST_FIT_MAX = 5700.;
  38. const char *TITLE = "SpruceRD_B0ToHpHmMuMu (#pi^{-} #rightarrow K^{-})";
  39. const char *FILE_NAME = "SpruceRD_B0ToHpHmMuMu_Pim2Km";
  40. const char *MASS_LITERAL = "m(#pi^{+}#pi^{-}_{(#rightarrow K^{-})}#mu^{+}#mu^{-})";
  41. const Double_t K_MASS = 493.677;
  42. const Double_t PSI2S_MASS = 3686.093;
  43. const Double_t JPSI_MASS = 3096.9;
  44. const Double_t KSTAR_MASS = 891.76;
  45. struct EventOccurance {
  46. int occurances;
  47. double initialCalcP;
  48. double initialFileP;
  49. };
  50. void CreateRooFitAndDraw(TH1D *hist);
  51. int analysis_fullstream_b02hphmmumu()
  52. {
  53. TChain *data_chain = new TChain("B0ToHpHmMuMu/DecayTree");
  54. data_chain->Add("/auto/data/pfeiffer/inclusive_detached_dilepton/data_samples/spruce_magdown_2023_v0r1_tuple_90000000_2023_v0r0p6288631.root");
  55. data_chain->Add("/auto/data/pfeiffer/inclusive_detached_dilepton/data_samples/spruce_magdown_2023_v0_tuple_90000000_v0r0p6288631.root");
  56. Float_t B0_BPVFDCHI2,
  57. B0_BPVIPCHI2,
  58. L1_BPVIPCHI2,
  59. L2_BPVIPCHI2,
  60. L1_PT,
  61. L2_PT,
  62. Jpsi_BPVFDCHI2,
  63. Hp_PT,
  64. Hp_BPVIPCHI2,
  65. Hp_P,
  66. Hm_PT,
  67. Hm_BPVIPCHI2,
  68. Hm_P,
  69. Res_PT,
  70. Res_BPVIPCHI2,
  71. Res_P,
  72. B0_P;
  73. Double_t L1_PID_MU,
  74. L2_PID_MU,
  75. B0_CHI2VXNDOF,
  76. Jpsi_MAXDOCACHI2,
  77. Jpsi_CHI2DOF,
  78. Res_CHI2DOF,
  79. Hp_PID_K,
  80. Hm_PID_K,
  81. Jpsi_M,
  82. B0_M,
  83. Res_MAXDOCACHI2,
  84. Res_M;
  85. Bool_t L1_ISMUON,
  86. L2_ISMUON,
  87. Hlt2RD_B0ToKpPimMuMuDecision,
  88. Hlt2_InclDetDiMuon_4BodyDecision,
  89. Hlt2_InclDetDiMuon_3BodyDecision,
  90. Hlt2_InclDetDiMuonDecision,
  91. Hlt1TrackMVADecision,
  92. Hlt1TwoTrackMVADecision;
  93. UInt_t runNumber;
  94. ULong64_t eventNumber;
  95. data_chain->SetBranchAddress("RUNNUMBER", &runNumber);
  96. data_chain->SetBranchAddress("EVENTNUMBER", &eventNumber);
  97. data_chain->SetBranchAddress("B0_M", &B0_M);
  98. data_chain->SetBranchAddress("B0_P", &B0_P);
  99. data_chain->SetBranchAddress("B0_BPVFDCHI2", &B0_BPVFDCHI2);
  100. data_chain->SetBranchAddress("B0_BPVIPCHI2", &B0_BPVIPCHI2);
  101. data_chain->SetBranchAddress("L1_BPVIPCHI2", &L1_BPVIPCHI2);
  102. data_chain->SetBranchAddress("L2_BPVIPCHI2", &L2_BPVIPCHI2);
  103. data_chain->SetBranchAddress("L1_PID_MU", &L1_PID_MU);
  104. data_chain->SetBranchAddress("L2_PID_MU", &L2_PID_MU);
  105. data_chain->SetBranchAddress("L1_ISMUON", &L1_ISMUON);
  106. data_chain->SetBranchAddress("L2_ISMUON", &L2_ISMUON);
  107. data_chain->SetBranchAddress("L1_PT", &L1_PT);
  108. data_chain->SetBranchAddress("L2_PT", &L2_PT);
  109. data_chain->SetBranchAddress("B0_CHI2VXNDOF", &B0_CHI2VXNDOF);
  110. data_chain->SetBranchAddress("Jpsi_MAXDOCACHI2", &Jpsi_MAXDOCACHI2);
  111. data_chain->SetBranchAddress("Jpsi_CHI2DOF", &Jpsi_CHI2DOF);
  112. data_chain->SetBranchAddress("Res_CHI2DOF", &Res_CHI2DOF);
  113. data_chain->SetBranchAddress("Hp_PT", &Hp_PT);
  114. data_chain->SetBranchAddress("Hp_BPVIPCHI2", &Hp_BPVIPCHI2);
  115. data_chain->SetBranchAddress("Hp_P", &Hp_P);
  116. data_chain->SetBranchAddress("Hp_PID_K", &Hp_PID_K);
  117. data_chain->SetBranchAddress("Hm_PT", &Hm_PT);
  118. data_chain->SetBranchAddress("Hm_BPVIPCHI2", &Hm_BPVIPCHI2);
  119. data_chain->SetBranchAddress("Hm_P", &Hm_P);
  120. data_chain->SetBranchAddress("Hm_PID_K", &Hm_PID_K);
  121. data_chain->SetBranchAddress("Res_PT", &Res_PT);
  122. data_chain->SetBranchAddress("Res_BPVIPCHI2", &Res_BPVIPCHI2);
  123. data_chain->SetBranchAddress("Res_P", &Res_P);
  124. data_chain->SetBranchAddress("Res_MAXDOCACHI2", &Res_MAXDOCACHI2);
  125. data_chain->SetBranchAddress("Res_M", &Res_M);
  126. data_chain->SetBranchAddress("Jpsi_BPVFDCHI2", &Jpsi_BPVFDCHI2);
  127. data_chain->SetBranchAddress("Jpsi_M", &Jpsi_M);
  128. data_chain->SetBranchAddress("Hlt2RD_B0ToKpPimMuMuDecision", &Hlt2RD_B0ToKpPimMuMuDecision);
  129. data_chain->SetBranchAddress("Hlt2_InclDetDiMuon_4BodyDecision", &Hlt2_InclDetDiMuon_4BodyDecision);
  130. data_chain->SetBranchAddress("Hlt2_InclDetDiMuon_3BodyDecision", &Hlt2_InclDetDiMuon_3BodyDecision);
  131. data_chain->SetBranchAddress("Hlt2_InclDetDiMuonDecision", &Hlt2_InclDetDiMuonDecision);
  132. data_chain->SetBranchAddress("Hlt1TrackMVADecision", &Hlt1TrackMVADecision);
  133. data_chain->SetBranchAddress("Hlt1TwoTrackMVADecision", &Hlt1TwoTrackMVADecision);
  134. Float_t
  135. L1_PX,
  136. L1_PY, L1_PZ, L1_ENERGY,
  137. L2_PX, L2_PY, L2_PZ, L2_ENERGY,
  138. Hp_PX, Hp_PY, Hp_PZ, Hp_ENERGY,
  139. Hm_PX, Hm_PY, Hm_PZ, Hm_ENERGY;
  140. data_chain->SetBranchAddress("L1_PX", &L1_PX);
  141. data_chain->SetBranchAddress("L1_PY", &L1_PY);
  142. data_chain->SetBranchAddress("L1_PZ", &L1_PZ);
  143. data_chain->SetBranchAddress("L1_ENERGY", &L1_ENERGY);
  144. data_chain->SetBranchAddress("L2_PX", &L2_PX);
  145. data_chain->SetBranchAddress("L2_PY", &L2_PY);
  146. data_chain->SetBranchAddress("L2_PZ", &L2_PZ);
  147. data_chain->SetBranchAddress("L2_ENERGY", &L2_ENERGY);
  148. data_chain->SetBranchAddress("Hp_PX", &Hp_PX);
  149. data_chain->SetBranchAddress("Hp_PY", &Hp_PY);
  150. data_chain->SetBranchAddress("Hp_PZ", &Hp_PZ);
  151. data_chain->SetBranchAddress("Hp_ENERGY", &Hp_ENERGY);
  152. data_chain->SetBranchAddress("Hm_PX", &Hm_PX);
  153. data_chain->SetBranchAddress("Hm_PY", &Hm_PY);
  154. data_chain->SetBranchAddress("Hm_PZ", &Hm_PZ);
  155. data_chain->SetBranchAddress("Hm_ENERGY", &Hm_ENERGY);
  156. TH1D *h1_B0_M_jpsi = new TH1D("h1_B0_M_jpsi", TString::Format("%s (J/#psi)", TITLE), nBins, MASS_HIST_MIN, MASS_HIST_MAX);
  157. TH1D *h1_B0_M_jpsi_dupl = new TH1D("h1_B0_M_jpsi_dupl", TString::Format("%s (J/#psi)", TITLE), nBins, MASS_HIST_MIN, MASS_HIST_MAX);
  158. TH1D *h1_B0_M_psi2s = new TH1D("h1_B0_M_psi2s", TString::Format("%s (#psi(2S))", TITLE), nBins, MASS_HIST_MIN, MASS_HIST_MAX);
  159. TH1D *h1_Res_M = new TH1D("h1_Res_M", "K^{*0} Mass", nBins, 0., 3500.);
  160. TH1D *h1_Hm_PID_K = new TH1D("h1_Hm_PID_K", "H^{-} PID K", nBins, -10., 10.);
  161. TH1D *h1_Hp_PID_K = new TH1D("h1_Hp_PID_K", "H^{+} PID K", nBins, -10., 10.);
  162. std::map<std::pair<unsigned int, unsigned long>, EventOccurance> run_event_num_dict;
  163. unsigned int entries = data_chain->GetEntries();
  164. std::cout << "#### Total Entries From Files: " << entries << std::endl;
  165. unsigned int fitting_entries = 0;
  166. for (unsigned int i = 0; i < entries; i++)
  167. {
  168. data_chain->GetEntry(i);
  169. TLorentzVector l1_4v(L1_PX, L1_PY, L1_PZ, L1_ENERGY);
  170. TLorentzVector l2_4v(L2_PX, L2_PY, L2_PZ, L2_ENERGY);
  171. // Pi+ -> K+
  172. TVector3 Kp_momentum(Hp_PX, Hp_PY, Hp_PZ);
  173. double Kp_energy = TMath::Sqrt(TMath::Sq(K_MASS) + Kp_momentum.Mag2());
  174. TLorentzVector Pim_4v(Hm_PX, Hm_PY, Hm_PZ, Hm_ENERGY);
  175. TLorentzVector Kp_4v(Kp_momentum, Kp_energy);
  176. Double_t reconstructed_Kp_Pim_Mass = (Kp_4v + Pim_4v).M();
  177. Double_t reconstructed_B0_Kp_Pim_Mass = (Kp_4v + Pim_4v + l1_4v + l2_4v).M();
  178. // Pi- -> K-
  179. TVector3 Km_momentum(Hm_PX, Hm_PY, Hm_PZ);
  180. double Km_energy = TMath::Sqrt(TMath::Sq(K_MASS) + Km_momentum.Mag2());
  181. TLorentzVector Pip_4v(Hp_PX, Hp_PY, Hp_PZ, Hp_ENERGY);
  182. TLorentzVector Km_4v(Km_momentum, Km_energy);
  183. Double_t reconstructed_Km_Pip_Mass = (Km_4v + Pip_4v).M();
  184. Double_t reconstructed_B0_Km_Pip_Mass = (Km_4v + Pip_4v + l1_4v + l2_4v).M();
  185. if ((
  186. (B0_BPVFDCHI2 > 64) & (B0_CHI2VXNDOF < 9) & (B0_BPVIPCHI2 < 25) &
  187. //
  188. (Jpsi_MAXDOCACHI2 < 36) &
  189. //
  190. (L1_BPVIPCHI2 > 9) & (L2_BPVIPCHI2 > 9) & (L1_PID_MU > -3) & (L2_PID_MU > -3) & (L1_ISMUON) & (L2_ISMUON) & (L1_PT > 350) & (L2_PT > 350) &
  191. //
  192. (Jpsi_CHI2DOF < 9) & (Jpsi_BPVFDCHI2 > 16) & (Jpsi_M < 5500) &
  193. //
  194. (Res_PT > 400) & (Res_MAXDOCACHI2 < 36) & (reconstructed_Km_Pip_Mass < 2600) & (Res_CHI2DOF < 25) & (Res_BPVIPCHI2 > 4) &
  195. //
  196. (Hm_BPVIPCHI2 > 6) & (Hm_PT > 250) & (Hm_P > 2000) & (Hm_PID_K > 0) &
  197. //
  198. (Hp_BPVIPCHI2 > 6) & (Hp_PT > 250) & (Hp_P > 2000) & (Hp_PID_K < 0)) &
  199. //
  200. (Hlt2RD_B0ToKpPimMuMuDecision) & (((Hlt2_InclDetDiMuon_4BodyDecision) | (Hlt2_InclDetDiMuon_3BodyDecision) | (Hlt2_InclDetDiMuonDecision))))
  201. {
  202. if (TMath::Abs(Jpsi_M - 3096.9) < 100 && ((Hlt1TrackMVADecision) | (Hlt1TwoTrackMVADecision))
  203. && MASS_HIST_FIT_MIN <= reconstructed_B0_Km_Pip_Mass && reconstructed_B0_Km_Pip_Mass <= MASS_HIST_FIT_MAX)
  204. {
  205. auto calcP = (Km_4v.Vect() + Pip_4v.Vect() + l1_4v.Vect() + l2_4v.Vect()).Mag();
  206. // check for unique run/event number
  207. auto run_event_pair = std::make_pair((unsigned int)runNumber, (unsigned long)eventNumber);
  208. EventOccurance &run_event_unique_num = run_event_num_dict[run_event_pair];
  209. if (run_event_unique_num.occurances > 0)
  210. {
  211. std::cout << "R: " << runNumber << " / E: " << eventNumber
  212. << ", P Calc = " << calcP << ", P File = " << B0_P
  213. << " Init: P Calc = " << run_event_unique_num.initialCalcP << " P File = " << run_event_unique_num.initialFileP
  214. << " M = " << reconstructed_B0_Km_Pip_Mass
  215. << std::endl;
  216. run_event_num_dict[run_event_pair] = EventOccurance{run_event_unique_num.occurances + 1, run_event_unique_num.initialCalcP, run_event_unique_num.initialFileP};
  217. h1_B0_M_jpsi_dupl->Fill(reconstructed_B0_Km_Pip_Mass);
  218. }
  219. else
  220. {
  221. run_event_num_dict[run_event_pair] = EventOccurance{1, calcP, B0_P};
  222. h1_B0_M_jpsi->Fill(reconstructed_B0_Km_Pip_Mass);
  223. }
  224. }
  225. }
  226. h1_Hm_PID_K->Fill(Hm_PID_K);
  227. h1_Hp_PID_K->Fill(Hp_PID_K);
  228. if ((i + 1) % 10000 == 0 || i + 1 == entries)
  229. {
  230. std::cout << "["
  231. << FILE_NAME
  232. << "] Processed event: " << i + 1 << " (" << TString::Format("%.2f", ((double)(i + 1) / (double)entries) * 100.) << "%)" << std::endl;
  233. }
  234. }
  235. std::cout << "#### Run/Event Num Dict Size: " << run_event_num_dict.size() << std::endl;
  236. h1_B0_M_jpsi->GetXaxis()->SetTitle(MASS_LITERAL);
  237. h1_B0_M_psi2s->GetXaxis()->SetTitle(MASS_LITERAL);
  238. h1_B0_M_jpsi_dupl->GetXaxis()->SetTitle(MASS_LITERAL);
  239. h1_B0_M_jpsi_dupl->SetLineColor(kRed);
  240. TCanvas *c1 = new TCanvas("c1", "c1", 0, 0, 1600, 600);
  241. c1->Divide(2, 1);
  242. c1->cd(1);
  243. h1_B0_M_jpsi->Draw();
  244. h1_B0_M_jpsi_dupl->Draw("SAME");
  245. c1->cd(2);
  246. h1_B0_M_psi2s->Draw();
  247. c1->Draw();
  248. c1->SaveAs(TString::Format("images/root_hist_%s_bmass.pdf", FILE_NAME).Data());
  249. TCanvas *c2 = new TCanvas("c2", "c2", 0, 0, 800, 600);
  250. h1_Res_M->Draw();
  251. c2->Draw();
  252. TCanvas *c3 = new TCanvas("c3", "c3", 0, 0, 800, 600);
  253. h1_Hm_PID_K->SetStats(0);
  254. h1_Hm_PID_K->SetLineColor(kRed);
  255. h1_Hp_PID_K->SetStats(0);
  256. h1_Hm_PID_K->Draw();
  257. h1_Hp_PID_K->Draw("SAME");
  258. c3->BuildLegend();
  259. c3->Draw();
  260. CreateRooFitAndDraw(h1_B0_M_jpsi);
  261. return 0;
  262. }
  263. void CreateRooFitAndDraw(TH1D *hist)
  264. {
  265. RooRealVar roo_var_mass("var_mass", "B0 Mass Variable", MASS_HIST_FIT_MIN, MASS_HIST_FIT_MAX);
  266. roo_var_mass.setRange("fitting_range", MASS_HIST_FIT_MIN, MASS_HIST_FIT_MAX);
  267. RooDataHist roohist_B0_M("roohist_B0_M", "B0 Mass Histogram", roo_var_mass, RooFit::Import(*hist));
  268. RooPlot *roo_frame_mass = roo_var_mass.frame(RooFit::Title(TITLE));
  269. roohist_B0_M.plotOn(roo_frame_mass, RooFit::Binning(nBins), RooFit::Name("B Mass Distribution"));
  270. roo_frame_mass->GetXaxis()->SetTitle(MASS_LITERAL);
  271. // Crystal Ball for Signal
  272. RooRealVar var_mass_x0("var_mass_x0", "#mu", 5278., 5170., 5500.);
  273. RooRealVar var_mass_sigmaLR("var_mass_sigmaLR", "#sigma_{LR}", 16., 5., 40.);
  274. // Same Variables for Left and Right Tail
  275. // RooRealVar var_mass_alphaL("var_mass_alphaL", "#alpha_{L}", 2., 0., 4.);
  276. // RooRealVar var_mass_nL("var_mass_nL", "n_{L}", 5., 0., 15.);
  277. // RooRealVar var_mass_alphaR("var_mass_alphaR", "#alpha_{R}", 2., 0., 4.);
  278. // RooRealVar var_mass_nR("var_mass_nR", "n_{R}", 5., 0., 15.);
  279. auto var_mass_alphaL = RooRealConstant::value(1.915);
  280. auto var_mass_nL = RooRealConstant::value(0.573);
  281. auto var_mass_alphaR = RooRealConstant::value(2.257);
  282. auto var_mass_nR = RooRealConstant::value(0.418);
  283. RooCrystalBall sig_cb("sig_cb", "Signal Crystal Ball", roo_var_mass, var_mass_x0, var_mass_sigmaLR, var_mass_alphaL, var_mass_nL, var_mass_alphaR, var_mass_nR);
  284. // Exponential for Background
  285. RooRealVar var_mass_bkg_c("var_mass_bkg_c", "#lambda", -0.0014, -0.004, -0.000);
  286. RooExponential bkg_exp("bkg_exp", "Exp Background", roo_var_mass, var_mass_bkg_c);
  287. RooRealVar var_mass_nsig("nsig", "Mass N Signal", 0., hist->GetEntries());
  288. RooRealVar var_mass_nbkg("nbkg", "Mass N Background", 0., hist->GetEntries());
  289. // TString pdf_name = TString::Format("%s_sigplusbkg", var_id.c_str());
  290. RooAddPdf sigplusbkg("sigplusbkg", "Sig and Bkg PDF", RooArgList(sig_cb, bkg_exp), RooArgList(var_mass_nsig, var_mass_nbkg));
  291. RooFitResult *fitres = sigplusbkg.fitTo(roohist_B0_M, RooFit::Save(), RooFit::PrintLevel(1), RooFit::Range("fitting_range"));
  292. // sigplusbkg.plotOn(roo_frame_mass, RooFit::VisualizeError(*fitres, 1), RooFit::FillColor(kOrange + 1), RooFit::FillStyle(3144));
  293. // sigplusbkg.plotOn(roo_frame_mass, RooFit::LineColor(kRed), RooFit::LineStyle(kSolid), RooFit::Range("fitting_range"), RooFit::Name("sigplusbkg"));
  294. // sigplusbkg.plotOn(roo_frame_mass, RooFit::Components(RooArgSet(bkg_exp)), RooFit::LineColor(kBlue - 7), RooFit::LineStyle(kDashed), RooFit::Range("fitting_range"), RooFit::Name("bkg_exp"));
  295. // sigplusbkg.plotOn(roo_frame_mass, RooFit::Components(RooArgSet(sig_cb)), RooFit::LineColor(kRed - 7), RooFit::LineStyle(kDashed), RooFit::Range("fitting_range"), RooFit::Name("sig_cb"));
  296. TCanvas *c = new TCanvas("roofit_c", "roofit_c", 0, 0, 800, 600);
  297. roo_frame_mass->Draw();
  298. // TLegend *leg1 = new TLegend(0.50, 0.58, 0.87, 0.89);
  299. TLegend *leg1 = new TLegend(0.50, 0.80, 0.87, 0.89);
  300. leg1->SetFillColor(kWhite);
  301. leg1->SetLineColor(kBlack);
  302. // leg1->AddEntry(roo_frame_mass->findObject("sigplusbkg"), "Signal + Background", "LP");
  303. // leg1->AddEntry(roo_frame_mass->findObject("sig_cb"), "Signal", "LP");
  304. // leg1->AddEntry(roo_frame_mass->findObject("bkg_exp"), "Background", "LP");
  305. // leg1->AddEntry((TObject *)0, "", "");
  306. // leg1->AddEntry((TObject *)0, TString::Format("%s = %.3f #pm %.3f", var_mass_x0.getTitle().Data(), var_mass_x0.getVal(), var_mass_x0.getError()).Data(), "");
  307. // leg1->AddEntry((TObject *)0, TString::Format("%s = %.3f #pm %.3f", var_mass_sigmaLR.getTitle().Data(), var_mass_sigmaLR.getVal(), var_mass_sigmaLR.getError()).Data(), "");
  308. // leg1->AddEntry((TObject *)0, TString::Format("%s = %.6f #pm %.6f", var_mass_bkg_c.getTitle().Data(), var_mass_bkg_c.getVal(), var_mass_bkg_c.getError()).Data(), "");
  309. // leg1->AddEntry((TObject *)0, TString::Format("%s = %.3f #pm %.3f", "S", var_mass_nsig.getVal(), var_mass_nsig.getError()).Data(), "");
  310. // leg1->AddEntry((TObject *)0, TString::Format("%s = %.3f #pm %.3f", "B", var_mass_nbkg.getVal(), var_mass_nbkg.getError()).Data(), "");
  311. leg1->AddEntry((TObject *)0, TString::Format("Entries: %.0f", roohist_B0_M.sumEntries()), "");
  312. leg1->Draw();
  313. c->Draw();
  314. c->SaveAs(TString::Format("images/data/roofit_hist_%s_fitted_bmass.pdf", FILE_NAME).Data());
  315. }