]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDgeometryHole.cxx
- Return from Gstpar if material is not used.
[u/mrichter/AliRoot.git] / TRD / AliTRDgeometryHole.cxx
index 38937d300cf4326d83e341e4ba978474d7f9c8c3..06a792206c9a95a087be36e79c6323e41b5dea53 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/* $Id$ */
+/*
+$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
+
+Revision 1.8  2002/10/31 17:45:35  cblume
+New chamber geometry
+
+Revision 1.7  2002/02/11 14:21:16  cblume
+Update of the geometry. Get rid of MANY
+
+Revision 1.6  2001/05/11 07:56:12  hristov
+Consistent declarations needed on Alpha
+
+Revision 1.5  2001/02/14 18:22:26  cblume
+Change in the geometry of the padplane
+
+Revision 1.4  2000/11/01 14:53:21  cblume
+Merge with TRD-develop
+
+Revision 1.1.4.4  2000/10/15 23:40:01  cblume
+Remove AliTRDconst
+
+Revision 1.1.4.3  2000/10/06 16:49:46  cblume
+Made Getters const
+
+Revision 1.1.4.2  2000/10/04 16:34:58  cblume
+Replace include files by forward declarations
+
+Revision 1.1.4.1  2000/09/22 14:43:41  cblume
+Allow the pad/timebin-dimensions to be changed after initialization
+
+Revision 1.3  2000/10/02 21:28:19  fca
+Removal of useless dependecies via forward declarations
+
+Revision 1.2  2000/06/08 18:32:58  cblume
+Make code compliant to coding conventions
+
+Revision 1.1  2000/02/28 19:01:42  cblume
+Add new TRD classes
+
+*/
 
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
@@ -21,7 +65,8 @@
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
-#include <TVirtualMC.h>
+#include "TVirtualMC.h"
+
 #include "AliTRDgeometryHole.h"
 
 ClassImp(AliTRDgeometryHole)
@@ -46,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()
 {