]>
Commit | Line | Data |
---|---|---|
dc7ca31d | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
7 | * Permission to use, copy, modify and distribute this software and its * | |
8 | * documentation strictly for non-commercial purposes is hereby granted * | |
9 | * without fee, provided that the above copyright notice appears in all * | |
10 | * copies and that both the copyright notice and this permission notice * | |
11 | * appear in the supporting documentation. The authors make no claims * | |
12 | * about the suitability of this software for any purpose. It is * | |
13 | * provided "as is" without express or implied warranty. * | |
14 | **************************************************************************/ | |
15 | ||
16 | /* $Id$ */ | |
17 | ||
18 | ///////////////////////////////////////////////////////////////////// | |
19 | // // | |
20 | // T0 ( T-zero) detector version 0 // | |
21 | // | |
22 | //Begin Html | |
23 | /* | |
24 | <img src="gif/AliT0v0Class.gif"> | |
25 | */ | |
26 | //End Html | |
27 | // // | |
28 | // // | |
29 | ////////////////////////////////////////////////////////////////////// | |
30 | ||
31 | #include <Riostream.h> | |
32 | #include <stdlib.h> | |
33 | ||
f7a1cc68 | 34 | #include <TGeoGlobalMagField.h> |
dc7ca31d | 35 | #include <TLorentzVector.h> |
36 | #include <TMath.h> | |
dc7ca31d | 37 | #include <TVirtualMC.h> |
38 | ||
39 | #include "AliLog.h" | |
40 | #include "AliMagF.h" | |
41 | #include "AliRun.h" | |
42 | #include "AliT0hit.h" | |
43 | #include "AliT0v0.h" | |
44 | #include "AliLog.h" | |
45 | ||
46 | ClassImp(AliT0v0) | |
47 | ||
48 | //-------------------------------------------------------------------- | |
49 | AliT0v0::AliT0v0(const char *name, const char *title): | |
a9ab7568 | 50 | AliT0(name,title), |
51 | fIdSens1(0) | |
dc7ca31d | 52 | { |
53 | // | |
54 | // Standart constructor for T0 Detector version 0 | |
55 | // | |
a9ab7568 | 56 | // fIdSens1=0; |
dc7ca31d | 57 | // setBufferSize(128000); |
58 | } | |
59 | //------------------------------------------------------------------------- | |
60 | void AliT0v0::CreateGeometry() | |
61 | { | |
62 | // | |
63 | // Create the geometry of T0 Detector version 0 | |
64 | // Full geometry with support structure according T0 prototype | |
65 | // | |
66 | // begin Html | |
67 | /* | |
68 | <img src="gif/AliT0v0.gif"> | |
69 | */ | |
70 | // | |
71 | ||
72 | ||
73 | ||
74 | Int_t *idtmed = fIdtmed->GetArray(); | |
75 | ||
76 | Int_t is; | |
77 | Int_t idrotm[999]; | |
78 | Float_t x,y,z; | |
79 | Float_t pstartR[18]={0., 360., 5., | |
80 | -76.5+0.00+69.7, 4.25, 10., | |
81 | -76.5+6.05+69.7, 4.5, 10., | |
82 | -76.5+8.05+69.7, 4.5, 10., | |
83 | -76.5+8.05+69.7, 5.1, 10., | |
84 | -62.9+0.00+69.7, 5.1, 10.}; | |
85 | ||
86 | Float_t pstart[3]={4.3, 12.,6.8}; | |
87 | Float_t pinstart[3]={0.,1.6,6.5}; | |
88 | Float_t ppmt[3]={0.,1.5,3.5}; | |
89 | ||
90 | Float_t preg[3]={0.,0.875,0.005}; //dobavil bogdanov | |
91 | ||
92 | Float_t pdivider[3]={0.,1.2,1.75}; | |
93 | Float_t pdiv2[3]={0.,1.2,1.25}; | |
94 | Float_t pdiv1[3]={0.6,1.2,0.5}; | |
95 | // Float_t ptop[3]={0.,1.3,1.5}; | |
96 | Float_t ptop[3]={0.,1.0,1.5}; | |
97 | Float_t pbot[3]={0.6,1.2,0.1}; | |
98 | Float_t pglass[3]={1.2,1.3,2.}; | |
99 | Float_t pcer[3]={0.9,1.1,0.09}; | |
100 | Float_t psteel[3]={0.9,1.1,0.01}; | |
101 | Float_t ppins[3]={0.6,1.2,0.014}; | |
102 | Float_t phole[3]={0.6,1.2,0.015}; | |
103 | Float_t pknob[3]={0.5,0.6,0.4}; | |
104 | Float_t pknob_vac[3]={0.,0.5,0.4}; | |
105 | Float_t pknob_bot[3]={0.,0.6,0.05}; | |
106 | Float_t pribber[3] = {0.,1.2,2.413/2.}; | |
107 | Float_t presist[3] = {0.,1.2,0.087/2.}; | |
108 | Float_t psupport1[3] = {4.51,4.6,4.0};//C kozhuh vnutri | |
109 | Float_t psupport2[3] = {9.4,9.5,4.0};// snaruzhi C | |
110 | Float_t psupport3[3] = {4.51,9.5,0.05};//kryshki C | |
111 | Float_t psupport5[3] = {1.44,1.5,6.5}; // stakanchik dlai feu C | |
112 | Float_t psupport6[3] = {0,1.5,0.05}; //kryshechka stakanchika Al | |
113 | Float_t psupport7[3] = {1.5,1.6,0.6}; //kolechko snaruzhu stakanchika Al | |
114 | // Mother Volume katushka dlia krepezha vokrug truby k Absorbru | |
115 | AliMatrix(idrotm[901], 90., 0., 90., 90., 180., 0.); | |
116 | Float_t ppcon[70]; | |
117 | ppcon[0] = 0; | |
118 | ppcon[1] = 360; | |
119 | ppcon[2] = 13; | |
120 | // 1: | |
121 | ppcon[3] = 14.1/2; | |
122 | ppcon[4] = 4.4; | |
123 | ppcon[5] = 4.5; | |
124 | // 2 | |
125 | ppcon[6] = ppcon[3]+1.; | |
126 | ppcon[7] = 4.4; | |
127 | ppcon[8] = 4.5; | |
128 | // 3 | |
129 | ppcon[9] = ppcon[6]; | |
130 | ppcon[10] = 4.4; | |
131 | ppcon[11] = 5.1; | |
132 | ||
133 | // 4 | |
134 | ||
135 | ppcon[12] = ppcon[9]+0.1; | |
136 | ppcon[13] = 4.4; | |
137 | ppcon[14] = 5.1; | |
138 | // 5 | |
139 | ||
140 | ppcon[15] = ppcon[12]; | |
141 | ppcon[16] = 4.9; | |
142 | ppcon[17] = 5.1; | |
143 | ||
144 | // 6 | |
145 | ppcon[18] = ppcon[15]+7.05; | |
146 | ppcon[19] = 4.9; | |
147 | ppcon[20] = 5.1; | |
148 | ||
149 | // 7 | |
150 | ppcon[21] = ppcon[18]; | |
151 | ppcon[22] = 4.9; | |
152 | ppcon[23] = 5.1; | |
153 | ||
154 | /// 8 | |
155 | ppcon[24] = ppcon[21]+0.01; | |
156 | ppcon[25] = 3.15; | |
157 | ppcon[26] = 3.25; | |
158 | ||
159 | /// 9 | |
160 | ppcon[27] = ppcon[24]; | |
161 | ppcon[28] = 3.15; | |
162 | ppcon[29] = 3.25; | |
163 | ||
164 | // 10 | |
165 | ppcon[30] = ppcon[27]+4.5; | |
166 | ppcon[31] = 3.15; | |
167 | ppcon[32] = 3.25; | |
168 | ||
169 | // 11 | |
170 | ppcon[33] = ppcon[30]; | |
171 | ppcon[34] = 3.15; | |
172 | ppcon[35] = 3.25; | |
173 | ||
174 | // 12 | |
175 | ppcon[36] = ppcon[33]; | |
176 | ppcon[37] = 3.15; | |
177 | ppcon[38] = 7.6; | |
178 | ||
179 | // 13 | |
180 | ppcon[39] = ppcon[33]+0.4; | |
181 | ppcon[40] = 3.15; | |
182 | ppcon[41] = 7.6; | |
183 | ||
184 | // 14 | |
185 | // ppcon[39] = ppcon[36]; | |
186 | // ppcon[40] = 3.15; | |
187 | // ppcon[41] = 7.6; | |
188 | ||
2942f542 | 189 | TVirtualMC::GetMC()->Gsvolu("0SUP", "PCON", idtmed[kAir], ppcon,42); |
dc7ca31d | 190 | z=-69.7;//-14.1/2; |
2942f542 | 191 | TVirtualMC::GetMC()->Gspos("0SUP",1,"ALIC",0.,0.,z,idrotm[901],"ONLY"); |
dc7ca31d | 192 | |
193 | ||
194 | Float_t zdetRight=69.7,zdetLeft=350; | |
195 | //------------------------------------------------------------------- | |
196 | // T0 volume | |
197 | //------------------------------------------------------------------- | |
198 | ||
199 | ||
2942f542 | 200 | TVirtualMC::GetMC()->Gsvolu("0STR","PCON",idtmed[kAir],pstartR,18); |
201 | TVirtualMC::GetMC()->Gsvolu("0STL","TUBE",idtmed[kAir],pstart,3); | |
202 | TVirtualMC::GetMC()->Gspos("0STR",1,"ALIC",0.,0.,-zdetRight-pstart[2],idrotm[901],"ONLY"); | |
203 | TVirtualMC::GetMC()->Gspos("0STL",1,"ALIC",0.,0.,zdetLeft+pstart[2],0,"ONLY"); | |
dc7ca31d | 204 | |
205 | //T0 interior | |
2942f542 | 206 | TVirtualMC::GetMC()->Gsvolu("0INS","TUBE",idtmed[kAir],pinstart,3); |
207 | TVirtualMC::GetMC()->Gsvolu("0PMT","TUBE",idtmed[kOpAir],ppmt,3); | |
208 | TVirtualMC::GetMC()->Gsvolu("0DIV","TUBE",idtmed[kVac],pdivider,3); | |
209 | TVirtualMC::GetMC()->Gsvolu("0SU1","TUBE",idtmed[kC],psupport1,3);//C kozhuh vnutri | |
210 | TVirtualMC::GetMC()->Gsvolu("0SU2","TUBE",idtmed[kC],psupport2,3);// snaruzhi C | |
211 | TVirtualMC::GetMC()->Gsvolu("0SU3","TUBE",idtmed[kC],psupport3,3);//kryshka perednaiai C | |
212 | TVirtualMC::GetMC()->Gsvolu("0SU4","TUBE",idtmed[kC],psupport3,3);//kryshka zadnaiai C | |
213 | // TVirtualMC::GetMC()->Gsvolu("0SU5","TUBE",idtmed[kAir],psupport4,3);// dyrki dlia feu v zadnej kryshke Air | |
214 | TVirtualMC::GetMC()->Gsvolu("0SU6","TUBE",idtmed[kC],psupport5,3);// stakanchik dlai feu C | |
215 | TVirtualMC::GetMC()->Gsvolu("0SU7","TUBE",idtmed[kAl],psupport6,3);//kryshechka stakanchika Al | |
216 | TVirtualMC::GetMC()->Gsvolu("0SU8","TUBE",idtmed[kAl],psupport7,3);//kolechko snaruzhu stakanchika Al | |
dc7ca31d | 217 | |
218 | // first ring: 12 units of Scintillator+PMT+divider | |
219 | Float_t theta = (180 / TMath::Pi()) * TMath::ATan(6.5 / zdetRight); | |
220 | Float_t angle = 2 * TMath::Pi() / 12; | |
221 | Float_t phi[3]; | |
222 | ||
223 | for (is=0; is<12; is++) | |
224 | { | |
225 | ||
226 | x = 6.5 * TMath::Sin(is * angle); | |
227 | y = 6.5 * TMath::Cos(is * angle); | |
228 | ||
229 | phi[0] = -30 * is; | |
230 | phi[1] = 90 - is * 30; | |
231 | phi[2] = 90 - is * 30; | |
232 | for (Int_t j = 0; j < 3; j++) | |
233 | if (phi[j] < 0) phi[j] += 360; | |
234 | ||
235 | AliMatrix (idrotm[902 + is], 90., phi[0], | |
236 | 90. + theta, phi[1], | |
237 | theta, phi[2]); | |
238 | z=-pstart[2]+pinstart[2]+0.2; | |
2942f542 | 239 | TVirtualMC::GetMC()->Gspos ("0INS", is + 1, "0STR", x, y, z, idrotm[902 + is], "ONLY"); |
240 | TVirtualMC::GetMC()->Gspos ("0INS", is + 13, "0STL", x, y, z, 0, "ONLY"); | |
dc7ca31d | 241 | |
242 | x = 9 * TMath::Sin(angle/2+is * angle); | |
243 | y = 9 * TMath::Cos(angle/2+is * angle); | |
244 | ||
2942f542 | 245 | TVirtualMC::GetMC()->Gspos ("0INS", is + 25, "0STL", x, y, z, 0, "ONLY"); |
dc7ca31d | 246 | |
247 | } | |
248 | ||
249 | ||
250 | x=0; | |
251 | y=0; | |
252 | z=-pinstart[2]+ppmt[2]+2.*psupport6[2]+0.1; | |
2942f542 | 253 | TVirtualMC::GetMC()->Gspos("0PMT",1,"0INS",x,y,z,0,"ONLY"); |
dc7ca31d | 254 | z=z+pdivider[2]+ppmt[2]; |
2942f542 | 255 | TVirtualMC::GetMC()->Gspos("0DIV",1,"0INS",x,y,z,0,"ONLY"); |
dc7ca31d | 256 | |
257 | // PMT | |
258 | ||
259 | // Entry window (glass) | |
2942f542 | 260 | TVirtualMC::GetMC()->Gsvolu("0TOP","TUBE",idtmed[kOpGlass],ptop,3); //glass |
261 | // TVirtualMC::GetMC()->Gsvolu("0TOP","TUBE",idtmed[12],ptop,3); //lucite | |
dc7ca31d | 262 | z=-ppmt[2]+ptop[2]; |
2942f542 | 263 | TVirtualMC::GetMC()->Gspos("0TOP",1,"0PMT",0,0,z,0,"ONLY"); |
dc7ca31d | 264 | |
265 | //Fotokatod | |
266 | ||
2942f542 | 267 | TVirtualMC::GetMC()->Gsvolu ("0REG", "TUBE", idtmed[kOpGlass], preg, 3); //photocathode dobavil bogdanov(AliT0v2) |
dc7ca31d | 268 | z = -ppmt[2] + 2 * ptop[2] + preg[2]; //photocathode dobavil bogdanov |
2942f542 | 269 | TVirtualMC::GetMC()->Gspos ("0REG", 1, "0PMT", 0, 0, z, 0, "ONLY"); //photocathode dobavil bogdanov(AliT0v2) |
dc7ca31d | 270 | |
271 | // Bottom glass | |
2942f542 | 272 | TVirtualMC::GetMC()->Gsvolu("0BOT","TUBE",idtmed[kGlass],pbot,3); |
dc7ca31d | 273 | z=ppmt[2]-pbot[2]; |
274 | AliDebugClass(1,Form(" Z bottom %f\n",z)); | |
2942f542 | 275 | TVirtualMC::GetMC()->Gspos("0BOT",1,"0PMT",0,0,z,0,"ONLY"); |
dc7ca31d | 276 | // Side cylinder glass |
2942f542 | 277 | TVirtualMC::GetMC()->Gsvolu("0OUT","TUBE",idtmed[kGlass],pglass,3); |
dc7ca31d | 278 | z=ppmt[2]-pglass[2]; |
2942f542 | 279 | TVirtualMC::GetMC()->Gspos("0OUT",1,"0PMT",0,0,z,0,"ONLY"); |
dc7ca31d | 280 | //PMT electrodes support structure |
2942f542 | 281 | TVirtualMC::GetMC()->Gsvolu("0CER","TUBE",idtmed[kCer],pcer,3); |
282 | TVirtualMC::GetMC()->Gsvolu("0STE","TUBE",idtmed[kSteel],psteel,3); | |
dc7ca31d | 283 | z=-ppmt[2]+2*ptop[2]+0.3;; |
284 | for (is=1; is<=15; is++) | |
285 | { | |
286 | z=z+psteel[2]+pcer[2]; | |
2942f542 | 287 | TVirtualMC::GetMC()->Gspos("0CER",is,"0PMT",0,0,z,0,"ONLY"); |
dc7ca31d | 288 | z=z+psteel[2]+pcer[2]; |
2942f542 | 289 | TVirtualMC::GetMC()->Gspos("0STE",is,"0PMT",0,0,z,0,"ONLY"); |
dc7ca31d | 290 | } |
291 | ||
292 | // Divider | |
293 | // Knob at the bottom of PMT baloon | |
294 | ||
2942f542 | 295 | TVirtualMC::GetMC()->Gsvolu("0NB","TUBE",idtmed[6],pknob,3); |
dc7ca31d | 296 | z=-pdivider[2]+pknob[2]; |
2942f542 | 297 | TVirtualMC::GetMC()->Gspos("0NB",1,"0DIV",0,0,z,0,"ONLY"); |
298 | TVirtualMC::GetMC()->Gsvolu("0KB","TUBE",idtmed[kGlass],pknob_bot,3); | |
dc7ca31d | 299 | z=-pdivider[2]+2*pknob[2]+pknob_bot[2]; |
2942f542 | 300 | TVirtualMC::GetMC()->Gspos("0KB",1,"0DIV ",0,0,z,0,"ONLY"); |
301 | TVirtualMC::GetMC()->Gsvolu("0VAC","TUBE",idtmed[kVac],pknob_vac,3); | |
dc7ca31d | 302 | z=-pdivider[2]+pknob_vac[2]; |
2942f542 | 303 | TVirtualMC::GetMC()->Gspos("0VAC",1,"0DIV",0,0,z,0,"ONLY"); |
dc7ca31d | 304 | //Steel pins + pin holes |
2942f542 | 305 | TVirtualMC::GetMC()->Gsvolu("0PIN","TUBE",idtmed[kSteel],ppins,3); |
dc7ca31d | 306 | z=-pdivider[2]+ppins[2]; |
2942f542 | 307 | TVirtualMC::GetMC()->Gspos("0PIN",1,"0DIV",0,0,z,0,"ONLY"); |
308 | TVirtualMC::GetMC()->Gsvolu("0HOL","TUBE",idtmed[kBrass],phole,3); | |
dc7ca31d | 309 | z=-pdivider[2]+2*ppins[2]+phole[2]; |
2942f542 | 310 | TVirtualMC::GetMC()->Gspos("0HOL",1,"0DIV",0,0,z,0,"ONLY"); |
dc7ca31d | 311 | |
312 | //Socket | |
2942f542 | 313 | TVirtualMC::GetMC()->Gsvolu("0V1","TUBE",idtmed[kCer],pdiv1,3); |
dc7ca31d | 314 | z=-pdivider[2]+pdiv1[2]; |
2942f542 | 315 | TVirtualMC::GetMC()->Gspos("0V1",1,"0DIV",0,0,z,0,"ONLY"); |
dc7ca31d | 316 | //Resistors |
2942f542 | 317 | TVirtualMC::GetMC()->Gsvolu("0V2","TUBE",idtmed[kAir],pdiv2,3); |
dc7ca31d | 318 | z=pdivider[2]-pdiv2[2]; |
2942f542 | 319 | TVirtualMC::GetMC()->Gspos("0V2",1,"0DIV",0,0,z,0,"ONLY"); |
320 | TVirtualMC::GetMC()->Gsvolu("0RS","TUBE",idtmed[kCer],presist,3); | |
dc7ca31d | 321 | z=-pdiv2[2]+presist[2]; |
2942f542 | 322 | TVirtualMC::GetMC()->Gspos("0RS",1,"0V2",0,0,z,0,"ONLY"); |
323 | TVirtualMC::GetMC()->Gsvolu("0RB","TUBE",idtmed[kRibber],pribber,3); | |
dc7ca31d | 324 | z=pdiv2[2]-pribber[2]; |
2942f542 | 325 | TVirtualMC::GetMC()->Gspos("0RB",1,"0V2",0,0,z,0,"ONLY"); |
dc7ca31d | 326 | |
327 | ||
328 | //Support left side | |
329 | /* | |
330 | z=-pstart[2]+psupport1[2]; | |
2942f542 | 331 | TVirtualMC::GetMC()->Gspos("0SU1",2,"0STL",0,0,z,0,"ONLY"); //C kozhuh snaruzhi |
332 | TVirtualMC::GetMC()->Gspos("0SU2",2,"0STL",0,0,z,0,"ONLY"); //C kozhuh vnutri | |
dc7ca31d | 333 | z=-pstart[2]+psupport3[2]; |
2942f542 | 334 | TVirtualMC::GetMC()->Gspos("0SU3",2,"0STL",0,0,z,0,"ONLY"); //peredniaia kryshka |
dc7ca31d | 335 | z=-pstart[2]+2.*psupport1[2]; |
2942f542 | 336 | TVirtualMC::GetMC()->Gspos("0SU4",2,"0STL",0,0,z,0,"MANY"); //zadnaiai kryshka |
dc7ca31d | 337 | */ |
338 | z=-pstart[2]+psupport1[2]+0.1; | |
2942f542 | 339 | TVirtualMC::GetMC()->Gspos("0SU1",1,"0STR",0,0,z,0,"ONLY"); //C kozhuh snaruzhi |
340 | TVirtualMC::GetMC()->Gspos("0SU2",1,"0STR",0,0,z,0,"ONLY"); //C kozhuh vnutri | |
dc7ca31d | 341 | z=-pstart[2]+psupport3[2]+0.1; |
2942f542 | 342 | TVirtualMC::GetMC()->Gspos("0SU3",1,"0STR",0,0,z,0,"ONLY"); //peredniaia kryshka |
dc7ca31d | 343 | z=-pstart[2]+2.*psupport1[2]+0.1; |
2942f542 | 344 | TVirtualMC::GetMC()->Gspos("0SU4",1,"0STR",0,0,z,0,"MANY"); //zadnaiai kryshka |
345 | TVirtualMC::GetMC()->Gspos("0SU6",1,"0INS",0,0,0,0,"ONLY");//C stakanchik dlia feu | |
dc7ca31d | 346 | z=-pinstart[2]+psupport6[2]; |
2942f542 | 347 | TVirtualMC::GetMC()->Gspos("0SU7",1,"0INS",0,0,z,0,"ONLY"); //Al kryshechka |
dc7ca31d | 348 | |
349 | z=pinstart[2]-psupport7[2]; | |
2942f542 | 350 | TVirtualMC::GetMC()->Gspos("0SU8",1,"0INS",0,0,z,0,"ONLY"); //Al kolechko |
dc7ca31d | 351 | |
352 | ||
353 | Float_t par[3]; | |
354 | par[0]=4.4; | |
355 | par[1]=4.5; | |
356 | par[2]=0.5; | |
2942f542 | 357 | TVirtualMC::GetMC()->Gsvolu("0SC0","TUBE",idtmed[kC],par,3); |
dc7ca31d | 358 | z=ppcon[3]+par[2]; |
2942f542 | 359 | TVirtualMC::GetMC()->Gspos("0SC0",1,"0SUP",0,0,z,0,"ONLY"); |
dc7ca31d | 360 | z += par[2]; |
361 | par[0]=4.4; | |
362 | par[1]=5.1; | |
363 | par[2]=0.05; | |
2942f542 | 364 | TVirtualMC::GetMC()->Gsvolu("0SC1","TUBE",idtmed[kC],par,3); |
dc7ca31d | 365 | z += par[2]; |
2942f542 | 366 | TVirtualMC::GetMC()->Gspos("0SC1",1,"0SUP",0,0,z,0,"ONLY"); |
dc7ca31d | 367 | z=z+par[2]; |
368 | par[0]=4.9; | |
369 | par[1]=5.0; | |
370 | par[2]=6.9/2; | |
2942f542 | 371 | TVirtualMC::GetMC()->Gsvolu("0SC2","TUBE",idtmed[kC],par,3); |
dc7ca31d | 372 | z += par[2]; |
2942f542 | 373 | TVirtualMC::GetMC()->Gspos("0SC2",1,"0SUP",0,0,z,0,"ONLY"); |
dc7ca31d | 374 | z += par[2]; |
375 | /* | |
376 | Float_t parC[5]; | |
377 | parC[0]=0.25; | |
378 | parC[1]=5.1; | |
379 | parC[2]=5.2; | |
380 | parC[3]=5.5; | |
381 | parC[4]=5.6; | |
2942f542 | 382 | TVirtualMC::GetMC()->Gsvolu("0SC3","CONE",idtmed[kC],parC,5); |
dc7ca31d | 383 | z += parC[0]; |
2942f542 | 384 | TVirtualMC::GetMC()->Gspos("0SC3",1,"0SUP",0,0,z,0,"ONLY"); |
dc7ca31d | 385 | z += parC[0]; |
386 | par[0]=5.5; | |
387 | par[1]=5.6; | |
388 | par[2]=1.2/2; | |
2942f542 | 389 | TVirtualMC::GetMC()->Gsvolu("0SC4","TUBE",idtmed[kC],par,3); |
dc7ca31d | 390 | z += par[2]; |
2942f542 | 391 | TVirtualMC::GetMC()->Gspos("0SC4",1,"0SUP",0,0,z,0,"ONLY"); |
dc7ca31d | 392 | par[0]=5.1; |
393 | par[1]=5.5; | |
394 | par[2]=1.2/2; | |
2942f542 | 395 | TVirtualMC::GetMC()->Gsvolu("0SA0","TUBE",idtmed[kAl],par,3); |
396 | TVirtualMC::GetMC()->Gspos("0SA0",1,"0SUP",0,0,z,0,"ONLY"); | |
dc7ca31d | 397 | //gvozdi dlia skruchivaniia Al i C parts |
398 | par[0]=5.75; | |
399 | par[1]=5.78; | |
2942f542 | 400 | TVirtualMC::GetMC()->Gsvolu("0SN1","TUBE",idtmed[kSteel],par,3); |
401 | TVirtualMC::GetMC()->Gspos("0SN1",1,"0SUP",0,0,z,0,"ONLY"); | |
dc7ca31d | 402 | z += par[2]; |
403 | */ | |
404 | par[0]=3.15; | |
405 | par[1]=4.9; | |
406 | par[2]=0.1/2; | |
2942f542 | 407 | TVirtualMC::GetMC()->Gsvolu("0SA1","TUBE",idtmed[kAl],par,3); |
dc7ca31d | 408 | |
409 | z += par[2]; | |
2942f542 | 410 | TVirtualMC::GetMC()->Gspos("0SA1",1,"0SUP",0,0,z,0,"ONLY"); |
dc7ca31d | 411 | z=z+par[2]; |
412 | par[0]=3.15; | |
413 | par[1]=3.16; | |
414 | par[2]=4.5/2; | |
2942f542 | 415 | TVirtualMC::GetMC()->Gsvolu("0SA2","TUBE",idtmed[kAl],par,3); |
dc7ca31d | 416 | z += par[2]; |
2942f542 | 417 | TVirtualMC::GetMC()->Gspos("0SA2",1,"0SUP",0,0,z,0,"ONLY"); |
dc7ca31d | 418 | z=z+par[2]; |
419 | par[0]=3.16; // eta chast' prikruchena k absorberu | |
420 | par[1]=7.5; | |
421 | par[2]=0.2; | |
2942f542 | 422 | TVirtualMC::GetMC()->Gsvolu("0SA3","TUBE",idtmed[kAl],par,3); |
dc7ca31d | 423 | z += par[2]; |
2942f542 | 424 | TVirtualMC::GetMC()->Gspos("0SA3",1,"0SUP",0,0,z,0,"ONLY"); |
dc7ca31d | 425 | par[0]=3.16; // gvozdi eta chast' prikruchena k absorberu |
426 | par[1]=7.5; | |
427 | par[2]=0.01; | |
2942f542 | 428 | TVirtualMC::GetMC()->Gsvolu("0SN2","TUBE",idtmed[kSteel],par,3); |
429 | TVirtualMC::GetMC()->Gspos("0SN2",1,"0SUP",0,0,z,0,"ONLY"); | |
dc7ca31d | 430 | |
431 | ||
432 | } | |
433 | ||
434 | //------------------------------------------------------------------------ | |
435 | void AliT0v0::CreateMaterials() | |
436 | { | |
f7a1cc68 | 437 | Int_t isxfld = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->Integ(); |
438 | Float_t sxmgmx = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->Max(); | |
f35a7b6f | 439 | Double_t a,z,d,radl,absl; |
440 | TArrayD par; | |
dc7ca31d | 441 | |
442 | // Scintillator CH | |
443 | Float_t ascin[2]={1.01,12.01}; | |
444 | Float_t zscin[2]={1,6}; | |
445 | Float_t wscin[2]={1,1}; | |
446 | Float_t denscin=1.03; | |
447 | //Lucite C(CH3)CO2CH3 | |
448 | Float_t alucite[3]={1.01,12.01,15.999}; | |
449 | Float_t zlucite[3]={1,6,8}; | |
450 | Float_t wlucite[3]={8,5,2}; | |
451 | Float_t denlucite=1.16; | |
452 | // PMT glass SiO2 | |
453 | Float_t aglass[2]={28.0855,15.9994}; | |
454 | Float_t zglass[2]={14.,8.}; | |
455 | Float_t wglass[2]={1.,2.}; | |
456 | Float_t dglass=2.65; | |
457 | // Ceramic 97.2% Al2O3 , 2.8% SiO2 | |
458 | Float_t acer[2],zcer[2],wcer[2]={0.972,0.028}; | |
459 | Float_t aal2o3[2] = { 26.981539,15.9994 }; | |
460 | Float_t zal2o3[2] = { 13.,8. }; | |
461 | Float_t wal2o3[2] = { 2.,3. }; | |
462 | Float_t denscer = 3.6; | |
463 | ||
464 | // Brass 80% Cu, 20% Zn | |
465 | Float_t abrass[2] = {63.546,65.39}; | |
466 | Float_t zbrass[2] = {29,30}; | |
467 | Float_t wbrass[2] = {0.8,0.2}; | |
468 | Float_t denbrass=8.96; | |
469 | ||
470 | //Ribber C6H12S | |
471 | Float_t aribber[3] = {12.,1.,32.}; | |
472 | Float_t zribber[3] = {6.,1.,16.}; | |
473 | Float_t wribber[3] = {6.,12.,1.}; | |
474 | Float_t denribber=0.8; | |
475 | // Support inside | |
476 | Float_t asupport[2] = {12.,1.}; | |
477 | Float_t zsupport[2] = {6.,1.}; | |
478 | Float_t wsupport[2] = {1.,1.}; | |
479 | Float_t densupport=0.1; | |
480 | // AIR | |
481 | Float_t aAir[4]={12.0107,14.0067,15.9994,39.948}; | |
482 | Float_t zAir[4]={6.,7.,8.,18.}; | |
483 | Float_t wAir[4]={0.000124,0.755267,0.231781,0.012827}; | |
484 | Float_t dAir = 1.20479E-3; | |
485 | ||
486 | //*** Definition Of avaible T0 materials *** | |
487 | AliMaterial(0, "T0 Steel$", 55.850,26.,7.87,1.76,999); | |
488 | AliMaterial(1, "T0 Vacuum$", 1.e-16,1.e-16,1.e-16,1.e16,999); | |
489 | AliMixture(2, "T0 Air$", aAir, zAir, dAir,4,wAir); | |
490 | ||
491 | AliMaterial(10, "CarbonPlastic$", 12.01, 6.0, 2.26, 18.8,999); | |
492 | AliMaterial(11, "Aliminium$", 26.98, 13.0, 2.7, 8.9,999); | |
493 | ||
494 | AliMixture( 3, "Al2O3 $", aal2o3, zal2o3, denscer, -2, wal2o3); | |
495 | AliMixture( 4, "PMT glass $",aglass,zglass,dglass,-2,wglass); | |
f35a7b6f | 496 | TString namate; |
2942f542 | 497 | TVirtualMC::GetMC()->GetMaterial((*fIdmate)[3], namate, a, z, d, radl, absl, par); |
dc7ca31d | 498 | acer[0]=a; |
499 | zcer[0]=z; | |
2942f542 | 500 | TVirtualMC::GetMC()->GetMaterial((*fIdmate)[4], namate, a, z, d, radl, absl, par); |
dc7ca31d | 501 | acer[1]=a; |
502 | zcer[1]=z; | |
503 | ||
504 | AliMixture( 9, "Ceramic $", acer, zcer, denscer, 2, wcer); | |
505 | AliMixture( 5, "Scintillator$",ascin,zscin,denscin,-2,wscin); | |
506 | AliMixture( 6, "Brass $", abrass, zbrass, denbrass, 2, wbrass); | |
507 | ||
508 | AliMixture( 7, "Ribber $",aribber,zribber,denribber,-3,wribber); | |
509 | AliMixture( 8, "Lucite$",alucite,zlucite,denlucite,-3,wlucite); | |
510 | AliMixture( 9, "Penoplast$",asupport,zsupport,densupport,-2,wsupport); | |
511 | ||
512 | ||
513 | AliMedium(1, "T0 Air$", 2, 0, isxfld, sxmgmx, 10., .1, 1., .003, .003); | |
514 | AliMedium(2, "Scintillator$", 5, 1, isxfld, sxmgmx, 10., .01, 1., .003, .003); | |
515 | AliMedium(3, "Vacuum$", 1, 0, isxfld, sxmgmx, 10., .01, .1, .003, .003); | |
516 | AliMedium(4, "Ceramic$", 9, 0, isxfld, sxmgmx, 10., .01, .1, .003, .003); | |
517 | AliMedium(6, "Glass$", 4, 1, isxfld, sxmgmx, 10., .01, .1, .003, .003); | |
518 | AliMedium(8, "Steel$", 0, 0, isxfld, sxmgmx, 1., .001, 1., .001, .001); | |
519 | AliMedium(9, "Ribber $", 7, 0, isxfld, sxmgmx, 10., .01, .1, .003, .003); | |
520 | AliMedium(11, "Brass $", 6, 0, isxfld, sxmgmx, 10., .01, .1, .003, .003); | |
521 | AliMedium(12, "Lucite$", 8, 1, isxfld, sxmgmx, 10., .01, 1., .003, .003); | |
522 | AliMedium(13, "CarbonPlastic$", 10, 0, isxfld, sxmgmx, 10., .01, 1., .003, .003); | |
523 | AliMedium(14, "PenoPlast$", 9, 0, isxfld, sxmgmx, 10., .01, 1., .003, .003); | |
524 | AliMedium(15, "Aluminium$", 11, 0, isxfld, sxmgmx, 10., .01, 1., .003, .003); | |
525 | ||
526 | AliDebugClass(1,": ++++++++++++++Medium set++++++++++"); | |
527 | ||
528 | } | |
dc7ca31d | 529 | |
530 | //------------------------------------------------------------------- | |
531 | void AliT0v0::Init() | |
532 | { | |
533 | // Initialises version 0 of the Forward Multiplicity Detector | |
534 | // | |
535 | //Int_t *idtmed = gAlice->Idtmed(); | |
536 | AliT0::Init(); | |
2942f542 | 537 | fIdSens1=TVirtualMC::GetMC()->VolId("0TOP"); |
dc7ca31d | 538 | AliDebug(1,Form("%s: *** T0 version 0 initialized ***\n",ClassName())); |
539 | ||
540 | } | |
541 | ||
542 | //------------------------------------------------------------------- | |
543 | ||
544 | void AliT0v0::StepManager() | |
545 | { | |
546 | // | |
547 | // Called for every step in the T0 Detector | |
548 | // See AliT0v1 | |
549 | ||
550 | } | |
551 | //--------------------------------------------------------------------- | |
552 | ||
553 | ||
554 | ||
555 | ||
556 | ||
557 | ||
558 | ||
559 | ||
560 | ||
561 |