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