]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Introduce IsHole for holes in front of PHOS
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Dec 2008 13:48:31 +0000 (13:48 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Dec 2008 13:48:31 +0000 (13:48 +0000)
TRD/AliTRDgeometry.cxx
TRD/AliTRDgeometry.h

index cb904cd810439eb3066d25be79bd58e0329d6885..59375118a6ade9bedb7ffc040a8502166aa0b09b 100644 (file)
@@ -2862,3 +2862,18 @@ Bool_t AliTRDgeometry::ChamberInGeometry(Int_t det)
   }
 
 }
+
+//_____________________________________________________________________________
+Bool_t AliTRDgeometry::IsHole(Int_t /*la*/, Int_t st, Int_t se) const
+{
+  //
+  // Checks for holes in front of PHOS
+  //
+
+  if (((se == 13) || (se == 14) || (se == 15)) && 
+      (st == 2)) {
+    return kTRUE; 
+  }
+  return kFALSE;
+
+}
index 5d6ded0a13485f7bc3a186b9c338a7130405145a..6680b7ee1f999d54b69e3ce1c0e45e6e5745018f 100644 (file)
@@ -40,7 +40,7 @@ class AliTRDgeometry : public AliGeometry {
   virtual void     CreateGeometry(Int_t *idtmed);
   virtual Int_t    IsVersion()                                            { return 1;               }
   virtual Bool_t   Impact(const TParticle* ) const                        { return kTRUE;           }
-  virtual Bool_t   IsHole(Int_t /*la*/, Int_t /*st*/, Int_t /*se*/) const { return kFALSE;          }
+  virtual Bool_t   IsHole(Int_t la, Int_t st, Int_t se) const;
 
   virtual Bool_t   RotateBack(Int_t det, Double_t *loc, Double_t *glb) const;