]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDgeometryHole.cxx
A cut on minimal digit energy added; OnFlight mode added
[u/mrichter/AliRoot.git] / TRD / AliTRDgeometryHole.cxx
index 5440a5bcf4ca947e7b362f9e2da6918724f043a6..06a792206c9a95a087be36e79c6323e41b5dea53 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.11  2003/09/18 09:06:07  cblume
+Geometry update, Removal of compiler warnings
+
 Revision 1.9  2002/11/21 22:38:47  alibrary
 Removing AliMC and AliMCProcess
 
@@ -88,6 +91,19 @@ AliTRDgeometryHole::~AliTRDgeometryHole()
 
 }
 
+Bool_t   AliTRDgeometryHole::IsHole(Int_t iplan, Int_t icham, Int_t isec) const
+{
+  // Position of Holes for PHOS (P) and RICH (R) starting at 6h
+  //                 P  P  P  -  -  R  R  R  -  -  -  -  -  -  -  -  P  P
+  //Int_t cham[18] = {1, 1, 1, 0, 0, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1};
+  Int_t cham[18] = {2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0 };  // did we want this?
+
+  if ((cham[17-isec]==1) && (fClengthPH[iplan][icham]<0.00001)) return kTRUE;
+  if ((cham[17-isec]==2) &&(fClengthRH[iplan][icham]<0.000001))  return kTRUE;
+  return kFALSE;
+  
+}
+
 //_____________________________________________________________________________
 void AliTRDgeometryHole::Init()
 {