]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALGeometry.h
track splitting studies with injected particles in MC
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALGeometry.h
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                               */
5
6 /* $Id$ */
7
8 //_________________________________________________________________________
9 // Geometry class  for EMCAL : singleton
10 // EMCAL consists of a layers of scintillator, and lead.
11 //                  
12 //*-- Author: Sahal Yacoob (LBL / UCT)
13 //*--   and : Yves Schutz (Subatech)
14 //*--   and : Alexei Pavlinov (WSU) - shashlyk staff
15 //*--   and : Gustavo Conesa: Add TRU mapping. TRU parameters still not fixed.
16 //*--   and : Magali Estienne : analysis access adaptations
17 //*--   and : Adapted for DCAL, M.L. Wang CCNU & Subatech Oct-18-2012
18
19 // --- ROOT system ---
20 #include <TNamed.h>
21 #include <TMath.h>
22 #include <TArrayD.h>
23 #include <TVector3.h>
24 #include <TGeoMatrix.h> 
25 class TBrowser ;
26 class TParticle ;
27
28 // --- AliRoot header files ---
29 #include "AliEMCALEMCGeometry.h"
30 #include "AliEMCALGeoParams.h"
31 class AliEMCALShishKebabTrd1Module;
32 class AliLog;
33
34 class AliEMCALGeometry : public TNamed {
35
36 public: 
37   enum fEMCSMType { kEMCAL_Standard = 0, kEMCAL_Half = 1, kEMCAL_3rd = 2, kDCAL_Standard = 3, kDCAL_Ext= 4 }; // possible SM Type
38
39   AliEMCALGeometry();
40   AliEMCALGeometry(const Text_t* name, const Text_t* title="",
41                    const Text_t* mcname="", const Text_t* mctitle="");
42   AliEMCALGeometry(const AliEMCALGeometry & geom);
43   
44   virtual ~AliEMCALGeometry(void); 
45   AliEMCALGeometry & operator = (const AliEMCALGeometry  & rvalue);
46   
47   static AliEMCALGeometry * GetInstance(const Text_t* name,      const Text_t* title="",
48                                         const Text_t* mcname="TGeant3", const Text_t* mctitle="") ; 
49   static AliEMCALGeometry * GetInstance();
50
51
52   //////////
53   // General
54   //
55   static Bool_t  IsInitialized(void)            {return AliEMCALEMCGeometry::fgInit; }
56   static const Char_t* GetDefaultGeometryName() {return AliEMCALEMCGeometry::fgkDefaultGeometryName;}
57   
58   /////////////
59   // TRD1 stuff
60   void    CreateListOfTrd1Modules();
61   TList  *GetShishKebabTrd1Modules() const {return fShishKebabTrd1Modules;}
62   AliEMCALShishKebabTrd1Module *GetShishKebabModule(Int_t neta) const;
63
64   void PrintGeometryGeoUtils();   // *MENU*  
65   void PrintCellIndexes(Int_t absId=0, int pri=0, const char *tit="") const ;  //*MENU*
66   void PrintLocalTrd1(Int_t pri=0) const;  // *MENU*
67   virtual void Browse(TBrowser* b);
68   virtual Bool_t  IsFolder() const;
69
70   virtual Bool_t Impact(const TParticle *particle) const;
71   void ImpactOnEmcal(TVector3 vtx, Double_t theta, Double_t phi, Int_t & absId, TVector3 & vimpact) const;
72   Bool_t IsInEMCAL(Double_t x, Double_t y, Double_t z) const;
73   Bool_t IsInDCAL(Double_t x, Double_t y, Double_t z) const;
74   Int_t  IsInEMCALOrDCAL(Double_t x, Double_t y, Double_t z) const;
75
76   //////////////////////////////////////
77   // Return EMCAL geometrical parameters
78   //
79   
80   AliEMCALEMCGeometry* GetEMCGeometry()       const { return fEMCGeometry                            ; }
81   //
82   const Char_t*  GetNameOfEMCALEnvelope(void) const { return fEMCGeometry->GetNameOfEMCALEnvelope()  ; }
83   Float_t  GetArm1PhiMin(void)                const { return fEMCGeometry->GetArm1PhiMin()           ; }
84   Float_t  GetArm1PhiMax(void)                const { return fEMCGeometry->GetArm1PhiMax()           ; }
85   Float_t  GetArm1EtaMin(void)                const { return fEMCGeometry->GetArm1EtaMin()           ; }
86   Float_t  GetArm1EtaMax(void)                const { return fEMCGeometry->GetArm1EtaMax()           ; }
87   Float_t  GetIPDistance(void)                const { return fEMCGeometry->GetIPDistance()           ; }   
88   Float_t  GetEnvelop(Int_t index)            const { return fEMCGeometry->GetEnvelop(index)         ; }  
89   Float_t  GetShellThickness(void)            const { return fEMCGeometry->GetShellThickness()       ; }
90   Float_t  GetZLength(void)                   const { return fEMCGeometry->GetZLength()              ; } 
91   Float_t  GetDCALInnerEdge(void)             const { return fEMCGeometry->GetDCALInnerEdge()        ; }
92   Float_t  GetDCALPhiMin(void)                const { return fEMCGeometry->GetDCALPhiMin()           ; }
93   Float_t  GetDCALPhiMax(void)                const { return fEMCGeometry->GetDCALPhiMax()           ; }
94   Float_t  GetEMCALPhiMax(void)               const { return fEMCGeometry->GetEMCALPhiMax()          ; }
95   Int_t    GetNECLayers(void)                 const { return fEMCGeometry->GetNECLayers()            ; }
96   Float_t  GetDCALInnerExtandedEta(void)      const { return fEMCGeometry->GetDCALInnerExtandedEta() ; }
97   Int_t    GetNZ(void)                        const { return fEMCGeometry->GetNZ()                   ; }
98   Int_t    GetNEta(void)                      const { return fEMCGeometry->GetNEta()                 ; }
99   Int_t    GetNPhi(void)                      const { return fEMCGeometry->GetNPhi()                 ; }
100   Float_t  GetECPbRadThick(void)              const { return fEMCGeometry->GetECPbRadThick()         ; }
101   Float_t  GetECScintThick(void)              const { return fEMCGeometry->GetECScintThick()         ; }
102   Float_t  GetSampling(void)                  const { return fEMCGeometry->GetSampling()             ; } 
103   Int_t    GetNumberOfSuperModules(void)      const { return fEMCGeometry->GetNumberOfSuperModules() ; }
104   Float_t  GetPhiGapForSuperModules(void)     const { return fEMCGeometry->GetPhiGapForSuperModules(); }
105   Float_t  GetPhiModuleSize(void)             const { return fEMCGeometry->GetPhiModuleSize()        ; }
106   Float_t  GetEtaModuleSize(void)             const { return fEMCGeometry->GetEtaModuleSize()        ; }
107   Float_t  GetFrontSteelStrip(void)           const { return fEMCGeometry->GetFrontSteelStrip()      ; }
108   Float_t  GetLateralSteelStrip(void)         const { return fEMCGeometry->GetLateralSteelStrip()    ; }
109   Float_t  GetPassiveScintThick(void)         const { return fEMCGeometry->GetPassiveScintThick()    ; }
110   Float_t  GetPhiTileSize(void)               const { return fEMCGeometry->GetPhiTileSize()          ; }
111   Float_t  GetEtaTileSize(void)               const { return fEMCGeometry->GetEtaTileSize()          ; }
112   Float_t  GetPhiSuperModule(void)            const { return fEMCGeometry->GetPhiSuperModule()       ; }
113   Int_t    GetNPhiSuperModule(void)           const { return fEMCGeometry->GetNPhiSuperModule()      ; }
114   Int_t    GetNPHIdiv(void)                   const { return fEMCGeometry->GetNPHIdiv()              ; }
115   Int_t    GetNETAdiv(void)                   const { return fEMCGeometry->GetNETAdiv()              ; }
116   Int_t    GetNCells(void)                    const { return fEMCGeometry->GetNCells()               ; }
117   Float_t  GetLongModuleSize(void)            const { return fEMCGeometry->GetLongModuleSize()       ; }
118   Float_t  GetTrd1Angle(void)                 const { return fEMCGeometry->GetTrd1Angle()            ; }
119   Float_t  Get2Trd1Dx2(void)                  const { return fEMCGeometry->Get2Trd1Dx2()             ; }
120   Float_t  GetTrd1AlFrontThick()              const { return fEMCGeometry->GetTrd1AlFrontThick()     ; }
121   Float_t  GetTrd1BondPaperThick()            const { return fEMCGeometry->GetTrd1BondPaperThick()   ; }
122   // --
123   Int_t    GetNCellsInSupMod(void)            const { return fEMCGeometry->GetNCellsInSupMod()       ; }
124   Int_t    GetNCellsInModule(void)            const { return fEMCGeometry->GetNCellsInModule()       ; }
125   Int_t    GetKey110DEG(void)                 const { return fEMCGeometry->GetKey110DEG()            ; }
126   Int_t    GetnSupModInDCAL(void)             const { return fEMCGeometry->GetnSupModInDCAL()        ; }
127   Int_t    GetILOSS(void)                     const { return fEMCGeometry->GetILOSS()                ; }
128   Int_t    GetIHADR(void)                     const { return fEMCGeometry->GetIHADR()                ; }  
129   // --
130   Float_t  GetDeltaEta(void)                  const { return fEMCGeometry->GetDeltaEta()             ; }
131   Float_t  GetDeltaPhi(void)                  const { return fEMCGeometry->GetDeltaPhi()             ; }
132   Int_t    GetNTowers(void)                   const { return fEMCGeometry->GetNTowers()              ; }
133   //
134   Double_t GetPhiCenterOfSM(Int_t nsupmod)    const { return fEMCGeometry->GetPhiCenterOfSM(nsupmod) ; }
135   Double_t GetPhiCenterOfSMSec(Int_t nsupmod) const { return fEMCGeometry->GetPhiCenterOfSMSec(nsupmod) ; }
136   Float_t  GetSuperModulesPar(Int_t ipar)     const { return fEMCGeometry->GetSuperModulesPar(ipar)  ; }
137   //
138   Int_t    GetSMType(Int_t nSupMod)           const { if( nSupMod > fEMCGeometry->GetNumberOfSuperModules() ) return -1;
139                                                       return fEMCSMSystem[nSupMod]                   ; }
140   Bool_t   IsDCALSM(Int_t nSupMod) const;
141   Bool_t   IsDCALExtSM(Int_t nSupMod) const;
142   Bool_t   GetPhiBoundariesOfSM(Int_t nSupMod, Double_t &phiMin, Double_t &phiMax)    const 
143     { return fEMCGeometry->GetPhiBoundariesOfSM(nSupMod, phiMin, phiMax)   ; }
144   Bool_t   GetPhiBoundariesOfSMGap(Int_t nPhiSec, Double_t &phiMin, Double_t &phiMax) const 
145     { return fEMCGeometry->GetPhiBoundariesOfSMGap(nPhiSec, phiMin, phiMax); }
146   //
147   // especially for SM in extension, where center of SM != center of the SM-section.
148   // Used in AliEMCALv0 to calculate position.
149   
150   //////////////////////////////////////////////////
151   // Obsolete methods to be thrown out when feasible
152   Float_t GetGap2Active(void)                 const { return fEMCGeometry->GetGap2Active()           ; }
153   Float_t GetSteelFrontThickness(void)        const { return fEMCGeometry->GetSteelFrontThickness()  ; }
154   Float_t GetTrd2AngleY(void)                 const { return fEMCGeometry->GetTrd2AngleY()           ; }
155   Float_t Get2Trd2Dy2(void)                   const { return fEMCGeometry->Get2Trd2Dy2()             ; }
156   Float_t GetTubsR(void)                      const { return fEMCGeometry->GetTubsR()                ; }
157   Float_t GetTubsTurnAngle(void)              const { return fEMCGeometry->GetTubsTurnAngle()        ; }
158   //Float_t GetAlFrontThickness(void)           const { return fEMCGeometry->GetAlFrontThickness()     ; }
159   //Float_t GetIP2ECASection(void)              const { return fEMCGeometry->GetIP2ECASection()        ; }   
160   //////////////////////////////////////////////////
161   
162   ///////////////////////////////
163   //Geometry data member setters
164   //
165   void SetNZ(Int_t nz)           { fEMCGeometry->SetNZ(nz)         ; }
166   void SetNPhi(Int_t nphi)       { fEMCGeometry->SetNPhi(nphi)     ; }
167   //Trigger
168   void SetNTRUEta(Int_t ntru)    { fEMCGeometry->SetNTRUEta(ntru)  ; }
169   void SetNTRUPhi(Int_t ntru)    { fEMCGeometry->SetNTRUPhi(ntru)  ; }
170   //
171   void SetSampling(Float_t samp) { fEMCGeometry->SetSampling(samp) ; }
172   //
173   void PrintGeometry()           { fEMCGeometry->PrintGeometry()   ; }  //*MENU*  
174   
175   //////////////////////////
176   // Global geometry methods
177   //
178   void GetGlobal(const Double_t *loc, Double_t *glob, int ind) const;
179   void GetGlobal(const TVector3 &vloc, TVector3 &vglob, int ind) const;
180   void GetGlobal(Int_t absId, Double_t glob[3]) const;
181   void GetGlobal(Int_t absId, TVector3 &vglob) const;
182
183   ////////////////////////////////////////
184   // May 31, 2006; ALICE numbering scheme: 
185   // see ALICE-INT-2003-038: ALICE Coordinate System and Software Numbering Convention
186   // All indexes are stared from zero now.
187   // 
188   // abs id <-> indexes; Shish-kebab case, only TRD1 now.
189   // EMCAL -> Super Module -> module -> tower(or cell) - logic tree of EMCAL
190   // 
191   //**  Usual name of variable - Dec 18,2006 **
192   //  nSupMod - index of super module (SM)
193   //  nModule - index of module in SM
194   //  nIphi   - phi index of tower(cell) in module
195   //  nIeta   - eta index of tower(cell) in module
196   //  
197   //  Inside SM
198   //  iphim   - phi index of module in SM  
199   //  ietam   - eta index of module in SM  
200   //
201   //  iphi    - phi index of tower(cell) in SM  
202   //  ieta    - eta index of tower(cell) in SM  
203   //
204   // for a given tower index absId returns eta and phi of gravity center of tower.
205   void    EtaPhiFromIndex(Int_t absId, Double_t &eta, Double_t &phi) const;
206   void    EtaPhiFromIndex(Int_t absId, Float_t  &eta, Float_t  &phi) const;
207
208   Bool_t  GetAbsCellIdFromEtaPhi(Double_t eta,Double_t phi, Int_t &absId) const;
209   Bool_t  SuperModuleNumberFromEtaPhi(Double_t eta, Double_t phi, Int_t &nSupMod) const;
210   Int_t   GetAbsCellId(Int_t nSupMod, Int_t nModule, Int_t nIphi, Int_t nIeta) const;
211   Bool_t  CheckAbsCellId(Int_t absId) const;
212   Bool_t  GetCellIndex(Int_t absId, Int_t &nSupMod, Int_t &nModule, Int_t &nIphi, 
213                        Int_t &nIeta) const;
214   // Local coordinate of Super Module 
215   void    GetModulePhiEtaIndexInSModule(Int_t nSupMod, Int_t nModule, Int_t &iphim, 
216                                         Int_t &ietam) const;
217   void    GetCellPhiEtaIndexInSModule(Int_t nSupMod, Int_t nModule, Int_t nIphi, Int_t nIeta,
218                                       Int_t &iphi, Int_t &ieta) const ;
219   Int_t   GetSuperModuleNumber(Int_t absId)  const;
220   Int_t   GetNumberOfModuleInPhiDirection(Int_t nSupMod)  const
221   { 
222     if(     GetSMType(nSupMod) == kEMCAL_Half) return fNPhi/2;
223     else if(GetSMType(nSupMod) == kEMCAL_3rd)  return fNPhi/3;
224     else if(GetSMType(nSupMod) == kDCAL_Ext)   return fNPhi/3;
225     else                                       return fNPhi;
226   } 
227   // From cell indexes to abs cell id
228   void    GetModuleIndexesFromCellIndexesInSModule(Int_t nSupMod, Int_t iphi, Int_t ieta, 
229                                               Int_t &iphim, Int_t &ietam, Int_t &nModule) const;
230   Int_t   GetAbsCellIdFromCellIndexes(Int_t nSupMod, Int_t iphi, Int_t ieta) const;
231
232   // Methods for AliEMCALRecPoint - Feb 19, 2006
233   Bool_t  RelPosCellInSModule(Int_t absId, 
234                               Double_t &xr, Double_t &yr, Double_t &zr) const;
235   Bool_t  RelPosCellInSModule(Int_t absId, Double_t distEff,
236                               Double_t &xr, Double_t &yr, Double_t &zr) const;
237   Bool_t  RelPosCellInSModule(Int_t absId, Double_t loc[3]) const;
238   Bool_t  RelPosCellInSModule(Int_t absId, TVector3 &vloc)  const;
239
240   Int_t  * GetEMCSystem()            const { return fEMCSMSystem          ; }     //EMC System, SM type list
241   // Local Coordinates of SM
242   TArrayD  GetCentersOfCellsEtaDir() const { return fCentersOfCellsEtaDir ; }     // size fNEta*fNETAdiv (for TRD1 only) (eta or z in SM, in cm)
243   TArrayD  GetCentersOfCellsXDir()   const { return fCentersOfCellsXDir   ; }     // size fNEta*fNETAdiv (for TRD1 only) (       x in SM, in cm)
244   TArrayD  GetCentersOfCellsPhiDir() const { return fCentersOfCellsPhiDir ; }     // size fNPhi*fNPHIdiv (for TRD1 only) (phi or y in SM, in cm)
245   //
246   TArrayD  GetEtaCentersOfCells()    const { return fEtaCentersOfCells    ; }     // [fNEta*fNETAdiv*fNPhi*fNPHIdiv], positive direction (eta>0); eta depend from phi position; 
247   TArrayD  GetPhiCentersOfCells()    const { return fPhiCentersOfCells    ; }     // [fNPhi*fNPHIdiv] from center of SM (-10. < phi < +10.)
248
249   
250   // For gamma(Jet) trigger simulations *FIXME OLD TO BE REMOVED with AliEMCALTrigger*
251   Int_t    GetNTRU()             const { return fEMCGeometry->GetNTRU()             ; }  
252   Int_t    GetNTRUEta()          const { return fEMCGeometry->GetNTRUEta()          ; }  
253   Int_t    GetNTRUPhi()          const { return fEMCGeometry->GetNTRUPhi()          ; }
254   Int_t    GetNEtaSubOfTRU()     const { return fEMCGeometry->GetNEtaSubOfTRU()     ; }
255   Int_t    GetNModulesInTRU()    const { return fEMCGeometry->GetNModulesInTRU()    ; }
256   Int_t    GetNModulesInTRUEta() const { return fEMCGeometry->GetNModulesInTRUEta() ; }  
257   Int_t    GetNModulesInTRUPhi() const { return fEMCGeometry->GetNModulesInTRUPhi() ; }
258   Int_t    GetNTotalTRU()        const {return  fEMCGeometry->GetNTotalTRU()        ; }
259   // *MEFIX OLD TO BE REMOVED*
260
261   //
262   // Tranforms Eta-Phi Module index in TRU into Eta-Phi index in Super Module
263   void     GetModulePhiEtaIndexInSModuleFromTRUIndex(Int_t itru, Int_t iphitru, Int_t ietatru, 
264                                                      Int_t &ietaSM, Int_t &iphiSM) const;
265   Int_t   GetAbsTRUNumberFromNumberInSm(const Int_t row, const Int_t col, const Int_t sm) const ;
266
267         
268   void     BuildFastOR2DMap();
269   Bool_t   GetAbsFastORIndexFromTRU(const Int_t iTRU, const Int_t iADC, Int_t& id) const;
270   Bool_t                    GetAbsFastORIndexFromPositionInTRU(const Int_t iTRU, const Int_t iEta, const Int_t iPhi, Int_t& id) const;  
271   Bool_t                    GetAbsFastORIndexFromPositionInSM( const Int_t  iSM, const Int_t iEta, const Int_t iPhi, Int_t& id) const;  
272   Bool_t                    GetAbsFastORIndexFromPositionInEMCAL(                const Int_t iEta, const Int_t iPhi, Int_t& id) const;
273   Bool_t             GetTRUFromAbsFastORIndex(const Int_t id, Int_t& iTRU, Int_t& iADC) const;
274   Bool_t   GetPositionInTRUFromAbsFastORIndex(const Int_t id, Int_t& iTRU, Int_t& iEta, Int_t& iPhi) const;
275   Bool_t    GetPositionInSMFromAbsFastORIndex(const Int_t id, Int_t& iSM, Int_t& iEta, Int_t& iPhi) const;
276   Bool_t GetPositionInEMCALFromAbsFastORIndex(const Int_t id, Int_t& iEta, Int_t& iPhi) const;
277   Bool_t          GetFastORIndexFromCellIndex(const Int_t id, Int_t& idx) const;
278   Bool_t          GetCellIndexFromFastORIndex(const Int_t id, Int_t idx[4]) const;
279   Bool_t              GetTRUIndexFromSTUIndex(const Int_t id, Int_t& idx) const;
280   Int_t               GetTRUIndexFromSTUIndex(const Int_t id) const;
281   Bool_t           GetTRUIndexFromOnlineIndex(const Int_t id, Int_t& idx) const;
282   Int_t            GetTRUIndexFromOnlineIndex(const Int_t id) const;
283   Bool_t           GetOnlineIndexFromTRUIndex(const Int_t id, Int_t& idx) const;
284   Int_t            GetOnlineIndexFromTRUIndex(const Int_t id) const;
285   Bool_t            GetFastORIndexFromL0Index(const Int_t iTRU, const Int_t id, Int_t idx[], const Int_t size) const;
286         
287   ///////////////////
288   // useful utilities
289   //
290   Float_t AngleFromEta(Float_t eta)        const { // returns theta in radians for a given pseudorapidity
291     return 2.0*TMath::ATan(TMath::Exp(-eta));
292   }
293   Float_t ZFromEtaR(Float_t r,Float_t eta) const { // returns z in for a given
294     // pseudorapidity and r=sqrt(x*x+y*y).
295     return r/TMath::Tan(AngleFromEta(eta));
296   }
297
298   //Method to set shift-rotational matrixes from ESDHeader
299   void SetMisalMatrix(const TGeoHMatrix * m, Int_t smod);
300         
301   //Alternate geometry that allows to calculate tower position for different particles and different alignments
302   void RecalculateTowerPosition(Float_t drow, Float_t dcol, const Int_t sm, const Float_t depth,
303                                 const Float_t misaligTransShifts[15], const Float_t misaligRotShifts[15],Float_t global[3]) const;
304   
305   //Returns shift-rotational matrixes for different volumes
306   const TGeoHMatrix * GetMatrixForSuperModule(Int_t smod)const ;
307         
308 protected:
309
310   void Init(void);                   // initializes the parameters of EMCAL
311   
312   AliEMCALEMCGeometry * fEMCGeometry;// Geometry object for Electromagnetic calorimeter
313
314   TString  fGeoName;                 // geometry name
315   Int_t    *fEMCSMSystem;                  // geometry structure
316   Int_t    fKey110DEG;               // for calculation abs cell id; 19-oct-05 
317   Int_t    fnSupModInDCAL;           // for calculation abs cell id; 06-nov-12
318   Int_t    fNCellsInSupMod;          // number cell in super module
319   Int_t    fNETAdiv;                 // number eta divizion of module
320   Int_t    fNPHIdiv;                 // number phi divizion of module
321   Int_t    fNCellsInModule;          // number cell in module
322   TArrayD  fPhiBoundariesOfSM;       // phi boundaries of SM in rad; size is fNumberOfSuperModules;
323   TArrayD  fPhiCentersOfSM;          // phi of centers of SM; size is fNumberOfSuperModules/2
324   TArrayD  fPhiCentersOfSMSec;       // phi of centers of section where SM lies; size is fNumberOfSuperModules/2
325   // Local Coordinates of SM
326   TArrayD  fPhiCentersOfCells;       // [fNPhi*fNPHIdiv] from center of SM (-10. < phi < +10.)
327   TArrayD  fCentersOfCellsEtaDir;    // size fNEta*fNETAdiv (for TRD1 only) (eta or z in SM, in cm)
328   TArrayD  fCentersOfCellsPhiDir;    // size fNPhi*fNPHIdiv (for TRD1 only) (phi or y in SM, in cm)
329   TArrayD  fEtaCentersOfCells;       // [fNEta*fNETAdiv*fNPhi*fNPHIdiv], positive direction (eta>0); eta depend from phi position; 
330   Int_t    fNCells;                  // number of cells in calo
331   Int_t    fNPhi;                    // Number of Towers in the PHI direction
332   TArrayD  fCentersOfCellsXDir;      // size fNEta*fNETAdiv (for TRD1 only) (       x in SM, in cm)
333   Float_t  fEnvelop[3];              // the GEANT TUB for the detector 
334   Float_t  fArm1EtaMin;              // Minimum pseudorapidity position of EMCAL in Eta
335   Float_t  fArm1EtaMax;              // Maximum pseudorapidity position of EMCAL in Eta
336   Float_t  fArm1PhiMin;              // Minimum angular position of EMCAL in Phi (degrees)
337   Float_t  fArm1PhiMax;              // Maximum angular position of EMCAL in Phi (degrees)
338   Float_t  fEtaMaxOfTRD1;            // Max eta in case of TRD1 geometry (see AliEMCALShishKebabTrd1Module)
339   Float_t  fDCALPhiMin;              // Minimum angular position of DCAL in Phi (degrees)
340   Float_t  fDCALPhiMax;              // Maximum angular position of DCAL in Phi (degrees)
341   Float_t  fEMCALPhiMax;             // Maximum angular position of EMCAL in Phi (degrees)
342   Float_t  fDCALStandardPhiMax;      // special edge for the case that DCAL contian extension
343   Float_t  fDCALInnerExtandedEta;    // DCAL inner edge in Eta (with some extension)
344   TList   *fShishKebabTrd1Modules;   // list of modules
345   Float_t  fParSM[3];                // SM sizes as in GEANT (TRD1)
346   Float_t  fPhiModuleSize;           // Phi -> X 
347   Float_t  fEtaModuleSize;           // Eta -> Y 
348   Float_t  fPhiTileSize;             // Size of phi tile
349   Float_t  fEtaTileSize;             // Size of eta tile
350   Int_t    fNZ;                      // Number of Towers in the Z direction
351   Float_t  fIPDistance;                    // Radial Distance of the inner surface of the EMCAL
352   Float_t  fLongModuleSize;          // Size of long module
353   // Geometry Parameters
354   Float_t  fShellThickness;              // Total thickness in (x,y) direction
355   Float_t  fZLength;                         // Total length in z direction
356   Float_t  fSampling;                        // Sampling factor
357
358   Int_t    fFastOR2DMap[48][124];    // FastOR 2D Map over full EMCal
359         
360   TGeoHMatrix* fkSModuleMatrix[AliEMCALGeoParams::fgkEMCALModules] ; //Orientations of EMCAL super modules
361   Bool_t   fUseExternalMatrices;      // Use the matrices set in fkSModuleMatrix and not those in the geoManager
362         
363 private:
364   
365   static AliEMCALGeometry *fgGeom;                     // Pointer to the unique instance of the singleton
366   static Bool_t            fgInit;                     // Tells if geometry has been succesfully set up.
367   static const Char_t     *fgkDefaultGeometryName; // Default name of geometry
368   
369   
370   ClassDef(AliEMCALGeometry,17)       // EMCAL geometry class 
371
372 } ;
373
374 #endif // AliEMCALGEOUTILS_H
375