]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/AliEMCALGeometry.h
Stupid bug fix in new superlight mode (from Zurich airport)
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALGeometry.h
CommitLineData
2012850d 1#ifndef ALIEMCALGEOMETRY_H
2#define ALIEMCALGEOMETRY_H
e8c0d6bb 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2012850d 4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8//_________________________________________________________________________
9// Geometry class for EMCAL : singleton
b13bbe81 10// EMCAL consists of a layers of scintillator, and lead.
2012850d 11//
b13bbe81 12//*-- Author: Sahal Yacoob (LBL / UCT)
13//*-- and : Yves Schutz (Subatech)
3d841a9f 14//*-- and : Alexei Pavlinov (WSU) - shashlyk staff
f0377b23 15//*-- and : Gustavo Conesa: Add TRU mapping. TRU parameters still not fixed.
e8c0d6bb 16//*-- and : Magali Estienne : analysis access adaptations
8cc543cb 17//*-- and : Adapted for DCAL, M.L. Wang CCNU & Subatech Oct-18-2012
2012850d 18
19// --- ROOT system ---
e8c0d6bb 20#include <TNamed.h>
37890aaf 21#include <TMath.h>
22#include <TArrayD.h>
e8c0d6bb 23#include <TVector3.h>
24#include <TGeoMatrix.h>
25class TBrowser ;
26class TParticle ;
2012850d 27
2012850d 28// --- AliRoot header files ---
0c5b726e 29#include "AliEMCALEMCGeometry.h"
e8c0d6bb 30#include "AliEMCALGeoParams.h"
31class AliEMCALShishKebabTrd1Module;
a520bcd0 32class AliLog;
090026bf 33
e8c0d6bb 34class AliEMCALGeometry : public TNamed {
2012850d 35
e8c0d6bb 36public:
8cc543cb 37 enum fEMCSMType { kEMCAL_Standard = 0, kEMCAL_Half = 1, kEMCAL_3rd = 2, kDCAL_Standard = 3, kDCAL_Ext= 4 }; // possible SM Type
0c5b726e 38
e8c0d6bb 39 AliEMCALGeometry();
126215a5 40 AliEMCALGeometry(const Text_t* name, const Text_t* title="",
41 const Text_t* mcname="", const Text_t* mctitle="");
e8c0d6bb 42 AliEMCALGeometry(const AliEMCALGeometry & geom);
43
d434833b 44 virtual ~AliEMCALGeometry(void);
e8c0d6bb 45 AliEMCALGeometry & operator = (const AliEMCALGeometry & rvalue);
46
126215a5 47 static AliEMCALGeometry * GetInstance(const Text_t* name, const Text_t* title="",
48 const Text_t* mcname="TGeant3", const Text_t* mctitle="") ;
89557f6d 49 static AliEMCALGeometry * GetInstance();
937d0661 50
937d0661 51
52 //////////
53 // General
54 //
000bb28f 55 static Bool_t IsInitialized(void) {return AliEMCALEMCGeometry::fgInit; }
0c5b726e 56 static const Char_t* GetDefaultGeometryName() {return AliEMCALEMCGeometry::fgkDefaultGeometryName;}
e8c0d6bb 57
58 /////////////
59 // TRD1 stuff
60 void CreateListOfTrd1Modules();
61 TList *GetShishKebabTrd1Modules() const {return fShishKebabTrd1Modules;}
62 AliEMCALShishKebabTrd1Module *GetShishKebabModule(Int_t neta) const;
0c5b726e 63
e8c0d6bb 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;
ab37d09c 69
bccc4a4f 70 virtual Bool_t Impact(const TParticle *particle) const;
e8c0d6bb 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;
8cc543cb 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;
937d0661 75
76 //////////////////////////////////////
c63c3c5d 77 // Return EMCAL geometrical parameters
937d0661 78 //
e8c0d6bb 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() ; }
8cc543cb 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() ; }
e8c0d6bb 95 Int_t GetNECLayers(void) const { return fEMCGeometry->GetNECLayers() ; }
8cc543cb 96 Float_t GetDCALInnerExtandedEta(void) const { return fEMCGeometry->GetDCALInnerExtandedEta() ; }
e8c0d6bb 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() ; }
8cc543cb 104 Float_t GetPhiGapForSuperModules(void) const { return fEMCGeometry->GetPhiGapForSuperModules(); }
e8c0d6bb 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() ; }
8cc543cb 112 Float_t GetPhiSuperModule(void) const { return fEMCGeometry->GetPhiSuperModule() ; }
e8c0d6bb 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() ; }
8cc543cb 126 Int_t GetnSupModInDCAL(void) const { return fEMCGeometry->GetnSupModInDCAL() ; }
e8c0d6bb 127 Int_t GetILOSS(void) const { return fEMCGeometry->GetILOSS() ; }
128 Int_t GetIHADR(void) const { return fEMCGeometry->GetIHADR() ; }
85c25c2e 129 // --
e8c0d6bb 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() ; }
937d0661 133 //
e8c0d6bb 134 Double_t GetPhiCenterOfSM(Int_t nsupmod) const { return fEMCGeometry->GetPhiCenterOfSM(nsupmod) ; }
8cc543cb 135 Double_t GetPhiCenterOfSMSec(Int_t nsupmod) const { return fEMCGeometry->GetPhiCenterOfSMSec(nsupmod) ; }
e8c0d6bb 136 Float_t GetSuperModulesPar(Int_t ipar) const { return fEMCGeometry->GetSuperModulesPar(ipar) ; }
937d0661 137 //
8cc543cb 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;
e8c0d6bb 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); }
937d0661 146 //
8cc543cb 147 // especially for SM in extension, where center of SM != center of the SM-section.
148 // Used in AliEMCALv0 to calculate position.
225cd96d 149
e8c0d6bb 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
937d0661 162 ///////////////////////////////
163 //Geometry data member setters
164 //
e8c0d6bb 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;
937d0661 207
e8c0d6bb 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 {
8cc543cb 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;
e8c0d6bb 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;
3d841a9f 231
e8c0d6bb 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;
f0377b23 239
8cc543cb 240 Int_t * GetEMCSystem() const { return fEMCSMSystem ; } //EMC System, SM type list
e8c0d6bb 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.)
d434833b 248
e8c0d6bb 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() ; }
8cc543cb 258 Int_t GetNTotalTRU() const {return fEMCGeometry->GetNTotalTRU() ; }
e8c0d6bb 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 ;
937d0661 266
e8c0d6bb 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;
804b828a 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;
e8c0d6bb 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 }
d434833b 297
e8c0d6bb 298 //Method to set shift-rotational matrixes from ESDHeader
bccc4a4f 299 void SetMisalMatrix(const TGeoHMatrix * m, Int_t smod);
e8c0d6bb 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;
a97849a9 304
e8c0d6bb 305 //Returns shift-rotational matrixes for different volumes
306 const TGeoHMatrix * GetMatrixForSuperModule(Int_t smod)const ;
307
308protected:
309
35a1bfe6 310 void Init(void); // initializes the parameters of EMCAL
ee8f18d6 311
35a1bfe6 312 AliEMCALEMCGeometry * fEMCGeometry;// Geometry object for Electromagnetic calorimeter
e8c0d6bb 313
314 TString fGeoName; // geometry name
0663d9e3 315 Int_t *fEMCSMSystem; // geometry structure
e8c0d6bb 316 Int_t fKey110DEG; // for calculation abs cell id; 19-oct-05
0663d9e3 317 Int_t fnSupModInDCAL; // for calculation abs cell id; 06-nov-12
e8c0d6bb 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;
8cc543cb 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
e8c0d6bb 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
8cc543cb 331 Int_t fNPhi; // Number of Towers in the PHI direction
e8c0d6bb 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)
8cc543cb 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)
35a1bfe6 344 TList *fShishKebabTrd1Modules; // list of modules
e8c0d6bb 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
0663d9e3 351 Float_t fIPDistance; // Radial Distance of the inner surface of the EMCAL
e8c0d6bb 352 Float_t fLongModuleSize; // Size of long module
353 // Geometry Parameters
0663d9e3 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
937d0661 357
0663d9e3 358 Int_t fFastOR2DMap[48][124]; // FastOR 2D Map over full EMCal
e8c0d6bb 359
360 TGeoHMatrix* fkSModuleMatrix[AliEMCALGeoParams::fgkEMCALModules] ; //Orientations of EMCAL super modules
35a1bfe6 361 Bool_t fUseExternalMatrices; // Use the matrices set in fkSModuleMatrix and not those in the geoManager
e8c0d6bb 362
363private:
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
8cc543cb 370 ClassDef(AliEMCALGeometry,17) // EMCAL geometry class
937d0661 371
e8c0d6bb 372} ;
937d0661 373
e8c0d6bb 374#endif // AliEMCALGEOUTILS_H
2012850d 375