From 2f504fcc59086c48eb7ad49916ccacc4a3dd96b8 Mon Sep 17 00:00:00 2001 From: cblume Date: Thu, 4 Dec 2008 13:48:31 +0000 Subject: [PATCH] Introduce IsHole for holes in front of PHOS --- TRD/AliTRDgeometry.cxx | 15 +++++++++++++++ TRD/AliTRDgeometry.h | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/TRD/AliTRDgeometry.cxx b/TRD/AliTRDgeometry.cxx index cb904cd8104..59375118a6a 100644 --- a/TRD/AliTRDgeometry.cxx +++ b/TRD/AliTRDgeometry.cxx @@ -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; + +} diff --git a/TRD/AliTRDgeometry.h b/TRD/AliTRDgeometry.h index 5d6ded0a134..6680b7ee1f9 100644 --- a/TRD/AliTRDgeometry.h +++ b/TRD/AliTRDgeometry.h @@ -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; -- 2.43.0