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