]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
avoid overlap between spectra and q vector in spectra
authorlmilano <lmilano@cern.ch>
Mon, 17 Nov 2014 14:19:07 +0000 (15:19 +0100)
committerlmilano <lmilano@cern.ch>
Mon, 17 Nov 2014 14:19:07 +0000 (15:19 +0100)
PWGLF/SPECTRA/PiKaPr/TestAOD/AliAnalysisTaskSpectraAllChAOD.cxx

index 4e1b2dff583808b78eaf9600f7a8e47f570440f3..1ef27ac28bbe6737a895084f51511663e8eb7f90 100644 (file)
@@ -295,7 +295,10 @@ void AliAnalysisTaskSpectraAllChAOD::UserExec(Option_t *)
       if(GetDCA(track,p)){ dcaxy=p[0]; dcaz=p[1];}
       
       if(dcaz >= fDCAzCut) continue;
-      
+
+      //if the q vector is done using the TPC, we avoid overlap
+      if (fVZEROside==2 && TMath::Abs(track->Eta())<0.5)continue;
+          
     //pt     cent    Q vec     IDrec     IDgen       isph      y
       Double_t varTrk[8];
       varTrk[0]=track->Pt();