]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCv0.cxx
1. Coding violatation partial fixies
[u/mrichter/AliRoot.git] / TPC / AliTPCv0.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 /* $Id$ */
17 //
18
19 ///////////////////////////////////////////////////////////////////////////////
20 //                                                                           //
21 //  Time Projection Chamber version 0 -- "coarse" TPC                        //
22 //                                                                           //
23 //Begin_Html
24 /*
25 <img src="picts/AliTPCv0Class.gif">
26 */
27 //End_Html
28 //                                                                           //
29 //                                                                           //
30 ///////////////////////////////////////////////////////////////////////////////
31
32 #include <Riostream.h>
33
34 #include <TMath.h>
35 #include <TVirtualMC.h>
36 #include <TString.h>
37 #include <TSystem.h>
38
39 #include "AliConst.h"
40 #include "AliRun.h"
41 #include "AliTPCDigitsArray.h"
42 #include "AliTPCParamSR.h"
43 #include "AliTPCv0.h"
44 #include "TGeoManager.h"
45 #include "TGeoVolume.h"
46 #include "TGeoPcon.h"
47 #include "TGeoTube.h"
48 #include "TGeoPgon.h"
49 #include "TGeoTrd1.h"
50 #include "TGeoCompositeShape.h"
51 #include "TGeoPara.h"
52 ClassImp(AliTPCv0)
53  
54 //_____________________________________________________________________________
55 AliTPCv0::AliTPCv0(const char *name, const char *title) 
56          :AliTPC(name, title)
57 {
58   //
59   // Standard creator for TPC version 0
60   //
61
62
63   if (fTPCParam)
64      fTPCParam->Write(fTPCParam->GetTitle());
65 }
66
67 //_____________________________________________________________________________
68 void AliTPCv0::CreateGeometry()
69 {
70
71   //
72   // Creation of the TPC version 0, i.e. no sensitive volumes,
73   // only the material distribution
74   //
75   //Begin_Html
76   /*
77     <img src="picts/AliTPC.gif">
78   */
79   //End_Html
80   //Begin_Html
81   /*
82     <img src="picts/AliTPCv0Tree.gif">
83   */
84   //End_Html
85
86  //----------------------------------------------------------
87   // This geometry is written using TGeo class
88   // Firstly the shapes are defined, and only then the volumes
89   // What is recognized by the MC are volumes
90   //----------------------------------------------------------
91   //
92   //  tpc - this will be the mother volume
93   //
94
95   //
96   // here I define a volume TPC
97   // retrive the medium name with "TPC_" as a leading string
98   //
99   TGeoPcon *tpc = new TGeoPcon(0.,360.,20); //20 sections
100   //
101   tpc->DefineSection(0,-291.,77.,278.);
102   tpc->DefineSection(1,-270,77.,278.);
103   //
104   tpc->DefineSection(2,-270.,77.,278.);
105   tpc->DefineSection(3,-259.6,70.,278.);
106   //
107   tpc->DefineSection(4,-259.6,68.1,278.);
108   tpc->DefineSection(5,-253.6,68.1,278.);
109   //
110   tpc->DefineSection(6,-253.6,68.,278.);
111   tpc->DefineSection(7,-74.0,60.8,278.);
112   //
113   tpc->DefineSection(8,-74.0,60.1,278.);
114   tpc->DefineSection(9,-73.3,60.1,278.);
115   //
116   tpc->DefineSection(10,-73.3,56.9,278.); 
117   tpc->DefineSection(11,73.3,56.9,278.);
118   //
119   tpc->DefineSection(12,73.3,60.1,278.);
120   tpc->DefineSection(13,74.0,60.1,278.);
121   //
122   tpc->DefineSection(14,74.0,60.8,278.);
123   tpc->DefineSection(15,253.6,65.5,278.);
124   //
125   tpc->DefineSection(16,253.6,65.6,278.);
126   tpc->DefineSection(17,259.6,65.6,278.);
127   //
128   tpc->DefineSection(18,259.6,70.0,278.);
129   tpc->DefineSection(19,291.,77.,278.);
130   //
131   TGeoMedium *m1 = gGeoManager->GetMedium("TPC_Air");
132   TGeoVolume *v1 = new TGeoVolume("TPC_M",tpc,m1);
133   //
134   // drift volume - sensitive volume, extended beyond the
135   // endcaps, because of the alignment
136   //
137   TGeoPcon *dvol = new TGeoPcon(0.,360.,6);
138   dvol->DefineSection(0,-260.,74.5,264.4);
139   dvol->DefineSection(1,-253.6,74.5,264.4);
140   //
141   dvol->DefineSection(2,-253.6,76.6774,258.);
142   dvol->DefineSection(3,253.6,76.6774,258.); 
143   //
144   dvol->DefineSection(4,253.6,74.5,264.4);
145   dvol->DefineSection(5,260.,74.5,264.4);
146   //
147   TGeoMedium *m5 = gGeoManager->GetMedium("TPC_Ne-CO2-N-1");
148   TGeoVolume *v9 = new TGeoVolume("TPC_Drift",dvol,m5);
149   //
150   v1->AddNode(v9,1);
151   //
152   // outer insulator
153   //
154   TGeoPcon *tpco = new TGeoPcon(0.,360.,6); //insulator
155   //
156   tpco->DefineSection(0,-256.6,264.8,278.);
157   tpco->DefineSection(1,-253.6,264.8,278.);
158   //
159   tpco->DefineSection(2,-253.6,258.,278.);
160   tpco->DefineSection(3,250.6,258.,278.);
161   //
162   tpco->DefineSection(4,250.6,258.,275.5);
163   tpco->DefineSection(5,253.6,258.,275.5);
164   //
165   TGeoMedium *m2 = gGeoManager->GetMedium("TPC_CO2");
166   TGeoVolume *v2 = new TGeoVolume("TPC_OI",tpco,m2);
167   //
168   // outer containment vessel
169   //
170   TGeoPcon *tocv = new TGeoPcon(0.,360.,6);  // containment vessel
171   //
172   tocv->DefineSection(0,-256.6,264.8,278.);
173   tocv->DefineSection(1,-253.6,264.8,278.);
174   //
175   tocv->DefineSection(2,-253.6,274.8124,278.);
176   tocv->DefineSection(3,247.6,274.8124,278.);  
177   //
178   tocv->DefineSection(4,247.6,270.4,278.);
179   tocv->DefineSection(5,250.6,270.4,278.);
180   //
181   TGeoMedium *m3 = gGeoManager->GetMedium("TPC_Al");
182   TGeoVolume *v3 = new TGeoVolume("TPC_OCV",tocv,m3); 
183   //
184   TGeoTube *to1 = new TGeoTube(274.8174,277.995,252.1); //epoxy
185   TGeoTube *to2 = new TGeoTube(274.8274,277.985,252.1); //tedlar
186   TGeoTube *to3 = new TGeoTube(274.8312,277.9812,252.1);//prepreg2
187   TGeoTube *to4 = new TGeoTube(274.9062,277.9062,252.1);//nomex
188   //
189   TGeoMedium *sm1 = gGeoManager->GetMedium("TPC_Epoxy");
190   TGeoMedium *sm2 = gGeoManager->GetMedium("TPC_Tedlar");
191   TGeoMedium *sm3 = gGeoManager->GetMedium("TPC_Prepreg2");
192   TGeoMedium *sm4 = gGeoManager->GetMedium("TPC_Nomex");
193   //
194   TGeoVolume *tov1 = new TGeoVolume("TPC_OCV1",to1,sm1);
195   TGeoVolume *tov2 = new TGeoVolume("TPC_OCV2",to2,sm2);
196   TGeoVolume *tov3 = new TGeoVolume("TPC_OCV3",to3,sm3);
197   TGeoVolume *tov4 = new TGeoVolume("TPC_OCV4",to4,sm4);
198   //-------------------------------------------------------
199   //  Tpc Outer Field Cage
200   //  daughters - composite (sandwich)
201   //-------------------------------------------------------
202
203   TGeoPcon *tofc = new TGeoPcon(0.,360.,6);
204   //
205   tofc->DefineSection(0,-253.6,258.,269.6);
206   tofc->DefineSection(1,-250.6,258.,269.6);
207   //
208   tofc->DefineSection(2,-250.6,258.,260.0676); 
209   tofc->DefineSection(3,250.6,258.,260.0676);
210   //
211   tofc->DefineSection(4,250.6,258.,275.5);
212   tofc->DefineSection(5,253.6,258.,275.5);
213   //
214   TGeoVolume *v4 = new TGeoVolume("TPC_TOFC",tofc,m3); 
215   //sandwich
216   TGeoTube *tf1 = new TGeoTube(258.0,260.0676,252.1); //tedlar
217   TGeoTube *tf2 = new TGeoTube(258.0038,260.0638,252.1); //prepreg3
218   TGeoTube *tf3 = new TGeoTube(258.0338,260.0338,252.1);//nomex
219   //
220   TGeoMedium *sm5 = gGeoManager->GetMedium("TPC_Prepreg3");
221   //
222   TGeoVolume *tf1v = new TGeoVolume("TPC_OFC1",tf1,sm2);
223   TGeoVolume *tf2v = new TGeoVolume("TPC_OFC2",tf2,sm5);
224   TGeoVolume *tf3v = new TGeoVolume("TPC_OFC3",tf3,sm4);
225   //
226   // outer part - positioning
227   //
228   tov1->AddNode(tov2,1); tov2->AddNode(tov3,1); tov3->AddNode(tov4,1);
229   //
230   tf1v->AddNode(tf2v,1); tf2v->AddNode(tf3v,1);
231   //
232   v3->AddNode(tov1,1,new TGeoTranslation(0.,0.,-1.5)); v4->AddNode(tf1v,1);
233   //
234   v2->AddNode(v3,1); v2->AddNode(v4,1); 
235   //
236   v1->AddNode(v2,1);
237   //-----------------------------------------------------------
238   //--------------------------------------------------------------------
239   // Tpc Inner INsulator (CO2) 
240   // the cones, the central drum and the inner f.c. sandwich with a piece
241   // of the flane will be placed in the TPC
242   //--------------------------------------------------------------------
243   TGeoPcon *tpci = new TGeoPcon(0.,360.,4);
244   //
245   tpci->DefineSection(0,-253.6,68.4,76.6774);
246   tpci->DefineSection(1,-74.0,61.2,76.6774);
247   //
248   tpci->DefineSection(2,74.0,61.2,76.6774);  
249   //
250   tpci->DefineSection(3,253.6,65.9,76.6774);
251   //
252   TGeoVolume *v5 = new TGeoVolume("TPC_INI",tpci,m2);
253   //
254   // now the inner field cage - only part of flanges (2 copies)
255   //
256   TGeoTube *tif1 = new TGeoTube(69.9,76.6774,1.5); 
257   TGeoVolume *v6 = new TGeoVolume("TPC_IFC1",tif1,m3);
258   //
259  //---------------------------------------------------------
260   // Tpc Inner Containment vessel - Muon side
261   //---------------------------------------------------------
262   TGeoPcon *tcms = new TGeoPcon(0.,360.,10);
263   //
264   tcms->DefineSection(0,-259.1,68.1,74.2);
265   tcms->DefineSection(1,-253.6,68.1,74.2);
266   //
267   tcms->DefineSection(2,-253.6,68.1,68.4);
268   tcms->DefineSection(3,-74.0,60.9,61.2);
269   //
270   tcms->DefineSection(4,-74.0,60.1,61.2);
271   tcms->DefineSection(5,-73.3,60.1,61.2);
272   //
273   tcms->DefineSection(6,-73.3,56.9,61.2);
274   tcms->DefineSection(7,-73.0,56.9,61.2);
275   //
276   tcms->DefineSection(8,-73.0,56.9,58.8);
277   tcms->DefineSection(9,-71.3,56.9,58.8);
278   //
279   TGeoVolume *v7 = new TGeoVolume("TPC_ICVM",tcms,m3);
280   //-----------------------------------------------
281   // inner containment vessel - shaft side
282   //-----------------------------------------------
283   TGeoPcon *tcss = new TGeoPcon(0.,360.,10);
284   //
285   tcss->DefineSection(0,71.3,56.9,58.8);
286   tcss->DefineSection(1,73.0,56.9,58.8);
287   //
288   tcss->DefineSection(2,73.0,56.9,61.2);
289   tcss->DefineSection(3,73.3,56.9,61.2);
290   //  
291   tcss->DefineSection(4,73.3,60.1,61.2);
292   tcss->DefineSection(5,74.0,60.1,61.2);
293   //
294   tcss->DefineSection(6,74.0,60.9,61.2);
295   tcss->DefineSection(7,253.6,65.6,65.9);
296   //
297   tcss->DefineSection(8,253.6,65.6,74.2);
298   tcss->DefineSection(9,258.1,65.6,74.2);
299   //
300   TGeoVolume *v8 = new TGeoVolume("TPC_ICVS",tcss,m3);
301   //-----------------------------------------------
302   //  Inner field cage
303   //  define 4 parts and make an assembly
304   //-----------------------------------------------
305   // part1 - Al - 2 copies
306   TGeoTube *t1 = new TGeoTube(76.6774,78.845,0.75);
307   TGeoVolume *tv1 = new TGeoVolume("TPC_IFC2",t1,m3);
308   // sandwich - outermost parts - 2 copies
309   TGeoTube *t2 = new TGeoTube(76.6774,78.845,74.175); // tedlar 38 microns
310   TGeoTube *t3 = new TGeoTube(76.6812,78.8412,74.175); // prepreg2 500 microns
311   TGeoTube *t4 = new TGeoTube(76.7312,78.7912,74.175); // prepreg3 300 microns
312   TGeoTube *t5 = new TGeoTube(76.7612,78.7612,74.175); // nomex 2 cm
313   //
314   TGeoVolume *tv2 = new TGeoVolume("TPC_IFC3",t2,sm2);
315   TGeoVolume *tv3 = new TGeoVolume("TPC_IFC4",t3,sm3);
316   TGeoVolume *tv4 = new TGeoVolume("TPC_IFC5",t4,sm5);
317   TGeoVolume *tv5 = new TGeoVolume("TPC_IFC6",t5,sm4);
318   //
319   // middle parts - 2 copies
320   TGeoTube *t6 = new TGeoTube(76.6774,78.795,5.); // tedlar 38 microns
321   TGeoTube *t7 = new TGeoTube(76.6812,78.7912,5.); // prepreg2 250 microns
322   TGeoTube *t8 = new TGeoTube(76.7062,78.7662,5.); // prepreg3 300 microns
323   TGeoTube *t9 = new TGeoTube(76.7362,78.7362,5.); // nomex 2 cm
324   //
325   TGeoVolume *tv6 = new TGeoVolume("TPC_IFC7",t6,sm2);
326   TGeoVolume *tv7 = new TGeoVolume("TPC_IFC8",t7,sm3);
327   TGeoVolume *tv8 = new TGeoVolume("TPC_IFC9",t8,sm5);
328   TGeoVolume *tv9 = new TGeoVolume("TPC_IFC10",t9,sm4);
329   // central part - 1 copy
330   TGeoTube *t10 = new TGeoTube(76.6774,78.745,93.75); // tedlar 38 microns 
331   TGeoTube *t11 = new TGeoTube(76.6812,78.7412,93.75); // prepreg3 300 microns
332   TGeoTube *t12 = new TGeoTube(76.7112,78.7112,93.75); // nomex 2 cm
333   //
334   TGeoVolume *tv10 = new TGeoVolume("TPC_IFC11",t10,sm2);
335   TGeoVolume *tv11 = new TGeoVolume("TPC_IFC12",t11,sm5);
336   TGeoVolume *tv12 = new TGeoVolume("TPC_IFC13",t12,sm4);
337   //
338   // inner part - positioning
339   //
340   // creating a sandwich
341   tv2->AddNode(tv3,1); tv3->AddNode(tv4,1); tv4->AddNode(tv5,1);
342   //
343   tv6->AddNode(tv7,1); tv7->AddNode(tv8,1); tv8->AddNode(tv9,1);
344   //
345   tv10->AddNode(tv11,1); tv11->AddNode(tv12,1);
346   //
347   TGeoVolumeAssembly *tv100 = new TGeoVolumeAssembly("TPC_IFC");
348   //
349   tv100->AddNode(tv10,1);
350   tv100->AddNode(tv6,1,new TGeoTranslation(0.,0.,-98.75));
351   tv100->AddNode(tv6,2,new TGeoTranslation(0.,0.,98.75));
352   tv100->AddNode(tv2,1,new TGeoTranslation(0.,0.,-177.925));
353   tv100->AddNode(tv2,2,new TGeoTranslation(0.,0.,177.925));
354   tv100->AddNode(tv1,1,new TGeoTranslation(0.,0.,-252.85));
355   tv100->AddNode(tv1,2,new TGeoTranslation(0.,0.,252.85));
356   //
357   v5->AddNode(v6,1, new TGeoTranslation(0.,0.,-252.1));
358   v5->AddNode(v6,2, new TGeoTranslation(0.,0.,252.1));
359   v1->AddNode(v5,1); v1->AddNode(v7,1); v1->AddNode(v8,1); 
360   v9->AddNode(tv100,1);
361   //
362   // central drum 
363   //
364   // flange + sandwich
365   //
366   TGeoPcon *cfl = new TGeoPcon(0.,360.,6);
367   cfl->DefineSection(0,-71.1,59.7,61.2);
368   cfl->DefineSection(1,-68.6,59.7,61.2);
369   //
370   cfl->DefineSection(2,-68.6,60.6324,61.2);
371   cfl->DefineSection(3,68.6,60.6324,61.2); 
372   //
373   cfl->DefineSection(4,68.6,59.7,61.2);
374   cfl->DefineSection(5,71.1,59.7,61.2);  
375   //
376   TGeoVolume *cflv = new TGeoVolume("TPC_CDR",cfl,m3);
377   // sandwich
378   TGeoTube *cd1 = new TGeoTube(60.6424,61.19,71.1);
379   TGeoTube *cd2 = new TGeoTube(60.6462,61.1862,71.1);
380   TGeoTube *cd3 = new TGeoTube(60.6662,61.1662,71.1);  
381   //
382   TGeoMedium *sm6 = gGeoManager->GetMedium("TPC_Prepreg1");
383   TGeoVolume *cd1v = new TGeoVolume("TPC_CDR1",cd1,sm2); //tedlar
384   TGeoVolume *cd2v = new TGeoVolume("TPC_CDR2",cd2,sm6);// prepreg1
385   TGeoVolume *cd3v = new TGeoVolume("TPC_CDR3",cd3,sm4); //nomex
386   //
387   // seals for central drum 2 copies
388   //
389   TGeoTube *cs = new TGeoTube(56.9,61.2,0.1);
390   TGeoMedium *sm7 = gGeoManager->GetMedium("TPC_Mylar");
391   TGeoVolume *csv = new TGeoVolume("TPC_CDRS",cs,sm7);
392   v1->AddNode(csv,1,new TGeoTranslation(0.,0.,-71.2));
393   v1->AddNode(csv,2,new TGeoTranslation(0.,0.,71.2));
394   //
395   // seal collars 
396   TGeoPcon *se = new TGeoPcon(0.,360.,6);
397   se->DefineSection(0,-72.8,59.7,61.2);
398   se->DefineSection(1,-72.3,59.7,61.2);
399   //
400   se->DefineSection(2,-72.3,58.85,61.2);
401   se->DefineSection(3,-71.6,58.85,61.2); 
402   //
403   se->DefineSection(4,-71.6,59.7,61.2);
404   se->DefineSection(5,-71.3,59.7,61.2);  
405   //
406   TGeoVolume *sev = new TGeoVolume("TPC_CDCE",se,m3);
407   //
408   TGeoTube *si = new TGeoTube(56.9,58.8,1.); 
409   TGeoVolume *siv = new TGeoVolume("TPC_CDCI",si,m3);
410   //
411   // define reflection matrix 
412   //
413   TGeoRotation *ref = new TGeoRotation("ref",90.,0.,90.,90.,180.,0.);
414   //
415   cd1v->AddNode(cd2v,1); cd2v->AddNode(cd3v,1); cflv->AddNode(cd1v,1);
416   //
417   v1->AddNode(siv,1,new TGeoTranslation(0.,0.,-69.9));
418   v1->AddNode(siv,2,new TGeoTranslation(0.,0.,69.9));
419   v1->AddNode(sev,1); v1->AddNode(sev,2,ref); v1->AddNode(cflv,1);
420   //
421   // central membrane - 2 rings and a mylar membrane - assembly
422   //
423   TGeoTube *ih = new TGeoTube(81.05,84.05,0.3);
424   TGeoTube *oh = new TGeoTube(250.,256.,.5);
425   TGeoTube *mem = new TGeoTube(84.05,250,0.01);
426   TGeoVolume *ihv = new TGeoVolume("TPC_IHVH",ih,m3);
427   TGeoVolume *ohv = new TGeoVolume("TPC_OHVH",oh,m3);
428   TGeoVolume *memv = new TGeoVolume("TPC_HV",mem,sm7);
429   //
430   TGeoVolumeAssembly *cm = new TGeoVolumeAssembly("TPC_HVMEM");
431   cm->AddNode(ihv,1);
432   cm->AddNode(ohv,1);
433   cm->AddNode(memv,1);
434   v9->AddNode(cm,1);
435   //
436   // end caps - they are make as an assembly of single segments
437   // containing both readout chambers
438   //
439   Double_t openingAngle = 10.*TMath::DegToRad();
440   Double_t thick=1.5; // rib
441   Double_t shift = thick/TMath::Sin(openingAngle);
442   //
443   Double_t lowEdge = 86.3; // hole in the wheel
444   Double_t upEdge = 240.4; // hole in the wheel
445   //
446   new TGeoTubeSeg("sec",74.5,264.4,3.,0.,20.);
447   //
448   TGeoPgon *hole = new TGeoPgon("hole",0.,20.,1,4);
449   //
450   hole->DefineSection(0,-3.5,lowEdge-shift,upEdge-shift);
451   hole->DefineSection(1,-1.5,lowEdge-shift,upEdge-shift);
452   //
453   hole->DefineSection(2,-1.5,lowEdge-shift,upEdge+3.-shift);
454   hole->DefineSection(3,3.5,lowEdge-shift,upEdge+3.-shift);
455   //
456   Double_t ys = shift*TMath::Sin(openingAngle); 
457   Double_t xs = shift*TMath::Cos(openingAngle);
458   TGeoTranslation *tr = new TGeoTranslation("tr",xs,ys,0.);  
459   tr->RegisterYourself();
460   TGeoCompositeShape *chamber = new TGeoCompositeShape("sec-hole:tr");
461   TGeoVolume *sv = new TGeoVolume("TPC_WSEG",chamber,m3);
462   TGeoPgon *bar = new TGeoPgon("bar",0.,20.,1,2);
463   bar->DefineSection(0,-3.,131.5-shift,136.5-shift);
464   bar->DefineSection(1,1.5,131.5-shift,136.5-shift);
465   TGeoVolume *barv = new TGeoVolume("TPC_WBAR",bar,m3);
466   TGeoVolumeAssembly *ch = new TGeoVolumeAssembly("TPC_WCH");//empty segment
467   //
468   ch->AddNode(sv,1); ch->AddNode(barv,1,tr);
469   //
470   // readout chambers
471   //
472   // IROC first
473   //
474    TGeoTrd1 *ibody = new TGeoTrd1(13.8742,21.3328,4.29,21.15);
475    TGeoVolume *ibdv = new TGeoVolume("TPC_IROCB",ibody,m3);
476   // empty space
477    TGeoTrd1 *emp = new TGeoTrd1(12.3742,19.8328,3.99,19.65);
478    TGeoVolume *empv = new TGeoVolume("TPC_IROCE",emp,m1);
479    ibdv->AddNode(empv,1,new TGeoTranslation(0.,-0.3,0.));
480    //bars
481    Double_t tga = (19.8328-12.3742)/39.3;
482    Double_t xmin,xmax;
483    xmin = 9.55*tga+12.3742;
484    xmax = 9.95*tga+12.3742;
485    TGeoTrd1 *ib1 = new TGeoTrd1(xmin,xmax,3.29,0.2);
486    TGeoVolume *ib1v = new TGeoVolume("TPC_IRB1",ib1,m3);
487    empv->AddNode(ib1v,1,new TGeoTranslation("tt1",0.,0.7,-9.9));
488    xmin=19.4*tga+12.3742;
489    xmax=19.9*tga+12.3742;
490    TGeoTrd1 *ib2 = new TGeoTrd1(xmin,xmax,3.29,0.25);
491    TGeoVolume *ib2v = new TGeoVolume("TPC_TRB2",ib2,m3);
492    empv->AddNode(ib2v,1,new TGeoTranslation(0.,0.7,0.));
493    xmin=29.35*tga+12.3742;
494    xmax=29.75*tga+12.3742;
495    TGeoTrd1 *ib3 = new TGeoTrd1(xmin,xmax,3.29,0.2); 
496    TGeoVolume *ib3v = new TGeoVolume("TPC_IRB3",ib3,m3);    
497    empv->AddNode(ib3v,1,new TGeoTranslation(0.,0.7,9.9));
498    //
499    // holes for connectors
500    //
501    TGeoBBox *conn = new TGeoBBox(0.4,0.3,4.675); // identical for iroc and oroc
502    TGeoVolume *connv = new TGeoVolume("TPC_RCCON",conn,m1);
503    TString fileName(gSystem->Getenv("ALICE_ROOT"));
504    fileName += "/TPC/conn_iroc.dat";
505    ifstream in;
506    in.open(fileName.Data(), ios_base::in); // asci file
507    for(Int_t i =0;i<86;i++){
508       Double_t y = 3.99;
509       Double_t x,z,ang;
510       in>>x>>z>>ang;
511       z-=26.5;
512       TGeoRotation *rrr = new TGeoRotation();
513       rrr->RotateY(ang);
514       TGeoCombiTrans *trans = new TGeoCombiTrans("trans",x,y,z,rrr);
515       ibdv->AddNode(connv,i+1,trans);
516    }
517    in.close();
518    // "cap"
519    new TGeoTrd1("icap",14.5974,23.3521,1.19,24.825);
520    // "hole"
521    new TGeoTrd1("ihole",13.8742,21.3328,1.2,21.15);
522    TGeoTranslation *tr1 = new TGeoTranslation("tr1",0.,0.,1.725);  
523    tr1->RegisterYourself();
524    TGeoCompositeShape *ic = new TGeoCompositeShape("icap-ihole:tr1");
525    TGeoVolume *icv = new TGeoVolume("TPC_IRCAP",ic,m3);
526    //
527    // pad plane and wire fixations
528    //
529    TGeoTrd1 *pp = new TGeoTrd1(14.5974,23.3521,0.3,24.825); //pad+iso
530    TGeoMedium *m4 = gGeoManager->GetMedium("TPC_G10");
531    TGeoVolume *ppv = new TGeoVolume("TPC_IRPP",pp,m4);
532    TGeoPara *f1 = new TGeoPara(.6,.5,24.825,0.,-10.,0.);
533    TGeoVolume *f1v = new TGeoVolume("TPC_IRF1",f1,m4);
534    TGeoPara *f2 = new TGeoPara(.6,.5,24.825,0.,10.,0.);
535    TGeoVolume *f2v = new TGeoVolume("TPC_IRF2",f2,m4);
536    //
537    TGeoVolumeAssembly *iroc = new TGeoVolumeAssembly("TPC_IROC");
538    //
539    iroc->AddNode(ibdv,1);
540    iroc->AddNode(icv,1,new TGeoTranslation(0.,3.1,-1.725));
541    iroc->AddNode(ppv,1,new TGeoTranslation(0.,4.59,-1.725));
542    tga =(23.3521-14.5974)/49.65; 
543    Double_t xx = 24.825*tga+14.5974-0.6;
544    iroc->AddNode(f1v,1,new TGeoTranslation(-xx,5.39,-1.725));
545    iroc->AddNode(f2v,1,new TGeoTranslation(xx,5.39,-1.725));
546    //
547    // OROC
548    //
549    TGeoTrd1 *obody = new TGeoTrd1(22.2938,40.5084,4.19,51.65);
550    TGeoVolume *obdv = new TGeoVolume("TPC_OROCB",obody,m3);
551    TGeoTrd1 *oemp = new TGeoTrd1(20.2938,38.5084,3.89,49.65);
552    TGeoVolume *oempv = new TGeoVolume("TPC_OROCE",oemp,m1);
553    obdv->AddNode(oempv,1,new TGeoTranslation(0.,-0.3,0.));
554    //horizontal bars
555    tga=(38.5084-20.2938)/99.3;
556    xmin=tga*10.2+20.2938;
557    xmax=tga*10.6+20.2938;
558    TGeoTrd1 *ob1 = new TGeoTrd1(xmin,xmax,2.915,0.2);
559    TGeoVolume *ob1v = new TGeoVolume("TPC_ORB1",ob1,m3);
560    //
561    xmin=22.55*tga+20.2938;
562    xmax=24.15*tga+20.2938;
563    TGeoTrd1 *ob2 = new TGeoTrd1(xmin,xmax,2.915,0.8);
564    TGeoVolume *ob2v = new TGeoVolume("TPC_ORB2",ob2,m3);
565    //
566    xmin=36.1*tga+20.2938;
567    xmax=36.5*tga+20.2938;
568    TGeoTrd1 *ob3 = new TGeoTrd1(xmin,xmax,2.915,0.2);
569    TGeoVolume *ob3v = new TGeoVolume("TPC_ORB3",ob3,m3);
570    //
571    xmin=49.0*tga+20.2938;
572    xmax=50.6*tga+20.2938;   
573    TGeoTrd1 *ob4 = new TGeoTrd1(xmin,xmax,2.915,0.8);
574    TGeoVolume *ob4v = new TGeoVolume("TPC_ORB4",ob4,m3);
575    //
576    xmin=63.6*tga+20.2938;
577    xmax=64.0*tga+20.2938;
578    TGeoTrd1 *ob5 = new TGeoTrd1(xmin,xmax,2.915,0.2);
579    TGeoVolume *ob5v = new TGeoVolume("TPC_ORB5",ob5,m3);
580    //
581    xmin=75.5*tga+20.2938;
582    xmax=77.15*tga+20.2938;
583    TGeoTrd1 *ob6 = new TGeoTrd1(xmin,xmax,2.915,0.8);
584    TGeoVolume *ob6v = new TGeoVolume("TPC_ORB6",ob6,m3);
585    //
586    xmin=88.7*tga+20.2938;
587    xmax=89.1*tga+20.2938;
588    TGeoTrd1 *ob7 = new TGeoTrd1(xmin,xmax,2.915,0.2);
589    TGeoVolume *ob7v = new TGeoVolume("TPC_ORB7",ob7,m3);
590    //
591    oempv->AddNode(ob1v,1,new TGeoTranslation(0.,0.975,-39.25));
592    oempv->AddNode(ob2v,1,new TGeoTranslation(0.,0.975,-26.3));
593    oempv->AddNode(ob3v,1,new TGeoTranslation(0.,0.975,-13.35));
594    oempv->AddNode(ob4v,1,new TGeoTranslation(0.,0.975,0.15));
595    oempv->AddNode(ob5v,1,new TGeoTranslation(0.,0.975,14.15));
596    oempv->AddNode(ob6v,1,new TGeoTranslation(0.,0.975,26.7));
597    oempv->AddNode(ob7v,1,new TGeoTranslation(0.,0.975,39.25));
598    // vertical bars
599    TGeoBBox *ob8 = new TGeoBBox(0.8,2.915,5.1); 
600    TGeoBBox *ob9 = new TGeoBBox(0.8,2.915,5.975);
601    TGeoBBox *ob10 = new TGeoBBox(0.8,2.915,5.775);
602    TGeoBBox *ob11 = new TGeoBBox(0.8,2.915,6.25);
603    TGeoBBox *ob12 = new TGeoBBox(0.8,2.915,6.5);
604    //
605    TGeoVolume *ob8v = new TGeoVolume("TPC_ORB8",ob8,m3);
606    TGeoVolume *ob9v = new TGeoVolume("TPC_ORB9",ob9,m3);
607    TGeoVolume *ob10v = new TGeoVolume("TPC_ORB10",ob10,m3);
608    TGeoVolume *ob11v = new TGeoVolume("TPC_ORB11",ob11,m3);
609    TGeoVolume *ob12v = new TGeoVolume("TPC_ORB12",ob12,m3);
610    //
611    oempv->AddNode(ob8v,1,new TGeoTranslation(0.,0.975,-44.55));
612    oempv->AddNode(ob8v,2,new TGeoTranslation(0.,0.975,44.55));
613    oempv->AddNode(ob9v,1,new TGeoTranslation(0.,0.975,-33.075));
614    oempv->AddNode(ob9v,2,new TGeoTranslation(0.,0.975,-19.525));
615    oempv->AddNode(ob10v,1,new TGeoTranslation(0.,0.975,20.125));
616    oempv->AddNode(ob10v,2,new TGeoTranslation(0.,0.975,33.275));
617    oempv->AddNode(ob11v,1,new TGeoTranslation(0.,0.975,-6.9));
618    oempv->AddNode(ob12v,1,new TGeoTranslation(0.,0.975,7.45));
619    //
620    // holes for connectors
621    //
622    fileName = gSystem->Getenv("ALICE_ROOT");
623    fileName += "/TPC/conn_oroc.dat";
624    in.open(fileName.Data(), ios_base::in); // asci file
625    for(Int_t i =0;i<78;i++){
626       Double_t y =3.89;
627       Double_t x,z,ang;
628       Double_t x1,z1,x2,z2;
629       in>>x>>z>>ang;        
630       Double_t xr = 4.7*TMath::Sin(ang*TMath::DegToRad());
631       Double_t zr = 4.7*TMath::Cos(ang*TMath::DegToRad());
632       //
633       x1=xr+x; x2=-xr+x; z1=zr+z; z2 = -zr+z;      
634       //
635       TGeoRotation *rr = new TGeoRotation();
636       rr->RotateY(ang); 
637       z1-=54.95;
638       z2-=54.95;
639       TGeoCombiTrans *trans1 = new TGeoCombiTrans("trans1",x1,y,z1,rr);
640       TGeoCombiTrans *trans2 = new TGeoCombiTrans("trans2",x2,y,z2,rr);
641       obdv->AddNode(connv,i+1,trans1);
642       obdv->AddNode(connv,i+79,trans2);
643    }
644    in.close();
645    // cap
646    new TGeoTrd1("ocap",23.3874,43.5239,1.09,57.1);
647    new TGeoTrd1("ohole",22.2938,40.5084,1.09,51.65);
648    TGeoTranslation *tr5 = new TGeoTranslation("tr5",0.,0.,-2.15);
649    tr5->RegisterYourself();
650    TGeoCompositeShape *oc = new TGeoCompositeShape("ocap-ohole:tr5");
651    TGeoVolume *ocv = new TGeoVolume("TPC_ORCAP",oc,m3);
652    //
653    // pad plane and wire fixations
654    //
655    TGeoTrd1 *opp = new TGeoTrd1(23.3874,43.5239,0.3,57.1);
656    TGeoVolume *oppv = new TGeoVolume("TPC_ORPP",opp,m4);
657    //
658    tga=(43.5239-23.3874)/114.2;
659    TGeoPara *f3 = new TGeoPara(.7,.6,57.1,0.,-10.,0.);
660    TGeoPara *f4 = new TGeoPara(.7,.6,57.1,0.,10.,0.);  
661    xx = 57.1*tga+23.3874-0.7;
662    TGeoVolume *f3v = new TGeoVolume("TPC_ORF1",f3,m4);
663    TGeoVolume *f4v = new TGeoVolume("TPC_ORF2",f4,m4);
664    //
665    TGeoVolumeAssembly *oroc = new TGeoVolumeAssembly("TPC_OROC");
666    //
667    oroc->AddNode(obdv,1);
668    oroc->AddNode(ocv,1,new TGeoTranslation(0.,3.1,2.15));
669    oroc->AddNode(oppv,1,new TGeoTranslation(0.,4.49,2.15));
670    oroc->AddNode(f3v,1,new TGeoTranslation(-xx,5.39,2.15));
671    oroc->AddNode(f4v,1,new TGeoTranslation(xx,5.39,2.15));
672    // 
673    // now iroc and oroc are placed into a sector...
674    //
675    TGeoVolumeAssembly *secta = new TGeoVolumeAssembly("TPC_SECT"); // a-side
676    TGeoVolumeAssembly *sectc = new TGeoVolumeAssembly("TPC_SECT"); // c-side
677    //
678
679    TGeoRotation rot1("rot1",90.,90.,0.);
680    TGeoRotation rot2("rot2");
681    rot2.RotateY(10.);
682    TGeoRotation *rot = new TGeoRotation("rot");
683    *rot=rot1*rot2;
684    //
685    Double_t x0,y0;
686    x0=110.2*TMath::Cos(openingAngle);
687    y0=110.2*TMath::Sin(openingAngle);
688    TGeoCombiTrans *combi1a = new TGeoCombiTrans("combi1",x0,y0,1.09+0.195,rot); //a-side 
689    TGeoCombiTrans *combi1c = new TGeoCombiTrans("combi1",x0,y0,1.09+0.222,rot); //c-side
690    x0=188.45*TMath::Cos(openingAngle);
691    y0=188.45*TMath::Sin(openingAngle);
692    TGeoCombiTrans *combi2a = new TGeoCombiTrans("combi2",x0,y0,0.99+0.195,rot); //a-side
693    TGeoCombiTrans *combi2c = new TGeoCombiTrans("combi2",x0,y0,0.99+0.222,rot); //c-side
694    //
695    // A-side
696    //
697    secta->AddNode(ch,1);
698    secta->AddNode(iroc,1,combi1a);
699    secta->AddNode(oroc,1,combi2a);
700    //
701    // C-side
702    //
703    sectc->AddNode(ch,1);
704    sectc->AddNode(iroc,1,combi1c);
705    sectc->AddNode(oroc,1,combi2c);
706    //
707    // now I try to make  wheels...
708    //
709    TGeoVolumeAssembly *wheela = new TGeoVolumeAssembly("TPC_ENDCAP");
710    TGeoVolumeAssembly *wheelc = new TGeoVolumeAssembly("TPC_ENDCAP");
711    //
712    for(Int_t i =0;i<18;i++){
713      Double_t phi = (20.*i);
714      TGeoRotation *r = new TGeoRotation();
715      r->RotateZ(phi);
716      wheela->AddNode(secta,i+1,r);
717      wheelc->AddNode(sectc,i+1,r);    
718    }
719    // wheels in the drift volume!
720    TGeoCombiTrans *combi3 = new TGeoCombiTrans("combi3",0.,0.,256.6,ref);
721    v9->AddNode(wheela,1,combi3);
722    v9->AddNode(wheelc,2,new TGeoTranslation(0.,0.,-256.6));
723    //_____________________________________________________________
724    // service support wheel
725    //_____________________________________________________________
726   TGeoPgon *sw = new TGeoPgon(0.,20.,1,2);
727   sw->DefineSection(0,-4.,80.5,251.75);
728   sw->DefineSection(1,4.,80.5,251.75); 
729   TGeoVolume *swv = new TGeoVolume("TPC_SWSEG",sw,m3); //Al
730   //
731   thick=1.;
732   shift = thick/TMath::Sin(openingAngle);
733   TGeoPgon *sh = new TGeoPgon(0.,20.,1,2);
734   sh->DefineSection(0,-4.,81.5-shift,250.75-shift);
735   sh->DefineSection(1,4.,81.5-shift,250.75-shift);
736   TGeoVolume *shv = new TGeoVolume("TPC_SWS1",sh,m1); //Air
737   //
738   TGeoMedium *m9 =  gGeoManager->GetMedium("TPC_Si"); 
739   TGeoPgon *el = new TGeoPgon(0.,20.,1,2);
740   el->DefineSection(0,-1.872,81.5-shift,250.75-shift);
741   el->DefineSection(1,1.872,81.5-shift,250.75-shift);
742   TGeoVolume *elv = new TGeoVolume("TPC_ELEC",el,m9); //Si 
743   //
744   shv->AddNode(elv,1);
745   //
746   //
747   ys = shift*TMath::Sin(openingAngle);
748   xs = shift*TMath::Cos(openingAngle);
749   swv->AddNode(shv,1,new TGeoTranslation(xs,ys,0.));
750   // cover
751   TGeoPgon *co = new TGeoPgon(0.,20.,1,2);
752   co->DefineSection(0,-0.5,77.,255.25);
753   co->DefineSection(1,0.5,77.,255.25);
754   TGeoVolume *cov = new TGeoVolume("TPC_SWC1",co,m3);//Al
755   // hole in a cover
756   TGeoPgon *coh = new TGeoPgon(0.,20.,1,2);
757   shift=4./TMath::Sin(openingAngle);
758   coh->DefineSection(0,-0.5,85.-shift,247.25-shift);
759   coh->DefineSection(1,0.5,85.-shift,247.25-shift);  
760   //
761   TGeoVolume *cohv = new TGeoVolume("TPC_SWC2",coh,m1);
762   //
763   ys = shift*TMath::Sin(openingAngle);
764   xs = shift*TMath::Cos(openingAngle);  
765   cov->AddNode(cohv,1,new TGeoTranslation(xs,ys,0.));
766   //
767   // Sector as an Assembly
768   //
769   TGeoVolumeAssembly *swhs = new TGeoVolumeAssembly("TPC_SSWSEC");
770   swhs->AddNode(swv,1);
771   swhs->AddNode(cov,1,new TGeoTranslation(0.,0.,-4.5));
772   swhs->AddNode(cov,2,new TGeoTranslation(0.,0.,4.5));
773   //
774   // SSW as an Assembly of sectors
775   //
776  TGeoVolumeAssembly *swheel = new TGeoVolumeAssembly("TPC_SSWHEEL");
777    for(Int_t i =0;i<18;i++){
778      Double_t phi = (20.*i);
779      TGeoRotation *r = new TGeoRotation();
780      r->RotateZ(phi);
781      swheel->AddNode(swhs,i+1,r);   
782    }
783    v1->AddNode(swheel,1,new TGeoTranslation(0.,0.,-284.6));
784    v1->AddNode(swheel,2,new TGeoTranslation(0.,0.,284.6));
785    //
786   //----------------------------------------------------------
787   // TPc Support Rods - MAKROLON
788   //----------------------------------------------------------
789   TGeoMedium *m6=gGeoManager->GetMedium("TPC_Makrolon");
790   TGeoMedium *m7=gGeoManager->GetMedium("TPC_Cu");
791   TGeoMedium *m10 =  gGeoManager->GetMedium("TPC_Alumina");
792   TGeoMedium *m11 =  gGeoManager->GetMedium("TPC_Peek");
793   TGeoMedium *m12 =  gGeoManager->GetMedium("TPC_Water");
794   // upper and lower rods differ in length!
795   Double_t *upar;
796   upar=NULL;
797   gGeoManager->Volume("TPC_Rod","TUBE",m6->GetId(),upar);
798   upar=new Double_t [3];
799   upar[0]=1.8;
800   upar[1]=2.2;
801   
802   //
803   //HV rods - makrolon + 0.58cm (diameter) Cu
804   TGeoTube *hvr = new TGeoTube(0.,2.2,126.64);
805   TGeoTube *hvc = new TGeoTube(0.,0.29,126.64);
806   //
807   TGeoVolume *hvrv = new TGeoVolume("TPC_HV_Rod",hvr,m6);
808   TGeoVolume *hvcv = new TGeoVolume("TPC_HV_Cable",hvc,m7);
809   hvrv->AddNode(hvcv,1);
810   //
811   // resistor rods
812   //
813   TGeoTube *cri = new TGeoTube(0.,0.45,126.64); //inner 
814   TGeoTube *cro = new TGeoTube(0.,0.45,126.54); //outer 
815   TGeoTube *cwi = new TGeoTube(0.,0.15,126.64); // water inner
816   TGeoTube *cwo = new TGeoTube(0.,0.15,126.54); // water outer
817   //
818   TGeoVolume *criv = new TGeoVolume("TPC_CR_I",cri,m10);
819   TGeoVolume *crov = new TGeoVolume("TPC_CR_O",cro,m10);    
820   TGeoVolume *cwiv = new TGeoVolume("TPC_W_I",cwi,m11);
821   TGeoVolume *cwov = new TGeoVolume("TPC_W_O",cwo,m11);   
822   //
823   // ceramic rod with water
824   //
825   criv->AddNode(cwiv,1); 
826   crov->AddNode(cwov,1);
827   //
828   TGeoTube *pri =new TGeoTube(0.2,0.35,126.64); //inner 
829   TGeoTube *pro = new TGeoTube(0.2,0.35,126.54); //outer    
830   //
831   // peek rod
832   //
833   TGeoVolume *priv = new TGeoVolume("TPC_PR_I",pri,m12);
834   TGeoVolume *prov = new TGeoVolume("TPC_PR_O",pro,m12);
835   //
836   // resistor rods assembly
837   //
838    TGeoRotation *rotr = new TGeoRotation("rotr");
839    rotr->RotateZ(-21.);
840   TGeoTube *rri = new TGeoTube(1.8,2.2,126.64);//inner
841   TGeoTube *rro = new TGeoTube(1.8,2.2,126.54);//inner
842   //
843   TGeoVolume *rriv = new TGeoVolume("TPC_RR_I",rri,m6);
844   TGeoVolume *rrov = new TGeoVolume("TPC_RR_O",rro,m6);  
845   //
846   TGeoVolumeAssembly *rrin = new TGeoVolumeAssembly("TPC_RROD_I");
847   TGeoVolumeAssembly *rrou = new TGeoVolumeAssembly("TPC_RROD_O");
848   rrin->AddNode(rriv,1);
849   rrin->AddNode(criv,1,new TGeoTranslation(0.5,0.866, 0.));
850   rrin->AddNode(criv,2,new TGeoTranslation(0.5,-0.866, 0.)); 
851   rrin->AddNode(priv,1); 
852   //
853   rrou->AddNode(rrov,1);
854   rrou->AddNode(crov,1,new TGeoTranslation(0.5,0.866, 0.));
855   rrou->AddNode(crov,2,new TGeoTranslation(0.5,-0.866, 0.)); 
856   rrou->AddNode(prov,1); 
857   for(Int_t i=0;i<18;i++){
858     Double_t angle,x,y;
859     Double_t z,r; 
860     angle=TMath::DegToRad()*20.*(Double_t)i;
861     r=81.5;
862     x=r * TMath::Cos(angle);
863     y=r * TMath::Sin(angle);
864     upar[2]=126.64; //lower
865     z= 126.96;
866     if(i==3){
867       v9->AddNode(rrin,1,new TGeoCombiTrans(x,y,z,rotr)); //A
868       v9->AddNode(rrin,2,new TGeoCombiTrans(x,y,-z,rotr)); //C       
869     } 
870     else { 
871       gGeoManager->Node("TPC_Rod",i+1,"TPC_Drift",x,y,z,0,kTRUE,upar,3);//shaft
872       gGeoManager->Node("TPC_Rod",i+19,"TPC_Drift",x,y,-z,0,kTRUE,upar,3);//muon
873     }
874
875
876     //
877     r=254.25;
878     x=r * TMath::Cos(angle);
879     y=r * TMath::Sin(angle);
880     upar[2]=126.54; //upper
881     z=127.06;
882     //
883     if(i==15){
884       //v9->AddNode(hvrv,1,new TGeoTranslation(x,y,z));//A-side only
885       v9->AddNode(hvrv,1,new TGeoTranslation(x,y,127.14));//A-side only
886       gGeoManager->Node("TPC_Rod",i+55,"TPC_Drift",x,y,-z,0,kTRUE,upar,3);
887     }
888     else if(i==11){
889       v9->AddNode(rrou,1,new TGeoCombiTrans(x,y,z,rotr)); //A
890       v9->AddNode(rrou,2,new TGeoCombiTrans(x,y,-z,rotr)); //C
891     }
892     else{
893     //
894       gGeoManager->Node("TPC_Rod",i+37,"TPC_Drift",x,y,z,0,kTRUE,upar,3);
895       gGeoManager->Node("TPC_Rod",i+55,"TPC_Drift",x,y,-z,0,kTRUE,upar,3);
896     }
897
898   }
899
900   TGeoVolume *alice = gGeoManager->GetVolume("ALIC");
901   alice->AddNode(v1,1);
902   
903
904 } // end of function
905
906
907 //_____________________________________________________________________________
908 void AliTPCv0::CreateMaterials()
909 {
910   //
911   // Define materials for the TPC
912   //
913   AliTPC::CreateMaterials();
914 }
915
916
917 //_____________________________________________________________________________
918 void AliTPCv0::Init()
919 {
920   //
921   // Initialise Time Projection Chamber version 0
922   //
923  
924   printf("%s: *** TPC version 0 initialized***\n",ClassName()); 
925
926   //  printf("TPC version 0 initialized\n");
927 }
928
929 //_____________________________________________________________________________
930 void AliTPCv0::StepManager()
931 {
932   //
933   // Procedure called at each step in the TPC
934   //
935 }