]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/UPGRADE/AliITSURecoSens.cxx
Commit from Raphaelle: AddTaskTRD for pileup rejection in CPass.
[u/mrichter/AliRoot.git] / ITS / UPGRADE / AliITSURecoSens.cxx
index 91e916d9265409f016621f078951d934048dd623..a83bd653db2c38343a8b4da8414b8f7f8ff26cde 100644 (file)
@@ -124,3 +124,19 @@ Int_t AliITSURecoSens::Compare(const TObject* obj)  const
   return 0;
   //
 }
+
+//______________________________________________________________________________
+Int_t AliITSURecoSens::CheckCoverage(double phi, double z) const
+{
+  // check if the sensor contains the impact point phi, z
+  // if not, tell in which direction to move. 
+  // kLeft, kRight are for smaller/larger angles, kUp,kDown for larger/smaller Z
+  //
+  int res = 0;
+  if      (z<fZMin) res |= kDown;
+  else if (z>fZMax) res |= kUp;
+  //
+  if      (!OKforPhiMin(fPhiMin,phi)) res |= kLeft;
+  else if (!OKforPhiMax(fPhiMax,phi)) res |= kRight;
+  return res;
+}