From: belikov Date: Mon, 10 Jun 2013 16:35:29 +0000 (+0000) Subject: Adding the material-budget systematic uncertainties X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=7053a56623021a48bc12b279a63f5fbfcadcd0b7;p=u%2Fmrichter%2FAliRoot.git Adding the material-budget systematic uncertainties --- diff --git a/PWGLF/STRANGENESS/LambdaK0PbPb/DrawSpectraAndRatios.C b/PWGLF/STRANGENESS/LambdaK0PbPb/DrawSpectraAndRatios.C index daab92486c2..238fc2bd037 100644 --- a/PWGLF/STRANGENESS/LambdaK0PbPb/DrawSpectraAndRatios.C +++ b/PWGLF/STRANGENESS/LambdaK0PbPb/DrawSpectraAndRatios.C @@ -194,6 +194,7 @@ DrawHisto(const TH1 *h, const Option_t *option, Double_t *sysEff, Int_t nb=hh->GetNbinsX(); for (Int_t i=1; i<=nb; i++) { + Double_t pt=h->GetBinCenter(i); Double_t c=hh->GetBinContent(i); Double_t e=hh->GetBinError(i); Int_t j=i-1; @@ -202,8 +203,12 @@ DrawHisto(const TH1 *h, const Option_t *option, Double_t *sysEff, if (sysEff==sysEffLam) {// for Lambda e += sysFD*sysFD; if (i<13) e += sysPID*sysPID; + Double_t matBgt=( pt < 0.5*(3.5-0.6) ) ? 3.4e-2 : 2.0e-2; + e += matBgt*matBgt; } else {// for K0s e += sysArm*sysArm; + Double_t matBgt=( pt < 0.5*(3.0-0.2) ) ? 1.5e-2 : 1.1e-2; + e += matBgt*matBgt; } e=c*TMath::Sqrt(e);