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.16 2001/01/30 09:23:13 hristov
19 Streamers removed (R.Brun)
21 Revision 1.15 2001/01/17 07:41:29 barbera
22 Some media parameters modified
24 Revision 1.14 2001/01/15 13:13:53 barbera
27 Revision 1.13 2000/12/10 16:00:45 barbera
28 Added last definition of special media like end-ladder boxes and cones
30 Revision 1.12 2000/11/02 15:44:23 barbera
31 Services on the opposite side w.r.t the absorber modified to make room for rails
33 Revision 1.10 2000/10/27 17:19:50 barbera
34 Position of rails w.r.t. the interaction point corrected.
36 Revision 1.9 2000/10/27 13:31:29 barbera
37 Rails between ITS and TPC added.
39 Revision 1.8 2000/10/27 13:03:08 barbera
40 Small changes in the SPD volumes and materials
42 Revision 1.6 2000/10/16 14:45:37 barbera
43 Mother volume ITSD modified to avoid some overlaps
45 Revision 1.5 2000/10/16 13:49:15 barbera
46 Services volumes slightly modified and material added following Pierluigi Barberis' information
48 Revision 1.4 2000/10/07 15:33:07 barbera
49 Small corrections to the ITSV mother volume
51 Revision 1.3 2000/10/07 13:06:50 barbera
52 Some new materials and media defined
54 Revision 1.2 2000/10/07 10:58:15 barbera
55 Mother volume ITSV corrected
57 Revision 1.1 2000/10/06 23:09:24 barbera
58 New coarse geometry (asymmetric services
60 Revision 1.20 2000/10/02 21:28:08 fca
61 Removal of useless dependecies via forward declarations
63 Revision 1.19 2000/07/10 16:07:19 fca
64 Release version of ITS code
66 Revision 1.14.2.2 2000/05/19 10:09:21 nilsen
67 fix for bug with HP and Sun unix + fix for event display in ITS-working branch
69 Revision 1.14.2.1 2000/03/04 23:45:19 nilsen
70 Fixed up the comments/documentation.
72 Revision 1.14 1999/11/25 06:52:56 fca
75 Revision 1.13.2.1 1999/11/25 06:52:21 fca
78 Revision 1.13 1999/10/27 11:16:26 fca
79 Correction of problem in geometry
81 Revision 1.12 1999/10/22 08:25:25 fca
82 remove double definition of destructors
84 Revision 1.11 1999/10/22 08:16:49 fca
85 Correct destructors, thanks to I.Hrivnacova
87 Revision 1.10 1999/10/06 19:56:50 fca
90 Revision 1.9 1999/10/05 08:05:09 fca
91 Minor corrections for uninitialised variables.
93 Revision 1.8 1999/09/29 09:24:20 fca
94 Introduction of the Copyright and cvs Log
98 ///////////////////////////////////////////////////////////////////////////////
100 // Inner Traking System version PPR coarse asymmetric //
101 // This class contains the base procedures for the Inner Tracking System //
103 // Authors: R. Barbera
107 // NOTE: THIS IS THE COARSE ASYMMETRIC PPR geometry of the ITS.
108 // THIS WILL NOT WORK
109 // with the geometry or module classes or any analysis classes. You are
110 // strongly encouraged to uses AliITSv5.
112 ///////////////////////////////////////////////////////////////////////////////
113 #include <iostream.h>
117 #include <TGeometry.h>
120 #include <TFile.h> // only required for Tracking function?
122 #include <TObjArray.h>
123 #include <TClonesArray.h>
128 #include "AliConst.h"
130 #include "AliITShit.h"
131 #include "AliITSvPPRcoarseasymm.h"
135 ClassImp(AliITSvPPRcoarseasymm)
137 //_____________________________________________________________________________
138 AliITSvPPRcoarseasymm::AliITSvPPRcoarseasymm() {
139 ////////////////////////////////////////////////////////////////////////
140 // Standard default constructor for the ITS version 6.
141 ////////////////////////////////////////////////////////////////////////
149 //_____________________________________________________________________________
150 AliITSvPPRcoarseasymm::AliITSvPPRcoarseasymm(const char *name, const char *title) : AliITS(name, title){
151 ////////////////////////////////////////////////////////////////////////
152 // Standard constructor for the ITS version 6.
153 ////////////////////////////////////////////////////////////////////////
156 fIdName = new TString[fIdN];
163 fIdSens = new Int_t[fIdN];
164 for (Int_t i=0;i<fIdN;i++) fIdSens[i]=0;
168 //____________________________________________________________________________
169 AliITSvPPRcoarseasymm::AliITSvPPRcoarseasymm(const AliITSvPPRcoarseasymm &source){
170 ////////////////////////////////////////////////////////////////////////
171 // Copy Constructor for ITS version 6.
172 ////////////////////////////////////////////////////////////////////////
173 if(&source == this) return;
174 Warning("Copy Constructor","Not allowed to copy AliITSvPPRcoarseasymm");
177 //_____________________________________________________________________________
178 AliITSvPPRcoarseasymm& AliITSvPPRcoarseasymm::operator=(const AliITSvPPRcoarseasymm &source){
179 ////////////////////////////////////////////////////////////////////////
180 // Assignment operator for the ITS version 6.
181 ////////////////////////////////////////////////////////////////////////
182 if(&source == this) return *this;
183 Warning("= operator","Not allowed to copy AliITSvPPRcoarseasymm");
186 //_____________________________________________________________________________
187 AliITSvPPRcoarseasymm::~AliITSvPPRcoarseasymm() {
188 ////////////////////////////////////////////////////////////////////////
189 // Standard destructor for the ITS version 6.
190 ////////////////////////////////////////////////////////////////////////
193 //__________________________________________________________________________
194 void AliITSvPPRcoarseasymm::BuildGeometry(){
195 ////////////////////////////////////////////////////////////////////////
196 // Geometry builder for the ITS version 6.
197 ////////////////////////////////////////////////////////////////////////
199 const int kColorITS=kYellow;
201 top = gAlice->GetGeometry()->GetNode("alice");
203 new TTUBE("S_layer1","Layer1 of ITS","void",3.95,3.95+0.05475,12.25);
205 node = new TNode("Layer1","Layer1","S_layer1",0,0,0,"");
206 node->SetLineColor(kColorITS);
209 new TTUBE("S_layer2","Layer2 of ITS","void",7.,7.+0.05475,16.3);
211 node = new TNode("Layer2","Layer2","S_layer2",0,0,0,"");
212 node->SetLineColor(kColorITS);
215 new TTUBE("S_layer3","Layer3 of ITS","void",15.,15.+0.05288,21.1);
217 node = new TNode("Layer3","Layer3","S_layer3",0,0,0,"");
218 node->SetLineColor(kColorITS);
221 new TTUBE("S_layer4","Layer4 of ITS","void",24,24+0.05288,29.6);
223 node = new TNode("Layer4","Layer4","S_layer4",0,0,0,"");
224 node->SetLineColor(kColorITS);
227 new TTUBE("S_layer5","Layer5 of ITS","void",40,40+0.05382,45.1);
229 node = new TNode("Layer5","Layer5","S_layer5",0,0,0,"");
230 node->SetLineColor(kColorITS);
233 new TTUBE("S_layer6","Layer6 of ITS","void",45,45+0.05382,50.4);
235 node = new TNode("Layer6","Layer6","S_layer6",0,0,0,"");
236 node->SetLineColor(kColorITS);
239 //_____________________________________________________________________________
240 void AliITSvPPRcoarseasymm::CreateGeometry(){
241 ////////////////////////////////////////////////////////////////////////
242 // This routine defines and Creates the geometry for version 6 of the ITS.
243 ////////////////////////////////////////////////////////////////////////
245 //INNER RADII OF THE SILICON LAYERS
246 Float_t rl[6] = { 3.8095,7.,15.,24.,38.1,43.5765 };
247 //THICKNESSES OF LAYERS (in % radiation length)
248 Float_t drl[6] = { 1.03,1.03,0.94,0.95,0.91,0.87 };
249 //HALF LENGTHS OF LAYERS
250 Float_t dzl[6] = { 14.35,14.35,25.1,32.1,49.405,55.27 };
251 //LENGTHS OF END-LADDER BOXES (ALL INCLUDED)
252 Float_t dzb[6] = { 12.4,12.4,13.5,15.,7.5,7.5 };
253 //THICKNESSES OF END-LADDER BOXES (ALL INCLUDED)
254 Float_t drb[6] = { rl[1]-rl[0],0.2,5.,5.,4.,4. };
257 Float_t dits[3], rlim, zmax;
259 Float_t pcits[15], xltpc;
260 Int_t idrotm[399], i;
263 Int_t *idtmed = fIdtmed->GetArray()-199;
265 // CONVERT INTO CM (RL(SI)=9.36 CM)
266 for (i = 0; i < 6; ++i) {
267 drl[i] = drl[i] / 100. * 9.36;
270 // FIELD CAGE HALF LENGTH
276 // --- Define ghost volume containing the whole ITS (including services)
277 // and fill it with air
282 dgh[3] = -xltpc-5.-0.1;
315 dgh[36] = xltpc+4.+0.1;
319 gMC->Gsvolu("ITSV", "PCON", idtmed[275], dgh, 39);
321 // --- Place the ghost volume in its mother volume (ALIC) and make it
324 gMC->Gspos("ITSV", 1, "ALIC", 0., 0., 0., 0, "ONLY");
325 gMC->Gsatt("ITSV", "SEEN", 0);
328 // --- Define ghost volume containing the six layers and fill it with air
345 gMC->Gsvolu("ITSD", "PCON", idtmed[275], dgh, 15);
347 // --- Place the ghost volume in its mother volume (ITSV) and make it
350 gMC->Gspos("ITSD", 1, "ITSV", 0., 0., 0., 0, "ONLY");
351 //gMC->Gsatt("ITSD", "SEEN", 0);
353 // ITS LAYERS (SILICON)
356 dits[1] = rl[0] + drl[0];
358 gMC->Gsvolu("ITS1", "TUBE", idtmed[199], dits, 3);
359 gMC->Gspos("ITS1", 1, "ITSD", 0., 0., 0., 0, "ONLY");
362 dits[1] = rl[1] + drl[1];
364 gMC->Gsvolu("ITS2", "TUBE", idtmed[199], dits, 3);
365 gMC->Gspos("ITS2", 1, "ITSD", 0., 0., 0., 0, "ONLY");
368 dits[1] = rl[2] + drl[2];
370 gMC->Gsvolu("ITS3", "TUBE", idtmed[224], dits, 3);
371 gMC->Gspos("ITS3", 1, "ITSD", 0., 0., 0., 0, "ONLY");
374 dits[1] = rl[3] + drl[3];
376 gMC->Gsvolu("ITS4", "TUBE", idtmed[224], dits, 3);
377 gMC->Gspos("ITS4", 1, "ITSD", 0., 0., 0., 0, "ONLY");
380 dits[1] = rl[4] + drl[4];
382 gMC->Gsvolu("ITS5", "TUBE", idtmed[249], dits, 3);
383 gMC->Gspos("ITS5", 1, "ITSD", 0., 0., 0., 0, "ONLY");
386 dits[1] = rl[5] + drl[5];
388 gMC->Gsvolu("ITS6", "TUBE", idtmed[249], dits, 3);
389 gMC->Gspos("ITS6", 1, "ITSD", 0., 0., 0., 0, "ONLY");
391 // END-LADDER ELECTRONICS BOXES AND CABLES FOR SPD
393 gMC->Gsvolu("IEL1", "TUBE", idtmed[208], dits, 0);
394 for (i = 0; i < 2; i++) {
396 dits[1] = dits[0] + drb[i];
397 dits[2] = dzb[i] / 2.;
398 zpos = dzl[i] + dits[2];
399 gMC->Gsposp("IEL1", i+1, "ITSD", 0., 0., zpos, 0, "ONLY", dits, 3);
400 gMC->Gsposp("IEL1", i+1+6, "ITSD", 0., 0.,-zpos, 0, "ONLY", dits, 3);
403 // END-LADDER ELECTRONICS BOXES AND CABLES FOR SDD
405 gMC->Gsvolu("IEL2", "TUBE", idtmed[237], dits, 0);
406 for (i = 2; i < 3; i++) {
408 dits[1] = dits[0] + drb[i];
409 dits[2] = dzb[i] / 2.;
410 zpos = dzl[i] + dits[2];
411 gMC->Gsposp("IEL2", i+1, "ITSD", 0., 0., zpos, 0, "ONLY", dits, 3);
412 gMC->Gsposp("IEL2", i+1+6, "ITSD", 0., 0.,-zpos, 0, "ONLY", dits, 3);
414 for (i = 3; i < 4; i++) {
416 dits[1] = dits[0] + drb[i];
417 dits[2] = dzb[i] / 2.;
418 zpos = dzl[i] + dits[2];
419 gMC->Gsposp("IEL2", i+1, "ITSD", 0., 0., zpos, 0, "ONLY", dits, 3);
420 gMC->Gsposp("IEL2", i+1+6, "ITSD", 0., 0.,-zpos, 0, "ONLY", dits, 3);
423 // END-LADDER ELECTRONICS BOXES AND CABLES FOR SSD
425 gMC->Gsvolu("IEL3", "TUBE", idtmed[263], dits, 0);
426 for (i = 4; i < 5; i++) {
428 dits[1] = dits[0] + drb[i];
429 dits[2] = dzb[i] / 2.;
430 zpos = dzl[i] + dits[2];
431 gMC->Gsposp("IEL3", i+1, "ITSD", 0., 0., zpos, 0, "ONLY", dits, 3);
432 gMC->Gsposp("IEL3", i+1+6, "ITSD", 0., 0.,-zpos, 0, "ONLY", dits, 3);
434 for (i = 5; i < 6; i++) {
435 dits[0] = rl[i]+0.4235;
436 dits[1] = dits[0] + drb[i];
437 dits[2] = dzb[i] / 2.;
438 zpos = dzl[i] + dits[2];
439 gMC->Gsposp("IEL3", i+1, "ITSD", 0., 0., zpos, 0, "ONLY", dits, 3);
440 gMC->Gsposp("IEL3", i+1+6, "ITSD", 0., 0.,-zpos, 0, "ONLY", dits, 3);
443 // DEFINE THERMAL SCREEN FOR SPD
448 gMC->Gsvolu("ICY1", "TUBE", idtmed[274], pcits, 3);
449 gMC->Gspos("ICY1", 1, "ITSD", 0., 0., 0., 0, "ONLY");
451 // DEFINE END CONES FOR SDD
453 pcits[0] = (59.-42.5)/2.;
458 gMC->Gsvolu("ICO1", "CONE", idtmed[238], pcits, 5);
459 AliMatrix(idrotm[200], 90., 0., 90., 90., 180., 0.);
460 gMC->Gspos("ICO1", 1, "ITSD", 0., 0., 42.5+pcits[0], 0, "ONLY");
461 gMC->Gspos("ICO1", 2, "ITSD", 0., 0., -(42.5+pcits[0]), idrotm[200], "ONLY");
463 // DEFINE CYLINDER BETWEEN SDD AND SSD
465 pcits[0] = (59.5-0.13/2.)/2.;
466 pcits[1] = (59.5+0.13/2.)/2.;
468 gMC->Gsvolu("ICY2", "TUBE", idtmed[274], pcits, 3);
469 gMC->Gspos("ICY2", 1, "ITSD", 0., 0., 0., 0, "ONLY");
471 // DEFINE END CONES FOR SSD
473 pcits[0] = (74.-59.)/2.;
478 gMC->Gsvolu("ICO2", "CONE", idtmed[264], pcits, 5);
479 gMC->Gspos("ICO2", 1, "ITSD", 0., 0., 59.+pcits[0], 0, "ONLY");
483 // --- DEFINE CABLES AT THE END OF THE ITS CONES - COPPER PART
489 gMC->Gsvolu("ICCU", "TUBE", idtmed[279], dgh, 3);
490 gMC->Gspos("ICCU", 1, "ITSV", 0., 0., 86.7, 0, "ONLY");
491 gMC->Gspos("ICCU", 2, "ITSV", 0., 0., -86.7, idrotm[200], "ONLY");
493 // --- DEFINE CABLES AT THE END OF THE ITS CONES - CARBON PART
496 dgh[1] = 45.+1.0+1.5;
499 gMC->Gsvolu("ICCC", "TUBE", idtmed[274], dgh, 3);
500 gMC->Gspos("ICCC", 1, "ITSV", 0., 0., 86.7, 0, "ONLY");
501 gMC->Gspos("ICCC", 2, "ITSV", 0., 0., -86.7, idrotm[200], "ONLY");
503 // --- DEFINE PATCH PANELS AT THE END OF THE ITS CONES
509 gMC->Gsvolu("IPAN", "TUBE", idtmed[285], dgh, 3);
510 gMC->Gspos("IPAN", 1, "ITSV", 0., 0., 98.45, 0, "ONLY");
511 gMC->Gspos("IPAN", 2, "ITSV", 0., 0., -98.45, idrotm[200], "ONLY");
513 // --- DEFINE CABLES/COOLING BELOW THE TPC ON THE ABSORBER SIDE - COPPER PART
516 dgh[0] = (xltpc-100.7)/2.;
523 gMC->Gsvolu("ICU1", "CONS", idtmed[279], dgh, 7);
524 gMC->Gspos("ICU1", 1, "ITSV", 0., 0., 100.7+dgh[0], 0, "ONLY");
526 // --- DEFINE CABLES/COOLING BELOW THE TPC ON THE ABSORBER SIDE - COPPER PART
529 dgh[0] = (xltpc-100.7)/2.;
536 gMC->Gsvolu("ICU2", "CONS", idtmed[279], dgh, 7);
537 gMC->Gspos("ICU2", 1, "ITSV", 0., 0., 100.7+dgh[0], 0, "ONLY");
539 // --- DEFINE CABLES/COOLING BELOW THE TPC ON THE ABSORBER SIDE - CARBON PART
542 dgh[0] = (xltpc-100.7)/2.;
544 dgh[2] = 45.2+1.0+1.5;
546 dgh[4] = 61.8+1.0+1.5;
549 gMC->Gsvolu("ICC1", "CONS", idtmed[274], dgh, 7);
550 gMC->Gspos("ICC1", 1, "ITSV", 0., 0., 100.7+dgh[0], 0, "ONLY");
552 // --- DEFINE CABLES/COOLING BELOW THE TPC ON THE ABSORBER SIDE - CARBON PART
555 dgh[0] = (xltpc-100.7)/2.;
557 dgh[2] = 45.2+1.0+1.5;
559 dgh[4] = 61.8+1.0+1.5;
562 gMC->Gsvolu("ICC2", "CONS", idtmed[274], dgh, 7);
563 gMC->Gspos("ICC2", 1, "ITSV", 0., 0., 100.7+dgh[0], 0, "ONLY");
565 // --- DEFINE CABLES/COOLING BEHIND THE TPC ON THE ABSORBER SIDE - COPPER PART
573 gMC->Gsvolu("ICU3", "TUBS", idtmed[279], dgh, 5);
574 gMC->Gspos("ICU3", 1, "ITSV", 0., 0., xltpc+1.5+dgh[2], 0, "ONLY");
576 // --- DEFINE CABLES/COOLING BEHIND THE TPC ON THE ABSORBER SIDE - COPPER PART
584 gMC->Gsvolu("ICU4", "TUBS", idtmed[279], dgh, 5);
585 gMC->Gspos("ICU4", 1, "ITSV", 0., 0., xltpc+1.5+dgh[2], 0, "ONLY");
587 // --- DEFINE CABLES/COOLING BEHIND THE TPC ON THE ABSORBER SIDE - CARBON PART
595 gMC->Gsvolu("ICC3", "TUBS", idtmed[274], dgh, 5);
596 gMC->Gspos("ICC3", 1, "ITSV", 0., 0., xltpc+dgh[2], 0, "ONLY");
598 // --- DEFINE CABLES/COOLING BEHIND THE TPC ON THE ABSORBER SIDE - CARBON PART
606 gMC->Gsvolu("ICC4", "TUBS", idtmed[274], dgh, 5);
607 gMC->Gspos("ICC4", 1, "ITSV", 0., 0., xltpc+dgh[2], 0, "ONLY");
609 // --- DEFINE CABLES/COOLING BELOW THE TPC ON THE OTHER SIDE W.R.T.
610 // THE ABSORBER - COPPER PART - UPPER PART
614 dgh[2] = (xltpc-100.7+1.5)/2.;
617 gMC->Gsvolu("ICU5", "TUBS", idtmed[279], dgh, 5);
618 gMC->Gspos("ICU5", 1, "ITSV", 0., 0., -100.7-dgh[2], 0, "ONLY");
620 // --- DEFINE CABLES/COOLING BELOW THE TPC ON THE OTHER SIDE W.R.T.
621 // THE ABSORBER - COPPER PART - LOWER PART
625 dgh[2] = (xltpc-100.7+1.5)/2.;
628 gMC->Gsvolu("ICU6", "TUBS", idtmed[279], dgh, 5);
629 gMC->Gspos("ICU6", 1, "ITSV", 0., 0., -100.7-dgh[2], 0, "ONLY");
631 // --- DEFINE CABLES/COOLING BELOW THE TPC ON THE OTHER SIDE W.R.T.
632 // THE ABSORBER - CARBON PART - UPPER PART
635 dgh[1] = 45.+1.0+1.5;
636 dgh[2] = (xltpc-100.7)/2.;
639 gMC->Gsvolu("ICC5", "TUBS", idtmed[274], dgh, 5);
640 gMC->Gspos("ICC5", 1, "ITSV", 0., 0., -100.7-dgh[2], 0, "ONLY");
642 // --- DEFINE CABLES/COOLING BELOW THE TPC ON THE OTHER SIDE W.R.T.
643 // THE ABSORBER - CARBON PART - LOWER PART
646 dgh[1] = 45.+1.0+1.5;
647 dgh[2] = (xltpc-100.7)/2.;
650 gMC->Gsvolu("ICC6", "TUBS", idtmed[274], dgh, 5);
651 gMC->Gspos("ICC6", 1, "ITSV", 0., 0., -100.7-dgh[2], 0, "ONLY");
653 // --- DEFINE CABLES/COOLING BEHIND THE TPC ON OTHER SIDE W.R.T. THE ABSORBER
654 // COPPER PART - UPPER PART
661 gMC->Gsvolu("ICU7", "TUBS", idtmed[279], dgh, 5);
662 gMC->Gspos("ICU7", 1, "ITSV", 0., 0., -(xltpc+1.5+dgh[2]), 0, "ONLY");
664 // --- DEFINE CABLES/COOLING BEHIND THE TPC ON OTHER SIDE W.R.T. THE ABSORBER
665 // COPPER PART - LOWER PART
672 gMC->Gsvolu("ICU8", "TUBS", idtmed[279], dgh, 5);
673 gMC->Gspos("ICU8", 1, "ITSV", 0., 0., -(xltpc+1.5+dgh[2]), 0, "ONLY");
675 // --- DEFINE CABLES/COOLING BEHIND THE TPC ON OTHER SIDE W.R.T. THE ABSORBER
676 // CARBON PART - UPPER PART
683 gMC->Gsvolu("ICC7", "TUBS", idtmed[274], dgh, 5);
684 gMC->Gspos("ICC7", 1, "ITSV", 0., 0., -(xltpc+dgh[2]), 0, "ONLY");
686 // --- DEFINE CABLES/COOLING BEHIND THE TPC ON OTHER SIDE W.R.T. THE ABSORBER
687 // CARBON PART - LOWER PART
694 gMC->Gsvolu("ICC8", "TUBS", idtmed[274], dgh, 5);
695 gMC->Gspos("ICC8", 1, "ITSV", 0., 0., -(xltpc+dgh[2]), 0, "ONLY");
697 // --- DEFINE HOOK TO THE TPC ON OTHER SIDE W.R.T. THE ABSORBER - UPPER PART
704 gMC->Gsvolu("IHK1", "TUBS", idtmed[284], dgh, 5);
705 gMC->Gspos("IHK1", 1, "ITSV", 0., 0., -xltpc-dgh[2], 0, "ONLY");
707 // --- DEFINE HOOK TO THE TPC ON OTHER SIDE W.R.T. THE ABSORBER - LOWER PART
714 gMC->Gsvolu("IHK2", "TUBS", idtmed[284], dgh, 5);
715 gMC->Gspos("IHK2", 1, "ITSV", 0., 0., -xltpc-dgh[2], 0, "ONLY");
717 // --- DEFINE RAILS BETWEEN THE ITS AND THE TPC
722 //gMC->Gsvolu("IRAI", "BOX ", idtmed[285], dgh, 3);
723 //gMC->Gspos("IRAI", 1, "ITSV", 53., 0., -69.5, 0, "ONLY");
724 //gMC->Gspos("IRAI", 2, "ITSV", -53., 0., -69.5, 0, "ONLY");
726 // --- DEFINE CYLINDERS HOLDING RAILS BETWEEN THE ITS AND THE TPC
731 gMC->Gsvolu("ICYL", "TUBE", idtmed[285], dgh, 3);
732 gMC->Gspos("ICYL", 1, "ALIC", 0., 0., 74., 0, "ONLY");
733 gMC->Gspos("ICYL", 2, "ALIC", 0., 0., -74., idrotm[200], "ONLY");
735 // --- Outputs the geometry tree in the EUCLID/CAD format
738 gMC->WriteEuclid("ITSgeometry", "ITSV", 1, 5);
741 //_____________________________________________________________________________
742 void AliITSvPPRcoarseasymm::CreateMaterials(){
743 ////////////////////////////////////////////////////////////////////////
745 // Create ITS materials
746 // This function defines the default materials used in the Geant
747 // Monte Carlo simulations for the geometries AliITSv1, AliITSv3,
748 // AliITSvPPRcoarseasymm.
749 // In general it is automatically replaced by
750 // the CreatMaterials routine defined in AliITSv?. Should the function
751 // CreateMaterials not exist for the geometry version you are using this
752 // one is used. See the definition found in AliITSv5 or the other routine
753 // for a complete definition.
756 Float_t awat[2] = { 1.00794,15.9994 };
757 Float_t zwat[2] = { 1.,8. };
758 Float_t wwat[2] = { 2.,1. };
759 Float_t denswat = 1.;
761 Float_t afre[2] = { 12.011,18.9984032 };
762 Float_t zfre[2] = { 6.,9. };
763 Float_t wfre[2] = { 5.,12. };
764 Float_t densfre = 1.5;
766 // 94.4% Al2O3 , 2.8% SiO2 , 2.3% MnO , 0.5% Cr2O3
767 Float_t acer[5] = { 26.981539,15.9994,28.0855,54.93805,51.9961 };
768 Float_t zcer[5] = { 13.,8.,14.,25., 24. };
769 Float_t wcer[5] = { .49976,1.01233,.01307, .01782,.00342 };
770 Float_t denscer = 3.6;
772 // 60% SiO2 , 40% G10FR4
774 Float_t apcb[3] = { 28.0855,15.9994,17.749 };
775 Float_t zpcb[3] = { 14.,8.,8.875 };
776 Float_t wpcb[3] = { .28,.32,.4 };
777 Float_t denspcb = 1.8;
779 Float_t apoly[2] = { 12.01,1. };
780 Float_t zpoly[2] = { 6.,1. };
781 Float_t wpoly[2] = { .33,.67 };
783 Float_t zserv[4] = { 1.,6.,26.,29. };
784 Float_t aserv[4] = { 1.,12.,55.8,63.5 };
785 Float_t wserv[4] = { .014,.086,.42,.48 };
787 Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 };
788 Float_t zsteel[4] = { 26.,24.,28.,14. };
789 Float_t wsteel[4] = { .715,.18,.1,.005 };
792 Int_t isxfld = gAlice->Field()->Integ();
793 Float_t sxmgmx = gAlice->Field()->Max();
796 // --- Define the various materials for GEANT ---
798 // 200-224 --> Silicon Pixel Detectors (detectors, chips, buses, cooling,..)
800 AliMaterial(0, "SPD Si$", 28.0855, 14., 2.33, 9.36, 999);
801 AliMaterial(1, "SPD Si chip$", 28.0855, 14., 2.33, 9.36, 999);
802 AliMaterial(2, "SPD Si bus$", 28.0855, 14., 2.33, 9.36, 999);
803 AliMaterial(3, "SPD C$", 12.011, 6., 2.265,18.8, 999);
805 AliMaterial(4, "SPD Air$", 14.61, 7.3, .001205, 30423., 999);
806 AliMaterial(5, "SPD Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
807 AliMaterial(6, "SPD Al$", 26.981539, 13., 2.6989, 8.9, 999);
808 AliMixture( 7, "SPD Water $", awat, zwat, denswat, -2, wwat);
809 AliMixture( 8, "SPD Freon$", afre, zfre, densfre, -2, wfre);
810 AliMaterial(9, "SPD End ladder$", 55.845, 26., 7.87/10., 1.76*10., 999);
811 //AliMaterial(9, "SPD End ladder$", 55.845, 26., -7.87/10., -1.76*10., 999);
812 AliMaterial(10, "SPD cone$",28.0855, 14., 2.33, 9.36, 999); // check !!!!
814 AliMedium(0, "SPD Si$", 0, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
815 AliMedium(1, "SPD Si chip$", 1, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
816 AliMedium(2, "SPD Si bus$", 2, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
817 AliMedium(3, "SPD C$", 3, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
818 AliMedium(4, "SPD Air$", 4, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
819 AliMedium(5, "SPD Vacuum$", 5, 0,isxfld,sxmgmx, 10.,1.00, .1, .100,10.00);
820 AliMedium(6, "SPD Al$", 6, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
821 AliMedium(7, "SPD Water $", 7, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
822 AliMedium(8, "SPD Freon$", 8, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
823 AliMedium(9, "SPD End ladder$",9, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
824 AliMedium(10, "SPD cone$", 10, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
826 // 225-249 --> Silicon Drift Detectors (detectors, chips, buses, cooling,..)
828 AliMaterial(25, "SDD Si$", 28.0855, 14., 2.33, 9.36, 999);
829 AliMaterial(26, "SDD Si chip$", 28.0855, 14., 2.33, 9.36, 999);
830 AliMaterial(27, "SDD Si bus$", 28.0855, 14., 2.33, 9.36, 999);
831 AliMaterial(28, "SDD C$", 12.011, 6., 2.265,18.8, 999);
833 AliMaterial(29, "SDD Air$", 14.61, 7.3, .001205, 30423., 999);
834 AliMaterial(30, "SDD Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
835 AliMaterial(31, "SDD Al$", 26.981539, 13., 2.6989, 8.9, 999);
836 // After a call with ratios by number (negative number of elements),
837 // the ratio array is changed to the ratio by weight, so all successive
838 // calls with the same array must specify the number of elements as
840 AliMixture(32, "SDD Water $", awat, zwat, denswat, 2, wwat);
841 // After a call with ratios by number (negative number of elements),
842 // the ratio array is changed to the ratio by weight, so all successive
843 // calls with the same array must specify the number of elements as
845 AliMixture( 33, "SDD Freon$", afre, zfre, densfre, 2, wfre);
846 AliMixture( 34, "SDD PCB$", apcb, zpcb, denspcb, 3, wpcb);
847 AliMaterial(35, "SDD Copper$", 63.546, 29., 8.96, 1.43, 999);
848 AliMixture( 36, "SDD Ceramics$", acer, zcer, denscer, -5, wcer);
849 AliMaterial(37, "SDD Kapton$", 12.011, 6., 1.3, 31.27, 999);
850 AliMaterial(38, "SDD End ladder$", 69.9298, 29.8246, 0.3824, 36.5103, 999);
851 AliMaterial(39, "SDD cone$",63.546, 29., 1.15, 1.265, 999);
852 //AliMaterial(38, "SDD End ladder$", 69.9298, 29.8246, -0.3824, -36.5103, 999);
853 //AliMaterial(39, "SDD cone$",63.546, 29., -1.15, -1.265, 999);
857 AliMedium(25, "SDD Si$", 25, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
858 AliMedium(26, "SDD Si chip$", 26, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
859 AliMedium(27, "SDD Si bus$", 27, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
860 AliMedium(28, "SDD C$", 28, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
861 AliMedium(29, "SDD Air$", 29, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
862 AliMedium(30, "SDD Vacuum$", 30, 0,isxfld,sxmgmx, 10.,1.00, .1, .100,10.00);
863 AliMedium(31, "SDD Al$", 31, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
864 AliMedium(32, "SDD Water $", 32, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
865 AliMedium(33, "SDD Freon$", 33, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
866 AliMedium(34, "SDD PCB$", 34, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
867 AliMedium(35, "SDD Copper$", 35, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
868 AliMedium(36, "SDD Ceramics$", 36, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
869 AliMedium(37, "SDD Kapton$", 37, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
870 AliMedium(38, "SDD End ladder$",38, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
871 AliMedium(39, "SDD cone$", 39, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
873 // 250-274 --> Silicon Strip Detectors (detectors, chips, buses, cooling,..)
875 AliMaterial(50, "SSD Si$", 28.0855, 14., 2.33, 9.36, 999.);
876 AliMaterial(51, "SSD Si chip$", 28.0855, 14., 2.33, 9.36, 999.);
877 AliMaterial(52, "SSD Si bus$", 28.0855, 14., 2.33, 9.36, 999.);
878 AliMaterial(53, "SSD C$", 12.011, 6., 2.265,18.8, 999.);
880 AliMaterial(54, "SSD Air$", 14.61, 7.3, .001205, 30423., 999);
881 AliMaterial(55, "SSD Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
882 AliMaterial(56, "SSD Al$", 26.981539, 13., 2.6989, 8.9, 999);
883 // After a call with ratios by number (negative number of elements),
884 // the ratio array is changed to the ratio by weight, so all successive
885 // calls with the same array must specify the number of elements as
887 AliMixture(57, "SSD Water $", awat, zwat, denswat, 2, wwat);
888 // After a call with ratios by number (negative number of elements),
889 // the ratio array is changed to the ratio by weight, so all successive
890 // calls with the same array must specify the number of elements as
892 AliMixture(58, "SSD Freon$", afre, zfre, densfre, 2, wfre);
893 AliMixture(59, "SSD PCB$", apcb, zpcb, denspcb, 3, wpcb);
894 AliMaterial(60, "SSD Copper$", 63.546, 29., 8.96, 1.43, 999.);
895 // After a call with ratios by number (negative number of elements),
896 // the ratio array is changed to the ratio by weight, so all successive
897 // calls with the same array must specify the number of elements as
899 AliMixture( 61, "SSD Ceramics$", acer, zcer, denscer, 5, wcer);
900 AliMaterial(62, "SSD Kapton$", 12.011, 6., 1.3, 31.27, 999.);
902 AliMaterial(63, "SSD G10FR4$", 17.749, 8.875, 1.8, 21.822, 999.);
903 AliMaterial(64, "SSD End ladder$", 32.0988, 15.4021, 0.68, 35.3238, 999);
904 AliMaterial(65, "SSD cone$",63.546, 29., 1.15, 1.265, 999);
905 //AliMaterial(64, "SSD End ladder$", 32.0988, 15.4021, -0.68, -35.3238, 999);
906 //AliMaterial(65, "SSD cone$",63.546, 29., -1.15, -1.265, 999);
908 AliMedium(50, "SSD Si$", 50, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
909 AliMedium(51, "SSD Si chip$", 51, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
910 AliMedium(52, "SSD Si bus$", 52, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
911 AliMedium(53, "SSD C$", 53, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
912 AliMedium(54, "SSD Air$", 54, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
913 AliMedium(55, "SSD Vacuum$", 55, 0,isxfld,sxmgmx, 10.,1.00, .1, .100,10.00);
914 AliMedium(56, "SSD Al$", 56, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
915 AliMedium(57, "SSD Water $", 57, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
916 AliMedium(58, "SSD Freon$", 58, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
917 AliMedium(59, "SSD PCB$", 59, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
918 AliMedium(60, "SSD Copper$", 60, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
919 AliMedium(61, "SSD Ceramics$", 61, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
920 AliMedium(62, "SSD Kapton$", 62, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
921 AliMedium(63, "SSD G10FR4$", 63, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
922 AliMedium(64, "SSD End ladder$",64, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
923 AliMedium(65, "SSD cone$", 65, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
925 // 275-299 --> General (end-caps, frames, cooling, cables, etc.)
927 AliMaterial(75, "GEN C$", 12.011, 6., 2.265, 18.8, 999.);
929 AliMaterial(76, "GEN Air$", 14.61, 7.3, .001205, 30423., 999);
930 AliMaterial(77, "GEN Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
931 AliMixture( 78, "GEN POLYETHYL$", apoly, zpoly, .95, -2, wpoly);
932 AliMixture( 79, "GEN SERVICES$", aserv, zserv, 4.68, 4, wserv);
933 AliMaterial(80, "GEN Copper$", 63.546, 29., 8.96, 1.43, 999.);
934 // After a call with ratios by number (negative number of elements),
935 // the ratio array is changed to the ratio by weight, so all successive
936 // calls with the same array must specify the number of elements as
938 AliMixture(81, "GEN Water $", awat, zwat, denswat, 2, wwat);
939 // AliMaterial(82, "GEN Cables$", 12.011, 6., 2.265, 18.8, 999.); // check !!!
940 // AliMaterial(83, "GEN patch pan$", 12.011, 6., 2.265, 18.8, 999.); // check !!!
941 // AliMaterial(84, "GEN serv$", 12.011, 6., 2.265, 18.8, 999.); // check !!!
942 AliMixture(85, "GEN Inox$", asteel, zsteel, 7.88, 4, wsteel);
943 AliMaterial(86, "GEN Al$", 26.981539, 13., 2.6989, 8.9, 999);
945 AliMedium(75,"GEN C$", 75, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
946 AliMedium(76,"GEN Air$", 76, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
947 AliMedium(77,"GEN Vacuum$", 77, 0,isxfld,sxmgmx, 10., .10, .1, .100,10.00);
948 AliMedium(78,"GEN POLYETHYL$",78, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
949 AliMedium(79,"GEN SERVICES$", 79, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
950 AliMedium(80,"GEN Copper$", 80, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
951 AliMedium(81,"GEN Water $", 81, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
952 // AliMedium(82,"GEN Cables$", 82, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
953 // AliMedium(83,"GEN patch pan$",83, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
954 // AliMedium(84,"GEN serv$", 84, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
955 AliMedium(85,"GEN Inox$", 85, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
956 AliMedium(86, "GEN Al$", 86, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
958 //_____________________________________________________________________________
959 void AliITSvPPRcoarseasymm::Init(){
960 ////////////////////////////////////////////////////////////////////////
961 // Initialise the ITS after it has been created.
962 ////////////////////////////////////////////////////////////////////////
966 for(i=0;i<24;i++) cout << "*";cout << " ITSvPPRcoarseasymm_Init ";
967 for(i=0;i<25;i++) cout << "*";cout << endl;
971 for(i=0;i<72;i++) cout << "*";
975 //_____________________________________________________________________________
976 void AliITSvPPRcoarseasymm::DrawModule(){
977 ////////////////////////////////////////////////////////////////////////
978 // Draw a shaded view of the FMD version 6.
979 ////////////////////////////////////////////////////////////////////////
981 // Set everything unseen
982 gMC->Gsatt("*", "seen", -1);
984 // Set ALIC mother visible
985 gMC->Gsatt("ALIC","SEEN",0);
987 // Set the volumes visible
988 gMC->Gsatt("ITSD","SEEN",0);
989 gMC->Gsatt("ITS1","SEEN",1);
990 gMC->Gsatt("ITS2","SEEN",1);
991 gMC->Gsatt("ITS3","SEEN",1);
992 gMC->Gsatt("ITS4","SEEN",1);
993 gMC->Gsatt("ITS5","SEEN",1);
994 gMC->Gsatt("ITS6","SEEN",1);
996 gMC->Gsatt("IPCB","SEEN",1);
997 gMC->Gsatt("ICO2","SEEN",1);
998 gMC->Gsatt("ICER","SEEN",0);
999 gMC->Gsatt("ISI2","SEEN",0);
1000 gMC->Gsatt("IPLA","SEEN",0);
1001 gMC->Gsatt("ICO3","SEEN",0);
1002 gMC->Gsatt("IEPX","SEEN",0);
1003 gMC->Gsatt("ISI3","SEEN",1);
1004 gMC->Gsatt("ISUP","SEEN",0);
1005 gMC->Gsatt("ICHO","SEEN",0);
1006 gMC->Gsatt("ICMO","SEEN",0);
1007 gMC->Gsatt("ICMD","SEEN",0);
1008 gMC->Gsatt("ICCO","SEEN",1);
1009 gMC->Gsatt("ICCM","SEEN",0);
1010 gMC->Gsatt("ITMD","SEEN",0);
1011 gMC->Gsatt("ITTT","SEEN",1);
1014 gMC->Gdopt("hide", "on");
1015 gMC->Gdopt("shad", "on");
1016 gMC->Gsatt("*", "fill", 7);
1017 gMC->SetClipBox(".");
1018 gMC->SetClipBox("*", 0, 300, -300, 300, -300, 300);
1019 gMC->DefaultRange();
1020 gMC->Gdraw("alic", 40, 30, 0, 11, 10, .07, .07);
1021 gMC->Gdhead(1111, "Inner Tracking System Version 1");
1022 gMC->Gdman(17, 6, "MAN");
1024 //_____________________________________________________________________________
1025 void AliITSvPPRcoarseasymm::StepManager(){
1026 ////////////////////////////////////////////////////////////////////////
1027 // Called for every step in the ITS, then calls the AliITShit class
1028 // creator with the information to be recoreded about that hit.
1029 ////////////////////////////////////////////////////////////////////////
1035 TLorentzVector position, momentum;
1036 // TClonesArray &lhits = *fHits;
1038 // no hits for this coarse asymmetric version.
1044 if(gMC->IsTrackInside()) vol[3] += 1;
1045 if(gMC->IsTrackEntering()) vol[3] += 2;
1046 if(gMC->IsTrackExiting()) vol[3] += 4;
1047 if(gMC->IsTrackOut()) vol[3] += 8;
1048 if(gMC->IsTrackDisappeared()) vol[3] += 16;
1049 if(gMC->IsTrackStop()) vol[3] += 32;
1050 if(gMC->IsTrackAlive()) vol[3] += 64;
1052 // Fill hit structure.
1053 if( !(gMC->TrackCharge()) ) return;
1055 // Only entering charged tracks
1056 if((id=gMC->CurrentVolID(copy))==fIdSens[0]) {
1058 id=gMC->CurrentVolOffID(1,copy);
1060 id=gMC->CurrentVolOffID(2,copy);
1062 } else if(id==fIdSens[1]) {
1064 id=gMC->CurrentVolOffID(1,copy);
1066 id=gMC->CurrentVolOffID(2,copy);
1068 } else if(id==fIdSens[2]) {
1071 id=gMC->CurrentVolOffID(1,copy);
1073 } else if(id==fIdSens[3]) {
1076 id=gMC->CurrentVolOffID(1,copy);
1078 } else if(id==fIdSens[4]) {
1081 id=gMC->CurrentVolOffID(1,copy);
1083 } else if(id==fIdSens[5]) {
1086 id=gMC->CurrentVolOffID(1,copy);
1089 gMC->TrackPosition(position);
1090 gMC->TrackMomentum(momentum);
1091 hits[0]=position[0];
1092 hits[1]=position[1];
1093 hits[2]=position[2];
1094 hits[3]=momentum[0];
1095 hits[4]=momentum[1];
1096 hits[5]=momentum[2];
1097 hits[6]=gMC->Edep();
1098 hits[7]=gMC->TrackTime();
1099 // new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->CurrentTrack(),vol,hits);
1101 // no hits for this coarse asymmetric version.