1 #ifndef ALIEMCALGEOMETRY_H
2 #define ALIEMCALGEOMETRY_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 //_________________________________________________________________________
9 // Geometry class for EMCAL : singleton
10 // EMCAL consists of a layers of scintillator, and lead.
12 //*-- Author: Sahal Yacoob (LBL / UCT)
13 //*-- and : Yves Schutz (Subatech)
17 // --- ROOT system ---
19 #include "TObjArray.h"
26 // --- AliRoot header files ---
28 #include "AliGeometry.h"
31 class AliEMCALGeometry : public AliGeometry {
37 // must be kept public for root persistency purposes, but should never be called by the outside world
40 AliEMCALGeometry(const AliEMCALGeometry & geom) {
41 // cpy ctor requested by Coding Convention but not yet needed
45 virtual ~AliEMCALGeometry(void) ;
46 static AliEMCALGeometry * GetInstance(const Text_t* name, const Text_t* title="") ;
47 static AliEMCALGeometry * GetInstance() ;
49 AliEMCALGeometry & operator = (const AliEMCALGeometry & rvalue) const {
50 // assignement operator requested by coding convention but not needed
52 return *(GetInstance()) ;
54 virtual void GetGlobal(const AliRecPoint *, TVector3 &, TMatrix &) const {}
55 virtual void GetGlobal(const AliRecPoint *, TVector3 &) const {}
58 Bool_t IsInitialized(void) const { return fgInit ; }
60 // Return EMCA geometrical parameters
63 const Float_t GetAirGap() const { return fAirGap ; }
64 const Float_t GetArm1PhiMin() const { return fArm1PhiMin ; }
65 const Float_t GetArm1PhiMax() const { return fArm1PhiMax ; }
66 const Float_t GetArm1ZOffset() const {return fArm1ZOffset ;}
67 const Float_t GetIPDistance() const { return fIPDistance ; }
68 const Float_t GetEnvelop(Int_t index) const { return fEnvelop[index] ; }
69 const Float_t GetShellThickness() const { return fShellThickness ; }
70 const Float_t GetZLength() const { return fZLength ; }
71 const Float_t GetGap2Active() const {return fGap2Active ; }
72 const Int_t GetNLayers() const {return fNLayers ;}
73 const Int_t GetNZ() const {return fNZ ;}
74 const Int_t GetNPhi() const {return fNPhi ;}
78 AliEMCALGeometry(const Text_t* name, const Text_t* title="") : AliGeometry(name, title) {
79 // ctor only for internal usage (singleton)
82 void Init(void) ; // initializes the parameters of EMCAL
86 static AliEMCALGeometry * fgGeom ; // pointer to the unique instance of the singleton
87 static Bool_t fgInit ; // Tells if geometry has been succesfully set up
90 Float_t fAirGap ; // Distance between envelop and active material
91 Float_t fArm1PhiMin ; // Minimum phi angle covered by Arm 1
92 Float_t fArm1PhiMax ; // Maximum phi angle covered by Arm 1
93 Float_t fArm1ZOffset ; // Distance from z = 0 of Arm 1
95 // It is assumed that Arm1 and Arm2 have the same following parameters
96 Float_t fEnvelop[3] ; // the GEANT TUB that contains the 2 arms
97 Float_t fIPDistance ; // Distance of the inner surface to the interaction point
98 Float_t fShellThickness ; // Total thickness in (x,y) direction
99 Float_t fZLength ; // Total length in z direction
100 Float_t fGap2Active ; // Gap between the envelop and the active material
101 Int_t fNLayers ; // Number of layers of material in the R direction
102 Int_t fNZ ; // Number of Towers in the Z direction
103 Int_t fNPhi ; //Number of Towers in the Phi Direction
105 ClassDef(AliEMCALGeometry,1) // EMCAL geometry class
109 #endif // AliEMCALGEOMETRY_H