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