]>
Commit | Line | Data |
---|---|---|
69efe7cb | 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 | /* | |
17 | $Log$ | |
acb52b3d | 18 | Revision 1.9 2000/10/27 13:31:29 barbera |
19 | Rails between ITS and TPC added. | |
20 | ||
c54243df | 21 | Revision 1.8 2000/10/27 13:03:08 barbera |
22 | Small changes in the SPD volumes and materials | |
23 | ||
6c251614 | 24 | Revision 1.6 2000/10/16 14:45:37 barbera |
25 | Mother volume ITSD modified to avoid some overlaps | |
26 | ||
e8031268 | 27 | Revision 1.5 2000/10/16 13:49:15 barbera |
28 | Services volumes slightly modified and material added following Pierluigi Barberis' information | |
29 | ||
e6892b92 | 30 | Revision 1.4 2000/10/07 15:33:07 barbera |
31 | Small corrections to the ITSV mother volume | |
32 | ||
990d421f | 33 | Revision 1.3 2000/10/07 13:06:50 barbera |
34 | Some new materials and media defined | |
35 | ||
d12d92a5 | 36 | Revision 1.2 2000/10/07 10:42:43 barbera |
37 | Mother volume ITSV corrected | |
38 | ||
c6e3abc5 | 39 | Revision 1.1 2000/10/06 23:09:12 barbera |
40 | New coarse geometry (symmetric services | |
41 | ||
69efe7cb | 42 | Revision 1.20 2000/10/02 21:28:08 fca |
43 | Removal of useless dependecies via forward declarations | |
44 | ||
45 | Revision 1.19 2000/07/10 16:07:19 fca | |
46 | Release version of ITS code | |
47 | ||
48 | Revision 1.14.2.2 2000/05/19 10:09:21 nilsen | |
49 | fix for bug with HP and Sun unix + fix for event display in ITS-working branch | |
50 | ||
51 | Revision 1.14.2.1 2000/03/04 23:45:19 nilsen | |
52 | Fixed up the comments/documentation. | |
53 | ||
54 | Revision 1.14 1999/11/25 06:52:56 fca | |
55 | Correct value of drca | |
56 | ||
57 | Revision 1.13.2.1 1999/11/25 06:52:21 fca | |
58 | Correct value of drca | |
59 | ||
60 | Revision 1.13 1999/10/27 11:16:26 fca | |
61 | Correction of problem in geometry | |
62 | ||
63 | Revision 1.12 1999/10/22 08:25:25 fca | |
64 | remove double definition of destructors | |
65 | ||
66 | Revision 1.11 1999/10/22 08:16:49 fca | |
67 | Correct destructors, thanks to I.Hrivnacova | |
68 | ||
69 | Revision 1.10 1999/10/06 19:56:50 fca | |
70 | Add destructor | |
71 | ||
72 | Revision 1.9 1999/10/05 08:05:09 fca | |
73 | Minor corrections for uninitialised variables. | |
74 | ||
75 | Revision 1.8 1999/09/29 09:24:20 fca | |
76 | Introduction of the Copyright and cvs Log | |
77 | ||
78 | */ | |
79 | ||
80 | /////////////////////////////////////////////////////////////////////////////// | |
81 | // // | |
82 | // Inner Traking System version PPR coarse symmetric // | |
83 | // This class contains the base procedures for the Inner Tracking System // | |
84 | // // | |
85 | // Authors: R. Barbera | |
86 | // version 6. | |
87 | // Created 2000. | |
88 | // | |
89 | // NOTE: THIS IS THE COARSE SYMMETRIC PPR geometry of the ITS. | |
90 | // THIS WILL NOT WORK | |
91 | // with the geometry or module classes or any analysis classes. You are | |
92 | // strongly encouraged to uses AliITSv5. | |
93 | // // | |
94 | /////////////////////////////////////////////////////////////////////////////// | |
95 | ||
96 | #include <TMath.h> | |
97 | #include <TRandom.h> | |
98 | #include <TVector.h> | |
99 | #include <TGeometry.h> | |
100 | #include <TNode.h> | |
101 | #include <TTUBE.h> | |
102 | #include <TFile.h> // only required for Tracking function? | |
103 | #include <TCanvas.h> | |
104 | #include <TObjArray.h> | |
105 | #include <TClonesArray.h> | |
106 | ||
107 | ||
108 | #include "AliMC.h" | |
109 | #include "AliMagF.h" | |
110 | #include "AliConst.h" | |
111 | ||
112 | #include "AliITShit.h" | |
113 | #include "AliITSvPPRcoarsesymm.h" | |
114 | #include "AliRun.h" | |
115 | ||
116 | ||
117 | ClassImp(AliITSvPPRcoarsesymm) | |
118 | ||
119 | //_____________________________________________________________________________ | |
120 | AliITSvPPRcoarsesymm::AliITSvPPRcoarsesymm() { | |
121 | //////////////////////////////////////////////////////////////////////// | |
122 | // Standard default constructor for the ITS version 7. | |
123 | //////////////////////////////////////////////////////////////////////// | |
124 | ||
125 | fIdN = 6; | |
126 | fIdName = new TString[fIdN]; | |
127 | fIdName[0] = "ITS1"; | |
128 | fIdName[1] = "ITS2"; | |
129 | fIdName[2] = "ITS3"; | |
130 | fIdName[3] = "ITS4"; | |
131 | fIdName[4] = "ITS5"; | |
132 | fIdName[5] = "ITS6"; | |
133 | fIdSens = new Int_t[fIdN]; | |
134 | for (Int_t i=0;i<fIdN;i++) fIdSens[i]=fIdName[i].Length(); | |
135 | } | |
136 | //_____________________________________________________________________________ | |
137 | AliITSvPPRcoarsesymm::AliITSvPPRcoarsesymm(const char *name, const char *title) : AliITS(name, title){ | |
138 | //////////////////////////////////////////////////////////////////////// | |
139 | // Standard constructor for the ITS version 7. | |
140 | //////////////////////////////////////////////////////////////////////// | |
141 | ||
142 | fIdN = 6; | |
143 | fIdName = new TString[fIdN]; | |
144 | fIdName[0] = "ITS1"; | |
145 | fIdName[1] = "ITS2"; | |
146 | fIdName[2] = "ITS3"; | |
147 | fIdName[3] = "ITS4"; | |
148 | fIdName[4] = "ITS5"; | |
149 | fIdName[5] = "ITS6"; | |
150 | fIdSens = new Int_t[fIdN]; | |
151 | for (Int_t i=0;i<fIdN;i++) fIdSens[i]=fIdName[i].Length(); | |
152 | ||
153 | } | |
154 | //____________________________________________________________________________ | |
155 | AliITSvPPRcoarsesymm::AliITSvPPRcoarsesymm(const AliITSvPPRcoarsesymm &source){ | |
156 | //////////////////////////////////////////////////////////////////////// | |
157 | // Copy Constructor for ITS version 7. | |
158 | //////////////////////////////////////////////////////////////////////// | |
159 | if(&source == this) return; | |
160 | printf("Not allowed to copy AliITSvPPRcoarsesymm\n"); | |
161 | return; | |
162 | } | |
163 | //_____________________________________________________________________________ | |
164 | AliITSvPPRcoarsesymm& AliITSvPPRcoarsesymm::operator=(const AliITSvPPRcoarsesymm &source){ | |
165 | //////////////////////////////////////////////////////////////////////// | |
166 | // Assignment operator for the ITS version 7. | |
167 | //////////////////////////////////////////////////////////////////////// | |
168 | if(&source == this) return *this; | |
169 | printf("Not allowed to copy AliITSvPPRcoarsesymm\n"); | |
170 | return *this; | |
171 | } | |
172 | //_____________________________________________________________________________ | |
173 | AliITSvPPRcoarsesymm::~AliITSvPPRcoarsesymm() { | |
174 | //////////////////////////////////////////////////////////////////////// | |
175 | // Standard destructor for the ITS version 7. | |
176 | //////////////////////////////////////////////////////////////////////// | |
177 | } | |
178 | ||
179 | //__________________________________________________________________________ | |
180 | void AliITSvPPRcoarsesymm::BuildGeometry(){ | |
181 | //////////////////////////////////////////////////////////////////////// | |
182 | // Geometry builder for the ITS version 7. | |
183 | //////////////////////////////////////////////////////////////////////// | |
184 | TNode *node, *top; | |
185 | const int kColorITS=kYellow; | |
186 | // | |
187 | top = gAlice->GetGeometry()->GetNode("alice"); | |
188 | ||
189 | new TTUBE("S_layer1","Layer1 of ITS","void",3.95,3.95+0.05475,12.25); | |
190 | top->cd(); | |
191 | node = new TNode("Layer1","Layer1","S_layer1",0,0,0,""); | |
192 | node->SetLineColor(kColorITS); | |
193 | fNodes->Add(node); | |
194 | ||
195 | new TTUBE("S_layer2","Layer2 of ITS","void",7.,7.+0.05475,16.3); | |
196 | top->cd(); | |
197 | node = new TNode("Layer2","Layer2","S_layer2",0,0,0,""); | |
198 | node->SetLineColor(kColorITS); | |
199 | fNodes->Add(node); | |
200 | ||
201 | new TTUBE("S_layer3","Layer3 of ITS","void",15.,15.+0.05288,21.1); | |
202 | top->cd(); | |
203 | node = new TNode("Layer3","Layer3","S_layer3",0,0,0,""); | |
204 | node->SetLineColor(kColorITS); | |
205 | fNodes->Add(node); | |
206 | ||
207 | new TTUBE("S_layer4","Layer4 of ITS","void",24,24+0.05288,29.6); | |
208 | top->cd(); | |
209 | node = new TNode("Layer4","Layer4","S_layer4",0,0,0,""); | |
210 | node->SetLineColor(kColorITS); | |
211 | fNodes->Add(node); | |
212 | ||
213 | new TTUBE("S_layer5","Layer5 of ITS","void",40,40+0.05382,45.1); | |
214 | top->cd(); | |
215 | node = new TNode("Layer5","Layer5","S_layer5",0,0,0,""); | |
216 | node->SetLineColor(kColorITS); | |
217 | fNodes->Add(node); | |
218 | ||
219 | new TTUBE("S_layer6","Layer6 of ITS","void",45,45+0.05382,50.4); | |
220 | top->cd(); | |
221 | node = new TNode("Layer6","Layer6","S_layer6",0,0,0,""); | |
222 | node->SetLineColor(kColorITS); | |
223 | fNodes->Add(node); | |
224 | } | |
225 | //_____________________________________________________________________________ | |
226 | void AliITSvPPRcoarsesymm::CreateGeometry(){ | |
227 | //////////////////////////////////////////////////////////////////////// | |
228 | // This routine defines and Creates the geometry for version 7 of the ITS. | |
229 | //////////////////////////////////////////////////////////////////////// | |
230 | ||
231 | //INNER RADII OF THE SILICON LAYERS | |
6c251614 | 232 | Float_t rl[6] = { 3.8095,7.,15.,24.,38.1,43.5765 }; |
69efe7cb | 233 | //THICKNESSES OF LAYERS (in % radiation length) |
6c251614 | 234 | Float_t drl[6] = { 1.03,1.03,0.94,0.95,0.91,0.87 }; |
69efe7cb | 235 | //HALF LENGTHS OF LAYERS |
6c251614 | 236 | Float_t dzl[6] = { 14.35,14.35,25.1,32.1,49.405,55.27 }; |
69efe7cb | 237 | //LENGTHS OF END-LADDER BOXES (ALL INCLUDED) |
146fb996 | 238 | Float_t dzb[6] = { 12.4,12.4,19.,19.,12.,11. }; |
69efe7cb | 239 | //THICKNESSES OF END-LADDER BOXES (ALL INCLUDED) |
146fb996 | 240 | Float_t drb[6] = { rl[1]-rl[0],0.2,5.,5.,3.,3. }; |
69efe7cb | 241 | |
242 | ||
243 | Float_t dits[3], rlim, zmax; | |
244 | Float_t zpos; | |
245 | Float_t pcits[15], xltpc; | |
246 | Int_t idrotm[399], i; | |
247 | Float_t dgh[50]; | |
248 | ||
249 | Int_t *idtmed = fIdtmed->GetArray()-199; | |
250 | ||
251 | // CONVERT INTO CM (RL(SI)=9.36 CM) | |
252 | for (i = 0; i < 6; ++i) { | |
253 | drl[i] = drl[i] / 100. * 9.36; | |
254 | } | |
255 | ||
256 | // FIELD CAGE HALF LENGTH | |
257 | ||
258 | rlim = 56.; | |
259 | zmax = 76.708; | |
260 | xltpc = 284.; | |
261 | ||
c6e3abc5 | 262 | // --- Define ghost volume containing the whole ITS (including services) |
263 | // and fill it with air | |
264 | ||
265 | dgh[0] = 0.; | |
266 | dgh[1] = 360.; | |
267 | dgh[2] = 12.; | |
268 | dgh[3] = -xltpc-5.-0.1; | |
269 | dgh[4] = 62.4; | |
270 | dgh[5] = 85.; | |
271 | dgh[6] = -xltpc; | |
272 | dgh[7] = 61.5; | |
273 | dgh[8] = 85.; | |
274 | dgh[9] = -xltpc; | |
275 | dgh[10] = 61.5; | |
276 | dgh[11] = 61.5+4.; | |
277 | dgh[12] = -100.7; | |
278 | dgh[13] = 44.9; | |
279 | dgh[14] = 56.1; | |
990d421f | 280 | dgh[15] = -77.2; |
c6e3abc5 | 281 | dgh[16] = 44.9; |
282 | dgh[17] = 56.1; | |
6c251614 | 283 | dgh[18] = -40.; |
c6e3abc5 | 284 | dgh[19] = 3.29; |
285 | dgh[20] = 56.1; | |
6c251614 | 286 | dgh[21] = 40.; |
c6e3abc5 | 287 | dgh[22] = 3.29; |
288 | dgh[23] = 56.1; | |
990d421f | 289 | dgh[24] = 77.2; |
c6e3abc5 | 290 | dgh[25] = 44.9; |
291 | dgh[26] = 56.1; | |
292 | dgh[27] = 100.7; | |
293 | dgh[28] = 44.9; | |
294 | dgh[29] = 56.1; | |
295 | dgh[30] = xltpc; | |
296 | dgh[31] = 61.5; | |
297 | dgh[32] = 61.5+4.; | |
298 | dgh[33] = xltpc; | |
299 | dgh[34] = 61.5; | |
300 | dgh[35] = 85.; | |
301 | dgh[36] = xltpc+4.+0.1; | |
302 | dgh[37] = 62.4; | |
303 | dgh[38] = 85.; | |
304 | ||
305 | gMC->Gsvolu("ITSV", "PCON", idtmed[275], dgh, 39); | |
306 | ||
307 | // --- Place the ghost volume in its mother volume (ALIC) and make it | |
308 | // invisible | |
309 | ||
310 | gMC->Gspos("ITSV", 1, "ALIC", 0., 0., 0., 0, "ONLY"); | |
311 | //gMC->Gsatt("ITSV", "SEEN", 0); | |
312 | ||
69efe7cb | 313 | |
314 | // --- Define ghost volume containing the six layers and fill it with air | |
315 | ||
316 | dgh[0] = 0.; | |
317 | dgh[1] = 360.; | |
318 | dgh[2] = 4.; | |
e8031268 | 319 | dgh[3] = -77.2; |
69efe7cb | 320 | dgh[4] = 45.; |
321 | dgh[5] = 56.; | |
6c251614 | 322 | dgh[6] = -40.; |
69efe7cb | 323 | dgh[7] = 3.3; |
324 | dgh[8] = 56.; | |
6c251614 | 325 | dgh[9] = 40.; |
69efe7cb | 326 | dgh[10] = 3.3; |
327 | dgh[11] = 56.; | |
e8031268 | 328 | dgh[12] = 77.2; |
69efe7cb | 329 | dgh[13] = 45.; |
330 | dgh[14] = 56.; | |
c6e3abc5 | 331 | gMC->Gsvolu("ITSD", "PCON", idtmed[275], dgh, 15); |
69efe7cb | 332 | |
c6e3abc5 | 333 | // --- Place the ghost volume in its mother volume (ALIC) and make it |
69efe7cb | 334 | // invisible |
335 | ||
c6e3abc5 | 336 | gMC->Gspos("ITSD", 1, "ITSV", 0., 0., 0., 0, "ONLY"); |
69efe7cb | 337 | //gMC->Gsatt("ITSV", "SEEN", 0); |
338 | ||
339 | // ITS LAYERS (SILICON) | |
340 | ||
341 | dits[0] = rl[0]; | |
342 | dits[1] = rl[0] + drl[0]; | |
343 | dits[2] = dzl[0]; | |
344 | gMC->Gsvolu("ITS1", "TUBE", idtmed[199], dits, 3); | |
c6e3abc5 | 345 | gMC->Gspos("ITS1", 1, "ITSD", 0., 0., 0., 0, "ONLY"); |
69efe7cb | 346 | |
347 | dits[0] = rl[1]; | |
348 | dits[1] = rl[1] + drl[1]; | |
349 | dits[2] = dzl[1]; | |
350 | gMC->Gsvolu("ITS2", "TUBE", idtmed[199], dits, 3); | |
c6e3abc5 | 351 | gMC->Gspos("ITS2", 1, "ITSD", 0., 0., 0., 0, "ONLY"); |
69efe7cb | 352 | |
353 | dits[0] = rl[2]; | |
354 | dits[1] = rl[2] + drl[2]; | |
355 | dits[2] = dzl[2]; | |
356 | gMC->Gsvolu("ITS3", "TUBE", idtmed[224], dits, 3); | |
c6e3abc5 | 357 | gMC->Gspos("ITS3", 1, "ITSD", 0., 0., 0., 0, "ONLY"); |
69efe7cb | 358 | |
359 | dits[0] = rl[3]; | |
360 | dits[1] = rl[3] + drl[3]; | |
361 | dits[2] = dzl[3]; | |
362 | gMC->Gsvolu("ITS4", "TUBE", idtmed[224], dits, 3); | |
c6e3abc5 | 363 | gMC->Gspos("ITS4", 1, "ITSD", 0., 0., 0., 0, "ONLY"); |
69efe7cb | 364 | |
365 | dits[0] = rl[4]; | |
366 | dits[1] = rl[4] + drl[4]; | |
367 | dits[2] = dzl[4]; | |
368 | gMC->Gsvolu("ITS5", "TUBE", idtmed[249], dits, 3); | |
c6e3abc5 | 369 | gMC->Gspos("ITS5", 1, "ITSD", 0., 0., 0., 0, "ONLY"); |
69efe7cb | 370 | |
371 | dits[0] = rl[5]; | |
372 | dits[1] = rl[5] + drl[5]; | |
373 | dits[2] = dzl[5]; | |
374 | gMC->Gsvolu("ITS6", "TUBE", idtmed[249], dits, 3); | |
c6e3abc5 | 375 | gMC->Gspos("ITS6", 1, "ITSD", 0., 0., 0., 0, "ONLY"); |
69efe7cb | 376 | |
d12d92a5 | 377 | // END-LADDER ELECTRONICS BOXES AND CABLES FOR SPD |
69efe7cb | 378 | |
d12d92a5 | 379 | gMC->Gsvolu("IEL1", "TUBE", idtmed[208], dits, 0); |
380 | for (i = 0; i < 2; i++) { | |
69efe7cb | 381 | dits[0] = rl[i]; |
382 | dits[1] = dits[0] + drb[i]; | |
383 | dits[2] = dzb[i] / 2.; | |
384 | zpos = dzl[i] + dits[2]; | |
d12d92a5 | 385 | gMC->Gsposp("IEL1", i+1, "ITSD", 0., 0., zpos, 0, "ONLY", dits, 3); |
386 | gMC->Gsposp("IEL1", i+1+6, "ITSD", 0., 0.,-zpos, 0, "ONLY", dits, 3); | |
69efe7cb | 387 | } |
d12d92a5 | 388 | |
389 | // END-LADDER ELECTRONICS BOXES AND CABLES FOR SDD | |
390 | ||
391 | gMC->Gsvolu("IEL2", "TUBE", idtmed[237], dits, 0); | |
392 | for (i = 2; i < 4; i++) { | |
393 | dits[0] = rl[i]; | |
394 | dits[1] = dits[0] + drb[i]; | |
395 | dits[2] = dzb[i] / 2.; | |
396 | zpos = dzl[i] + dits[2]; | |
397 | gMC->Gsposp("IEL2", i+1, "ITSD", 0., 0., zpos, 0, "ONLY", dits, 3); | |
398 | gMC->Gsposp("IEL2", i+1+6, "ITSD", 0., 0.,-zpos, 0, "ONLY", dits, 3); | |
399 | } | |
400 | ||
401 | // END-LADDER ELECTRONICS BOXES AND CABLES FOR SSD | |
402 | ||
403 | gMC->Gsvolu("IEL3", "TUBE", idtmed[263], dits, 0); | |
404 | for (i = 4; i < 6; i++) { | |
405 | dits[0] = rl[i]; | |
406 | dits[1] = dits[0] + drb[i]; | |
407 | dits[2] = dzb[i] / 2.; | |
408 | zpos = dzl[i] + dits[2]; | |
409 | gMC->Gsposp("IEL3", i+1, "ITSD", 0., 0., zpos, 0, "ONLY", dits, 3); | |
410 | gMC->Gsposp("IEL3", i+1+6, "ITSD", 0., 0.,-zpos, 0, "ONLY", dits, 3); | |
411 | } | |
69efe7cb | 412 | |
6c251614 | 413 | // DEFINE THERMAL SCREEN FOR SPD |
69efe7cb | 414 | |
6c251614 | 415 | pcits[0] = 8.3; |
416 | pcits[1] = 8.5; | |
417 | pcits[2] = 42.5; | |
418 | gMC->Gsvolu("ICY1", "TUBE", idtmed[274], pcits, 3); | |
419 | gMC->Gspos("ICY1", 1, "ITSD", 0., 0., 0., 0, "ONLY"); | |
69efe7cb | 420 | |
69efe7cb | 421 | // DEFINE END CONES FOR SDD |
422 | ||
423 | pcits[0] = 0.; | |
424 | pcits[1] = 360.; | |
425 | pcits[2] = 2.; | |
6c251614 | 426 | pcits[3] = 42.5; |
427 | pcits[4] = 8.5; | |
146fb996 | 428 | pcits[5] = 8.5+3.0; |
429 | pcits[6] = 59.; | |
69efe7cb | 430 | pcits[7] = 28.; |
6c251614 | 431 | pcits[8] = 28.+3.0; |
146fb996 | 432 | gMC->Gsvolu("ICO1", "PCON", idtmed[274], pcits, 9); |
6c251614 | 433 | AliMatrix(idrotm[200], 90., 0., 90., 90., 180., 0.); |
434 | gMC->Gspos("ICO1", 1, "ITSD", 0., 0., 0., 0, "ONLY"); | |
146fb996 | 435 | gMC->Gspos("ICO1", 2, "ITSD", 0., 0., 0., idrotm[200], "ONLY"); |
6c251614 | 436 | |
437 | // DEFINE CYLINDER BETWEEN SDD AND SSD | |
438 | ||
439 | pcits[0] = (59.5-0.13/2.)/2.; | |
440 | pcits[1] = (59.5+0.13/2.)/2.; | |
441 | pcits[2] = 57.; | |
442 | gMC->Gsvolu("ICY2", "TUBE", idtmed[274], pcits, 3); | |
146fb996 | 443 | gMC->Gspos("ICY2", 1, "ITSD", 0., 0., 0., 0, "ONLY"); |
69efe7cb | 444 | |
445 | // DEFINE END CONES FOR SSD | |
446 | ||
447 | pcits[0] = 0.; | |
448 | pcits[1] = 360.; | |
449 | pcits[2] = 2.; | |
6c251614 | 450 | pcits[3] = 59.; |
69efe7cb | 451 | pcits[4] = 28.0; |
146fb996 | 452 | pcits[5] = 28.0+4.0; |
69efe7cb | 453 | pcits[6] = 74.0; |
454 | pcits[7] = 47.; | |
146fb996 | 455 | pcits[8] = 47.+4.0; |
456 | gMC->Gsvolu("ICO2", "PCON", idtmed[274], pcits, 9); | |
6c251614 | 457 | gMC->Gspos("ICO2", 1, "ITSD", 0., 0., 0., 0, "ONLY"); |
146fb996 | 458 | gMC->Gspos("ICO2", 2, "ITSD", 0., 0., 0., idrotm[200], "ONLY"); |
459 | ||
69efe7cb | 460 | |
69efe7cb | 461 | // SERVICES |
462 | ||
463 | ||
e6892b92 | 464 | // --- Define cables at the end of the ITS cones - copper part |
69efe7cb | 465 | |
466 | dgh[0] = 45.; | |
e6892b92 | 467 | dgh[1] = 45.+1.0; |
e8031268 | 468 | dgh[2] = 9.5; |
e6892b92 | 469 | |
470 | gMC->Gsvolu("ICCU", "TUBE", idtmed[279], dgh, 3); | |
e8031268 | 471 | gMC->Gspos("ICCU", 1, "ITSV", 0., 0., 86.7, 0, "ONLY"); |
472 | gMC->Gspos("ICCU", 2, "ITSV", 0., 0., -86.7, idrotm[200], "ONLY"); | |
e6892b92 | 473 | |
c54243df | 474 | // --- DEFINE CABLES AT THE END OF THE ITS CONES - CARBON PART |
e6892b92 | 475 | |
476 | dgh[0] = 45.+1.0; | |
477 | dgh[1] = 45.+1.0+1.5; | |
e8031268 | 478 | dgh[2] = 9.5; |
69efe7cb | 479 | |
e6892b92 | 480 | gMC->Gsvolu("ICCC", "TUBE", idtmed[274], dgh, 3); |
e8031268 | 481 | gMC->Gspos("ICCC", 1, "ITSV", 0., 0., 86.7, 0, "ONLY"); |
482 | gMC->Gspos("ICCC", 2, "ITSV", 0., 0., -86.7, idrotm[200], "ONLY"); | |
69efe7cb | 483 | |
c54243df | 484 | // --- DEFINE PATCH PANELS AT THE END OF THE ITS CONES |
69efe7cb | 485 | |
486 | dgh[0] = 45.; | |
487 | dgh[1] = 56.; | |
488 | dgh[2] = 2.25; | |
489 | ||
e6892b92 | 490 | gMC->Gsvolu("IPAN", "TUBE", idtmed[285], dgh, 3); |
c6e3abc5 | 491 | gMC->Gspos("IPAN", 1, "ITSV", 0., 0., 98.45, 0, "ONLY"); |
492 | gMC->Gspos("IPAN", 2, "ITSV", 0., 0., -98.45, idrotm[200], "ONLY"); | |
69efe7cb | 493 | |
c54243df | 494 | // --- DEFINE CABLES/COOLING BELOW THE TPC - COPPER PART |
69efe7cb | 495 | |
496 | dgh[0] = 0.; | |
497 | dgh[1] = 360.; | |
498 | dgh[2] = 2.; | |
499 | dgh[3] = 100.7; | |
500 | dgh[4] = 45.2; | |
e6892b92 | 501 | dgh[5] = 45.2+1.0; |
69efe7cb | 502 | dgh[6] = xltpc; |
503 | dgh[7] = 61.8; | |
e6892b92 | 504 | dgh[8] = 61.8+1.0; |
505 | gMC->Gsvolu("ICU1", "PCON", idtmed[279], dgh, 9); | |
506 | gMC->Gspos("ICU1", 1, "ITSV", 0., 0., 0., 0, "ONLY"); | |
507 | gMC->Gspos("ICU1", 2, "ITSV", 0., 0., 0., idrotm[200], "ONLY"); | |
508 | ||
c54243df | 509 | // --- DEFINE CABLES/COOLING BELOW THE TPC - CARBON PART |
e6892b92 | 510 | |
511 | dgh[0] = 0.; | |
512 | dgh[1] = 360.; | |
513 | dgh[2] = 2.; | |
514 | dgh[3] = 100.7; | |
515 | dgh[4] = 45.2+1.0; | |
516 | dgh[5] = 45.2+1.0+1.5; | |
517 | dgh[6] = xltpc; | |
518 | dgh[7] = 61.8+1.0; | |
519 | dgh[8] = 61.8+1.0+1.5; | |
520 | gMC->Gsvolu("ICC1", "PCON", idtmed[274], dgh, 9); | |
c6e3abc5 | 521 | gMC->Gspos("ICC1", 1, "ITSV", 0., 0., 0., 0, "ONLY"); |
e6892b92 | 522 | gMC->Gspos("ICC1", 2, "ITSV", 0., 0., 0., idrotm[200], "ONLY"); |
523 | ||
524 | ||
c54243df | 525 | // --- DEFINE CABLES/COOLING BEHIND THE TPC - COPPER PART |
e6892b92 | 526 | |
527 | dgh[0] = 0.; | |
528 | dgh[1] = 360.; | |
529 | dgh[2] = 2.; | |
530 | dgh[3] = xltpc+1.5; | |
531 | dgh[4] = 62.5; | |
532 | dgh[5] = 74.5; | |
533 | dgh[6] = xltpc+1.5+1.0; | |
534 | dgh[7] = 62.5; | |
535 | dgh[8] = 74.5; | |
536 | gMC->Gsvolu("ICU2", "PCON", idtmed[279], dgh, 9); | |
537 | gMC->Gspos("ICU2", 1, "ITSV", 0., 0., 0., 0, "ONLY"); | |
538 | gMC->Gspos("ICU2", 2, "ITSV", 0., 0., 0., idrotm[200], "ONLY"); | |
69efe7cb | 539 | |
c54243df | 540 | // --- DEFINE CABLES/COOLING BEHIND THE TPC - CARBON PART |
69efe7cb | 541 | |
542 | dgh[0] = 0.; | |
543 | dgh[1] = 360.; | |
544 | dgh[2] = 2.; | |
545 | dgh[3] = xltpc; | |
546 | dgh[4] = 62.5; | |
547 | dgh[5] = 74.5; | |
e6892b92 | 548 | dgh[6] = xltpc+1.5; |
69efe7cb | 549 | dgh[7] = 62.5; |
550 | dgh[8] = 74.5; | |
e6892b92 | 551 | gMC->Gsvolu("ICC2", "PCON", idtmed[274], dgh, 9); |
c6e3abc5 | 552 | gMC->Gspos("ICC2", 1, "ITSV", 0., 0., 0., 0, "ONLY"); |
e6892b92 | 553 | gMC->Gspos("ICC2", 2, "ITSV", 0., 0., 0., idrotm[200], "ONLY"); |
69efe7cb | 554 | |
c54243df | 555 | // --- DEFINE HOOK TO THE TPC ON OTHER SIDE W.R.T. THE ABSORBER |
69efe7cb | 556 | |
557 | dgh[0] = 74.5; | |
558 | dgh[1] = 79.5; | |
559 | dgh[2] = 2.5; | |
d12d92a5 | 560 | gMC->Gsvolu("IHOK", "TUBE", idtmed[284], dgh, 3); |
c6e3abc5 | 561 | gMC->Gspos("IHOK", 1, "ITSV", 0., 0., -xltpc-dgh[2], 0, "ONLY"); |
69efe7cb | 562 | |
c54243df | 563 | // --- DEFINE RAILS BETWEEN THE ITS AND THE TPC |
564 | ||
565 | dgh[0] = 0.85; | |
566 | dgh[1] = 10.; | |
acb52b3d | 567 | dgh[2] = 132.75; // In the case of symmetric services the rails |
568 | // cannot be longer than 145 cm on the opposite side | |
569 | // w.r.t. the absorber | |
c54243df | 570 | gMC->Gsvolu("IRAI", "BOX ", idtmed[285], dgh, 3); |
acb52b3d | 571 | gMC->Gspos("IRAI", 1, "ITSV", 53., 0., -12.25, 0, "ONLY"); |
572 | gMC->Gspos("IRAI", 2, "ITSV", -53., 0., -12.25, 0, "ONLY"); | |
c54243df | 573 | |
69efe7cb | 574 | |
575 | // --- Outputs the geometry tree in the EUCLID/CAD format | |
576 | ||
577 | if (fEuclidOut) { | |
578 | gMC->WriteEuclid("ITSgeometry", "ITSV", 1, 5); | |
579 | } | |
580 | } | |
581 | //_____________________________________________________________________________ | |
582 | void AliITSvPPRcoarsesymm::CreateMaterials(){ | |
583 | //////////////////////////////////////////////////////////////////////// | |
584 | // | |
585 | // Create ITS materials | |
586 | // This function defines the default materials used in the Geant | |
587 | // Monte Carlo simulations for the geometries AliITSv1, AliITSv3, | |
588 | // AliITSvPPRcoarsesymm, AliITSvPPRcoarseasymm. | |
589 | // In general it is automatically replaced by | |
590 | // the CreatMaterials routine defined in AliITSv?. Should the function | |
591 | // CreateMaterials not exist for the geometry version you are using this | |
592 | // one is used. See the definition found in AliITSv5 or the other routine | |
593 | // for a complete definition. | |
594 | // | |
595 | // Water H2O | |
596 | Float_t awat[2] = { 1.00794,15.9994 }; | |
597 | Float_t zwat[2] = { 1.,8. }; | |
598 | Float_t wwat[2] = { 2.,1. }; | |
599 | Float_t denswat = 1.; | |
600 | // Freon | |
601 | Float_t afre[2] = { 12.011,18.9984032 }; | |
602 | Float_t zfre[2] = { 6.,9. }; | |
603 | Float_t wfre[2] = { 5.,12. }; | |
604 | Float_t densfre = 1.5; | |
605 | // Ceramics | |
606 | // 94.4% Al2O3 , 2.8% SiO2 , 2.3% MnO , 0.5% Cr2O3 | |
607 | Float_t acer[5] = { 26.981539,15.9994,28.0855,54.93805,51.9961 }; | |
608 | Float_t zcer[5] = { 13.,8.,14.,25., 24. }; | |
609 | Float_t wcer[5] = { .49976,1.01233,.01307, .01782,.00342 }; | |
610 | Float_t denscer = 3.6; | |
611 | // | |
612 | // 60% SiO2 , 40% G10FR4 | |
613 | // PC board | |
614 | Float_t apcb[3] = { 28.0855,15.9994,17.749 }; | |
615 | Float_t zpcb[3] = { 14.,8.,8.875 }; | |
616 | Float_t wpcb[3] = { .28,.32,.4 }; | |
617 | Float_t denspcb = 1.8; | |
618 | // POLYETHYL | |
619 | Float_t apoly[2] = { 12.01,1. }; | |
620 | Float_t zpoly[2] = { 6.,1. }; | |
621 | Float_t wpoly[2] = { .33,.67 }; | |
d12d92a5 | 622 | // old SERVICES |
69efe7cb | 623 | Float_t zserv[4] = { 1.,6.,26.,29. }; |
624 | Float_t aserv[4] = { 1.,12.,55.8,63.5 }; | |
625 | Float_t wserv[4] = { .014,.086,.42,.48 }; | |
d12d92a5 | 626 | // Stainless steel |
627 | Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 }; | |
628 | Float_t zsteel[4] = { 26.,24.,28.,14. }; | |
629 | Float_t wsteel[4] = { .715,.18,.1,.005 }; | |
630 | ||
69efe7cb | 631 | |
632 | Int_t isxfld = gAlice->Field()->Integ(); | |
633 | Float_t sxmgmx = gAlice->Field()->Max(); | |
634 | ||
635 | ||
636 | // --- Define the various materials for GEANT --- | |
637 | ||
638 | // 200-224 --> Silicon Pixel Detectors (detectors, chips, buses, cooling,..) | |
639 | ||
640 | AliMaterial(0, "SPD Si$", 28.0855, 14., 2.33, 9.36, 999); | |
641 | AliMaterial(1, "SPD Si chip$", 28.0855, 14., 2.33, 9.36, 999); | |
642 | AliMaterial(2, "SPD Si bus$", 28.0855, 14., 2.33, 9.36, 999); | |
643 | AliMaterial(3, "SPD C$", 12.011, 6., 2.265,18.8, 999); | |
644 | // v. dens | |
645 | AliMaterial(4, "SPD Air$", 14.61, 7.3, .001205, 30423., 999); | |
646 | AliMaterial(5, "SPD Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16); | |
647 | AliMaterial(6, "SPD Al$", 26.981539, 13., 2.6989, 8.9, 999); | |
648 | AliMixture( 7, "SPD Water $", awat, zwat, denswat, -2, wwat); | |
649 | AliMixture( 8, "SPD Freon$", afre, zfre, densfre, -2, wfre); | |
6c251614 | 650 | AliMaterial(9, "SPD End ladder$", 55.845, 26., 7.87/10., 1.76*10., 999); |
d12d92a5 | 651 | AliMaterial(10, "SPD cone$",28.0855, 14., 2.33, 9.36, 999); // check !!!! |
69efe7cb | 652 | // ** |
d12d92a5 | 653 | AliMedium(0, "SPD Si$", 0, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); |
654 | AliMedium(1, "SPD Si chip$", 1, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
655 | AliMedium(2, "SPD Si bus$", 2, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
656 | AliMedium(3, "SPD C$", 3, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
657 | AliMedium(4, "SPD Air$", 4, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
658 | AliMedium(5, "SPD Vacuum$", 5, 0,isxfld,sxmgmx, 10.,1.00, .1, .100,10.00); | |
659 | AliMedium(6, "SPD Al$", 6, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
660 | AliMedium(7, "SPD Water $", 7, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
661 | AliMedium(8, "SPD Freon$", 8, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
662 | AliMedium(9, "SPD End ladder",9, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
663 | AliMedium(10, "SPD cone$", 10, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
69efe7cb | 664 | |
665 | // 225-249 --> Silicon Drift Detectors (detectors, chips, buses, cooling,..) | |
666 | ||
667 | AliMaterial(25, "SDD Si$", 28.0855, 14., 2.33, 9.36, 999); | |
668 | AliMaterial(26, "SDD Si chip$", 28.0855, 14., 2.33, 9.36, 999); | |
669 | AliMaterial(27, "SDD Si bus$", 28.0855, 14., 2.33, 9.36, 999); | |
670 | AliMaterial(28, "SDD C$", 12.011, 6., 2.265,18.8, 999); | |
671 | // v. dens | |
672 | AliMaterial(29, "SDD Air$", 14.61, 7.3, .001205, 30423., 999); | |
673 | AliMaterial(30, "SDD Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16); | |
674 | AliMaterial(31, "SDD Al$", 26.981539, 13., 2.6989, 8.9, 999); | |
675 | // After a call with ratios by number (negative number of elements), | |
676 | // the ratio array is changed to the ratio by weight, so all successive | |
677 | // calls with the same array must specify the number of elements as | |
678 | // positive | |
679 | AliMixture(32, "SDD Water $", awat, zwat, denswat, 2, wwat); | |
680 | // After a call with ratios by number (negative number of elements), | |
681 | // the ratio array is changed to the ratio by weight, so all successive | |
682 | // calls with the same array must specify the number of elements as | |
683 | // positive | |
684 | AliMixture( 33, "SDD Freon$", afre, zfre, densfre, 2, wfre); | |
685 | AliMixture( 34, "SDD PCB$", apcb, zpcb, denspcb, 3, wpcb); | |
686 | AliMaterial(35, "SDD Copper$", 63.546, 29., 8.96, 1.43, 999); | |
687 | AliMixture( 36, "SDD Ceramics$", acer, zcer, denscer, -5, wcer); | |
688 | AliMaterial(37, "SDD Kapton$", 12.011, 6., 1.3, 31.27, 999); | |
d12d92a5 | 689 | AliMaterial(38, "SDD End ladder$",28.0855, 14., 2.33, 9.36, 999); // check !!!! |
690 | AliMaterial(39, "SDD cone$",28.0855, 14., 2.33, 9.36, 999); // check !!!! | |
69efe7cb | 691 | // ** |
692 | // check A and Z | |
d12d92a5 | 693 | AliMedium(25, "SDD Si$", 25, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); |
69efe7cb | 694 | AliMedium(26, "SDD Si chip$", 26, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); |
695 | AliMedium(27, "SDD Si bus$", 27, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
696 | AliMedium(28, "SDD C$", 28, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
697 | AliMedium(29, "SDD Air$", 29, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
698 | AliMedium(30, "SDD Vacuum$", 30, 0,isxfld,sxmgmx, 10.,1.00, .1, .100,10.00); | |
699 | AliMedium(31, "SDD Al$", 31, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
700 | AliMedium(32, "SDD Water $", 32, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
701 | AliMedium(33, "SDD Freon$", 33, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
702 | AliMedium(34, "SDD PCB$", 34, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
703 | AliMedium(35, "SDD Copper$", 35, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
704 | AliMedium(36, "SDD Ceramics$",36, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
705 | AliMedium(37, "SDD Kapton$", 37, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
d12d92a5 | 706 | AliMedium(38, "SDD End ladder",38, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); |
707 | AliMedium(39, "SDD cone$", 39, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
69efe7cb | 708 | |
709 | // 250-274 --> Silicon Strip Detectors (detectors, chips, buses, cooling,..) | |
710 | ||
711 | AliMaterial(50, "SSD Si$", 28.0855, 14., 2.33, 9.36, 999.); | |
712 | AliMaterial(51, "SSD Si chip$", 28.0855, 14., 2.33, 9.36, 999.); | |
713 | AliMaterial(52, "SSD Si bus$", 28.0855, 14., 2.33, 9.36, 999.); | |
714 | AliMaterial(53, "SSD C$", 12.011, 6., 2.265,18.8, 999.); | |
715 | // v. dens | |
716 | AliMaterial(54, "SSD Air$", 14.61, 7.3, .001205, 30423., 999); | |
717 | AliMaterial(55, "SSD Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16); | |
718 | AliMaterial(56, "SSD Al$", 26.981539, 13., 2.6989, 8.9, 999); | |
719 | // After a call with ratios by number (negative number of elements), | |
720 | // the ratio array is changed to the ratio by weight, so all successive | |
721 | // calls with the same array must specify the number of elements as | |
722 | // positive | |
723 | AliMixture(57, "SSD Water $", awat, zwat, denswat, 2, wwat); | |
724 | // After a call with ratios by number (negative number of elements), | |
725 | // the ratio array is changed to the ratio by weight, so all successive | |
726 | // calls with the same array must specify the number of elements as | |
727 | // positive | |
728 | AliMixture(58, "SSD Freon$", afre, zfre, densfre, 2, wfre); | |
729 | AliMixture(59, "SSD PCB$", apcb, zpcb, denspcb, 3, wpcb); | |
730 | AliMaterial(60, "SSD Copper$", 63.546, 29., 8.96, 1.43, 999.); | |
731 | // After a call with ratios by number (negative number of elements), | |
732 | // the ratio array is changed to the ratio by weight, so all successive | |
733 | // calls with the same array must specify the number of elements as | |
734 | // positive | |
735 | AliMixture( 61, "SSD Ceramics$", acer, zcer, denscer, 5, wcer); | |
736 | AliMaterial(62, "SSD Kapton$", 12.011, 6., 1.3, 31.27, 999.); | |
737 | // check A and Z | |
d12d92a5 | 738 | AliMaterial(63, "SSD G10FR4$", 17.749, 8.875, 1.8, 21.822, 999.); |
739 | AliMaterial(64, "SSD End ladder$",28.0855, 14., 2.33, 9.36, 999); // check !!!! | |
740 | AliMaterial(65, "SSD cone$",28.0855, 14., 2.33, 9.36, 999); // check !!!! | |
69efe7cb | 741 | // ** |
d12d92a5 | 742 | AliMedium(50, "SSD Si$", 50, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); |
69efe7cb | 743 | AliMedium(51, "SSD Si chip$", 51, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); |
744 | AliMedium(52, "SSD Si bus$", 52, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
745 | AliMedium(53, "SSD C$", 53, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
746 | AliMedium(54, "SSD Air$", 54, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
747 | AliMedium(55, "SSD Vacuum$", 55, 0,isxfld,sxmgmx, 10.,1.00, .1, .100,10.00); | |
748 | AliMedium(56, "SSD Al$", 56, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
749 | AliMedium(57, "SSD Water $", 57, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
750 | AliMedium(58, "SSD Freon$", 58, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
751 | AliMedium(59, "SSD PCB$", 59, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
752 | AliMedium(60, "SSD Copper$", 60, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
753 | AliMedium(61, "SSD Ceramics$",61, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
754 | AliMedium(62, "SSD Kapton$", 62, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
755 | AliMedium(63, "SSD G10FR4$", 63, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
d12d92a5 | 756 | AliMedium(64, "SPD End ladder",64, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); |
757 | AliMedium(65, "SPD cone$", 65, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
69efe7cb | 758 | |
759 | // 275-299 --> General (end-caps, frames, cooling, cables, etc.) | |
760 | ||
761 | AliMaterial(75, "GEN C$", 12.011, 6., 2.265, 18.8, 999.); | |
762 | // verify density | |
763 | AliMaterial(76, "GEN Air$", 14.61, 7.3, .001205, 30423., 999); | |
764 | AliMaterial(77, "GEN Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16); | |
765 | AliMixture( 78, "GEN POLYETHYL$", apoly, zpoly, .95, -2, wpoly); | |
766 | AliMixture( 79, "GEN SERVICES$", aserv, zserv, 4.68, 4, wserv); | |
e6892b92 | 767 | AliMaterial(80, "GEN Copper$", 63.546, 29., 8.96, 1.43, 999.); |
69efe7cb | 768 | // After a call with ratios by number (negative number of elements), |
769 | // the ratio array is changed to the ratio by weight, so all successive | |
770 | // calls with the same array must specify the number of elements as | |
771 | // positive | |
772 | AliMixture(81, "GEN Water $", awat, zwat, denswat, 2, wwat); | |
e6892b92 | 773 | //AliMaterial(82, "GEN Cables$", 12.011, 6., 2.265, 18.8, 999.); // check !!! |
774 | //AliMaterial(83, "GEN patch pan$", 12.011, 6., 2.265, 18.8, 999.); // check !!! | |
775 | //AliMaterial(84, "GEN serv$", 12.011, 6., 2.265, 18.8, 999.); // check !!! | |
d12d92a5 | 776 | AliMixture(85, "GEN Inox$", asteel, zsteel, 7.88, 4, wsteel); |
e6892b92 | 777 | AliMaterial(86, "GEN Al$", 26.981539, 13., 2.6989, 8.9, 999); |
69efe7cb | 778 | // ** |
779 | AliMedium(75,"GEN C$", 75, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
780 | AliMedium(76,"GEN Air$", 76, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
781 | AliMedium(77,"GEN Vacuum$", 77, 0,isxfld,sxmgmx, 10., .10, .1, .100,10.00); | |
782 | AliMedium(78,"GEN POLYETHYL$",78, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
783 | AliMedium(79,"GEN SERVICES$", 79, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
784 | AliMedium(80,"GEN Copper$", 80, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
785 | AliMedium(81,"GEN Water $", 81, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
e6892b92 | 786 | //AliMedium(82,"GEN Cables$", 82, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); |
787 | //AliMedium(83,"GEN patch pan$",83, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
788 | //AliMedium(84,"GEN serv$", 84, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
d12d92a5 | 789 | AliMedium(85,"GEN Inox$", 85, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); |
e6892b92 | 790 | AliMedium(86, "GEN Al$", 86, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); |
791 | ||
69efe7cb | 792 | } |
793 | //_____________________________________________________________________________ | |
794 | void AliITSvPPRcoarsesymm::Init(){ | |
795 | //////////////////////////////////////////////////////////////////////// | |
796 | // Initialise the ITS after it has been created. | |
797 | //////////////////////////////////////////////////////////////////////// | |
798 | ||
799 | // | |
800 | AliITS::Init(); | |
801 | fMajorVersion = 1; | |
802 | fMinorVersion = 0; | |
803 | } | |
804 | ||
805 | //_____________________________________________________________________________ | |
806 | void AliITSvPPRcoarsesymm::DrawModule(){ | |
807 | //////////////////////////////////////////////////////////////////////// | |
808 | // Draw a shaded view of the FMD version 6. | |
809 | //////////////////////////////////////////////////////////////////////// | |
810 | ||
811 | // Set everything unseen | |
812 | gMC->Gsatt("*", "seen", -1); | |
813 | // | |
814 | // Set ALIC mother visible | |
815 | gMC->Gsatt("ALIC","SEEN",0); | |
816 | // | |
817 | // Set the volumes visible | |
818 | gMC->Gsatt("ITSD","SEEN",0); | |
819 | gMC->Gsatt("ITS1","SEEN",1); | |
820 | gMC->Gsatt("ITS2","SEEN",1); | |
821 | gMC->Gsatt("ITS3","SEEN",1); | |
822 | gMC->Gsatt("ITS4","SEEN",1); | |
823 | gMC->Gsatt("ITS5","SEEN",1); | |
824 | gMC->Gsatt("ITS6","SEEN",1); | |
825 | ||
826 | gMC->Gsatt("IPCB","SEEN",1); | |
827 | gMC->Gsatt("ICO2","SEEN",1); | |
828 | gMC->Gsatt("ICER","SEEN",0); | |
829 | gMC->Gsatt("ISI2","SEEN",0); | |
830 | gMC->Gsatt("IPLA","SEEN",0); | |
831 | gMC->Gsatt("ICO3","SEEN",0); | |
832 | gMC->Gsatt("IEPX","SEEN",0); | |
833 | gMC->Gsatt("ISI3","SEEN",1); | |
834 | gMC->Gsatt("ISUP","SEEN",0); | |
835 | gMC->Gsatt("ICHO","SEEN",0); | |
836 | gMC->Gsatt("ICMO","SEEN",0); | |
837 | gMC->Gsatt("ICMD","SEEN",0); | |
838 | gMC->Gsatt("ICCO","SEEN",1); | |
839 | gMC->Gsatt("ICCM","SEEN",0); | |
840 | gMC->Gsatt("ITMD","SEEN",0); | |
841 | gMC->Gsatt("ITTT","SEEN",1); | |
842 | ||
843 | // | |
844 | gMC->Gdopt("hide", "on"); | |
845 | gMC->Gdopt("shad", "on"); | |
846 | gMC->Gsatt("*", "fill", 7); | |
847 | gMC->SetClipBox("."); | |
848 | gMC->SetClipBox("*", 0, 300, -300, 300, -300, 300); | |
849 | gMC->DefaultRange(); | |
850 | gMC->Gdraw("alic", 40, 30, 0, 11, 10, .07, .07); | |
851 | gMC->Gdhead(1111, "Inner Tracking System Version 1"); | |
852 | gMC->Gdman(17, 6, "MAN"); | |
853 | } | |
854 | //_____________________________________________________________________________ | |
855 | void AliITSvPPRcoarsesymm::StepManager(){ | |
856 | //////////////////////////////////////////////////////////////////////// | |
857 | // Called for every step in the ITS, then calls the AliITShit class | |
858 | // creator with the information to be recoreded about that hit. | |
859 | //////////////////////////////////////////////////////////////////////// | |
c6e3abc5 | 860 | |
861 | /* | |
69efe7cb | 862 | Int_t copy, id; |
863 | Float_t hits[8]; | |
864 | Int_t vol[4]; | |
865 | TLorentzVector position, momentum; | |
866 | // TClonesArray &lhits = *fHits; | |
867 | // | |
868 | // no hits for this coarse symmetric version. | |
869 | // | |
870 | ||
871 | // | |
872 | // Track status | |
873 | vol[3] = 0; | |
874 | if(gMC->IsTrackInside()) vol[3] += 1; | |
875 | if(gMC->IsTrackEntering()) vol[3] += 2; | |
876 | if(gMC->IsTrackExiting()) vol[3] += 4; | |
877 | if(gMC->IsTrackOut()) vol[3] += 8; | |
878 | if(gMC->IsTrackDisappeared()) vol[3] += 16; | |
879 | if(gMC->IsTrackStop()) vol[3] += 32; | |
880 | if(gMC->IsTrackAlive()) vol[3] += 64; | |
881 | // | |
882 | // Fill hit structure. | |
883 | if( !(gMC->TrackCharge()) ) return; | |
884 | // | |
885 | // Only entering charged tracks | |
886 | if((id=gMC->CurrentVolID(copy))==fIdSens[0]) { | |
887 | vol[0]=1; | |
888 | id=gMC->CurrentVolOffID(1,copy); | |
889 | vol[1]=copy; | |
890 | id=gMC->CurrentVolOffID(2,copy); | |
891 | vol[2]=copy; | |
892 | } else if(id==fIdSens[1]) { | |
893 | vol[0]=2; | |
894 | id=gMC->CurrentVolOffID(1,copy); | |
895 | vol[1]=copy; | |
896 | id=gMC->CurrentVolOffID(2,copy); | |
897 | vol[2]=copy; | |
898 | } else if(id==fIdSens[2]) { | |
899 | vol[0]=3; | |
900 | vol[1]=copy; | |
901 | id=gMC->CurrentVolOffID(1,copy); | |
902 | vol[2]=copy; | |
903 | } else if(id==fIdSens[3]) { | |
904 | vol[0]=4; | |
905 | vol[1]=copy; | |
906 | id=gMC->CurrentVolOffID(1,copy); | |
907 | vol[2]=copy; | |
908 | } else if(id==fIdSens[4]) { | |
909 | vol[0]=5; | |
910 | vol[1]=copy; | |
911 | id=gMC->CurrentVolOffID(1,copy); | |
912 | vol[2]=copy; | |
913 | } else if(id==fIdSens[5]) { | |
914 | vol[0]=6; | |
915 | vol[1]=copy; | |
916 | id=gMC->CurrentVolOffID(1,copy); | |
917 | vol[2]=copy; | |
918 | } else return; | |
919 | gMC->TrackPosition(position); | |
920 | gMC->TrackMomentum(momentum); | |
921 | hits[0]=position[0]; | |
922 | hits[1]=position[1]; | |
923 | hits[2]=position[2]; | |
924 | hits[3]=momentum[0]; | |
925 | hits[4]=momentum[1]; | |
926 | hits[5]=momentum[2]; | |
927 | hits[6]=gMC->Edep(); | |
928 | hits[7]=gMC->TrackTime(); | |
929 | // new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->CurrentTrack(),vol,hits); | |
930 | // | |
931 | // no hits for this coarse symmetric version. | |
932 | // | |
c6e3abc5 | 933 | */ |
69efe7cb | 934 | } |
935 | /* | |
936 | //____________________________________________________________________________ | |
937 | void AliITSvPPRcoarsesymm::Streamer(TBuffer &R__b){ | |
938 | //////////////////////////////////////////////////////////////////////// | |
939 | // A dummy Streamer function for this class AliITSvPPRcoarsesymm. By default it | |
940 | // only streams the AliITS class as it is required. Since this class | |
941 | // dosen't contain any "real" data to be saved, it doesn't. | |
942 | //////////////////////////////////////////////////////////////////////// | |
943 | ||
944 | if (R__b.IsReading()) { | |
945 | Version_t R__v = R__b.ReadVersion(); if (R__v) { } | |
946 | AliITS::Streamer(R__b); | |
947 | } else { | |
948 | R__b.WriteVersion(AliITSvPPRcoarsesymm::IsA()); | |
949 | AliITS::Streamer(R__b); | |
950 | } // end if R__b.IsReading() | |
951 | } | |
952 | */ |