8 momentum.RotateX(20 / 180. * TMath::Pi());
10 TH1F *hPi =
new TH1F(
"hPi",
";#Delta Ln;entries", 200, -10, 10);
11 TH1F *hK =
new TH1F(
"hK",
";#Delta Ln;entries", 200, -10, 10);
14 for (
int i = 0; i < 1000; i++) {
16 hPi->Fill(info.
sigma[2]);
17 hK->Fill(info.
sigma[3]);
20 auto r1 = hPi->Fit(
"gaus",
"S");
21 double m1 =
r1->Parameter(1);
22 double s1 =
r1->Parameter(2);
24 auto r2 = hK->Fit(
"gaus",
"S");
25 double m2 =
r2->Parameter(1);
26 double s2 =
r2->Parameter(2);
28 double sep = (fabs(m1 - m2)) / (0.5 * (s1 + s2));
30 std::cout<<
"separation "<<sep<<std::endl;
33 hPi->SetLineColor(kBlue);
34 hK->SetLineColor(kRed);