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