]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Adding the material-budget systematic uncertainties
authorbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 10 Jun 2013 16:35:29 +0000 (16:35 +0000)
committerbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 10 Jun 2013 16:35:29 +0000 (16:35 +0000)
PWGLF/STRANGENESS/LambdaK0PbPb/DrawSpectraAndRatios.C

index daab92486c2dd9cfae89767de4e0751f7313fee5..238fc2bd03780a128ba5f52ad2a8ea9bd8d9503e 100644 (file)
@@ -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);