1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 Revision 1.5 2000/10/16 13:49:15 barbera
19 Services volumes slightly modified and material added following Pierluigi Barberis' information
21 Revision 1.4 2000/10/07 15:33:07 barbera
22 Small corrections to the ITSV mother volume
24 Revision 1.3 2000/10/07 13:06:50 barbera
25 Some new materials and media defined
27 Revision 1.2 2000/10/07 10:58:15 barbera
28 Mother volume ITSV corrected
30 Revision 1.1 2000/10/06 23:09:24 barbera
31 New coarse geometry (asymmetric services
33 Revision 1.20 2000/10/02 21:28:08 fca
34 Removal of useless dependecies via forward declarations
36 Revision 1.19 2000/07/10 16:07:19 fca
37 Release version of ITS code
39 Revision 1.14.2.2 2000/05/19 10:09:21 nilsen
40 fix for bug with HP and Sun unix + fix for event display in ITS-working branch
42 Revision 1.14.2.1 2000/03/04 23:45:19 nilsen
43 Fixed up the comments/documentation.
45 Revision 1.14 1999/11/25 06:52:56 fca
48 Revision 1.13.2.1 1999/11/25 06:52:21 fca
51 Revision 1.13 1999/10/27 11:16:26 fca
52 Correction of problem in geometry
54 Revision 1.12 1999/10/22 08:25:25 fca
55 remove double definition of destructors
57 Revision 1.11 1999/10/22 08:16:49 fca
58 Correct destructors, thanks to I.Hrivnacova
60 Revision 1.10 1999/10/06 19:56:50 fca
63 Revision 1.9 1999/10/05 08:05:09 fca
64 Minor corrections for uninitialised variables.
66 Revision 1.8 1999/09/29 09:24:20 fca
67 Introduction of the Copyright and cvs Log
71 ///////////////////////////////////////////////////////////////////////////////
73 // Inner Traking System version PPR coarse asymmetric //
74 // This class contains the base procedures for the Inner Tracking System //
76 // Authors: R. Barbera
80 // NOTE: THIS IS THE COARSE ASYMMETRIC PPR geometry of the ITS.
82 // with the geometry or module classes or any analysis classes. You are
83 // strongly encouraged to uses AliITSv5.
85 ///////////////////////////////////////////////////////////////////////////////
90 #include <TGeometry.h>
93 #include <TFile.h> // only required for Tracking function?
95 #include <TObjArray.h>
96 #include <TClonesArray.h>
101 #include "AliConst.h"
103 #include "AliITShit.h"
104 #include "AliITSvPPRcoarseasymm.h"
108 ClassImp(AliITSvPPRcoarseasymm)
110 //_____________________________________________________________________________
111 AliITSvPPRcoarseasymm::AliITSvPPRcoarseasymm() {
112 ////////////////////////////////////////////////////////////////////////
113 // Standard default constructor for the ITS version 6.
114 ////////////////////////////////////////////////////////////////////////
117 fIdName = new TString[fIdN];
124 fIdSens = new Int_t[fIdN];
125 for (Int_t i=0;i<fIdN;i++) fIdSens[i]=fIdName[i].Length();
127 //_____________________________________________________________________________
128 AliITSvPPRcoarseasymm::AliITSvPPRcoarseasymm(const char *name, const char *title) : AliITS(name, title){
129 ////////////////////////////////////////////////////////////////////////
130 // Standard constructor for the ITS version 6.
131 ////////////////////////////////////////////////////////////////////////
134 fIdName = new TString[fIdN];
141 fIdSens = new Int_t[fIdN];
142 for (Int_t i=0;i<fIdN;i++) fIdSens[i]=fIdName[i].Length();
145 //____________________________________________________________________________
146 AliITSvPPRcoarseasymm::AliITSvPPRcoarseasymm(const AliITSvPPRcoarseasymm &source){
147 ////////////////////////////////////////////////////////////////////////
148 // Copy Constructor for ITS version 6.
149 ////////////////////////////////////////////////////////////////////////
150 if(&source == this) return;
151 printf("Not allowed to copy AliITSvPPRcoarseasymm\n");
154 //_____________________________________________________________________________
155 AliITSvPPRcoarseasymm& AliITSvPPRcoarseasymm::operator=(const AliITSvPPRcoarseasymm &source){
156 ////////////////////////////////////////////////////////////////////////
157 // Assignment operator for the ITS version 6.
158 ////////////////////////////////////////////////////////////////////////
159 if(&source == this) return *this;
160 printf("Not allowed to copy AliITSvPPRcoarseasymm\n");
163 //_____________________________________________________________________________
164 AliITSvPPRcoarseasymm::~AliITSvPPRcoarseasymm() {
165 ////////////////////////////////////////////////////////////////////////
166 // Standard destructor for the ITS version 6.
167 ////////////////////////////////////////////////////////////////////////
170 //__________________________________________________________________________
171 void AliITSvPPRcoarseasymm::BuildGeometry(){
172 ////////////////////////////////////////////////////////////////////////
173 // Geometry builder for the ITS version 6.
174 ////////////////////////////////////////////////////////////////////////
176 const int kColorITS=kYellow;
178 top = gAlice->GetGeometry()->GetNode("alice");
180 new TTUBE("S_layer1","Layer1 of ITS","void",3.95,3.95+0.05475,12.25);
182 node = new TNode("Layer1","Layer1","S_layer1",0,0,0,"");
183 node->SetLineColor(kColorITS);
186 new TTUBE("S_layer2","Layer2 of ITS","void",7.,7.+0.05475,16.3);
188 node = new TNode("Layer2","Layer2","S_layer2",0,0,0,"");
189 node->SetLineColor(kColorITS);
192 new TTUBE("S_layer3","Layer3 of ITS","void",15.,15.+0.05288,21.1);
194 node = new TNode("Layer3","Layer3","S_layer3",0,0,0,"");
195 node->SetLineColor(kColorITS);
198 new TTUBE("S_layer4","Layer4 of ITS","void",24,24+0.05288,29.6);
200 node = new TNode("Layer4","Layer4","S_layer4",0,0,0,"");
201 node->SetLineColor(kColorITS);
204 new TTUBE("S_layer5","Layer5 of ITS","void",40,40+0.05382,45.1);
206 node = new TNode("Layer5","Layer5","S_layer5",0,0,0,"");
207 node->SetLineColor(kColorITS);
210 new TTUBE("S_layer6","Layer6 of ITS","void",45,45+0.05382,50.4);
212 node = new TNode("Layer6","Layer6","S_layer6",0,0,0,"");
213 node->SetLineColor(kColorITS);
216 //_____________________________________________________________________________
217 void AliITSvPPRcoarseasymm::CreateGeometry(){
218 ////////////////////////////////////////////////////////////////////////
219 // This routine defines and Creates the geometry for version 6 of the ITS.
220 ////////////////////////////////////////////////////////////////////////
222 //INNER RADII OF THE SILICON LAYERS
223 Float_t rl[6] = { 3.95,7.,15.,24.,38.1,43.5765 };
224 //THICKNESSES OF LAYERS (in % radiation length)
225 Float_t drl[6] = { 1.03,1.03+0.36,0.34+0.94,0.95,0.34+0.91,0.87 };
226 //HALF LENGTHS OF LAYERS
227 Float_t dzl[6] = { 14.344,14.344,25.1,32.1,49.405,55.27 };
228 //LENGTHS OF END-LADDER BOXES (ALL INCLUDED)
229 Float_t dzb[6] = { 17.,17.,15.,17.,12.,11. }; // check !!
230 //THICKNESSES OF END-LADDER BOXES (ALL INCLUDED)
231 Float_t drb[6] = { 1.5,1.5,5.,5.,3.,3. }; // check spd and ssd !! !!
234 Float_t dits[3], rlim, zmax;
236 Float_t pcits[15], xltpc;
237 Int_t idrotm[399], i;
240 Int_t *idtmed = fIdtmed->GetArray()-199;
242 // CONVERT INTO CM (RL(SI)=9.36 CM)
243 for (i = 0; i < 6; ++i) {
244 drl[i] = drl[i] / 100. * 9.36;
247 // FIELD CAGE HALF LENGTH
253 // --- Define ghost volume containing the whole ITS (including services)
254 // and fill it with air
259 dgh[3] = -xltpc-5.-0.1;
292 dgh[36] = xltpc+4.+0.1;
296 gMC->Gsvolu("ITSV", "PCON", idtmed[275], dgh, 39);
298 // --- Place the ghost volume in its mother volume (ALIC) and make it
301 gMC->Gspos("ITSV", 1, "ALIC", 0., 0., 0., 0, "ONLY");
302 gMC->Gsatt("ITSV", "SEEN", 0);
305 // --- Define ghost volume containing the six layers and fill it with air
322 gMC->Gsvolu("ITSD", "PCON", idtmed[275], dgh, 15);
324 // --- Place the ghost volume in its mother volume (ITSV) and make it
327 gMC->Gspos("ITSD", 1, "ITSV", 0., 0., 0., 0, "ONLY");
328 gMC->Gsatt("ITSD", "SEEN", 0);
330 // ITS LAYERS (SILICON)
333 dits[1] = rl[0] + drl[0];
335 gMC->Gsvolu("ITS1", "TUBE", idtmed[199], dits, 3);
336 gMC->Gspos("ITS1", 1, "ITSD", 0., 0., 0., 0, "ONLY");
339 dits[1] = rl[1] + drl[1];
341 gMC->Gsvolu("ITS2", "TUBE", idtmed[199], dits, 3);
342 gMC->Gspos("ITS2", 1, "ITSD", 0., 0., 0., 0, "ONLY");
345 dits[1] = rl[2] + drl[2];
347 gMC->Gsvolu("ITS3", "TUBE", idtmed[224], dits, 3);
348 gMC->Gspos("ITS3", 1, "ITSD", 0., 0., 0., 0, "ONLY");
351 dits[1] = rl[3] + drl[3];
353 gMC->Gsvolu("ITS4", "TUBE", idtmed[224], dits, 3);
354 gMC->Gspos("ITS4", 1, "ITSD", 0., 0., 0., 0, "ONLY");
357 dits[1] = rl[4] + drl[4];
359 gMC->Gsvolu("ITS5", "TUBE", idtmed[249], dits, 3);
360 gMC->Gspos("ITS5", 1, "ITSD", 0., 0., 0., 0, "ONLY");
363 dits[1] = rl[5] + drl[5];
365 gMC->Gsvolu("ITS6", "TUBE", idtmed[249], dits, 3);
366 gMC->Gspos("ITS6", 1, "ITSD", 0., 0., 0., 0, "ONLY");
368 // END-LADDER ELECTRONICS BOXES AND CABLES FOR SPD
370 gMC->Gsvolu("IEL1", "TUBE", idtmed[208], dits, 0);
371 for (i = 0; i < 2; i++) {
373 dits[1] = dits[0] + drb[i];
374 dits[2] = dzb[i] / 2.;
375 zpos = dzl[i] + dits[2];
376 gMC->Gsposp("IEL1", i+1, "ITSD", 0., 0., zpos, 0, "ONLY", dits, 3);
377 gMC->Gsposp("IEL1", i+1+6, "ITSD", 0., 0.,-zpos, 0, "ONLY", dits, 3);
380 // END-LADDER ELECTRONICS BOXES AND CABLES FOR SDD
382 gMC->Gsvolu("IEL2", "TUBE", idtmed[237], dits, 0);
383 for (i = 2; i < 4; i++) {
385 dits[1] = dits[0] + drb[i];
386 dits[2] = dzb[i] / 2.;
387 zpos = dzl[i] + dits[2];
388 gMC->Gsposp("IEL2", i+1, "ITSD", 0., 0., zpos, 0, "ONLY", dits, 3);
389 gMC->Gsposp("IEL2", i+1+6, "ITSD", 0., 0.,-zpos, 0, "ONLY", dits, 3);
392 // END-LADDER ELECTRONICS BOXES AND CABLES FOR SSD
394 gMC->Gsvolu("IEL3", "TUBE", idtmed[263], dits, 0);
395 for (i = 4; i < 6; i++) {
397 dits[1] = dits[0] + drb[i];
398 dits[2] = dzb[i] / 2.;
399 zpos = dzl[i] + dits[2];
400 gMC->Gsposp("IEL3", i+1, "ITSD", 0., 0., zpos, 0, "ONLY", dits, 3);
401 gMC->Gsposp("IEL3", i+1+6, "ITSD", 0., 0.,-zpos, 0, "ONLY", dits, 3);
404 // DEFINE END CONES FOR SPD
410 pcits[4] = (rl[0]+rl[1])/2.;
411 pcits[5] = (rl[0]+rl[1])/2.+2.; // check thickness !!
414 pcits[8] = 10.065+2.; // check thickness !!
415 gMC->Gsvolu("ICO1", "PCON", idtmed[209], pcits, 9);
416 AliMatrix(idrotm[200], 90., 0., 90., 90., 180., 0.);
417 gMC->Gspos("ICO1", 1, "ITSD", 0., 0., 0., 0, "ONLY");
418 gMC->Gspos("ICO1", 2, "ITSD", 0., 0., 0., idrotm[200], "ONLY");
421 // DEFINE END CONES FOR SDD
428 pcits[5] = 10.065+3.0; // check thickness !!
431 pcits[8] = 28.+3.0; // check thickness !!
432 gMC->Gsvolu("ICO2", "PCON", idtmed[238], pcits, 9);
433 gMC->Gspos("ICO2", 1, "ITSD", 0., 0., 0., 0, "ONLY");
434 gMC->Gspos("ICO2", 2, "ITSD", 0., 0., 0., idrotm[200], "ONLY");
437 // DEFINE END CONES FOR SSD
444 pcits[5] = 28.0+4.0; // check thickness !!
447 pcits[8] = 47.+4.0; // check thickness !!
448 gMC->Gsvolu("ICO3", "PCON", idtmed[264], pcits, 9);
449 gMC->Gspos("ICO3", 1, "ITSD", 0., 0., 0., 0, "ONLY");
450 gMC->Gspos("ICO3", 2, "ITSD", 0., 0., 0., idrotm[200], "ONLY");
456 // --- Define cables at the end of the ITS cones - copper part
462 gMC->Gsvolu("ICCU", "TUBE", idtmed[279], dgh, 3);
463 gMC->Gspos("ICCU", 1, "ITSV", 0., 0., 86.7, 0, "ONLY");
464 gMC->Gspos("ICCU", 2, "ITSV", 0., 0., -86.7, idrotm[200], "ONLY");
466 // --- Define cables at the end of the ITS cones - carbon part
469 dgh[1] = 45.+1.0+1.5;
472 gMC->Gsvolu("ICCC", "TUBE", idtmed[274], dgh, 3);
473 gMC->Gspos("ICCC", 1, "ITSV", 0., 0., 86.7, 0, "ONLY");
474 gMC->Gspos("ICCC", 2, "ITSV", 0., 0., -86.7, idrotm[200], "ONLY");
476 // --- Define patch panels at the end of the ITS cones
482 gMC->Gsvolu("IPAN", "TUBE", idtmed[285], dgh, 3);
483 gMC->Gspos("IPAN", 1, "ITSV", 0., 0., 98.45, 0, "ONLY");
484 gMC->Gspos("IPAN", 2, "ITSV", 0., 0., -98.45, idrotm[200], "ONLY");
486 // --- Define cables/cooling below the TPC on the absorber side - copper part
497 gMC->Gsvolu("ICU1", "PCON", idtmed[279], dgh, 9);
498 gMC->Gspos("ICU1", 1, "ITSV", 0., 0., 0., 0, "ONLY");
500 // --- Define cables/cooling below the TPC on the absorber side - carbon part
507 dgh[5] = 45.2+1.0+1.5;
510 dgh[8] = 61.8+1.0+1.5;
511 gMC->Gsvolu("ICC1", "PCON", idtmed[274], dgh, 9);
512 gMC->Gspos("ICC1", 1, "ITSV", 0., 0., 0., 0, "ONLY");
515 // --- Define cables/cooling behind the TPC on the absorber side - copper part
523 dgh[6] = xltpc+1.5+1.0;
526 gMC->Gsvolu("ICU2", "PCON", idtmed[279], dgh, 9);
527 gMC->Gspos("ICU2", 1, "ITSV", 0., 0., 0., 0, "ONLY");
529 // --- Define cables/cooling behind the TPC on the absorber side - carbon part
540 gMC->Gsvolu("ICC2", "PCON", idtmed[274], dgh, 9);
541 gMC->Gspos("ICC2", 1, "ITSV", 0., 0., 0., 0, "ONLY");
543 // --- Define cables/cooling below the TPC on the other side w.r.t.
544 // the absorber - copper part
548 dgh[2] = (xltpc-100.7+1.5)/2.;
549 gMC->Gsvolu("ICU3", "TUBE", idtmed[279], dgh, 3);
550 gMC->Gspos("ICU3", 1, "ITSV", 0., 0., -100.7-dgh[2], 0, "ONLY");
552 // --- Define cables/cooling below the TPC on the other side w.r.t.
553 // the absorber - carbon part
556 dgh[1] = 45.+1.0+1.5;
557 dgh[2] = (xltpc-100.7)/2.;
558 gMC->Gsvolu("ICC3", "TUBE", idtmed[274], dgh, 3);
559 gMC->Gspos("ICC3", 1, "ITSV", 0., 0., -100.7-dgh[2], 0, "ONLY");
562 // --- Define cables/cooling behind the TPC on other side w.r.t. the absorber
568 dgh[3] = -xltpc-1.5-1.0;
574 gMC->Gsvolu("ICU4", "PCON", idtmed[279], dgh, 9);
575 gMC->Gspos("ICU4", 1, "ITSV", 0., 0., 0., 0, "ONLY");
577 // --- Define cables/cooling behind the TPC on other side w.r.t. the absorber
589 gMC->Gsvolu("ICC4", "PCON", idtmed[274], dgh, 9);
590 gMC->Gspos("ICC4", 1, "ITSV", 0., 0., 0., 0, "ONLY");
592 // --- Define hook to the TPC on other side w.r.t. the absorber
597 gMC->Gsvolu("IHOK", "TUBE", idtmed[284], dgh, 3);
598 gMC->Gspos("IHOK", 1, "ITSV", 0., 0., -xltpc-dgh[2], 0, "ONLY");
601 // --- Outputs the geometry tree in the EUCLID/CAD format
604 gMC->WriteEuclid("ITSgeometry", "ITSV", 1, 5);
607 //_____________________________________________________________________________
608 void AliITSvPPRcoarseasymm::CreateMaterials(){
609 ////////////////////////////////////////////////////////////////////////
611 // Create ITS materials
612 // This function defines the default materials used in the Geant
613 // Monte Carlo simulations for the geometries AliITSv1, AliITSv3,
614 // AliITSvPPRcoarseasymm.
615 // In general it is automatically replaced by
616 // the CreatMaterials routine defined in AliITSv?. Should the function
617 // CreateMaterials not exist for the geometry version you are using this
618 // one is used. See the definition found in AliITSv5 or the other routine
619 // for a complete definition.
622 Float_t awat[2] = { 1.00794,15.9994 };
623 Float_t zwat[2] = { 1.,8. };
624 Float_t wwat[2] = { 2.,1. };
625 Float_t denswat = 1.;
627 Float_t afre[2] = { 12.011,18.9984032 };
628 Float_t zfre[2] = { 6.,9. };
629 Float_t wfre[2] = { 5.,12. };
630 Float_t densfre = 1.5;
632 // 94.4% Al2O3 , 2.8% SiO2 , 2.3% MnO , 0.5% Cr2O3
633 Float_t acer[5] = { 26.981539,15.9994,28.0855,54.93805,51.9961 };
634 Float_t zcer[5] = { 13.,8.,14.,25., 24. };
635 Float_t wcer[5] = { .49976,1.01233,.01307, .01782,.00342 };
636 Float_t denscer = 3.6;
638 // 60% SiO2 , 40% G10FR4
640 Float_t apcb[3] = { 28.0855,15.9994,17.749 };
641 Float_t zpcb[3] = { 14.,8.,8.875 };
642 Float_t wpcb[3] = { .28,.32,.4 };
643 Float_t denspcb = 1.8;
645 Float_t apoly[2] = { 12.01,1. };
646 Float_t zpoly[2] = { 6.,1. };
647 Float_t wpoly[2] = { .33,.67 };
649 Float_t zserv[4] = { 1.,6.,26.,29. };
650 Float_t aserv[4] = { 1.,12.,55.8,63.5 };
651 Float_t wserv[4] = { .014,.086,.42,.48 };
653 Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 };
654 Float_t zsteel[4] = { 26.,24.,28.,14. };
655 Float_t wsteel[4] = { .715,.18,.1,.005 };
658 Int_t isxfld = gAlice->Field()->Integ();
659 Float_t sxmgmx = gAlice->Field()->Max();
662 // --- Define the various materials for GEANT ---
664 // 200-224 --> Silicon Pixel Detectors (detectors, chips, buses, cooling,..)
666 AliMaterial(0, "SPD Si$", 28.0855, 14., 2.33, 9.36, 999);
667 AliMaterial(1, "SPD Si chip$", 28.0855, 14., 2.33, 9.36, 999);
668 AliMaterial(2, "SPD Si bus$", 28.0855, 14., 2.33, 9.36, 999);
669 AliMaterial(3, "SPD C$", 12.011, 6., 2.265,18.8, 999);
671 AliMaterial(4, "SPD Air$", 14.61, 7.3, .001205, 30423., 999);
672 AliMaterial(5, "SPD Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
673 AliMaterial(6, "SPD Al$", 26.981539, 13., 2.6989, 8.9, 999);
674 AliMixture( 7, "SPD Water $", awat, zwat, denswat, -2, wwat);
675 AliMixture( 8, "SPD Freon$", afre, zfre, densfre, -2, wfre);
676 AliMaterial(9, "SPD End ladder$",28.0855, 14., 2.33, 9.36, 999); // check !!!!
677 AliMaterial(10, "SPD cone$",28.0855, 14., 2.33, 9.36, 999); // check !!!!
679 AliMedium(0, "SPD Si$", 0, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
680 AliMedium(1, "SPD Si chip$", 1, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
681 AliMedium(2, "SPD Si bus$", 2, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
682 AliMedium(3, "SPD C$", 3, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
683 AliMedium(4, "SPD Air$", 4, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
684 AliMedium(5, "SPD Vacuum$", 5, 0,isxfld,sxmgmx, 10.,1.00, .1, .100,10.00);
685 AliMedium(6, "SPD Al$", 6, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
686 AliMedium(7, "SPD Water $", 7, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
687 AliMedium(8, "SPD Freon$", 8, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
688 AliMedium(9, "SPD End ladder",9, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
689 AliMedium(10, "SPD cone$", 10, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
691 // 225-249 --> Silicon Drift Detectors (detectors, chips, buses, cooling,..)
693 AliMaterial(25, "SDD Si$", 28.0855, 14., 2.33, 9.36, 999);
694 AliMaterial(26, "SDD Si chip$", 28.0855, 14., 2.33, 9.36, 999);
695 AliMaterial(27, "SDD Si bus$", 28.0855, 14., 2.33, 9.36, 999);
696 AliMaterial(28, "SDD C$", 12.011, 6., 2.265,18.8, 999);
698 AliMaterial(29, "SDD Air$", 14.61, 7.3, .001205, 30423., 999);
699 AliMaterial(30, "SDD Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
700 AliMaterial(31, "SDD Al$", 26.981539, 13., 2.6989, 8.9, 999);
701 // After a call with ratios by number (negative number of elements),
702 // the ratio array is changed to the ratio by weight, so all successive
703 // calls with the same array must specify the number of elements as
705 AliMixture(32, "SDD Water $", awat, zwat, denswat, 2, wwat);
706 // After a call with ratios by number (negative number of elements),
707 // the ratio array is changed to the ratio by weight, so all successive
708 // calls with the same array must specify the number of elements as
710 AliMixture( 33, "SDD Freon$", afre, zfre, densfre, 2, wfre);
711 AliMixture( 34, "SDD PCB$", apcb, zpcb, denspcb, 3, wpcb);
712 AliMaterial(35, "SDD Copper$", 63.546, 29., 8.96, 1.43, 999);
713 AliMixture( 36, "SDD Ceramics$", acer, zcer, denscer, -5, wcer);
714 AliMaterial(37, "SDD Kapton$", 12.011, 6., 1.3, 31.27, 999);
715 AliMaterial(38, "SDD End ladder$",28.0855, 14., 2.33, 9.36, 999); // check !!!!
716 AliMaterial(39, "SDD cone$",28.0855, 14., 2.33, 9.36, 999); // check !!!!
719 AliMedium(25, "SDD Si$", 25, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
720 AliMedium(26, "SDD Si chip$", 26, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
721 AliMedium(27, "SDD Si bus$", 27, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
722 AliMedium(28, "SDD C$", 28, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
723 AliMedium(29, "SDD Air$", 29, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
724 AliMedium(30, "SDD Vacuum$", 30, 0,isxfld,sxmgmx, 10.,1.00, .1, .100,10.00);
725 AliMedium(31, "SDD Al$", 31, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
726 AliMedium(32, "SDD Water $", 32, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
727 AliMedium(33, "SDD Freon$", 33, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
728 AliMedium(34, "SDD PCB$", 34, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
729 AliMedium(35, "SDD Copper$", 35, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
730 AliMedium(36, "SDD Ceramics$",36, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
731 AliMedium(37, "SDD Kapton$", 37, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
732 AliMedium(38, "SDD End ladder",38, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
733 AliMedium(39, "SDD cone$", 39, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
735 // 250-274 --> Silicon Strip Detectors (detectors, chips, buses, cooling,..)
737 AliMaterial(50, "SSD Si$", 28.0855, 14., 2.33, 9.36, 999.);
738 AliMaterial(51, "SSD Si chip$", 28.0855, 14., 2.33, 9.36, 999.);
739 AliMaterial(52, "SSD Si bus$", 28.0855, 14., 2.33, 9.36, 999.);
740 AliMaterial(53, "SSD C$", 12.011, 6., 2.265,18.8, 999.);
742 AliMaterial(54, "SSD Air$", 14.61, 7.3, .001205, 30423., 999);
743 AliMaterial(55, "SSD Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
744 AliMaterial(56, "SSD Al$", 26.981539, 13., 2.6989, 8.9, 999);
745 // After a call with ratios by number (negative number of elements),
746 // the ratio array is changed to the ratio by weight, so all successive
747 // calls with the same array must specify the number of elements as
749 AliMixture(57, "SSD Water $", awat, zwat, denswat, 2, wwat);
750 // After a call with ratios by number (negative number of elements),
751 // the ratio array is changed to the ratio by weight, so all successive
752 // calls with the same array must specify the number of elements as
754 AliMixture(58, "SSD Freon$", afre, zfre, densfre, 2, wfre);
755 AliMixture(59, "SSD PCB$", apcb, zpcb, denspcb, 3, wpcb);
756 AliMaterial(60, "SSD Copper$", 63.546, 29., 8.96, 1.43, 999.);
757 // After a call with ratios by number (negative number of elements),
758 // the ratio array is changed to the ratio by weight, so all successive
759 // calls with the same array must specify the number of elements as
761 AliMixture( 61, "SSD Ceramics$", acer, zcer, denscer, 5, wcer);
762 AliMaterial(62, "SSD Kapton$", 12.011, 6., 1.3, 31.27, 999.);
764 AliMaterial(63, "SSD G10FR4$", 17.749, 8.875, 1.8, 21.822, 999.);
765 AliMaterial(64, "SSD End ladder$",28.0855, 14., 2.33, 9.36, 999); // check !!!!
766 AliMaterial(65, "SSD cone$",28.0855, 14., 2.33, 9.36, 999); // check !!!!
768 AliMedium(50, "SSD Si$", 50, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
769 AliMedium(51, "SSD Si chip$", 51, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
770 AliMedium(52, "SSD Si bus$", 52, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
771 AliMedium(53, "SSD C$", 53, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
772 AliMedium(54, "SSD Air$", 54, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
773 AliMedium(55, "SSD Vacuum$", 55, 0,isxfld,sxmgmx, 10.,1.00, .1, .100,10.00);
774 AliMedium(56, "SSD Al$", 56, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
775 AliMedium(57, "SSD Water $", 57, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
776 AliMedium(58, "SSD Freon$", 58, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
777 AliMedium(59, "SSD PCB$", 59, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
778 AliMedium(60, "SSD Copper$", 60, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
779 AliMedium(61, "SSD Ceramics$",61, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
780 AliMedium(62, "SSD Kapton$", 62, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
781 AliMedium(63, "SSD G10FR4$", 63, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
782 AliMedium(64, "SPD End ladder",64, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
783 AliMedium(65, "SPD cone$", 65, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
785 // 275-299 --> General (end-caps, frames, cooling, cables, etc.)
787 AliMaterial(75, "GEN C$", 12.011, 6., 2.265, 18.8, 999.);
789 AliMaterial(76, "GEN Air$", 14.61, 7.3, .001205, 30423., 999);
790 AliMaterial(77, "GEN Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
791 AliMixture( 78, "GEN POLYETHYL$", apoly, zpoly, .95, -2, wpoly);
792 AliMixture( 79, "GEN SERVICES$", aserv, zserv, 4.68, 4, wserv);
793 AliMaterial(80, "GEN Copper$", 63.546, 29., 8.96, 1.43, 999.);
794 // After a call with ratios by number (negative number of elements),
795 // the ratio array is changed to the ratio by weight, so all successive
796 // calls with the same array must specify the number of elements as
798 AliMixture(81, "GEN Water $", awat, zwat, denswat, 2, wwat);
799 // AliMaterial(82, "GEN Cables$", 12.011, 6., 2.265, 18.8, 999.); // check !!!
800 // AliMaterial(83, "GEN patch pan$", 12.011, 6., 2.265, 18.8, 999.); // check !!!
801 // AliMaterial(84, "GEN serv$", 12.011, 6., 2.265, 18.8, 999.); // check !!!
802 AliMixture(85, "GEN Inox$", asteel, zsteel, 7.88, 4, wsteel);
803 AliMaterial(86, "GEN Al$", 26.981539, 13., 2.6989, 8.9, 999);
805 AliMedium(75,"GEN C$", 75, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
806 AliMedium(76,"GEN Air$", 76, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
807 AliMedium(77,"GEN Vacuum$", 77, 0,isxfld,sxmgmx, 10., .10, .1, .100,10.00);
808 AliMedium(78,"GEN POLYETHYL$",78, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
809 AliMedium(79,"GEN SERVICES$", 79, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
810 AliMedium(80,"GEN Copper$", 80, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
811 AliMedium(81,"GEN Water $", 81, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
812 // AliMedium(82,"GEN Cables$", 82, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
813 // AliMedium(83,"GEN patch pan$",83, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
814 // AliMedium(84,"GEN serv$", 84, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
815 AliMedium(85,"GEN Inox$", 85, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
816 AliMedium(86, "GEN Al$", 86, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
818 //_____________________________________________________________________________
819 void AliITSvPPRcoarseasymm::Init(){
820 ////////////////////////////////////////////////////////////////////////
821 // Initialise the ITS after it has been created.
822 ////////////////////////////////////////////////////////////////////////
830 //_____________________________________________________________________________
831 void AliITSvPPRcoarseasymm::DrawModule(){
832 ////////////////////////////////////////////////////////////////////////
833 // Draw a shaded view of the FMD version 6.
834 ////////////////////////////////////////////////////////////////////////
836 // Set everything unseen
837 gMC->Gsatt("*", "seen", -1);
839 // Set ALIC mother visible
840 gMC->Gsatt("ALIC","SEEN",0);
842 // Set the volumes visible
843 gMC->Gsatt("ITSD","SEEN",0);
844 gMC->Gsatt("ITS1","SEEN",1);
845 gMC->Gsatt("ITS2","SEEN",1);
846 gMC->Gsatt("ITS3","SEEN",1);
847 gMC->Gsatt("ITS4","SEEN",1);
848 gMC->Gsatt("ITS5","SEEN",1);
849 gMC->Gsatt("ITS6","SEEN",1);
851 gMC->Gsatt("IPCB","SEEN",1);
852 gMC->Gsatt("ICO2","SEEN",1);
853 gMC->Gsatt("ICER","SEEN",0);
854 gMC->Gsatt("ISI2","SEEN",0);
855 gMC->Gsatt("IPLA","SEEN",0);
856 gMC->Gsatt("ICO3","SEEN",0);
857 gMC->Gsatt("IEPX","SEEN",0);
858 gMC->Gsatt("ISI3","SEEN",1);
859 gMC->Gsatt("ISUP","SEEN",0);
860 gMC->Gsatt("ICHO","SEEN",0);
861 gMC->Gsatt("ICMO","SEEN",0);
862 gMC->Gsatt("ICMD","SEEN",0);
863 gMC->Gsatt("ICCO","SEEN",1);
864 gMC->Gsatt("ICCM","SEEN",0);
865 gMC->Gsatt("ITMD","SEEN",0);
866 gMC->Gsatt("ITTT","SEEN",1);
869 gMC->Gdopt("hide", "on");
870 gMC->Gdopt("shad", "on");
871 gMC->Gsatt("*", "fill", 7);
872 gMC->SetClipBox(".");
873 gMC->SetClipBox("*", 0, 300, -300, 300, -300, 300);
875 gMC->Gdraw("alic", 40, 30, 0, 11, 10, .07, .07);
876 gMC->Gdhead(1111, "Inner Tracking System Version 1");
877 gMC->Gdman(17, 6, "MAN");
879 //_____________________________________________________________________________
880 void AliITSvPPRcoarseasymm::StepManager(){
881 ////////////////////////////////////////////////////////////////////////
882 // Called for every step in the ITS, then calls the AliITShit class
883 // creator with the information to be recoreded about that hit.
884 ////////////////////////////////////////////////////////////////////////
890 TLorentzVector position, momentum;
891 // TClonesArray &lhits = *fHits;
893 // no hits for this coarse asymmetric version.
899 if(gMC->IsTrackInside()) vol[3] += 1;
900 if(gMC->IsTrackEntering()) vol[3] += 2;
901 if(gMC->IsTrackExiting()) vol[3] += 4;
902 if(gMC->IsTrackOut()) vol[3] += 8;
903 if(gMC->IsTrackDisappeared()) vol[3] += 16;
904 if(gMC->IsTrackStop()) vol[3] += 32;
905 if(gMC->IsTrackAlive()) vol[3] += 64;
907 // Fill hit structure.
908 if( !(gMC->TrackCharge()) ) return;
910 // Only entering charged tracks
911 if((id=gMC->CurrentVolID(copy))==fIdSens[0]) {
913 id=gMC->CurrentVolOffID(1,copy);
915 id=gMC->CurrentVolOffID(2,copy);
917 } else if(id==fIdSens[1]) {
919 id=gMC->CurrentVolOffID(1,copy);
921 id=gMC->CurrentVolOffID(2,copy);
923 } else if(id==fIdSens[2]) {
926 id=gMC->CurrentVolOffID(1,copy);
928 } else if(id==fIdSens[3]) {
931 id=gMC->CurrentVolOffID(1,copy);
933 } else if(id==fIdSens[4]) {
936 id=gMC->CurrentVolOffID(1,copy);
938 } else if(id==fIdSens[5]) {
941 id=gMC->CurrentVolOffID(1,copy);
944 gMC->TrackPosition(position);
945 gMC->TrackMomentum(momentum);
953 hits[7]=gMC->TrackTime();
954 // new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->CurrentTrack(),vol,hits);
956 // no hits for this coarse asymmetric version.
961 //____________________________________________________________________________
962 void AliITSvPPRcoarseasymm::Streamer(TBuffer &R__b){
963 ////////////////////////////////////////////////////////////////////////
964 // A dummy Streamer function for this class AliITSvPPRcoarseasymm. By default it
965 // only streams the AliITS class as it is required. Since this class
966 // dosen't contain any "real" data to be saved, it doesn't.
967 ////////////////////////////////////////////////////////////////////////
969 if (R__b.IsReading()) {
970 Version_t R__v = R__b.ReadVersion(); if (R__v) { }
971 AliITS::Streamer(R__b);
973 R__b.WriteVersion(AliITSvPPRcoarseasymm::IsA());
974 AliITS::Streamer(R__b);
975 } // end if R__b.IsReading()