94 #include <TFitResult.h>
99 #include <TPaveText.h>
161 default: Error(
"Process",
"Background substraction method not known!");
173 fHistDataPM = (TH1F*) (arrhist->At(1))->Clone(
"histPM");
178 "Fit substracted signal",
191 TFitResultPtr pmFitPtr =
210 iBin <= fHistDataPM->FindBin(
fIntMax);
215 for (Int_t iBin = 1; iBin <=
fHistDataPM->GetXaxis()->GetNbins(); iBin++) {
221 Double_t signal = pm - bknd;
222 Double_t error = TMath::Sqrt(epm * epm + ebknd);
274 fHistDataPP = (TH1F*) (arrhist->At(0))->Clone(
"histPP");
275 fHistDataPM = (TH1F*) (arrhist->At(1))->Clone(
"histPM");
276 fHistDataMM = (TH1F*) (arrhist->At(2))->Clone(
"histMM");
287 "Like-Sign substracted signal",
292 "Like-sign contribution",
313 for (Int_t iBin = 1; iBin <=
fHistDataPM->GetXaxis()->GetNbins(); iBin++) {
316 Double_t pp = funcClonePP->Eval(
m);
317 Double_t mm = funcCloneMM->Eval(
m);
323 Double_t signal = pm - 2.0 * TMath::Sqrt(pp * mm);
324 Double_t background = 2.0 * TMath::Sqrt(pp * mm);
328 TMath::Sqrt(epm * epm + (mm / pp) * epp + (pp / mm) * emm);
329 Double_t ebackground = TMath::Sqrt((mm / pp) * epp + (pp / mm) * emm);
360 arrhist->GetEntries();
361 Error(
"ProcessFitEM",
362 "Event mixing for background substraction method not yet implemented!");
371 TString drawOpt(option);
374 Bool_t optStat = drawOpt.Contains(
"stat");
382 grSig->SetFillColor(kGreen);
383 grSig->SetFillStyle(3001);
386 grBack->SetFillColor(kRed);
387 grBack->SetFillStyle(3001);
389 grSig->SetPoint(0, grBack->GetX()[0], grBack->GetY()[0]);
390 grSig->SetPoint(grSig->GetN() - 1,
391 grBack->GetX()[grBack->GetN() - 1],
392 grBack->GetY()[grBack->GetN() - 1]);
394 grBack->SetPoint(0, grBack->GetX()[0], 0.);
395 grBack->SetPoint(grBack->GetN() - 1, grBack->GetX()[grBack->GetN() - 1], 0.);
400 if (!drawOpt.Contains(
"same")) {
432 PairAnalysisSignalBase::Print();