]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGLF/FORWARD/analysis2/AliDisplacedVertexSelection.cxx
Small fixes to disp. vtx. selection and correct path to hists in Terminate in sharing...
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / AliDisplacedVertexSelection.cxx
index cfb9eb201974fbc4a04013238018319e20f3715a..a27b24672d183983a4e1470d0fe129b9162c3fac 100644 (file)
@@ -170,7 +170,7 @@ AliDisplacedVertexSelection::Print(Option_t*) const
 Float_t
 AliDisplacedVertexSelection::GetZemCorr(Int_t k, Bool_t minusminus) const
 {
-  if (-kMaxK < 0 || k > kMaxK) return 0;
+  if (-kMaxK > k || k > kMaxK) return 0;
 
   // Corrections for magnetic fields
   const Float_t kPlusPlus[21]   = { 0.6840,0.7879,0.8722,
@@ -444,7 +444,10 @@ AliDisplacedVertexSelection::Process(const AliESDEvent* esd)
   fCorrelationZemZdc->Fill(zemEn, zdcEn);
 
   // --- Check if this is an outlier event ---------------------------
-  if (CheckOutlier(ivtx, esd)) return false;
+  if (CheckOutlier(ivtx, esd)) {
+    fVertexZ = kInvalidVtxZ;
+    return false;
+  }
 
   // --- Calculate the centrality ------------------------------------
   Float_t c1, c2, c3, c4, c5;