179 fHistDataPM = (TH1F*) (arrhist->At(1))->Clone(
"histPM");
207 for (Int_t iBin = 1; iBin <=
fHistDataPM->GetXaxis()->GetNbins(); iBin++) {
213 Double_t signal = pm - bknd;
214 Double_t error = TMath::Sqrt(epm * epm + ebknd);
261 fHistDataPP = (TH1F*) (arrhist->At(0))->Clone(
"histPP");
262 fHistDataPM = (TH1F*) (arrhist->At(1))->Clone(
"histPM");
263 fHistDataMM = (TH1F*) (arrhist->At(2))->Clone(
"histMM");
294 for (Int_t iBin = 1; iBin <=
fHistDataPM->GetXaxis()->GetNbins(); iBin++) {
297 Double_t pp = funcClonePP->Eval(m);
298 Double_t mm = funcCloneMM->Eval(m);
304 Double_t signal = pm - 2.0 * TMath::Sqrt(pp * mm);
305 Double_t background = 2.0 * TMath::Sqrt(pp * mm);
308 Double_t esignal = TMath::Sqrt(epm * epm + (mm / pp) * epp + (pp / mm) * emm);
309 Double_t ebackground = TMath::Sqrt((mm / pp) * epp + (pp / mm) * emm);
349 TString drawOpt(option);
352 Bool_t optStat = drawOpt.Contains(
"stat");
360 grSig->SetFillColor(kGreen);
361 grSig->SetFillStyle(3001);
364 grBack->SetFillColor(kRed);
365 grBack->SetFillStyle(3001);
367 grSig->SetPoint(0, grBack->GetX()[0], grBack->GetY()[0]);
368 grSig->SetPoint(grSig->GetN() - 1, grBack->GetX()[grBack->GetN() - 1], grBack->GetY()[grBack->GetN() - 1]);
370 grBack->SetPoint(0, grBack->GetX()[0], 0.);
371 grBack->SetPoint(grBack->GetN() - 1, grBack->GetX()[grBack->GetN() - 1], 0.);
376 if (!drawOpt.Contains(
"same")) {