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