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.4 2000/10/07 15:33:07 barbera
19 Small corrections to the ITSV mother volume
21 Revision 1.3 2000/10/07 13:06:50 barbera
22 Some new materials and media defined
24 Revision 1.2 2000/10/07 10:58:15 barbera
25 Mother volume ITSV corrected
27 Revision 1.1 2000/10/06 23:09:24 barbera
28 New coarse geometry (asymmetric services
30 Revision 1.20 2000/10/02 21:28:08 fca
31 Removal of useless dependecies via forward declarations
33 Revision 1.19 2000/07/10 16:07:19 fca
34 Release version of ITS code
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
39 Revision 1.14.2.1 2000/03/04 23:45:19 nilsen
40 Fixed up the comments/documentation.
42 Revision 1.14 1999/11/25 06:52:56 fca
45 Revision 1.13.2.1 1999/11/25 06:52:21 fca
48 Revision 1.13 1999/10/27 11:16:26 fca
49 Correction of problem in geometry
51 Revision 1.12 1999/10/22 08:25:25 fca
52 remove double definition of destructors
54 Revision 1.11 1999/10/22 08:16:49 fca
55 Correct destructors, thanks to I.Hrivnacova
57 Revision 1.10 1999/10/06 19:56:50 fca
60 Revision 1.9 1999/10/05 08:05:09 fca
61 Minor corrections for uninitialised variables.
63 Revision 1.8 1999/09/29 09:24:20 fca
64 Introduction of the Copyright and cvs Log
68 ///////////////////////////////////////////////////////////////////////////////
70 // Inner Traking System version PPR coarse asymmetric //
71 // This class contains the base procedures for the Inner Tracking System //
73 // Authors: R. Barbera
77 // NOTE: THIS IS THE COARSE ASYMMETRIC PPR geometry of the ITS.
79 // with the geometry or module classes or any analysis classes. You are
80 // strongly encouraged to uses AliITSv5.
82 ///////////////////////////////////////////////////////////////////////////////
87 #include <TGeometry.h>
90 #include <TFile.h> // only required for Tracking function?
92 #include <TObjArray.h>
93 #include <TClonesArray.h>
100 #include "AliITShit.h"
101 #include "AliITSvPPRcoarseasymm.h"
105 ClassImp(AliITSvPPRcoarseasymm)
107 //_____________________________________________________________________________
108 AliITSvPPRcoarseasymm::AliITSvPPRcoarseasymm() {
109 ////////////////////////////////////////////////////////////////////////
110 // Standard default constructor for the ITS version 6.
111 ////////////////////////////////////////////////////////////////////////
114 fIdName = new TString[fIdN];
121 fIdSens = new Int_t[fIdN];
122 for (Int_t i=0;i<fIdN;i++) fIdSens[i]=fIdName[i].Length();
124 //_____________________________________________________________________________
125 AliITSvPPRcoarseasymm::AliITSvPPRcoarseasymm(const char *name, const char *title) : AliITS(name, title){
126 ////////////////////////////////////////////////////////////////////////
127 // Standard constructor for the ITS version 6.
128 ////////////////////////////////////////////////////////////////////////
131 fIdName = new TString[fIdN];
138 fIdSens = new Int_t[fIdN];
139 for (Int_t i=0;i<fIdN;i++) fIdSens[i]=fIdName[i].Length();
142 //____________________________________________________________________________
143 AliITSvPPRcoarseasymm::AliITSvPPRcoarseasymm(const AliITSvPPRcoarseasymm &source){
144 ////////////////////////////////////////////////////////////////////////
145 // Copy Constructor for ITS version 6.
146 ////////////////////////////////////////////////////////////////////////
147 if(&source == this) return;
148 printf("Not allowed to copy AliITSvPPRcoarseasymm\n");
151 //_____________________________________________________________________________
152 AliITSvPPRcoarseasymm& AliITSvPPRcoarseasymm::operator=(const AliITSvPPRcoarseasymm &source){
153 ////////////////////////////////////////////////////////////////////////
154 // Assignment operator for the ITS version 6.
155 ////////////////////////////////////////////////////////////////////////
156 if(&source == this) return *this;
157 printf("Not allowed to copy AliITSvPPRcoarseasymm\n");
160 //_____________________________________________________________________________
161 AliITSvPPRcoarseasymm::~AliITSvPPRcoarseasymm() {
162 ////////////////////////////////////////////////////////////////////////
163 // Standard destructor for the ITS version 6.
164 ////////////////////////////////////////////////////////////////////////
167 //__________________________________________________________________________
168 void AliITSvPPRcoarseasymm::BuildGeometry(){
169 ////////////////////////////////////////////////////////////////////////
170 // Geometry builder for the ITS version 6.
171 ////////////////////////////////////////////////////////////////////////
173 const int kColorITS=kYellow;
175 top = gAlice->GetGeometry()->GetNode("alice");
177 new TTUBE("S_layer1","Layer1 of ITS","void",3.95,3.95+0.05475,12.25);
179 node = new TNode("Layer1","Layer1","S_layer1",0,0,0,"");
180 node->SetLineColor(kColorITS);
183 new TTUBE("S_layer2","Layer2 of ITS","void",7.,7.+0.05475,16.3);
185 node = new TNode("Layer2","Layer2","S_layer2",0,0,0,"");
186 node->SetLineColor(kColorITS);
189 new TTUBE("S_layer3","Layer3 of ITS","void",15.,15.+0.05288,21.1);
191 node = new TNode("Layer3","Layer3","S_layer3",0,0,0,"");
192 node->SetLineColor(kColorITS);
195 new TTUBE("S_layer4","Layer4 of ITS","void",24,24+0.05288,29.6);
197 node = new TNode("Layer4","Layer4","S_layer4",0,0,0,"");
198 node->SetLineColor(kColorITS);
201 new TTUBE("S_layer5","Layer5 of ITS","void",40,40+0.05382,45.1);
203 node = new TNode("Layer5","Layer5","S_layer5",0,0,0,"");
204 node->SetLineColor(kColorITS);
207 new TTUBE("S_layer6","Layer6 of ITS","void",45,45+0.05382,50.4);
209 node = new TNode("Layer6","Layer6","S_layer6",0,0,0,"");
210 node->SetLineColor(kColorITS);
213 //_____________________________________________________________________________
214 void AliITSvPPRcoarseasymm::CreateGeometry(){
215 ////////////////////////////////////////////////////////////////////////
216 // This routine defines and Creates the geometry for version 6 of the ITS.
217 ////////////////////////////////////////////////////////////////////////
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 !! !!
231 Float_t dits[3], rlim, zmax;
233 Float_t pcits[15], xltpc;
234 Int_t idrotm[399], i;
237 Int_t *idtmed = fIdtmed->GetArray()-199;
239 // CONVERT INTO CM (RL(SI)=9.36 CM)
240 for (i = 0; i < 6; ++i) {
241 drl[i] = drl[i] / 100. * 9.36;
244 // FIELD CAGE HALF LENGTH
250 // --- Define ghost volume containing the whole ITS (including services)
251 // and fill it with air
256 dgh[3] = -xltpc-5.-0.1;
289 dgh[36] = xltpc+4.+0.1;
293 gMC->Gsvolu("ITSV", "PCON", idtmed[275], dgh, 39);
295 // --- Place the ghost volume in its mother volume (ALIC) and make it
298 gMC->Gspos("ITSV", 1, "ALIC", 0., 0., 0., 0, "ONLY");
299 gMC->Gsatt("ITSV", "SEEN", 0);
302 // --- Define ghost volume containing the six layers and fill it with air
319 gMC->Gsvolu("ITSD", "PCON", idtmed[275], dgh, 15);
321 // --- Place the ghost volume in its mother volume (ITSV) and make it
324 gMC->Gspos("ITSD", 1, "ITSV", 0., 0., 0., 0, "ONLY");
325 gMC->Gsatt("ITSD", "SEEN", 0);
327 // ITS LAYERS (SILICON)
330 dits[1] = rl[0] + drl[0];
332 gMC->Gsvolu("ITS1", "TUBE", idtmed[199], dits, 3);
333 gMC->Gspos("ITS1", 1, "ITSD", 0., 0., 0., 0, "ONLY");
336 dits[1] = rl[1] + drl[1];
338 gMC->Gsvolu("ITS2", "TUBE", idtmed[199], dits, 3);
339 gMC->Gspos("ITS2", 1, "ITSD", 0., 0., 0., 0, "ONLY");
342 dits[1] = rl[2] + drl[2];
344 gMC->Gsvolu("ITS3", "TUBE", idtmed[224], dits, 3);
345 gMC->Gspos("ITS3", 1, "ITSD", 0., 0., 0., 0, "ONLY");
348 dits[1] = rl[3] + drl[3];
350 gMC->Gsvolu("ITS4", "TUBE", idtmed[224], dits, 3);
351 gMC->Gspos("ITS4", 1, "ITSD", 0., 0., 0., 0, "ONLY");
354 dits[1] = rl[4] + drl[4];
356 gMC->Gsvolu("ITS5", "TUBE", idtmed[249], dits, 3);
357 gMC->Gspos("ITS5", 1, "ITSD", 0., 0., 0., 0, "ONLY");
360 dits[1] = rl[5] + drl[5];
362 gMC->Gsvolu("ITS6", "TUBE", idtmed[249], dits, 3);
363 gMC->Gspos("ITS6", 1, "ITSD", 0., 0., 0., 0, "ONLY");
365 // END-LADDER ELECTRONICS BOXES AND CABLES FOR SPD
367 gMC->Gsvolu("IEL1", "TUBE", idtmed[208], dits, 0);
368 for (i = 0; i < 2; i++) {
370 dits[1] = dits[0] + drb[i];
371 dits[2] = dzb[i] / 2.;
372 zpos = dzl[i] + dits[2];
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);
377 // END-LADDER ELECTRONICS BOXES AND CABLES FOR SDD
379 gMC->Gsvolu("IEL2", "TUBE", idtmed[237], dits, 0);
380 for (i = 2; i < 4; 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);
389 // END-LADDER ELECTRONICS BOXES AND CABLES FOR SSD
391 gMC->Gsvolu("IEL3", "TUBE", idtmed[263], dits, 0);
392 for (i = 4; i < 6; 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);
401 // DEFINE END CONES FOR SPD
407 pcits[4] = (rl[0]+rl[1])/2.;
408 pcits[5] = (rl[0]+rl[1])/2.+2.; // check thickness !!
411 pcits[8] = 10.065+2.; // check thickness !!
412 gMC->Gsvolu("ICO1", "PCON", idtmed[209], pcits, 9);
413 AliMatrix(idrotm[200], 90., 0., 90., 90., 180., 0.);
414 gMC->Gspos("ICO1", 1, "ITSD", 0., 0., 0., 0, "ONLY");
415 gMC->Gspos("ICO1", 2, "ITSD", 0., 0., 0., idrotm[200], "ONLY");
418 // DEFINE END CONES FOR SDD
425 pcits[5] = 10.065+3.0; // check thickness !!
428 pcits[8] = 28.+3.0; // check thickness !!
429 gMC->Gsvolu("ICO2", "PCON", idtmed[238], pcits, 9);
430 gMC->Gspos("ICO2", 1, "ITSD", 0., 0., 0., 0, "ONLY");
431 gMC->Gspos("ICO2", 2, "ITSD", 0., 0., 0., idrotm[200], "ONLY");
434 // DEFINE END CONES FOR SSD
441 pcits[5] = 28.0+4.0; // check thickness !!
444 pcits[8] = 47.+4.0; // check thickness !!
445 gMC->Gsvolu("ICO3", "PCON", idtmed[264], pcits, 9);
446 gMC->Gspos("ICO3", 1, "ITSD", 0., 0., 0., 0, "ONLY");
447 gMC->Gspos("ICO3", 2, "ITSD", 0., 0., 0., idrotm[200], "ONLY");
453 // --- Define cables at the end of the ITS cones - copper part
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");
463 // --- Define cables at the end of the ITS cones - carbon part
466 dgh[1] = 45.+1.0+1.5;
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");
473 // --- Define patch panels at the end of the ITS cones
479 gMC->Gsvolu("IPAN", "TUBE", idtmed[285], dgh, 3);
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");
483 // --- Define cables/cooling below the TPC on the absorber side - copper part
494 gMC->Gsvolu("ICU1", "PCON", idtmed[279], dgh, 9);
495 gMC->Gspos("ICU1", 1, "ITSV", 0., 0., 0., 0, "ONLY");
497 // --- Define cables/cooling below the TPC on the absorber side - carbon part
504 dgh[5] = 45.2+1.0+1.5;
507 dgh[8] = 61.8+1.0+1.5;
508 gMC->Gsvolu("ICC1", "PCON", idtmed[274], dgh, 9);
509 gMC->Gspos("ICC1", 1, "ITSV", 0., 0., 0., 0, "ONLY");
512 // --- Define cables/cooling behind the TPC on the absorber side - copper part
520 dgh[6] = xltpc+1.5+1.0;
523 gMC->Gsvolu("ICU2", "PCON", idtmed[279], dgh, 9);
524 gMC->Gspos("ICU2", 1, "ITSV", 0., 0., 0., 0, "ONLY");
526 // --- Define cables/cooling behind the TPC on the absorber side - carbon part
537 gMC->Gsvolu("ICC2", "PCON", idtmed[274], dgh, 9);
538 gMC->Gspos("ICC2", 1, "ITSV", 0., 0., 0., 0, "ONLY");
540 // --- Define cables/cooling below the TPC on the other side w.r.t.
541 // the absorber - copper part
545 dgh[2] = (xltpc-100.7+1.5)/2.;
546 gMC->Gsvolu("ICU3", "TUBE", idtmed[279], dgh, 3);
547 gMC->Gspos("ICU3", 1, "ITSV", 0., 0., -100.7-dgh[2], 0, "ONLY");
549 // --- Define cables/cooling below the TPC on the other side w.r.t.
550 // the absorber - carbon part
553 dgh[1] = 45.+1.0+1.5;
554 dgh[2] = (xltpc-100.7)/2.;
555 gMC->Gsvolu("ICC3", "TUBE", idtmed[274], dgh, 3);
556 gMC->Gspos("ICC3", 1, "ITSV", 0., 0., -100.7-dgh[2], 0, "ONLY");
559 // --- Define cables/cooling behind the TPC on other side w.r.t. the absorber
565 dgh[3] = -xltpc-1.5-1.0;
571 gMC->Gsvolu("ICU4", "PCON", idtmed[279], dgh, 9);
572 gMC->Gspos("ICU4", 1, "ITSV", 0., 0., 0., 0, "ONLY");
574 // --- Define cables/cooling behind the TPC on other side w.r.t. the absorber
586 gMC->Gsvolu("ICC4", "PCON", idtmed[274], dgh, 9);
587 gMC->Gspos("ICC4", 1, "ITSV", 0., 0., 0., 0, "ONLY");
589 // --- Define hook to the TPC on other side w.r.t. the absorber
594 gMC->Gsvolu("IHOK", "TUBE", idtmed[284], dgh, 3);
595 gMC->Gspos("IHOK", 1, "ITSV", 0., 0., -xltpc-dgh[2], 0, "ONLY");
598 // --- Outputs the geometry tree in the EUCLID/CAD format
601 gMC->WriteEuclid("ITSgeometry", "ITSV", 1, 5);
604 //_____________________________________________________________________________
605 void AliITSvPPRcoarseasymm::CreateMaterials(){
606 ////////////////////////////////////////////////////////////////////////
608 // Create ITS materials
609 // This function defines the default materials used in the Geant
610 // Monte Carlo simulations for the geometries AliITSv1, AliITSv3,
611 // AliITSvPPRcoarseasymm.
612 // In general it is automatically replaced by
613 // the CreatMaterials routine defined in AliITSv?. Should the function
614 // CreateMaterials not exist for the geometry version you are using this
615 // one is used. See the definition found in AliITSv5 or the other routine
616 // for a complete definition.
619 Float_t awat[2] = { 1.00794,15.9994 };
620 Float_t zwat[2] = { 1.,8. };
621 Float_t wwat[2] = { 2.,1. };
622 Float_t denswat = 1.;
624 Float_t afre[2] = { 12.011,18.9984032 };
625 Float_t zfre[2] = { 6.,9. };
626 Float_t wfre[2] = { 5.,12. };
627 Float_t densfre = 1.5;
629 // 94.4% Al2O3 , 2.8% SiO2 , 2.3% MnO , 0.5% Cr2O3
630 Float_t acer[5] = { 26.981539,15.9994,28.0855,54.93805,51.9961 };
631 Float_t zcer[5] = { 13.,8.,14.,25., 24. };
632 Float_t wcer[5] = { .49976,1.01233,.01307, .01782,.00342 };
633 Float_t denscer = 3.6;
635 // 60% SiO2 , 40% G10FR4
637 Float_t apcb[3] = { 28.0855,15.9994,17.749 };
638 Float_t zpcb[3] = { 14.,8.,8.875 };
639 Float_t wpcb[3] = { .28,.32,.4 };
640 Float_t denspcb = 1.8;
642 Float_t apoly[2] = { 12.01,1. };
643 Float_t zpoly[2] = { 6.,1. };
644 Float_t wpoly[2] = { .33,.67 };
646 Float_t zserv[4] = { 1.,6.,26.,29. };
647 Float_t aserv[4] = { 1.,12.,55.8,63.5 };
648 Float_t wserv[4] = { .014,.086,.42,.48 };
650 Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 };
651 Float_t zsteel[4] = { 26.,24.,28.,14. };
652 Float_t wsteel[4] = { .715,.18,.1,.005 };
655 Int_t isxfld = gAlice->Field()->Integ();
656 Float_t sxmgmx = gAlice->Field()->Max();
659 // --- Define the various materials for GEANT ---
661 // 200-224 --> Silicon Pixel Detectors (detectors, chips, buses, cooling,..)
663 AliMaterial(0, "SPD Si$", 28.0855, 14., 2.33, 9.36, 999);
664 AliMaterial(1, "SPD Si chip$", 28.0855, 14., 2.33, 9.36, 999);
665 AliMaterial(2, "SPD Si bus$", 28.0855, 14., 2.33, 9.36, 999);
666 AliMaterial(3, "SPD C$", 12.011, 6., 2.265,18.8, 999);
668 AliMaterial(4, "SPD Air$", 14.61, 7.3, .001205, 30423., 999);
669 AliMaterial(5, "SPD Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
670 AliMaterial(6, "SPD Al$", 26.981539, 13., 2.6989, 8.9, 999);
671 AliMixture( 7, "SPD Water $", awat, zwat, denswat, -2, wwat);
672 AliMixture( 8, "SPD Freon$", afre, zfre, densfre, -2, wfre);
673 AliMaterial(9, "SPD End ladder$",28.0855, 14., 2.33, 9.36, 999); // check !!!!
674 AliMaterial(10, "SPD cone$",28.0855, 14., 2.33, 9.36, 999); // check !!!!
676 AliMedium(0, "SPD Si$", 0, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
677 AliMedium(1, "SPD Si chip$", 1, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
678 AliMedium(2, "SPD Si bus$", 2, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
679 AliMedium(3, "SPD C$", 3, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
680 AliMedium(4, "SPD Air$", 4, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
681 AliMedium(5, "SPD Vacuum$", 5, 0,isxfld,sxmgmx, 10.,1.00, .1, .100,10.00);
682 AliMedium(6, "SPD Al$", 6, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
683 AliMedium(7, "SPD Water $", 7, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
684 AliMedium(8, "SPD Freon$", 8, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
685 AliMedium(9, "SPD End ladder",9, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
686 AliMedium(10, "SPD cone$", 10, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
688 // 225-249 --> Silicon Drift Detectors (detectors, chips, buses, cooling,..)
690 AliMaterial(25, "SDD Si$", 28.0855, 14., 2.33, 9.36, 999);
691 AliMaterial(26, "SDD Si chip$", 28.0855, 14., 2.33, 9.36, 999);
692 AliMaterial(27, "SDD Si bus$", 28.0855, 14., 2.33, 9.36, 999);
693 AliMaterial(28, "SDD C$", 12.011, 6., 2.265,18.8, 999);
695 AliMaterial(29, "SDD Air$", 14.61, 7.3, .001205, 30423., 999);
696 AliMaterial(30, "SDD Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
697 AliMaterial(31, "SDD Al$", 26.981539, 13., 2.6989, 8.9, 999);
698 // After a call with ratios by number (negative number of elements),
699 // the ratio array is changed to the ratio by weight, so all successive
700 // calls with the same array must specify the number of elements as
702 AliMixture(32, "SDD Water $", awat, zwat, denswat, 2, wwat);
703 // After a call with ratios by number (negative number of elements),
704 // the ratio array is changed to the ratio by weight, so all successive
705 // calls with the same array must specify the number of elements as
707 AliMixture( 33, "SDD Freon$", afre, zfre, densfre, 2, wfre);
708 AliMixture( 34, "SDD PCB$", apcb, zpcb, denspcb, 3, wpcb);
709 AliMaterial(35, "SDD Copper$", 63.546, 29., 8.96, 1.43, 999);
710 AliMixture( 36, "SDD Ceramics$", acer, zcer, denscer, -5, wcer);
711 AliMaterial(37, "SDD Kapton$", 12.011, 6., 1.3, 31.27, 999);
712 AliMaterial(38, "SDD End ladder$",28.0855, 14., 2.33, 9.36, 999); // check !!!!
713 AliMaterial(39, "SDD cone$",28.0855, 14., 2.33, 9.36, 999); // check !!!!
716 AliMedium(25, "SDD Si$", 25, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
717 AliMedium(26, "SDD Si chip$", 26, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
718 AliMedium(27, "SDD Si bus$", 27, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
719 AliMedium(28, "SDD C$", 28, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
720 AliMedium(29, "SDD Air$", 29, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
721 AliMedium(30, "SDD Vacuum$", 30, 0,isxfld,sxmgmx, 10.,1.00, .1, .100,10.00);
722 AliMedium(31, "SDD Al$", 31, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
723 AliMedium(32, "SDD Water $", 32, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
724 AliMedium(33, "SDD Freon$", 33, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
725 AliMedium(34, "SDD PCB$", 34, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
726 AliMedium(35, "SDD Copper$", 35, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
727 AliMedium(36, "SDD Ceramics$",36, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
728 AliMedium(37, "SDD Kapton$", 37, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
729 AliMedium(38, "SDD End ladder",38, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
730 AliMedium(39, "SDD cone$", 39, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
732 // 250-274 --> Silicon Strip Detectors (detectors, chips, buses, cooling,..)
734 AliMaterial(50, "SSD Si$", 28.0855, 14., 2.33, 9.36, 999.);
735 AliMaterial(51, "SSD Si chip$", 28.0855, 14., 2.33, 9.36, 999.);
736 AliMaterial(52, "SSD Si bus$", 28.0855, 14., 2.33, 9.36, 999.);
737 AliMaterial(53, "SSD C$", 12.011, 6., 2.265,18.8, 999.);
739 AliMaterial(54, "SSD Air$", 14.61, 7.3, .001205, 30423., 999);
740 AliMaterial(55, "SSD Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
741 AliMaterial(56, "SSD Al$", 26.981539, 13., 2.6989, 8.9, 999);
742 // After a call with ratios by number (negative number of elements),
743 // the ratio array is changed to the ratio by weight, so all successive
744 // calls with the same array must specify the number of elements as
746 AliMixture(57, "SSD Water $", awat, zwat, denswat, 2, wwat);
747 // After a call with ratios by number (negative number of elements),
748 // the ratio array is changed to the ratio by weight, so all successive
749 // calls with the same array must specify the number of elements as
751 AliMixture(58, "SSD Freon$", afre, zfre, densfre, 2, wfre);
752 AliMixture(59, "SSD PCB$", apcb, zpcb, denspcb, 3, wpcb);
753 AliMaterial(60, "SSD Copper$", 63.546, 29., 8.96, 1.43, 999.);
754 // After a call with ratios by number (negative number of elements),
755 // the ratio array is changed to the ratio by weight, so all successive
756 // calls with the same array must specify the number of elements as
758 AliMixture( 61, "SSD Ceramics$", acer, zcer, denscer, 5, wcer);
759 AliMaterial(62, "SSD Kapton$", 12.011, 6., 1.3, 31.27, 999.);
761 AliMaterial(63, "SSD G10FR4$", 17.749, 8.875, 1.8, 21.822, 999.);
762 AliMaterial(64, "SSD End ladder$",28.0855, 14., 2.33, 9.36, 999); // check !!!!
763 AliMaterial(65, "SSD cone$",28.0855, 14., 2.33, 9.36, 999); // check !!!!
765 AliMedium(50, "SSD Si$", 50, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
766 AliMedium(51, "SSD Si chip$", 51, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
767 AliMedium(52, "SSD Si bus$", 52, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
768 AliMedium(53, "SSD C$", 53, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
769 AliMedium(54, "SSD Air$", 54, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
770 AliMedium(55, "SSD Vacuum$", 55, 0,isxfld,sxmgmx, 10.,1.00, .1, .100,10.00);
771 AliMedium(56, "SSD Al$", 56, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
772 AliMedium(57, "SSD Water $", 57, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
773 AliMedium(58, "SSD Freon$", 58, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
774 AliMedium(59, "SSD PCB$", 59, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
775 AliMedium(60, "SSD Copper$", 60, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
776 AliMedium(61, "SSD Ceramics$",61, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
777 AliMedium(62, "SSD Kapton$", 62, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
778 AliMedium(63, "SSD G10FR4$", 63, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
779 AliMedium(64, "SPD End ladder",64, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
780 AliMedium(65, "SPD cone$", 65, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
782 // 275-299 --> General (end-caps, frames, cooling, cables, etc.)
784 AliMaterial(75, "GEN C$", 12.011, 6., 2.265, 18.8, 999.);
786 AliMaterial(76, "GEN Air$", 14.61, 7.3, .001205, 30423., 999);
787 AliMaterial(77, "GEN Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
788 AliMixture( 78, "GEN POLYETHYL$", apoly, zpoly, .95, -2, wpoly);
789 AliMixture( 79, "GEN SERVICES$", aserv, zserv, 4.68, 4, wserv);
790 AliMaterial(80, "GEN Copper$", 63.546, 29., 8.96, 1.43, 999.);
791 // After a call with ratios by number (negative number of elements),
792 // the ratio array is changed to the ratio by weight, so all successive
793 // calls with the same array must specify the number of elements as
795 AliMixture(81, "GEN Water $", awat, zwat, denswat, 2, wwat);
796 // AliMaterial(82, "GEN Cables$", 12.011, 6., 2.265, 18.8, 999.); // check !!!
797 // AliMaterial(83, "GEN patch pan$", 12.011, 6., 2.265, 18.8, 999.); // check !!!
798 // AliMaterial(84, "GEN serv$", 12.011, 6., 2.265, 18.8, 999.); // check !!!
799 AliMixture(85, "GEN Inox$", asteel, zsteel, 7.88, 4, wsteel);
800 AliMaterial(86, "GEN Al$", 26.981539, 13., 2.6989, 8.9, 999);
802 AliMedium(75,"GEN C$", 75, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
803 AliMedium(76,"GEN Air$", 76, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
804 AliMedium(77,"GEN Vacuum$", 77, 0,isxfld,sxmgmx, 10., .10, .1, .100,10.00);
805 AliMedium(78,"GEN POLYETHYL$",78, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
806 AliMedium(79,"GEN SERVICES$", 79, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
807 AliMedium(80,"GEN Copper$", 80, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
808 AliMedium(81,"GEN Water $", 81, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
809 // AliMedium(82,"GEN Cables$", 82, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
810 // AliMedium(83,"GEN patch pan$",83, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
811 // AliMedium(84,"GEN serv$", 84, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
812 AliMedium(85,"GEN Inox$", 85, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
813 AliMedium(86, "GEN Al$", 86, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
815 //_____________________________________________________________________________
816 void AliITSvPPRcoarseasymm::Init(){
817 ////////////////////////////////////////////////////////////////////////
818 // Initialise the ITS after it has been created.
819 ////////////////////////////////////////////////////////////////////////
827 //_____________________________________________________________________________
828 void AliITSvPPRcoarseasymm::DrawModule(){
829 ////////////////////////////////////////////////////////////////////////
830 // Draw a shaded view of the FMD version 6.
831 ////////////////////////////////////////////////////////////////////////
833 // Set everything unseen
834 gMC->Gsatt("*", "seen", -1);
836 // Set ALIC mother visible
837 gMC->Gsatt("ALIC","SEEN",0);
839 // Set the volumes visible
840 gMC->Gsatt("ITSD","SEEN",0);
841 gMC->Gsatt("ITS1","SEEN",1);
842 gMC->Gsatt("ITS2","SEEN",1);
843 gMC->Gsatt("ITS3","SEEN",1);
844 gMC->Gsatt("ITS4","SEEN",1);
845 gMC->Gsatt("ITS5","SEEN",1);
846 gMC->Gsatt("ITS6","SEEN",1);
848 gMC->Gsatt("IPCB","SEEN",1);
849 gMC->Gsatt("ICO2","SEEN",1);
850 gMC->Gsatt("ICER","SEEN",0);
851 gMC->Gsatt("ISI2","SEEN",0);
852 gMC->Gsatt("IPLA","SEEN",0);
853 gMC->Gsatt("ICO3","SEEN",0);
854 gMC->Gsatt("IEPX","SEEN",0);
855 gMC->Gsatt("ISI3","SEEN",1);
856 gMC->Gsatt("ISUP","SEEN",0);
857 gMC->Gsatt("ICHO","SEEN",0);
858 gMC->Gsatt("ICMO","SEEN",0);
859 gMC->Gsatt("ICMD","SEEN",0);
860 gMC->Gsatt("ICCO","SEEN",1);
861 gMC->Gsatt("ICCM","SEEN",0);
862 gMC->Gsatt("ITMD","SEEN",0);
863 gMC->Gsatt("ITTT","SEEN",1);
866 gMC->Gdopt("hide", "on");
867 gMC->Gdopt("shad", "on");
868 gMC->Gsatt("*", "fill", 7);
869 gMC->SetClipBox(".");
870 gMC->SetClipBox("*", 0, 300, -300, 300, -300, 300);
872 gMC->Gdraw("alic", 40, 30, 0, 11, 10, .07, .07);
873 gMC->Gdhead(1111, "Inner Tracking System Version 1");
874 gMC->Gdman(17, 6, "MAN");
876 //_____________________________________________________________________________
877 void AliITSvPPRcoarseasymm::StepManager(){
878 ////////////////////////////////////////////////////////////////////////
879 // Called for every step in the ITS, then calls the AliITShit class
880 // creator with the information to be recoreded about that hit.
881 ////////////////////////////////////////////////////////////////////////
887 TLorentzVector position, momentum;
888 // TClonesArray &lhits = *fHits;
890 // no hits for this coarse asymmetric version.
896 if(gMC->IsTrackInside()) vol[3] += 1;
897 if(gMC->IsTrackEntering()) vol[3] += 2;
898 if(gMC->IsTrackExiting()) vol[3] += 4;
899 if(gMC->IsTrackOut()) vol[3] += 8;
900 if(gMC->IsTrackDisappeared()) vol[3] += 16;
901 if(gMC->IsTrackStop()) vol[3] += 32;
902 if(gMC->IsTrackAlive()) vol[3] += 64;
904 // Fill hit structure.
905 if( !(gMC->TrackCharge()) ) return;
907 // Only entering charged tracks
908 if((id=gMC->CurrentVolID(copy))==fIdSens[0]) {
910 id=gMC->CurrentVolOffID(1,copy);
912 id=gMC->CurrentVolOffID(2,copy);
914 } else if(id==fIdSens[1]) {
916 id=gMC->CurrentVolOffID(1,copy);
918 id=gMC->CurrentVolOffID(2,copy);
920 } else if(id==fIdSens[2]) {
923 id=gMC->CurrentVolOffID(1,copy);
925 } else if(id==fIdSens[3]) {
928 id=gMC->CurrentVolOffID(1,copy);
930 } else if(id==fIdSens[4]) {
933 id=gMC->CurrentVolOffID(1,copy);
935 } else if(id==fIdSens[5]) {
938 id=gMC->CurrentVolOffID(1,copy);
941 gMC->TrackPosition(position);
942 gMC->TrackMomentum(momentum);
950 hits[7]=gMC->TrackTime();
951 // new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->CurrentTrack(),vol,hits);
953 // no hits for this coarse asymmetric version.
958 //____________________________________________________________________________
959 void AliITSvPPRcoarseasymm::Streamer(TBuffer &R__b){
960 ////////////////////////////////////////////////////////////////////////
961 // A dummy Streamer function for this class AliITSvPPRcoarseasymm. By default it
962 // only streams the AliITS class as it is required. Since this class
963 // dosen't contain any "real" data to be saved, it doesn't.
964 ////////////////////////////////////////////////////////////////////////
966 if (R__b.IsReading()) {
967 Version_t R__v = R__b.ReadVersion(); if (R__v) { }
968 AliITS::Streamer(R__b);
970 R__b.WriteVersion(AliITSvPPRcoarseasymm::IsA());
971 AliITS::Streamer(R__b);
972 } // end if R__b.IsReading()