]>
Commit | Line | Data |
---|---|---|
dd9a6ee3 | 1 | #ifndef ALITRDGEOMETRY_H |
2 | #define ALITRDGEOMETRY_H | |
f7336fa3 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
db30bf0f | 6 | /* $Id$ */ |
f7336fa3 | 7 | |
0a29d0f1 | 8 | /////////////////////////////////////////////////////////////////////////////// |
9 | // // | |
10 | // TRD geometry class // | |
11 | // // | |
12 | /////////////////////////////////////////////////////////////////////////////// | |
13 | ||
94de3818 | 14 | #include "AliGeometry.h" |
f7336fa3 | 15 | |
bdbb05bb | 16 | class AliRunLoader; |
5443e65e | 17 | class AliTRDparameter; |
18 | ||
f7336fa3 | 19 | class AliTRDgeometry : public AliGeometry { |
20 | ||
21 | public: | |
22 | ||
dd56b762 | 23 | enum { kNplan = 6, kNcham = 5, kNsect = 18, kNdet = 540 }; |
24 | ||
f7336fa3 | 25 | AliTRDgeometry(); |
8230f242 | 26 | virtual ~AliTRDgeometry(); |
f7336fa3 | 27 | |
cbba4394 | 28 | virtual void CreateGeometry(Int_t *idtmed); |
793ff80c | 29 | virtual Int_t IsVersion() const = 0; |
30 | virtual void Init(); | |
73ae7b59 | 31 | virtual Bool_t Impact(const TParticle* ) const { return kTRUE; }; |
a5cadd36 | 32 | virtual Bool_t Local2Global(Int_t d, Double_t *local, Double_t *global, AliTRDparameter *par) const; |
33 | virtual Bool_t Local2Global(Int_t p, Int_t c, Int_t s | |
34 | , Double_t *local, Double_t *global, AliTRDparameter *par) const; | |
3d7b6a24 | 35 | |
a5cadd36 | 36 | virtual Bool_t Global2Local(Int_t mode, Double_t *local, Double_t *global |
37 | , Int_t* index, AliTRDparameter *par) const; | |
38 | virtual Bool_t Global2Detector(Double_t global[3], Int_t index[3], AliTRDparameter *par); | |
3d7b6a24 | 39 | |
a5cadd36 | 40 | virtual Bool_t Rotate(Int_t d, Double_t *pos, Double_t *rot) const; |
41 | virtual Bool_t RotateBack(Int_t d, Double_t *rot, Double_t *pos) const; | |
793ff80c | 42 | |
43 | static Int_t Nsect() { return fgkNsect; }; | |
44 | static Int_t Nplan() { return fgkNplan; }; | |
45 | static Int_t Ncham() { return fgkNcham; }; | |
46 | static Int_t Ndet() { return fgkNdet; }; | |
47 | ||
48 | static Float_t Rmin() { return fgkRmin; }; | |
49 | static Float_t Rmax() { return fgkRmax; }; | |
50 | static Float_t Zmax1() { return fgkZmax1; }; | |
51 | static Float_t Zmax2() { return fgkZmax2; }; | |
52 | ||
53 | static Float_t Cwidcha() { return (fgkSwidth2 - fgkSwidth1) | |
0a770ac9 | 54 | / fgkSheight * (fgkCH + fgkVspace); }; |
55 | static Float_t Cheight() { return fgkCH; }; | |
56 | static Float_t Cspace() { return fgkVspace; }; | |
57 | static Float_t CraHght() { return fgkCraH; }; | |
58 | static Float_t CdrHght() { return fgkCdrH; }; | |
59 | static Float_t CamHght() { return fgkCamH; }; | |
60 | static Float_t CroHght() { return fgkCroH; }; | |
287c5d50 | 61 | static Float_t CroWid() { return fgkCroW; }; |
793ff80c | 62 | static Float_t MyThick() { return fgkMyThick; }; |
63 | static Float_t DrThick() { return fgkDrThick; }; | |
a2b90f83 | 64 | static Float_t AmThick() { return fgkAmThick; }; |
a2b90f83 | 65 | static Float_t DrZpos() { return fgkDrZpos; }; |
17b26de4 | 66 | static Float_t RpadW() { return fgkRpadW; }; |
67 | static Float_t CpadW() { return fgkCpadW; }; | |
793ff80c | 68 | |
69 | virtual void SetPHOShole() = 0; | |
70 | virtual void SetRICHhole() = 0; | |
71 | ||
793ff80c | 72 | virtual Bool_t GetPHOShole() const = 0; |
73 | virtual Bool_t GetRICHhole() const = 0; | |
f2649dd2 | 74 | virtual Bool_t IsHole(Int_t /*iplan*/, Int_t /*icham*/, Int_t /*isect*/) const {return kFALSE;} |
afc51ac2 | 75 | virtual Int_t GetDetectorSec(Int_t p, Int_t c) const; |
76 | virtual Int_t GetDetector(Int_t p, Int_t c, Int_t s) const; | |
77 | virtual Int_t GetPlane(Int_t d) const; | |
78 | virtual Int_t GetChamber(Int_t d) const; | |
79 | virtual Int_t GetSector(Int_t d) const; | |
80 | ||
a5cadd36 | 81 | Float_t GetChamberWidth(Int_t p) const { return fCwidth[p]; }; |
afc51ac2 | 82 | Float_t GetChamberLength(Int_t p, Int_t c) const { return fClength[p][c]; }; |
0a770ac9 | 83 | |
73ae7b59 | 84 | virtual void GetGlobal(const AliRecPoint* , TVector3& , TMatrix& ) const { }; |
85 | virtual void GetGlobal(const AliRecPoint* , TVector3& ) const { }; | |
5443e65e | 86 | |
a2b90f83 | 87 | static Double_t GetAlpha() { return 2 * 3.14159265358979323846 / fgkNsect; }; |
f7336fa3 | 88 | |
bdbb05bb | 89 | static AliTRDgeometry* GetGeometry(AliRunLoader* runLoader = NULL); |
90 | ||
793ff80c | 91 | protected: |
3d7b6a24 | 92 | |
793ff80c | 93 | static const Int_t fgkNsect; // Number of sectors in the full detector (18) |
94 | static const Int_t fgkNplan; // Number of planes of the TRD (6) | |
95 | static const Int_t fgkNcham; // Number of chambers in z-direction (5) | |
96 | static const Int_t fgkNdet; // Total number of detectors (18 * 6 * 5 = 540) | |
97 | ||
98 | static const Float_t fgkRmin; // Minimal radius of the TRD | |
99 | static const Float_t fgkRmax; // Maximal radius of the TRD | |
100 | ||
101 | static const Float_t fgkZmax1; // Half-length of the TRD at outer radius | |
102 | static const Float_t fgkZmax2; // Half-length of the TRD at inner radius | |
103 | ||
104 | static const Float_t fgkSheight; // Height of the TRD-volume in spaceframe (BTR1-3) | |
105 | static const Float_t fgkSwidth1; // Lower width of the TRD-volume in spaceframe (BTR1-3) | |
106 | static const Float_t fgkSwidth2; // Upper width of the TRD-volume in spaceframe (BTR1-3) | |
107 | static const Float_t fgkSlenTR1; // Length of the TRD-volume in spaceframe (BTR1) | |
108 | static const Float_t fgkSlenTR2; // Length of the TRD-volume in spaceframe (BTR2) | |
109 | static const Float_t fgkSlenTR3; // Length of the TRD-volume in spaceframe (BTR3) | |
110 | ||
73ae7b59 | 111 | static const Float_t fgkSMpltT; // Thickness of the super module side plates |
112 | static const Float_t fgkSMgapT; // Thickness of the gap between side plates and space frame | |
113 | ||
0a770ac9 | 114 | static const Float_t fgkCraH; // Height of the radiator part of the chambers |
115 | static const Float_t fgkCdrH; // Height of the drift region of the chambers | |
116 | static const Float_t fgkCamH; // Height of the amplification region of the chambers | |
117 | static const Float_t fgkCroH; // Height of the readout of the chambers | |
118 | static const Float_t fgkCH; // Total height of the chambers | |
119 | ||
120 | static const Float_t fgkVspace; // Vertical spacing of the chambers | |
121 | static const Float_t fgkHspace; // Horizontal spacing of the chambers | |
122 | ||
123 | static const Float_t fgkCalT; // Thickness of the lower aluminum frame | |
124 | static const Float_t fgkCclsT; // Thickness of the lower G10 frame sides | |
125 | static const Float_t fgkCclfT; // Thickness of the lower G10 frame front | |
126 | static const Float_t fgkCcuT; // Thickness of the upper G10 frame | |
127 | static const Float_t fgkCauT; // Thickness of the upper aluminum frame | |
128 | ||
129 | static const Float_t fgkCroW; // Additional width of the readout chamber frames | |
130 | ||
131 | static const Float_t fgkCpadW; // Difference of outer chamber width and pad plane width | |
132 | static const Float_t fgkRpadW; // Difference of outer chamber width and pad plane width | |
793ff80c | 133 | |
793ff80c | 134 | static const Float_t fgkRaThick; // Thickness of the radiator |
793ff80c | 135 | static const Float_t fgkMyThick; // Thickness of the mylar-layer |
136 | static const Float_t fgkXeThick; // Thickness of the gas volume | |
137 | static const Float_t fgkDrThick; // Thickness of the drift region | |
138 | static const Float_t fgkAmThick; // Thickness of the amplification region | |
139 | static const Float_t fgkCuThick; // Thickness of the pad plane | |
140 | static const Float_t fgkSuThick; // Thickness of the HEXCEL+G10 support structure | |
141 | static const Float_t fgkFeThick; // Thickness of the FEE + signal lines | |
142 | static const Float_t fgkCoThick; // Thickness of the PE of the cooling device | |
143 | static const Float_t fgkWaThick; // Thickness of the cooling water | |
144 | ||
793ff80c | 145 | static const Float_t fgkRaZpos; // Position of the radiator |
793ff80c | 146 | static const Float_t fgkMyZpos; // Position of the mylar-layer |
147 | static const Float_t fgkDrZpos; // Position of the drift region | |
148 | static const Float_t fgkAmZpos; // Position of the amplification region | |
149 | static const Float_t fgkCuZpos; // Position of the pad plane | |
150 | static const Float_t fgkSuZpos; // Position of the HEXCEL+G10 support structure | |
151 | static const Float_t fgkFeZpos; // Position of the FEE + signal lines | |
152 | static const Float_t fgkCoZpos; // Position of the PE of the cooling device | |
153 | static const Float_t fgkWaZpos; // Position of the colling water | |
154 | ||
0a770ac9 | 155 | Float_t fCwidth[kNplan]; // Outer widths of the chambers |
156 | Float_t fClength[kNplan][kNcham]; // Outer lengths of the chambers | |
157 | Float_t fClengthPH[kNplan][kNcham]; // For sectors with holes for the PHOS | |
158 | Float_t fClengthRH[kNplan][kNcham]; // For sectors with holes for the RICH | |
793ff80c | 159 | |
793ff80c | 160 | Float_t fRotA11[kNsect]; // Matrix elements for the rotation |
161 | Float_t fRotA12[kNsect]; // Matrix elements for the rotation | |
162 | Float_t fRotA21[kNsect]; // Matrix elements for the rotation | |
163 | Float_t fRotA22[kNsect]; // Matrix elements for the rotation | |
164 | ||
165 | Float_t fRotB11[kNsect]; // Matrix elements for the backward rotation | |
166 | Float_t fRotB12[kNsect]; // Matrix elements for the backward rotation | |
167 | Float_t fRotB21[kNsect]; // Matrix elements for the backward rotation | |
168 | Float_t fRotB22[kNsect]; // Matrix elements for the backward rotation | |
169 | ||
73ae7b59 | 170 | ClassDef(AliTRDgeometry,6) // TRD geometry base class |
f7336fa3 | 171 | |
172 | }; | |
173 | ||
174 | #endif |