This commit is contained in:
Zaher Salman 2018-08-25 23:51:08 +02:00 committed by Zaher Salman
parent e28b907fb7
commit 781c56fef5

View File

@ -860,10 +860,10 @@ Bool_t PRunAsymmetryBNMR::SubtractEstimatedBkg()
} }
errBkgp[1] = TMath::Sqrt(bkgp[1])/(end[1] - start[1] + 1); errBkgp[1] = TMath::Sqrt(bkgp[1])/(end[1] - start[1] + 1);
bkgp[1] /= static_cast<Double_t>(end[1] - start[1] + 1); bkgp[1] /= static_cast<Double_t>(end[1] - start[1] + 1);
cout << endl << ">> estimated pos hel backward histo background: " << bkgp[1] << endl; cout << endl << ">> estimated pos hel backward histo background: " << bkgp[1];
errBkgm[1] = TMath::Sqrt(bkgm[1])/(end[1] - start[1] + 1); errBkgm[1] = TMath::Sqrt(bkgm[1])/(end[1] - start[1] + 1);
bkgm[1] /= static_cast<Double_t>(end[1] - start[1] + 1); bkgm[1] /= static_cast<Double_t>(end[1] - start[1] + 1);
cout << endl << ">> estimated neg hel backward histo background: " << bkgm[1] << endl; cout << endl << ">> estimated neg hel backward histo background: " << bkgm[1];
// correct error for forward, backward // correct error for forward, backward
Double_t errVal = 0.0; Double_t errVal = 0.0;
@ -903,11 +903,9 @@ Bool_t PRunAsymmetryBNMR::SubtractEstimatedBkg()
fRunInfo->SetBkgEstimated(bkgm[0], 3); fRunInfo->SetBkgEstimated(bkgm[0], 3);
fRunInfo->SetBkgEstimated(bkgm[1], 4); fRunInfo->SetBkgEstimated(bkgm[1], 4);
cout << "I am here 1 " << endl;
// Get estimate for alpha once // Get estimate for alpha once
Double_t alpha; Double_t alpha;
alpha = EstimateAlpha(); alpha = EstimateAlpha();
cout << "I am here 2 " << alpha << endl;
fRunInfo->SetEstimatedAlpha(alpha); fRunInfo->SetEstimatedAlpha(alpha);