]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSvPPRcoarsesymm.cxx
Mother volume ITSD modified to avoid some overlaps
[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.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:42:43  barbera
28 Mother volume ITSV corrected
29
30 Revision 1.1  2000/10/06 23:09:12  barbera
31 New coarse geometry (symmetric 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 symmetric                                         //
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 SYMMETRIC 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 "AliITSvPPRcoarsesymm.h"
105 #include "AliRun.h"
106
107
108 ClassImp(AliITSvPPRcoarsesymm)
109  
110 //_____________________________________________________________________________
111 AliITSvPPRcoarsesymm::AliITSvPPRcoarsesymm() {
112 ////////////////////////////////////////////////////////////////////////
113 //    Standard default constructor for the ITS version 7.
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 AliITSvPPRcoarsesymm::AliITSvPPRcoarsesymm(const char *name, const char *title) : AliITS(name, title){
129 ////////////////////////////////////////////////////////////////////////
130 //    Standard constructor for the ITS version 7.
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 AliITSvPPRcoarsesymm::AliITSvPPRcoarsesymm(const AliITSvPPRcoarsesymm &source){
147 ////////////////////////////////////////////////////////////////////////
148 //     Copy Constructor for ITS version 7.
149 ////////////////////////////////////////////////////////////////////////
150     if(&source == this) return;
151     printf("Not allowed to copy AliITSvPPRcoarsesymm\n");
152     return;
153 }
154 //_____________________________________________________________________________
155 AliITSvPPRcoarsesymm& AliITSvPPRcoarsesymm::operator=(const AliITSvPPRcoarsesymm &source){
156 ////////////////////////////////////////////////////////////////////////
157 //    Assignment operator for the ITS version 7.
158 ////////////////////////////////////////////////////////////////////////
159   if(&source == this) return *this;
160     printf("Not allowed to copy AliITSvPPRcoarsesymm\n");
161   return *this;
162 }
163 //_____________________________________________________________________________
164 AliITSvPPRcoarsesymm::~AliITSvPPRcoarsesymm() {
165 ////////////////////////////////////////////////////////////////////////
166 //    Standard destructor for the ITS version 7.
167 ////////////////////////////////////////////////////////////////////////
168 }
169
170 //__________________________________________________________________________
171 void AliITSvPPRcoarsesymm::BuildGeometry(){
172 ////////////////////////////////////////////////////////////////////////
173 //    Geometry builder for the ITS version 7.
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 AliITSvPPRcoarsesymm::CreateGeometry(){
218 ////////////////////////////////////////////////////////////////////////
219 //    This routine defines and Creates the geometry for version 7 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] = 62.4;
261   dgh[5] = 85.;
262   dgh[6] = -xltpc;
263   dgh[7] = 61.5;
264   dgh[8] = 85.;
265   dgh[9] = -xltpc;
266   dgh[10] = 61.5;
267   dgh[11] = 61.5+4.;
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 (ALIC) and make it 
325   //     invisible 
326   
327   gMC->Gspos("ITSD", 1, "ITSV", 0., 0., 0., 0, "ONLY");
328   //gMC->Gsatt("ITSV", "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 - 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   gMC->Gspos("ICU1", 2, "ITSV", 0., 0., 0., idrotm[200], "ONLY"); 
500   
501   // --- Define cables/cooling below the TPC - carbon part
502   
503   dgh[0] = 0.;
504   dgh[1] = 360.;
505   dgh[2] = 2.;
506   dgh[3] = 100.7;
507   dgh[4] = 45.2+1.0;
508   dgh[5] = 45.2+1.0+1.5;    
509   dgh[6] = xltpc;
510   dgh[7] = 61.8+1.0;
511   dgh[8] = 61.8+1.0+1.5;    
512   gMC->Gsvolu("ICC1", "PCON", idtmed[274], dgh, 9);    
513   gMC->Gspos("ICC1", 1, "ITSV", 0., 0., 0., 0, "ONLY");  
514   gMC->Gspos("ICC1", 2, "ITSV", 0., 0., 0., idrotm[200], "ONLY");   
515   
516   
517   // --- Define cables/cooling behind the TPC - copper part
518   
519   dgh[0] = 0.;
520   dgh[1] = 360.;
521   dgh[2] = 2.;
522   dgh[3] = xltpc+1.5;
523   dgh[4] = 62.5;
524   dgh[5] = 74.5;
525   dgh[6] = xltpc+1.5+1.0;
526   dgh[7] = 62.5;
527   dgh[8] = 74.5;    
528   gMC->Gsvolu("ICU2", "PCON", idtmed[279], dgh, 9);    
529   gMC->Gspos("ICU2", 1, "ITSV", 0., 0., 0., 0, "ONLY");  
530   gMC->Gspos("ICU2", 2, "ITSV", 0., 0., 0., idrotm[200], "ONLY");   
531   
532   // --- Define cables/cooling behind the TPC - carbon part
533   
534   dgh[0] = 0.;
535   dgh[1] = 360.;
536   dgh[2] = 2.;
537   dgh[3] = xltpc;
538   dgh[4] = 62.5;
539   dgh[5] = 74.5;
540   dgh[6] = xltpc+1.5;
541   dgh[7] = 62.5;
542   dgh[8] = 74.5;    
543   gMC->Gsvolu("ICC2", "PCON", idtmed[274], dgh, 9);    
544   gMC->Gspos("ICC2", 1, "ITSV", 0., 0., 0., 0, "ONLY");  
545   gMC->Gspos("ICC2", 2, "ITSV", 0., 0., 0., idrotm[200], "ONLY");     
546     
547   // --- Define hook to the TPC on other side w.r.t. the absorber
548   
549   dgh[0] = 74.5;
550   dgh[1] = 79.5;
551   dgh[2] = 2.5;
552   gMC->Gsvolu("IHOK", "TUBE", idtmed[284], dgh, 3);   
553   gMC->Gspos("IHOK", 1, "ITSV", 0., 0., -xltpc-dgh[2], 0, "ONLY");    
554   
555   
556   // --- Outputs the geometry tree in the EUCLID/CAD format 
557   
558   if (fEuclidOut) {
559     gMC->WriteEuclid("ITSgeometry", "ITSV", 1, 5);
560   }
561 }
562 //_____________________________________________________________________________
563 void AliITSvPPRcoarsesymm::CreateMaterials(){
564 ////////////////////////////////////////////////////////////////////////
565   //
566   // Create ITS materials
567   //     This function defines the default materials used in the Geant
568   // Monte Carlo simulations for the geometries AliITSv1, AliITSv3,
569   // AliITSvPPRcoarsesymm, AliITSvPPRcoarseasymm.
570   // In general it is automatically replaced by
571   // the CreatMaterials routine defined in AliITSv?. Should the function
572   // CreateMaterials not exist for the geometry version you are using this
573   // one is used. See the definition found in AliITSv5 or the other routine
574   // for a complete definition.
575   //
576   // Water H2O
577   Float_t awat[2]  = { 1.00794,15.9994 };
578   Float_t zwat[2]  = { 1.,8. };
579   Float_t wwat[2]  = { 2.,1. };
580   Float_t denswat  = 1.;
581   // Freon
582   Float_t afre[2]  = { 12.011,18.9984032 };
583   Float_t zfre[2]  = { 6.,9. };
584   Float_t wfre[2]  = { 5.,12. };
585   Float_t densfre  = 1.5;
586   // Ceramics
587   //     94.4% Al2O3 , 2.8% SiO2 , 2.3% MnO , 0.5% Cr2O3 
588   Float_t acer[5]  = { 26.981539,15.9994,28.0855,54.93805,51.9961 };
589   Float_t zcer[5]  = { 13.,8.,14.,25.,      24. };
590   Float_t wcer[5]  = { .49976,1.01233,.01307,       .01782,.00342 };
591   Float_t denscer  = 3.6;
592   //
593   //     60% SiO2 , 40% G10FR4 
594   // PC board
595   Float_t apcb[3]  = { 28.0855,15.9994,17.749 };
596   Float_t zpcb[3]  = { 14.,8.,8.875 };
597   Float_t wpcb[3]  = { .28,.32,.4 };
598   Float_t denspcb  = 1.8;
599   // POLYETHYL
600   Float_t apoly[2] = { 12.01,1. };
601   Float_t zpoly[2] = { 6.,1. };
602   Float_t wpoly[2] = { .33,.67 };
603   // old SERVICES
604   Float_t zserv[4] = { 1.,6.,26.,29. };
605   Float_t aserv[4] = { 1.,12.,55.8,63.5 };
606   Float_t wserv[4] = { .014,.086,.42,.48 };
607   // Stainless steel
608   Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 };
609   Float_t zsteel[4] = { 26.,24.,28.,14. };
610   Float_t wsteel[4] = { .715,.18,.1,.005 };
611   
612   
613   Int_t  isxfld  = gAlice->Field()->Integ();
614   Float_t sxmgmx = gAlice->Field()->Max();
615   
616   
617   // --- Define the various materials for GEANT --- 
618   
619   //  200-224 --> Silicon Pixel Detectors (detectors, chips, buses, cooling,..)
620   
621   AliMaterial(0, "SPD Si$",      28.0855, 14., 2.33, 9.36, 999);
622   AliMaterial(1, "SPD Si chip$", 28.0855, 14., 2.33, 9.36, 999);
623   AliMaterial(2, "SPD Si bus$",  28.0855, 14., 2.33, 9.36, 999);
624   AliMaterial(3, "SPD C$",       12.011,   6., 2.265,18.8, 999);
625   // v. dens 
626   AliMaterial(4, "SPD Air$",    14.61, 7.3, .001205, 30423., 999);
627   AliMaterial(5, "SPD Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
628   AliMaterial(6, "SPD Al$",     26.981539, 13., 2.6989, 8.9, 999);
629   AliMixture( 7, "SPD Water $", awat, zwat, denswat, -2, wwat);
630   AliMixture( 8, "SPD Freon$",  afre, zfre, densfre, -2, wfre);
631   AliMaterial(9, "SPD End ladder$",28.0855, 14., 2.33, 9.36, 999); // check !!!!
632   AliMaterial(10, "SPD cone$",28.0855, 14., 2.33, 9.36, 999);       // check !!!!
633   // ** 
634   AliMedium(0, "SPD Si$",       0, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
635   AliMedium(1, "SPD Si chip$",  1, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
636   AliMedium(2, "SPD Si bus$",   2, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
637   AliMedium(3, "SPD C$",        3, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
638   AliMedium(4, "SPD Air$",      4, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
639   AliMedium(5, "SPD Vacuum$",   5, 0,isxfld,sxmgmx, 10.,1.00, .1, .100,10.00);
640   AliMedium(6, "SPD Al$",       6, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
641   AliMedium(7, "SPD Water $",   7, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
642   AliMedium(8, "SPD Freon$",    8, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
643   AliMedium(9, "SPD End ladder",9, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
644   AliMedium(10, "SPD cone$",   10, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);   
645   
646   //  225-249 --> Silicon Drift Detectors (detectors, chips, buses, cooling,..)
647   
648   AliMaterial(25, "SDD Si$",      28.0855, 14., 2.33,  9.36, 999);
649   AliMaterial(26, "SDD Si chip$", 28.0855, 14., 2.33,  9.36, 999);
650   AliMaterial(27, "SDD Si bus$",  28.0855, 14., 2.33,  9.36, 999);
651   AliMaterial(28, "SDD C$",       12.011,   6., 2.265,18.8,  999);
652   // v. dens 
653   AliMaterial(29, "SDD Air$",     14.61, 7.3, .001205, 30423., 999);
654   AliMaterial(30, "SDD Vacuum$",  1e-16, 1e-16, 1e-16, 1e16,  1e16);
655   AliMaterial(31, "SDD Al$",      26.981539, 13., 2.6989, 8.9, 999);
656   // After a call with ratios by number (negative number of elements), 
657   // the ratio array is changed to the ratio by weight, so all successive 
658   // calls with the same array must specify the number of elements as 
659   // positive 
660   AliMixture(32, "SDD Water $", awat, zwat, denswat, 2, wwat);
661   // After a call with ratios by number (negative number of elements), 
662   // the ratio array is changed to the ratio by weight, so all successive 
663   // calls with the same array must specify the number of elements as 
664   // positive 
665   AliMixture( 33, "SDD Freon$", afre, zfre, densfre, 2, wfre);
666   AliMixture( 34, "SDD PCB$",   apcb, zpcb, denspcb, 3, wpcb);
667   AliMaterial(35, "SDD Copper$", 63.546, 29., 8.96, 1.43, 999);
668   AliMixture( 36, "SDD Ceramics$", acer, zcer, denscer, -5, wcer);
669   AliMaterial(37, "SDD Kapton$", 12.011, 6., 1.3, 31.27, 999);
670   AliMaterial(38, "SDD End ladder$",28.0855, 14., 2.33, 9.36, 999); // check !!!!
671   AliMaterial(39, "SDD cone$",28.0855, 14., 2.33, 9.36, 999);       // check !!!!
672   // ** 
673   // check A and Z 
674   AliMedium(25, "SDD Si$",      25, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
675   AliMedium(26, "SDD Si chip$", 26, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
676   AliMedium(27, "SDD Si bus$",  27, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
677   AliMedium(28, "SDD C$",       28, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
678   AliMedium(29, "SDD Air$",     29, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
679   AliMedium(30, "SDD Vacuum$",  30, 0,isxfld,sxmgmx, 10.,1.00, .1, .100,10.00);
680   AliMedium(31, "SDD Al$",      31, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
681   AliMedium(32, "SDD Water $",  32, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
682   AliMedium(33, "SDD Freon$",   33, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
683   AliMedium(34, "SDD PCB$",     34, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
684   AliMedium(35, "SDD Copper$",  35, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
685   AliMedium(36, "SDD Ceramics$",36, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
686   AliMedium(37, "SDD Kapton$",  37, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
687   AliMedium(38, "SDD End ladder",38, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
688   AliMedium(39, "SDD cone$",   39, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
689   
690   //  250-274 --> Silicon Strip Detectors (detectors, chips, buses, cooling,..)
691   
692   AliMaterial(50, "SSD Si$",      28.0855, 14., 2.33, 9.36, 999.);
693   AliMaterial(51, "SSD Si chip$", 28.0855, 14., 2.33, 9.36, 999.);
694   AliMaterial(52, "SSD Si bus$",  28.0855, 14., 2.33, 9.36, 999.);
695   AliMaterial(53, "SSD C$",       12.011,   6., 2.265,18.8, 999.);
696   // v. dens 
697   AliMaterial(54, "SSD Air$",     14.61, 7.3, .001205, 30423., 999);
698   AliMaterial(55, "SSD Vacuum$",  1e-16, 1e-16, 1e-16, 1e16, 1e16);
699   AliMaterial(56, "SSD Al$",      26.981539, 13., 2.6989, 8.9, 999);
700   // After a call with ratios by number (negative number of elements), 
701   // the ratio array is changed to the ratio by weight, so all successive 
702   // calls with the same array must specify the number of elements as 
703   // positive 
704   AliMixture(57, "SSD Water $", awat, zwat, denswat, 2, wwat);
705   // After a call with ratios by number (negative number of elements), 
706   // the ratio array is changed to the ratio by weight, so all successive 
707   // calls with the same array must specify the number of elements as 
708   // positive 
709   AliMixture(58, "SSD Freon$", afre, zfre, densfre, 2, wfre);
710   AliMixture(59, "SSD PCB$",   apcb, zpcb, denspcb, 3, wpcb);
711   AliMaterial(60, "SSD Copper$", 63.546, 29., 8.96, 1.43, 999.);
712   // After a call with ratios by number (negative number of elements), 
713   // the ratio array is changed to the ratio by weight, so all successive 
714   // calls with the same array must specify the number of elements as 
715   // positive 
716   AliMixture( 61, "SSD Ceramics$", acer, zcer, denscer, 5, wcer);
717   AliMaterial(62, "SSD Kapton$", 12.011, 6., 1.3, 31.27, 999.);
718   // check A and Z 
719   AliMaterial(63, "SSD G10FR4$", 17.749, 8.875, 1.8, 21.822, 999.);
720   AliMaterial(64, "SSD End ladder$",28.0855, 14., 2.33, 9.36, 999); // check !!!!
721   AliMaterial(65, "SSD cone$",28.0855, 14., 2.33, 9.36, 999);       // check !!!! 
722   // ** 
723   AliMedium(50, "SSD Si$",      50, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
724   AliMedium(51, "SSD Si chip$", 51, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
725   AliMedium(52, "SSD Si bus$",  52, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
726   AliMedium(53, "SSD C$",       53, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
727   AliMedium(54, "SSD Air$",     54, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
728   AliMedium(55, "SSD Vacuum$",  55, 0,isxfld,sxmgmx, 10.,1.00, .1, .100,10.00);
729   AliMedium(56, "SSD Al$",      56, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
730   AliMedium(57, "SSD Water $",  57, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
731   AliMedium(58, "SSD Freon$",   58, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
732   AliMedium(59, "SSD PCB$",     59, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
733   AliMedium(60, "SSD Copper$",  60, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
734   AliMedium(61, "SSD Ceramics$",61, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
735   AliMedium(62, "SSD Kapton$",  62, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
736   AliMedium(63, "SSD G10FR4$",  63, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
737   AliMedium(64, "SPD End ladder",64, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
738   AliMedium(65, "SPD cone$",   65, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
739   
740   //     275-299 --> General (end-caps, frames, cooling, cables, etc.) 
741   
742   AliMaterial(75, "GEN C$", 12.011, 6., 2.265, 18.8, 999.);
743   // verify density 
744   AliMaterial(76, "GEN Air$", 14.61, 7.3, .001205, 30423., 999);
745   AliMaterial(77, "GEN Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
746   AliMixture( 78, "GEN POLYETHYL$", apoly, zpoly, .95, -2, wpoly);
747   AliMixture( 79, "GEN SERVICES$",  aserv, zserv, 4.68, 4, wserv);
748   AliMaterial(80, "GEN Copper$", 63.546, 29., 8.96, 1.43, 999.);  
749   // After a call with ratios by number (negative number of elements), 
750   // the ratio array is changed to the ratio by weight, so all successive 
751   // calls with the same array must specify the number of elements as 
752   // positive 
753   AliMixture(81, "GEN Water $", awat, zwat, denswat, 2, wwat);
754   //AliMaterial(82, "GEN Cables$", 12.011, 6., 2.265, 18.8, 999.);  // check !!!
755   //AliMaterial(83, "GEN patch pan$", 12.011, 6., 2.265, 18.8, 999.);  // check !!!  
756   //AliMaterial(84, "GEN serv$", 12.011, 6., 2.265, 18.8, 999.);  // check !!!  
757   AliMixture(85, "GEN Inox$", asteel, zsteel, 7.88, 4, wsteel);
758   AliMaterial(86, "GEN Al$",      26.981539, 13., 2.6989, 8.9, 999);
759   // ** 
760   AliMedium(75,"GEN C$",        75, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
761   AliMedium(76,"GEN Air$",      76, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
762   AliMedium(77,"GEN Vacuum$",   77, 0,isxfld,sxmgmx, 10., .10, .1, .100,10.00);
763   AliMedium(78,"GEN POLYETHYL$",78, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
764   AliMedium(79,"GEN SERVICES$", 79, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
765   AliMedium(80,"GEN Copper$",   80, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
766   AliMedium(81,"GEN Water $",   81, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
767   //AliMedium(82,"GEN Cables$",   82, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
768   //AliMedium(83,"GEN patch pan$",83, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);  
769   //AliMedium(84,"GEN serv$",     84, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
770   AliMedium(85,"GEN Inox$",     85, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
771   AliMedium(86, "GEN Al$",      86, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
772
773 }
774 //_____________________________________________________________________________
775 void AliITSvPPRcoarsesymm::Init(){
776 ////////////////////////////////////////////////////////////////////////
777 //     Initialise the ITS after it has been created.
778 ////////////////////////////////////////////////////////////////////////
779
780     //
781     AliITS::Init();
782     fMajorVersion = 1;
783     fMinorVersion = 0;
784 }  
785  
786 //_____________________________________________________________________________
787 void AliITSvPPRcoarsesymm::DrawModule(){
788 ////////////////////////////////////////////////////////////////////////
789 //     Draw a shaded view of the FMD version 6.
790 ////////////////////////////////////////////////////////////////////////
791   
792   // Set everything unseen
793   gMC->Gsatt("*", "seen", -1);
794   // 
795   // Set ALIC mother visible
796   gMC->Gsatt("ALIC","SEEN",0);
797   //
798   // Set the volumes visible
799   gMC->Gsatt("ITSD","SEEN",0);
800   gMC->Gsatt("ITS1","SEEN",1);
801   gMC->Gsatt("ITS2","SEEN",1);
802   gMC->Gsatt("ITS3","SEEN",1);
803   gMC->Gsatt("ITS4","SEEN",1);
804   gMC->Gsatt("ITS5","SEEN",1);
805   gMC->Gsatt("ITS6","SEEN",1);
806
807   gMC->Gsatt("IPCB","SEEN",1);
808   gMC->Gsatt("ICO2","SEEN",1);
809   gMC->Gsatt("ICER","SEEN",0);
810   gMC->Gsatt("ISI2","SEEN",0);
811   gMC->Gsatt("IPLA","SEEN",0);
812   gMC->Gsatt("ICO3","SEEN",0);
813   gMC->Gsatt("IEPX","SEEN",0);
814   gMC->Gsatt("ISI3","SEEN",1);
815   gMC->Gsatt("ISUP","SEEN",0);
816   gMC->Gsatt("ICHO","SEEN",0);
817   gMC->Gsatt("ICMO","SEEN",0);
818   gMC->Gsatt("ICMD","SEEN",0);
819   gMC->Gsatt("ICCO","SEEN",1);
820   gMC->Gsatt("ICCM","SEEN",0);
821   gMC->Gsatt("ITMD","SEEN",0);
822   gMC->Gsatt("ITTT","SEEN",1);
823
824   //
825   gMC->Gdopt("hide", "on");
826   gMC->Gdopt("shad", "on");
827   gMC->Gsatt("*", "fill", 7);
828   gMC->SetClipBox(".");
829   gMC->SetClipBox("*", 0, 300, -300, 300, -300, 300);
830   gMC->DefaultRange();
831   gMC->Gdraw("alic", 40, 30, 0, 11, 10, .07, .07);
832   gMC->Gdhead(1111, "Inner Tracking System Version 1");
833   gMC->Gdman(17, 6, "MAN");
834 }
835 //_____________________________________________________________________________
836 void AliITSvPPRcoarsesymm::StepManager(){
837 ////////////////////////////////////////////////////////////////////////
838 //    Called for every step in the ITS, then calls the AliITShit class
839 // creator with the information to be recoreded about that hit.
840 ////////////////////////////////////////////////////////////////////////
841
842 /*
843   Int_t         copy, id;
844   Float_t       hits[8];
845   Int_t         vol[4];
846   TLorentzVector position, momentum;
847 //  TClonesArray &lhits = *fHits;
848 //
849 // no hits for this coarse symmetric version.
850 //
851
852   //
853   // Track status
854   vol[3] = 0;
855   if(gMC->IsTrackInside())      vol[3] +=  1;
856   if(gMC->IsTrackEntering())    vol[3] +=  2;
857   if(gMC->IsTrackExiting())     vol[3] +=  4;
858   if(gMC->IsTrackOut())         vol[3] +=  8;
859   if(gMC->IsTrackDisappeared()) vol[3] += 16;
860   if(gMC->IsTrackStop())        vol[3] += 32;
861   if(gMC->IsTrackAlive())       vol[3] += 64;
862   //
863   // Fill hit structure.
864   if( !(gMC->TrackCharge()) ) return;
865     //
866     // Only entering charged tracks
867     if((id=gMC->CurrentVolID(copy))==fIdSens[0]) {  
868       vol[0]=1;
869       id=gMC->CurrentVolOffID(1,copy);      
870       vol[1]=copy;
871       id=gMC->CurrentVolOffID(2,copy);
872       vol[2]=copy;                       
873     } else if(id==fIdSens[1]) {
874       vol[0]=2;
875       id=gMC->CurrentVolOffID(1,copy);       
876       vol[1]=copy;
877       id=gMC->CurrentVolOffID(2,copy);
878       vol[2]=copy;                    
879     } else if(id==fIdSens[2]) {
880       vol[0]=3;
881       vol[1]=copy;
882       id=gMC->CurrentVolOffID(1,copy);
883       vol[2]=copy;             
884     } else if(id==fIdSens[3]) {
885       vol[0]=4;
886       vol[1]=copy;
887       id=gMC->CurrentVolOffID(1,copy);
888       vol[2]=copy;                  
889     } else if(id==fIdSens[4]) {
890       vol[0]=5;
891       vol[1]=copy;
892       id=gMC->CurrentVolOffID(1,copy);
893       vol[2]=copy;               
894     } else if(id==fIdSens[5]) {
895       vol[0]=6;
896       vol[1]=copy;
897       id=gMC->CurrentVolOffID(1,copy);
898       vol[2]=copy;                      
899     } else return;
900     gMC->TrackPosition(position);
901     gMC->TrackMomentum(momentum);
902     hits[0]=position[0];
903     hits[1]=position[1];
904     hits[2]=position[2];          
905     hits[3]=momentum[0];
906     hits[4]=momentum[1];
907     hits[5]=momentum[2];
908     hits[6]=gMC->Edep();
909     hits[7]=gMC->TrackTime();
910 //    new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->CurrentTrack(),vol,hits);
911 //
912 // no hits for this coarse symmetric version.
913 //
914 */
915 }
916 /*
917 //____________________________________________________________________________
918 void AliITSvPPRcoarsesymm::Streamer(TBuffer &R__b){
919 ////////////////////////////////////////////////////////////////////////
920 //    A dummy Streamer function for this class AliITSvPPRcoarsesymm. By default it
921 // only streams the AliITS class as it is required. Since this class
922 // dosen't contain any "real" data to be saved, it doesn't.
923 ////////////////////////////////////////////////////////////////////////
924
925    if (R__b.IsReading()) {
926       Version_t R__v = R__b.ReadVersion(); if (R__v) { }
927       AliITS::Streamer(R__b);
928    } else {
929       R__b.WriteVersion(AliITSvPPRcoarsesymm::IsA());
930       AliITS::Streamer(R__b);
931    } // end if R__b.IsReading()
932 }
933 */