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