]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONHitForRec.cxx
modifications needed to fit with the new ALICE coordinate system
[u/mrichter/AliRoot.git] / MUON / AliMUONHitForRec.cxx
index b28535dc8b4436b077e1ebbf84e3ea316aa1b884..f2c961c90df171236d776ceb15a499bc4c40a4f2 100644 (file)
@@ -110,12 +110,12 @@ Int_t AliMUONHitForRec::Compare(const TObject* Hit) const
   //__________________________________________________________________________
 Int_t AliMUONHitForRec::Compare(const TObject* Hit) const
 {
-  // "Compare" function to sort with increasing Z-coordinate.
-  // Returns -1 (0, +1) if Z-coordinate of current HitForRec
+  // "Compare" function to sort with decreasing Z-coordinate (spectro. MUON z<0).
+  // Returns 1 (0, -1) if Z-coordinate of current HitForRec
   // is smaller than (equal to, larger than) Z-coordinate of Hit
-  if (fZ <  ((AliMUONHitForRec*)Hit)->fZ) return(-1);
+  if (fZ <  ((AliMUONHitForRec*)Hit)->fZ) return(1);
   else if (fZ == ((AliMUONHitForRec*)Hit)->fZ) return( 0);
-  else return(+1);
+  else return(-1);
 }
 
   //__________________________________________________________________________