]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCv0.cxx
New TPC geometry.
[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 /*
17 $Log$
18 Revision 1.22  2001/03/13 13:07:33  kowal2
19 Corrected bug in the TPC mother volume geometry.
20 Thanks to A. Morsch
21
22 Revision 1.21  2000/11/14 10:48:57  kowal2
23 Correct material used for TSA4. Thanks to J. Barbosa.
24
25 Revision 1.20  2000/11/06 17:24:10  kowal2
26 Corrected bug in the outer containment vessel and
27 the outer field cage geometry.
28 Thanks to J. Barbosa.
29
30 Revision 1.19  2000/11/02 16:55:24  kowal2
31 Corrected bug in the inner containment vessel geometry.
32 Thanks to J. Belikov
33
34 Revision 1.18  2000/11/02 07:24:11  kowal2
35 Correction in the TPC geometry.
36 Changes due to the new hit structure.
37
38 Revision 1.17  2000/07/10 20:57:39  hristov
39 Update of TPC code and macros by M.Kowalski
40
41 Revision 1.16  2000/06/30 12:07:50  kowal2
42 Updated from the TPC-PreRelease branch
43
44 Revision 1.15.2.4  2000/06/26 07:39:42  kowal2
45 Changes to obey the coding rules
46
47 Revision 1.15.2.3  2000/06/25 08:38:41  kowal2
48 Splitted from AliTPCtracking
49
50 Revision 1.15.2.2  2000/06/16 12:58:13  kowal2
51 Changed parameter settings
52
53 Revision 1.15.2.1  2000/06/09 07:15:07  kowal2
54
55 Defaults loaded automatically (hard-wired)
56 Optional parameters can be set via macro called in the constructor
57
58 Revision 1.15  2000/05/15 10:00:30  kowal2
59 Corrected bug in the TPC geometry, thanks to Ivana Hrivnacova
60
61 Revision 1.14  2000/04/17 09:37:33  kowal2
62 removed obsolete AliTPCDigitsDisplay.C
63
64 Revision 1.13.8.2  2000/04/10 08:33:44  kowal2
65
66 Updated readout chambers
67
68 Revision 1.13.8.1  2000/04/10 07:56:53  kowal2
69 Not used anymore - removed
70
71 Revision 1.13  1999/11/04 17:28:06  fca
72 Correct barrel part of HV Degrader
73
74 Revision 1.12  1999/10/08 06:27:23  fca
75 Corrected bug in the HV degrader geometry, thanks to G.Tabary
76
77 Revision 1.11  1999/10/04 13:39:54  fca
78 Correct array index problem
79
80 Revision 1.10  1999/09/29 09:24:34  fca
81 Introduction of the Copyright and cvs Log
82
83 */
84 //
85
86 ///////////////////////////////////////////////////////////////////////////////
87 //                                                                           //
88 //  Time Projection Chamber version 0 -- "coarse" TPC                        //
89 //                                                                           //
90 //Begin_Html
91 /*
92 <img src="picts/AliTPCv0Class.gif">
93 */
94 //End_Html
95 //                                                                           //
96 //                                                                           //
97 ///////////////////////////////////////////////////////////////////////////////
98
99 #include <TMath.h>
100 #include <TGeometry.h>
101 #include <TNode.h>
102 #include <TTUBE.h>
103 #include "AliTPCv0.h"
104 #include "AliRun.h"
105 #include <iostream.h>
106 #include <fstream.h>
107 #include "AliMC.h"
108 #include "AliConst.h"
109
110 #include "AliTPCParamSR.h"
111 #include "AliTPCDigitsArray.h"
112
113 ClassImp(AliTPCv0)
114  
115 //_____________________________________________________________________________
116 AliTPCv0::AliTPCv0(const char *name, const char *title) 
117          :AliTPC(name, title)
118 {
119   //
120   // Standard creator for TPC version 0
121   //
122
123   SetGasMixt(2,20,10,-1,0.9,0.1,0.);
124
125   if (fTPCParam)
126      fTPCParam->Write(fTPCParam->GetTitle());
127 }
128
129 //_____________________________________________________________________________
130 void AliTPCv0::CreateGeometry()
131 {
132
133   //
134   // Creation of the TPC version 0, i.e. no sensitive volumes,
135   // only the material distribution
136   //
137   //Begin_Html
138   /*
139     <img src="picts/AliTPC.gif">
140   */
141   //End_Html
142   //Begin_Html
143   /*
144     <img src="picts/AliTPCv0Tree.gif">
145   */
146   //End_Html
147
148   //---------------------------------------------------------------
149   //  TPC geometry
150   //
151   //  Origin: Marek Kowalski, INP Cracow
152   //  Marek.Kowalski@ifj.edu.pl
153   //---------------------------------------------------------------
154   Float_t dm[50];
155
156   Int_t *idtmed = fIdtmed->GetArray(); // TPC media
157
158   Int_t idrotm[120]; // rotation matrices
159
160   Int_t nRotMat = 0; // actual number of rotation matrices
161
162
163   //
164   //  Mother volume TPC (Air) - all volumes will be positioned in it
165   //
166
167   dm[0]=0.;
168   dm[1]=360.;
169   dm[2]=8.;
170
171   //
172
173   dm[3]=-283.7;
174   dm[4]=65.6;
175   dm[5]=278.;
176
177   //
178
179   dm[6]=-253.6;
180   dm[7]=65.6;
181   dm[8]=278.;
182
183   //
184
185   dm[9]=-73.3;
186   dm[10]=60.9;
187   dm[11]=278.;  
188
189   //
190
191   dm[12]=-73.3;
192   dm[13]=56.9;
193   dm[14]=278.;
194
195   //
196
197   dm[15]=73.3;
198   dm[16]=56.9;
199   dm[17]=278.;
200
201   //
202
203   dm[18]=73.3;
204   dm[19]=60.9;
205   dm[20]=278.;
206
207   //
208
209   dm[21]=253.6;
210   dm[22]=65.6;
211   dm[23]=278.;
212
213   //
214
215   dm[24]=283.7;
216   dm[25]=65.6;
217   dm[26]=278.;
218   
219   gMC->Gsvolu("TPC ","PCON",idtmed[0],dm,27);
220
221   // outer part
222
223   //-------------------------------------------------------------------
224   //   Tpc Outer INsulator (CO2) - contains cont. vessel and field cage
225   //-------------------------------------------------------------------
226
227   dm[0]= 0.;
228   dm[1]= 360.;
229   dm[2]= 6.;
230
231   //
232
233   dm[3]=-253.6;
234   dm[4]=258.;
235   dm[5]=275.5;
236
237   //
238
239   dm[6]=-250.6;
240   dm[7]=258.;
241   dm[8]=275.5; 
242
243   //
244
245   dm[9]=-250.6;
246   dm[10]=258.;
247   dm[11]=278.;
248
249   //
250
251   dm[12]=253.6;
252   dm[13]=258.;
253   dm[14]=278.; 
254
255   //
256
257   dm[15]=253.6;
258   dm[16]=264.8;
259   dm[17]=278.;  
260
261   //
262
263   dm[18]=256.6;
264   dm[19]=264.8;
265   dm[20]=278.;
266
267   gMC->Gsvolu("TOIN","PCON",idtmed[3],dm,21);
268
269   //----------------------------------------------------------------
270   // Tpc Outer Contaiment Vessel  
271   //  mother volume - Al, daughters - composite (sandwich)
272   //----------------------------------------------------------------
273
274   dm[0]=0.;
275   dm[1]=360.;
276   dm[2]=6.;
277
278   //
279
280   dm[3]=-250.6;
281   dm[4]=270.4;
282   dm[5]=278.;
283
284   //
285
286   dm[6]=-247.6;
287   dm[7]=270.4;
288   dm[8]=278.; 
289
290   //
291
292   dm[9]=-247.6;
293   dm[10]=274.81;
294   dm[11]=278.;
295
296   //
297
298   dm[12]=253.6;
299   dm[13]=274.81;
300   dm[14]=278.;
301
302   //
303
304   dm[15]=253.6;
305   dm[16]=264.8;
306   dm[17]=278.;
307
308   //
309
310   dm[18]=256.6;
311   dm[19]=264.8;
312   dm[20]=278.;
313
314   gMC->Gsvolu("TOCV","PCON",idtmed[4],dm,21);
315
316   // Daughter volumes - sandwich
317
318   // Tpc SAndwich 1 - Al
319
320   dm[0]=274.81;
321   dm[1]=278.;
322   dm[2]=252.1;
323
324   gMC->Gsvolu("TSA1","TUBE",idtmed[4],dm,3);
325
326   // Tpc SAndwich 2 - epoxy glue (I use Lexan)
327
328   dm[0] += 5.e-3;
329   dm[1] -= 5.e-3;
330
331   gMC->Gsvolu("TSA2","TUBE",idtmed[14],dm,3);
332
333   // Tpc SAndwich 3 - Tedlar
334
335   dm[0] += 0.01;
336   dm[1] -= 0.01;
337   
338   gMC->Gsvolu("TSA3","TUBE",idtmed[9],dm,3);
339
340
341   // Tpc SAndwich 4 - fiber glass (G10)
342
343   dm[0] += 5.e-3;
344   dm[1] -= 5.e-3;
345
346   gMC->Gsvolu("TSA4","TUBE",idtmed[12],dm,3);  
347
348   // Tpc SAndwich 5 - NOMEX honeycomb
349
350   dm[0] += 0.075;
351   dm[1] -= 0.075;   
352   
353   gMC->Gsvolu("TSA5","TUBE",idtmed[6],dm,3);
354
355   // 5->4->3->2->1->TCOV
356
357
358   gMC->Gspos("TSA5",1,"TSA4",0.,0.,0.,0,"ONLY");
359   gMC->Gspos("TSA4",1,"TSA3",0.,0.,0.,0,"ONLY");
360   gMC->Gspos("TSA3",1,"TSA2",0.,0.,0.,0,"ONLY");
361   gMC->Gspos("TSA2",1,"TSA1",0.,0.,0.,0,"ONLY");  
362
363   gMC->Gspos("TSA1",1,"TOCV",0.,0.,3.,0,"ONLY");
364
365   // TCOV-> TOIN
366
367   gMC->Gspos("TOCV",1,"TOIN",0.,0.,0.,0,"ONLY");
368
369   //-------------------------------------------------------
370   //  Tpc Outer Field Cage
371   //  mother volume - Al, daughters - composite (sandwich)
372   //-------------------------------------------------------
373
374   dm[0]=0.;
375   dm[1]=360.;
376   dm[2]=6.;
377
378   //
379
380   dm[3]=-253.6;
381   dm[4]=258.;
382   dm[5]=275.5;
383
384   //
385
386   dm[6]=-250.6;
387   dm[7]=258.;
388   dm[8]=275.5;
389
390   //
391
392   dm[9]=-250.6;
393   dm[10]=258.;
394   dm[11]=260.05;
395
396   //
397
398   dm[12]=250.6;
399   dm[13]=258.;
400   dm[14]=260.05;
401
402   //
403
404   dm[15]=250.6;
405   dm[16]=258.;
406   dm[17]=275.5;
407
408   //
409
410   dm[18]=253.6;
411   dm[19]=258.;
412   dm[20]=275.5;
413
414   gMC->Gsvolu("TOFC","PCON",idtmed[4],dm,21);
415
416   // Daughter volumes 
417
418   // Tpc SAndwich 6 - Tedlar
419
420   dm[0]= 258.;
421   dm[1]= 260.05;
422   dm[2]= 252.1;
423
424   gMC->Gsvolu("TSA6","TUBE",idtmed[9],dm,3);
425
426   // Tpc SAndwich 7 - fiber glass
427
428   dm[0] += 5.e-3;
429   dm[1] -= 5.e-3;
430
431   gMC->Gsvolu("TSA7","TUBE",idtmed[12],dm,3);
432
433
434   // Tpc SAndwich 8 - NOMEX
435
436   dm[0] += 0.02;
437   dm[1] -= 0.02;
438
439   gMC->Gsvolu("TSA8","TUBE",idtmed[6],dm,3);    
440
441   // 8->7->6->TOFC
442
443   gMC->Gspos("TSA8",1,"TSA7",0.,0.,0.,0,"ONLY");
444   gMC->Gspos("TSA7",1,"TSA6",0.,0.,0.,0,"ONLY"); 
445   gMC->Gspos("TSA6",1,"TOFC",0.,0.,0.,0,"ONLY");
446
447   // TOFC->TOIN
448
449   gMC->Gspos("TOFC",1,"TOIN",0.,0.,0.,0,"ONLY");
450
451   // TOIN->TPC
452
453   gMC->Gspos("TOIN",1,"TPC ",0.,0.,0.,0,"ONLY");
454
455   // inner part
456
457   //--------------------------------------------------------------------
458   // Tpc Inner INsulator (CO2) - inner f.c. will be placed there
459   // Inner containment vessel will be placed directly in the TPC
460   //-------------------------------------------------------------------- 
461
462   dm[0]=0.;
463   dm[1]=360.;
464   dm[2]=4.;
465
466   // 
467
468   dm[3]=-253.6;
469   dm[4]=65.9;
470   dm[5]=79.2;
471
472   //
473
474   dm[6]=-73.3;
475   dm[7]=61.2;
476   dm[8]=79.2;  
477
478   //
479
480   dm[9]=73.3;
481   dm[10]=61.2;
482   dm[11]=79.2;
483
484   //
485
486   dm[12]=253.6;
487   dm[13]=65.9;
488   dm[14]=79.2;
489
490   gMC->Gsvolu("TIIN","PCON",idtmed[3],dm,15);
491
492   // the middle part of the F.C. is thinner - carve out the strip - Ne-CO2
493
494   dm[0]=79.16;
495   dm[1]=79.2;
496   dm[2]=88.;
497
498   gMC->Gsvolu("TII1","TUBE",idtmed[1],dm,3);
499
500   gMC->Gspos("TII1",1,"TIIN",0.,0.,0.,0,"ONLY");
501
502   //-----------------------------------------------------
503   // Tpc Inner Field Cage
504   // mother volume - Al, daughters - composite (sandwich)
505   //------------------------------------------------------
506
507   dm[0]=0.;
508   dm[1]=360.;
509   dm[2]=10.;
510
511   //
512
513   dm[3]=-253.6;
514   dm[4]=70.3;
515   dm[5]=79.2;
516
517   //
518
519   dm[6]=-250.6;
520   dm[7]=70.3;
521   dm[8]=79.2;
522
523   //
524
525   dm[9]=-250.6;
526   dm[10]=77.05;
527   dm[11]=79.2;
528
529   //
530
531   dm[12]=-88.;
532   dm[13]=77.05;
533   dm[14]=79.2;
534
535   //
536
537   dm[15]=-88.;
538   dm[16]=77.09;
539   dm[17]=79.16;
540
541   //
542
543   dm[18]=88.;
544   dm[19]=77.09;
545   dm[20]=79.16;
546
547   //
548
549   dm[21]=88.;
550   dm[22]=77.05;
551   dm[23]=79.2;
552
553   //
554
555   dm[24]=250.6;
556   dm[25]=77.05;
557   dm[26]=79.2;
558
559   //
560
561   dm[27]=250.6;
562   dm[28]=70.3;
563   dm[29]=79.2;
564
565   //
566
567   dm[30]=253.6;
568   dm[31]=70.3;
569   dm[32]=79.2;
570
571   gMC->Gsvolu("TIFC","PCON",idtmed[4],dm,33);
572
573   // daughter volumes - central part
574
575   // Tpc Sandwich 9 -Tedlar
576
577   dm[0]=77.09;
578   dm[1]=79.16;
579   dm[2]=88.;
580
581   gMC->Gsvolu("TSA9","TUBE",idtmed[9],dm,3); 
582
583   // Tpc Sandwich 10 - fiber glass (G10) 
584
585   dm[0] += 5.e-3;
586   dm[1] -= 5.e-3;
587
588   gMC->Gsvolu("TS10","TUBE",idtmed[12],dm,3);
589
590   // Tpc Sandwich 11 - NOMEX
591
592   dm[0] += 0.03;
593   dm[1] -= 0.03; 
594
595   gMC->Gsvolu("TS11","TUBE",idtmed[6],dm,3);
596
597   // 11->10->9->TIFC
598
599   gMC->Gspos("TS11",1,"TS10",0.,0.,0.,0,"ONLY");
600   gMC->Gspos("TS10",1,"TSA9",0.,0.,0.,0,"ONLY");
601
602   gMC->Gspos("TSA9",1,"TIFC",0.,0.,0.,0,"ONLY");
603
604   // daughter volumes - outer parts (reinforced)
605
606   // Tpc Sandwich 12 -Tedlar
607
608   dm[0]=77.05;
609   dm[1]=79.2;
610   dm[2]=82.05;
611
612   gMC->Gsvolu("TS12","TUBE",idtmed[9],dm,3);
613
614   // Tpc Sandwich 13 - fiber glass (G10) 
615
616   dm[0] += 5.e-3;
617   dm[1] -= 5.e-3;
618
619   gMC->Gsvolu("TS13","TUBE",idtmed[12],dm,3);
620
621   // Tpc Sandwich 14 - NOMEX
622
623   dm[0] += 0.07;
624   dm[1] -= 0.07;  
625
626   gMC->Gsvolu("TS14","TUBE",idtmed[6],dm,3);
627
628   // 14->13->12->TIFC
629
630   gMC->Gspos("TS14",1,"TS13",0.,0.,0.,0,"ONLY");
631   gMC->Gspos("TS13",1,"TS12",0.,0.,0.,0,"ONLY"); 
632
633   gMC->Gspos("TS12",1,"TIFC",0.,0.,170.05,0,"ONLY");
634   gMC->Gspos("TS12",2,"TIFC",0.,0.,-170.05,0,"ONLY"); 
635
636   // place this inside the inner insulator
637
638   gMC->Gspos("TIFC",1,"TIIN",0.,0.,0.,0,"ONLY");
639
640   // and now in the TPC...
641
642   gMC->Gspos("TIIN",1,"TPC ",0.,0.,0.,0,"ONLY");
643
644   //---------------------------------------------------------
645   // Tpc Inner Containment vessel - Cones
646   //---------------------------------------------------------
647
648   dm[0]=0.;
649   dm[1]=360.;
650   dm[2]=8.;
651
652   //
653
654   dm[3]=71.8;
655   dm[4]=56.9;
656   dm[5]=59.4;
657
658   //
659
660   dm[6]=73.;
661   dm[7]=56.9;
662   dm[8]=59.4;
663
664   //
665
666   dm[9]=73.;
667   dm[10]=56.9;
668   dm[11]=61.2;
669
670   //
671
672   dm[12]=73.3;
673   dm[13]=56.9;
674   dm[14]=61.2;
675
676   //
677    
678   dm[15]=73.3;
679   dm[16]=60.9;
680   dm[17]=61.2;
681
682   // 
683
684   dm[18]=253.6;
685   dm[19]=65.6;
686   dm[20]=65.9; 
687
688   //
689
690   dm[21]=253.6;
691   dm[22]=65.6;
692   dm[23]=76.4;
693
694   //
695
696   dm[24]=256.3;
697   dm[25]=65.6;
698   dm[26]=76.4;
699
700   gMC->Gsvolu("TICC","PCON",idtmed[4],dm,27);
701
702   Float_t phi1,phi2,phi3,theta1,theta2,theta3; // rotation angles
703
704   // reflection matrix
705   
706   theta1 = 90.;
707   phi1   = 0.;
708   theta2 = 90.;
709   phi2   = 270.;
710   theta3 = 180.;
711   phi3   = 0.;
712
713   AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
714
715   gMC->Gspos("TICC",1,"TPC ",0.,0.,0.,0,"ONLY");
716   gMC->Gspos("TICC",2,"TPC ",0.,0.,0.,idrotm[nRotMat],"ONLY");
717
718
719   //---------------------------------------------------------
720   // Tpc Inner Containment vessel - Middle part -Al
721   //---------------------------------------------------------
722
723   dm[0]=0.;
724   dm[1]=360.;
725   dm[2]=6.;
726
727   //
728
729   dm[3]=-71.6;
730   dm[4]=60.2;
731   dm[5]=61.2;
732
733   //
734
735   dm[6]=-69.1;
736   dm[7]=60.2;
737   dm[8]=61.2;
738
739   //
740
741   dm[9]=-69.1;
742   dm[10]=60.64;
743   dm[11]=61.2;  
744
745   //
746
747   dm[12]=69.1;
748   dm[13]=60.64;
749   dm[14]=61.2;
750
751   //
752
753   dm[15]=69.1;
754   dm[16]=60.2;
755   dm[17]=61.2;
756
757   //
758
759   dm[18]=71.6;
760   dm[19]=60.2;
761   dm[20]=61.2;
762
763   gMC->Gsvolu("TICM","PCON",idtmed[4],dm,21);
764
765   // Tpc Sandwich 15 - Al
766
767   dm[0]=60.64;
768   dm[1]=61.2;
769   dm[2]=70.1;
770
771   gMC->Gsvolu("TS15","TUBE",idtmed[4],dm,3);
772
773   // Tpc Sandwich 16 -  epoxy glue
774
775   dm[0] += 5.e-3;
776   dm[1] -= 5.e-3;
777
778   gMC->Gsvolu("TS16","TUBE",idtmed[14],dm,3);
779
780   // Tpc Sandwich 17 - Tedlar
781
782   dm[0] += 0.01;
783   dm[1] -= 0.01;
784
785   gMC->Gsvolu("TS17","TUBE",idtmed[9],dm,3);
786
787   // Tpc Sandwich 18 - fiber glass
788
789   dm[0] += 5.e-3;
790   dm[1] -= 5.e-3;
791
792   gMC->Gsvolu("TS18","TUBE",idtmed[12],dm,3);  
793
794   // Tpc Sandwich 19 - Nomex
795
796   dm[0] += 0.01;
797   dm[1] -= 0.01;
798
799   gMC->Gsvolu("TS19","TUBE",idtmed[12],dm,3); 
800
801   // 19->18->17->16->15-> TICM
802
803   gMC->Gspos("TS19",1,"TS18",0.,0.,0.,0,"ONLY"); 
804   gMC->Gspos("TS18",1,"TS17",0.,0.,0.,0,"ONLY");
805   gMC->Gspos("TS17",1,"TS16",0.,0.,0.,0,"ONLY");
806   gMC->Gspos("TS16",1,"TS15",0.,0.,0.,0,"ONLY");
807
808   gMC->Gspos("TS15",1,"TICM ",0.,0.,0.,0,"ONLY");
809  
810
811   // TPc inner cont. vessel Joints
812
813   dm[0]=60.2;
814   dm[1]=61.2;
815   dm[2]=0.5;
816
817   gMC->Gsvolu("TPJ1","TUBE",idtmed[4],dm,3);
818
819   gMC->Gspos("TPJ1",1,"TPC ",0.,0.,72.3,0,"ONLY");
820   gMC->Gspos("TPJ1",2,"TPC ",0.,0.,-72.3,0,"ONLY");
821
822   //
823
824   dm[0]=0.;
825   dm[1]=360.;
826   dm[2]=4.;
827
828   //
829
830   dm[3]=70.8;
831   dm[4]=58.4;
832   dm[5]=60.1;
833
834   //
835
836   dm[6]=71.2;
837   dm[7]=58.4;
838   dm[8]=60.1;
839
840   //
841
842   dm[9]=71.2;
843   dm[10]=58.4;
844   dm[11]=59.4;
845
846   //
847
848   dm[12]=71.6;
849   dm[13]=58.4;
850   dm[14]=59.4;
851
852   gMC->Gsvolu("TPJ2","PCON",idtmed[4],dm,15);
853
854   gMC->Gspos("TPJ2",1,"TPC ",0.,0.,0.,0,"ONLY");
855   gMC->Gspos("TPJ2",2,"TPC ",0.,0.,0.,idrotm[nRotMat],"ONLY");
856
857
858
859   // Tpc Inner Containment vessel Seal (Viton, I use Lexan for a time being)
860
861   dm[0]=58.4;
862   dm[1]=61.2;
863   dm[2]=0.1;
864
865   gMC->Gsvolu("TICS","TUBE",idtmed[14],dm,3);
866
867   gMC->Gspos("TICS",1,"TPC ",0.,0.,71.7,0,"ONLY");
868   gMC->Gspos("TICS",2,"TPC ",0.,0.,-71.7,0,"ONLY"); 
869
870   // TICM -> TPC
871
872   gMC->Gspos("TICM",1,"TPC ",0.,0.,0.,0,"ONLY");
873
874   //
875
876   nRotMat++; // prepare for the next rotation matrix 
877
878   //---------------------------------------------------------
879   //  Tpc Dift Gas volume Nonsensitive (Ne-CO2 90/10)
880   //  and its daughters (HV membrane, rods, readout chambers)
881   //---------------------------------------------------------
882
883   dm[0]= 79.2;
884   dm[1]= 258.0;
885   dm[2]= 253.6;
886
887   gMC->Gsvolu("TDGN","TUBE",idtmed[1],dm,3); 
888
889   // sector opening angles
890
891   Float_t innerOpenAngle = fTPCParam->GetInnerAngle();
892
893   // sector angle shift
894
895   Float_t innerAngleShift = fTPCParam->GetInnerAngleShift();
896
897   // number of sectors
898
899   Int_t nInnerSector = fTPCParam->GetNInnerSector()/2;
900   Int_t nOuterSector = fTPCParam->GetNOuterSector()/2;
901
902   // All above parameters are identical for inner and outer
903   // sectors. The distinction is kept for the historical reasons
904   // and eventually will disappear.
905
906   Float_t tanAlpha = TMath::Tan(0.5*innerOpenAngle);
907   Float_t cosAlpha = TMath::Sqrt(1.+tanAlpha*tanAlpha);
908   Float_t space;
909
910   //-------------------------------------------------------------------------
911   //   Tpc Inner Readout Chambers 
912   //-------------------------------------------------------------------------
913
914   dm[0]= 14.483;
915   dm[1]= 23.3345; 
916   dm[2]= 1.6; // thickness
917   dm[3]= 25.1;
918
919   gMC->Gsvolu("TIRC","TRD1",idtmed[4],dm,4);
920
921   // this volume will be positioned in the empty space
922   // of the end-cap to avoid overlaps
923
924   dm[0]= 13.7305;
925   dm[1]= 21.1895;
926   dm[2]= 2.25;
927   dm[3]= 21.15;
928
929   gMC->Gsvolu("TIC1","TRD1",idtmed[4],dm,4);
930
931
932   //------------------------------------------------
933   // Tpc Inner readout chamber Pad Plane
934   //------------------------------------------------
935
936   dm[0]= 14.483;
937   dm[1]= 23.3345;
938   dm[2]= 0.5;
939   dm[3]= 25.1;
940
941   gMC->Gsvolu("TIPP","TRD1",idtmed[12],dm,4);
942
943   // 
944
945   dm[0] -= 1.218511934;
946   dm[1] -= 1.218511934;
947   dm[2] = 0.35;
948
949   gMC->Gsvolu("TIC3","TRD1",idtmed[1],dm,4);
950
951   gMC->Gspos("TIC3",1,"TIPP",0.,0.15,0.,0,"ONLY");
952
953   gMC->Gspos("TIPP",1,"TIRC",0.,1.1,0.,0,"ONLY");
954
955
956   //----------------------------------------------
957   // Tpc Readout Chambers Empty spaces - for both
958   // inner and outer sectors
959   //----------------------------------------------
960
961   gMC->Gsvolu("TRCE","TRD1",idtmed[0],dm,0);
962
963   // Inner sector - 4 spaces
964
965
966   dm[3] = 4.7625;
967   dm[0] = 12.472;
968
969   Float_t rr = 90.52;
970   Float_t zz;
971
972   zz= -12.7875;
973   
974   space = rr*tanAlpha-dm[0];
975
976   for(Int_t nsLow=0;nsLow<4;nsLow++){
977
978     rr += 9.525;
979     dm[1]= rr*tanAlpha - space;  
980
981     dm[2]=0.8;
982
983     gMC->Gsposp("TRCE",nsLow+1,"TIRC",0.,-0.8,zz,0,"ONLY",dm,4);
984
985     //
986
987     dm[2] = 1.2;
988
989     gMC->Gsposp("TRCE",nsLow+5,"TIC1",0.,1.05,zz-2.1,0,"ONLY",dm,4);
990
991     rr += 0.4;
992     dm[0] = rr*tanAlpha - space;
993     zz += (0.4+9.525); 
994
995   }
996
997   dm[0]= 12.472;
998   // dm[1] - this is the dm[1] from the previous TRCE
999   dm[2]= 1.05;
1000   dm[3]= 19.65;
1001
1002   gMC->Gsposp("TRCE",9,"TIC1",0.,-1.2,0.,0,"ONLY",dm,4);   
1003
1004   //
1005   // TPc Space for Connectors
1006   //
1007
1008   dm[0]= .3;
1009   dm[1]= .3;
1010   dm[2]= 4.5;
1011
1012   gMC->Gsvolu("TPSC","BOX ",idtmed[0],dm,3);
1013
1014   // TPC Connectors
1015
1016   dm[0]= .25;
1017   dm[1]= .15;
1018   dm[2]= 3.75;
1019
1020   gMC->Gsvolu("TPCC","BOX ",idtmed[13],dm,3); 
1021
1022   gMC->Gspos("TPCC",1,"TPSC",0.,0.15,0.,0,"ONLY");
1023
1024   zz = -12.7875;
1025
1026
1027   Float_t alpha;
1028   Float_t astep;
1029
1030   // inner part of the inner sector - 2 x 20 holes
1031   
1032   astep = 20.00096874/19.;
1033
1034   alpha = 10.00048437-astep;
1035
1036   Float_t x1,x2;
1037
1038     x1 = 13.31175725;
1039     x1 -= 0.996357832; 
1040
1041     x2 = 15.06180253;
1042     x2 -= 1.163028812;
1043
1044   Int_t ncon;
1045
1046   for(ncon=0;ncon<20;ncon++){
1047
1048     phi1 = 0.;
1049     theta1 = 90.+alpha;
1050     phi2=90.;
1051     theta2 = 90.;
1052     phi3 = (alpha>0) ? 0. : 180.;
1053     theta3 = TMath::Abs(alpha);
1054
1055     AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
1056
1057  
1058
1059     gMC->Gspos("TPSC",ncon+1,"TIRC",x1,0.3,-12.7875,idrotm[nRotMat],"ONLY");
1060     gMC->Gspos("TPSC",ncon+21,"TIRC",x2,0.3,-2.8625,idrotm[nRotMat],"ONLY");
1061
1062
1063     x1 -= 1.296357833;
1064     x2 -= 1.463028812;
1065
1066     alpha -= astep;   
1067     nRotMat++; 
1068
1069   }
1070
1071   // outer part of the inner sector - 2 x 25 holes
1072
1073    astep = 20.00096874/24.; 
1074    alpha = 10.00048437-astep;
1075
1076    x1 = 16.81184781;
1077    x1 -= 1.016295986;
1078
1079    x2 = 18.5618931;
1080    x2 -= 1.150914854;
1081
1082   for(ncon=0;ncon<25;ncon++){
1083
1084     phi1 = 0.;
1085     theta1 = 90.+alpha;
1086     phi2=90.;
1087     theta2 = 90.;
1088     phi3 = (alpha>0) ? 0. : 180.;
1089     theta3 = TMath::Abs(alpha);
1090
1091     AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
1092
1093  
1094
1095     gMC->Gspos("TPSC",ncon+41,"TIRC",x1,0.3,7.0625,idrotm[nRotMat],"ONLY");
1096     gMC->Gspos("TPSC",ncon+66,"TIRC",x2,0.3,16.9875,idrotm[nRotMat],"ONLY");
1097
1098
1099     x1 -= 1.316295986;
1100     x2 -= 1.450914854;
1101
1102     alpha -= astep;   
1103     nRotMat++; 
1104
1105   }  
1106
1107   //--------------------------------------------------------------------------
1108   //  TPC Outer Readout Chambers
1109   //  this is NOT a final design
1110   //--------------------------------------------------------------------------
1111
1112   dm[0]= 23.3875;
1113   dm[1]= 43.524;
1114   dm[2]= 1.5; //thickness
1115   dm[3]= 57.1;
1116
1117   gMC->Gsvolu("TORC","TRD1",idtmed[4],dm,4);
1118
1119   //------------------------------------------------
1120   // Tpc Outer readout chamber Pad Plane
1121   //------------------------------------------------
1122
1123   dm[2]= 0.5;
1124
1125   gMC->Gsvolu("TOPP","TRD1",idtmed[12],dm,4);
1126
1127   dm[0] -= 1.218511934;
1128   dm[1] -= 1.218511934;
1129   dm[2] = 0.35;
1130
1131   gMC->Gsvolu("TOC3","TRD1",idtmed[1],dm,4);
1132
1133   gMC->Gspos("TOC3",1,"TOPP",0.,0.15,0.,0,"ONLY");
1134
1135   gMC->Gspos("TOPP",1,"TORC",0.,1.0,0.,0,"ONLY");
1136
1137   // empty space
1138
1139   dm[0]= 21.035;
1140   dm[1]= 38.7205;
1141   dm[2]= 0.7; 
1142   dm[3]= 50.15;
1143
1144   gMC->Gsposp("TRCE",10,"TORC",0.,-0.8,-2.15,0,"ONLY",dm,4);  
1145
1146   dm[0]= 22.2935;
1147   dm[1]= 40.5085;
1148   dm[2]= 2.25;
1149   dm[3]= 51.65;
1150
1151   gMC->Gsvolu("TOC1","TRD1",idtmed[4],dm,4);
1152
1153   dm[0]= 21.35;
1154   dm[1]= 38.7205;
1155   dm[2]= 2.25;
1156   dm[3]= 50.15;
1157
1158   gMC->Gsposp("TRCE",11,"TOC1",0.,0.,0.,0,"ONLY",dm,4);
1159
1160   //-----------------------------------------------
1161   // Tpc Services Support Wheel
1162   //-----------------------------------------------
1163
1164   dm[0]=0.;
1165   dm[1]=360.;
1166   dm[2]=18.;
1167   dm[3]=2.;
1168
1169   dm[4]= -5.;
1170   dm[5]= 77.017;
1171   dm[6]= 255.267;
1172
1173   dm[7]= 5.;
1174   dm[8]= dm[5];
1175   dm[9]= dm[6];
1176
1177   gMC->Gsvolu("TSSW","PGON",idtmed[4],dm,10);
1178
1179   // Tpc Services Wheel Cover
1180
1181   dm[4]= -0.5;
1182   dm[7]= 0.5;
1183
1184   gMC->Gsvolu("TSWC","PGON",idtmed[4],dm,10);
1185
1186   // Tpc Service wheel Cover Empty space
1187    
1188   dm[0]= 10.99;
1189   dm[1]= 39.599;
1190   dm[2]= .5;
1191   dm[3]= 81.125;
1192
1193   gMC->Gsvolu("TSCE","TRD1",idtmed[0],dm,4);
1194
1195   // Tpc services Wheel Empty Spaces
1196
1197   dm[0]= 13.18017507;
1198   dm[1]= 44.61045938;
1199   dm[2]= 4.;
1200   dm[3]= 89.125;
1201
1202   gMC->Gsvolu("TWES","TRD1",idtmed[0],dm,4);
1203
1204   // Tpc Services Wheel Bars
1205
1206   gMC->Gsvolu("TSWB","TRD1",idtmed[4],dm,0);
1207
1208   // bars-> TWES
1209
1210   dm[2]= 4.;
1211   dm[3]= .4;
1212
1213   dm[0]= 13.8149522;
1214   dm[1]= 13.95601379;
1215   
1216   gMC->Gsposp("TSWB",1,"TWES",0.,0.,-85.125,0,"ONLY",dm,4);
1217
1218   dm[0]= 43.83462067; 
1219   dm[1]= 43.97568225;
1220
1221   gMC->Gsposp("TSWB",2,"TWES",0.,0.,85.125,0,"ONLY",dm,4);
1222
1223   // TPc ELectronics - right now 30% X0 Si
1224
1225   dm[0]= 14.03813696;
1226   dm[1]= 43.3524075;
1227   dm[2]= 1.404;
1228   dm[3]= 83.125;
1229
1230   gMC->Gsvolu("TPEL","TRD1",idtmed[11],dm,4);
1231   gMC->Gspos("TPEL",1,"TWES",0.,0.,0.,0,"ONLY");
1232
1233   //--------------------------------------------------------------------------
1234   //  End caps
1235   //--------------------------------------------------------------------------
1236
1237   // TPc Main Wheel - Al
1238
1239   dm[0]= 74.9;
1240   dm[1]= 264.4;
1241   dm[2]= 3.0;
1242
1243   gMC->Gsvolu("TPMW","TUBE",idtmed[4],dm,3);
1244
1245   //--------------------------------------------------------------------------
1246   //  Tpc Empty Space for the Readout chambers
1247   //--------------------------------------------------------------------------  
1248
1249   Float_t rLow= 86.2;
1250   Float_t rUp= 243.5;
1251   Float_t dR = 0.5*(rUp-rLow);
1252
1253   space= 1.5/cosAlpha; // wheel ribs are 3.0 cm wide
1254
1255   dm[0]= rLow*tanAlpha-space;
1256   dm[1]= rUp*tanAlpha-space;
1257   dm[2] = 3.0;
1258   dm[3]= dR;
1259
1260   gMC->Gsvolu("TESR","TRD1",idtmed[0],dm,4);
1261
1262   // TIC1->TESR
1263
1264   gMC->Gspos("TIC1",1,"TESR",0.,0.75,-dR+23.97,0,"ONLY");
1265
1266   // TOC1->TESR
1267
1268   gMC->Gspos("TOC1",1,"TESR",0.,0.75,dR-55.02,0,"ONLY");
1269
1270   // Tpc Empty Space Bars - Al (daughters of TESR)
1271
1272   Float_t zBar;
1273
1274   gMC->Gsvolu("TESB","TRD1",idtmed[4],dm,0);
1275
1276   // lower bar
1277
1278   dm[0]= rLow*tanAlpha-space;
1279   dm[1]= 88.7*tanAlpha-space;
1280   dm[2]= 2.25;
1281   dm[3]= 1.275;
1282
1283   zBar = -dR+dm[3];
1284
1285   gMC->Gsposp("TESB",1,"TESR",0.,0.75,zBar,0,"ONLY",dm,4);
1286
1287   // middle bar
1288
1289   dm[0]= 131.65*tanAlpha-space;
1290   dm[1]= 136.5*tanAlpha-space;
1291   dm[3]= 2.425;
1292
1293   zBar = -dR +131.65+dm[3]-rLow;
1294
1295   gMC->Gsposp("TESB",2,"TESR",0.,0.75,zBar,0,"ONLY",dm,4);  
1296
1297   // upper bar
1298
1299   dm[0]= 240.4*tanAlpha-space;
1300   dm[1]= rUp*tanAlpha-space;
1301   dm[3]= 1.55;
1302
1303   zBar = dR-dm[3];
1304
1305   gMC->Gsposp("TESB",3,"TESR",0.,0.75,zBar,0,"ONLY",dm,4);
1306
1307   //  positioning of the empty spaces into the main wheel
1308
1309   Float_t rCenter,xc,yc;
1310   Float_t rInner,rOuter; // center of the inner and outer chamber
1311
1312   rCenter = rLow+dR;
1313
1314   rInner = 108.07;
1315   rOuter = 190.68;
1316
1317
1318   for(Int_t ns=0; ns<nInnerSector;ns++){
1319
1320     phi1 = ns * innerOpenAngle + innerAngleShift;
1321     phi1 *= kRaddeg; // in degrees
1322
1323     phi1 = (Float_t)TMath::Nint(phi1) + 270.;
1324
1325     if (phi1 > 360.) phi1 -= 360.;
1326
1327     theta1 = 90.;
1328     phi2   = 90.;
1329     theta2 = 180.;
1330     phi3   = ns * innerOpenAngle + innerAngleShift;
1331     phi3 *= kRaddeg; // in degrees
1332
1333     phi3 = (Float_t)TMath::Nint(phi3);
1334       
1335     if(phi3 > 360.) phi3 -= 360.;
1336
1337     theta3 = 90.;
1338
1339     // "holes"->End plate
1340
1341     xc = rCenter*TMath::Cos(phi3*kDegrad);
1342     yc = rCenter*TMath::Sin(phi3*kDegrad);
1343
1344     AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
1345
1346     gMC->Gspos("TESR",ns+1,"TPMW",xc,yc,0.,idrotm[nRotMat],"ONLY");
1347
1348     // TSCE->TSWC (services wheel volumes)
1349
1350     xc = 166.142*TMath::Cos(phi3*kDegrad);
1351     yc = 166.142*TMath::Sin(phi3*kDegrad);
1352
1353     gMC->Gspos("TSCE",ns+1,"TSWC",xc,yc,0.,idrotm[nRotMat],"ONLY");
1354     gMC->Gspos("TWES",ns+1,"TSSW",xc,yc,0.,idrotm[nRotMat],"ONLY");
1355
1356
1357     // readout chambers->TDGN (drift gas)
1358
1359     xc = rInner*TMath::Cos(phi3*kDegrad);
1360     yc = rInner*TMath::Sin(phi3*kDegrad);
1361
1362     gMC->Gspos("TIRC",ns+1,"TDGN",xc,yc,252.,idrotm[nRotMat],"ONLY");
1363      
1364     xc = rOuter*TMath::Cos(phi3*kDegrad);
1365     yc = rOuter*TMath::Sin(phi3*kDegrad);
1366
1367     gMC->Gspos("TORC",ns+1,"TDGN",xc,yc,252.1,idrotm[nRotMat],"ONLY");
1368
1369     nRotMat++;
1370
1371     theta2 = 0.; // reflection
1372
1373     AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3);
1374
1375     xc = rInner*TMath::Cos(phi3*kDegrad);
1376     yc = rInner*TMath::Sin(phi3*kDegrad);
1377
1378     gMC->Gspos("TIRC",ns+nInnerSector+1,"TDGN",xc,yc,-252.,idrotm[nRotMat],"ONLY");
1379
1380     xc = rOuter*TMath::Cos(phi3*kDegrad);
1381     yc = rOuter*TMath::Sin(phi3*kDegrad);
1382
1383     gMC->Gspos("TORC",ns+nOuterSector+1,"TDGN",xc,yc,-252.1,idrotm[nRotMat],"ONLY");
1384
1385     nRotMat++;
1386
1387   } 
1388   // TPMW->TPC
1389
1390   gMC->Gspos("TPMW",1,"TPC ",0.,0.,256.6,0,"ONLY");
1391   gMC->Gspos("TPMW",2,"TPC ",0.,0.,-256.6,idrotm[0],"ONLY");
1392
1393   //---------------------------------------------------------
1394   //  Tpc High Voltage Membrane - 100 microns of mylar
1395   //---------------------------------------------------------
1396
1397   dm[0]=82.8;
1398   dm[1]=252.;
1399   dm[2]=0.005;
1400
1401   gMC->Gsvolu("THVM","TUBE",idtmed[8],dm,3);
1402
1403   gMC->Gspos("THVM",1,"TDGN",0.,0.,0.,0,"ONLY");
1404
1405   // Tpc High Voltage membrane Holders
1406
1407   gMC->Gsvolu("THVH","TUBE",idtmed[4],dm,0);
1408
1409   
1410
1411   // inner
1412
1413   dm[0]=79.3;
1414   dm[1]=82.8;
1415   dm[2]=0.2;
1416
1417   gMC->Gsposp("THVH",1,"TDGN",0.,0.,0.,0,"ONLY",dm,3);
1418   
1419   // outer
1420
1421   dm[0]= 252.;
1422   dm[1]= 257.9;
1423   dm[2]= 0.4;
1424
1425   gMC->Gsposp("THVH",2,"TDGN",0.,0.,0.,0,"ONLY",dm,3);
1426
1427   //----------------------------------------------------------
1428   // TPc Support Rods - MAKROLON
1429   //----------------------------------------------------------
1430
1431   dm[0]= 0.9;
1432   dm[1]= 1.2;
1433
1434   gMC->Gsvolu("TPSR","TUBE",idtmed[7],dm,0); // inner and outer rods differ
1435
1436
1437   for(Int_t nrod=0;nrod<18;nrod++){
1438     Float_t angle=innerOpenAngle*(Float_t)nrod;
1439
1440     xc=81.5*TMath::Cos(angle);
1441     yc=81.5*TMath::Sin(angle); 
1442
1443     dm[2]=126.7;
1444
1445     gMC->Gsposp("TPSR",nrod+1,"TDGN",xc,yc,126.9,0,"ONLY",dm,3); 
1446     gMC->Gsposp("TPSR",nrod+19,"TDGN",xc,yc,-126.9,0,"ONLY",dm,3);
1447
1448     dm[2]=126.6;
1449
1450     xc=254.25*TMath::Cos(angle);
1451     yc=254.25*TMath::Sin(angle);   
1452       
1453     // rod number 54 contans the HV cable
1454
1455     if(nrod<17) {
1456       gMC->Gsposp("TPSR",nrod+37,"TDGN",xc,yc,127.,0,"ONLY",dm,3);
1457       gMC->Gsposp("TPSR",nrod+54,"TDGN",xc,yc,-127.,0,"ONLY",dm,3);
1458     }
1459     
1460   }
1461
1462   //----------------------------------------------------------
1463   // Tpc High Voltage Rod - MAKROLON + Copper cable
1464   //----------------------------------------------------------
1465
1466   // rod with cable (Left)
1467
1468   dm[0]=0.;
1469   dm[1]=2.25;
1470   dm[2]=126.6;
1471
1472   gMC->Gsvolu("THVL","TUBE",idtmed[7],dm,3);
1473
1474   // HV cable
1475  
1476   dm[0]=0.;
1477   dm[1]=0.3;
1478   dm[2]=126.6;
1479
1480   gMC->Gsvolu("THVC","TUBE",idtmed[10],dm,3);  
1481
1482   // empty space
1483
1484   dm[0]=0.3;
1485   dm[1]=1.;
1486   dm[2]=126.6;
1487
1488   gMC->Gsvolu("THVE","TUBE",idtmed[1],dm,3);
1489
1490   gMC->Gspos("THVC",1,"THVL",0.,0.,0.,0,"ONLY");
1491   gMC->Gspos("THVE",1,"THVL",0.,0.,0.,0,"ONLY");
1492
1493   // rod without cable
1494
1495   dm[0]=1.8;
1496   dm[1]=2.25;
1497   dm[2]=126.6;
1498
1499   gMC->Gsvolu("THVR","TUBE",idtmed[7],dm,3);
1500
1501   gMC->Gspos("THVL",1,"TDGN",xc,yc,-127.,0,"ONLY");  
1502   gMC->Gspos("THVR",1,"TDGN",xc,yc,127.,0,"ONLY");
1503
1504   gMC->Gspos("TDGN",1,"TPC ",0.,0.,0.,0,"ONLY"); 
1505  
1506   // services wheel cover -> wheel
1507
1508
1509   gMC->Gspos("TSWC",1,"TSSW",0.,0.,4.5,0,"ONLY");
1510   gMC->Gspos("TSWC",2,"TSSW",0.,0.,-4.5,0,"ONLY");
1511
1512
1513   // put the wheel into the TPC
1514
1515   gMC->Gspos("TSSW",1,"TPC ",0.,0.,278.7,0,"ONLY");
1516   gMC->Gspos("TSSW",2,"TPC ",0.,0.,-278.7,0,"ONLY");
1517
1518   //
1519
1520   gMC->Gsord("TPMW",6);
1521   gMC->Gsord("TSSW",6);
1522   gMC->Gsord("TSWC",6);
1523
1524   // put the TPC into ALIC (main mother volume)
1525
1526   gMC->Gspos("TPC ",1,"ALIC",0.,0.,0.,0,"ONLY");
1527
1528 } // end of function
1529
1530
1531 //_____________________________________________________________________________
1532 void AliTPCv0::CreateMaterials()
1533 {
1534   //
1535   // Define materials for the TPC
1536   //
1537   AliTPC::CreateMaterials();
1538 }
1539
1540 //_____________________________________________________________________________
1541 void AliTPCv0::DrawDetector()
1542 {
1543   //
1544   // Draw a shaded view of the Time Projection Chamber version 0
1545   //
1546
1547   // Set everything unseen
1548   gMC->Gsatt("*", "seen", -1);
1549   // 
1550   // Set ALIC mother transparent
1551   gMC->Gsatt("ALIC","SEEN",0);
1552   //
1553   // Set the volumes visible
1554   gMC->Gsatt("TPC ","SEEN",0);
1555   gMC->Gsatt("TOIN","SEEN",1);
1556   gMC->Gsatt("TOIN","COLO",7);
1557   gMC->Gsatt("TOCV","SEEN",1);
1558   gMC->Gsatt("TOCV","COLO",4);
1559   gMC->Gsatt("TSA1","SEEN",0);
1560   gMC->Gsatt("TSA2","SEEN",0);
1561   gMC->Gsatt("TSA3","SEEN",0);
1562   gMC->Gsatt("TSA4","SEEN",0);  
1563   gMC->Gsatt("TSA5","SEEN",0);
1564   gMC->Gsatt("TOFC","SEEN",1);
1565   gMC->Gsatt("TOFC","COLO",4);
1566   gMC->Gsatt("TSA6","SEEN",0);
1567   gMC->Gsatt("TSA7","SEEN",0);
1568   gMC->Gsatt("TSA8","SEEN",0);    
1569   gMC->Gsatt("TIIN","SEEN",1);
1570   gMC->Gsatt("TIIN","COLO",7);
1571   gMC->Gsatt("TII1","SEEN",0);
1572   gMC->Gsatt("TIFC","SEEN",1);
1573   gMC->Gsatt("TIFC","COLO",4);
1574   gMC->Gsatt("TSA9","SEEN",0); 
1575   gMC->Gsatt("TS10","SEEN",0);
1576   gMC->Gsatt("TS11","SEEN",0);
1577   gMC->Gsatt("TS12","SEEN",0);
1578   gMC->Gsatt("TS13","SEEN",0);
1579   gMC->Gsatt("TS14","SEEN",0);
1580   gMC->Gsatt("TICC","SEEN",0);
1581   gMC->Gsatt("TICM","SEEN",0);
1582   gMC->Gsatt("TS15","SEEN",0);
1583   gMC->Gsatt("TS16","SEEN",0);
1584   gMC->Gsatt("TS17","SEEN",0);
1585   gMC->Gsatt("TS18","SEEN",0);  
1586   gMC->Gsatt("TS19","SEEN",0); 
1587   gMC->Gsatt("TPJ1","SEEN",0);
1588   gMC->Gsatt("TPJ2","SEEN",0);
1589   gMC->Gsatt("TICS","SEEN",0);
1590   gMC->Gsatt("TDGN","SEEN",0); 
1591   gMC->Gsatt("TIRC","SEEN",0);
1592   gMC->Gsatt("TIC1","SEEN",1);
1593   gMC->Gsatt("TIPP","SEEN",0);
1594   gMC->Gsatt("TIC3","SEEN",0);
1595   gMC->Gsatt("TRCE","SEEN",0);
1596   gMC->Gsatt("TPSC","SEEN",0);
1597   gMC->Gsatt("TPCC","SEEN",0); 
1598   gMC->Gsatt("TORC","SEEN",0);
1599   gMC->Gsatt("TOPP","SEEN",0);
1600   gMC->Gsatt("TOC3","SEEN",0);
1601   gMC->Gsatt("TOC1","SEEN",1);
1602   gMC->Gsatt("TSSW","SEEN",1);
1603   gMC->Gsatt("TSWC","SEEN",1);
1604   gMC->Gsatt("TSSW","COLO",3);
1605   gMC->Gsatt("TSWC","COLO",3);
1606   gMC->Gsatt("TSCE","COLO",6);
1607   gMC->Gsatt("TSCE","SEEN",1);
1608   gMC->Gsatt("TWES","SEEN",0);
1609   gMC->Gsatt("TSWB","SEEN",0);
1610   gMC->Gsatt("TPEL","SEEN",0);
1611   gMC->Gsatt("TPMW","SEEN",1);
1612   gMC->Gsatt("TESR","SEEN",1);
1613   gMC->Gsatt("TPMW","COLO",12);
1614   gMC->Gsatt("TIC1","COLO",5);
1615   gMC->Gsatt("TOC1","COLO",5);
1616   gMC->Gsatt("TESB","SEEN",0);
1617   gMC->Gsatt("THVM","SEEN",1);
1618   gMC->Gsatt("THVM","COLO",11);
1619   gMC->Gsatt("THVH","SEEN",0);
1620   gMC->Gsatt("TPSR","SEEN",0); 
1621   gMC->Gsatt("THVL","SEEN",0);
1622   gMC->Gsatt("THVC","SEEN",0);  
1623   gMC->Gsatt("THVE","SEEN",0);
1624   gMC->Gsatt("THVR","SEEN",0);
1625
1626   //
1627   gMC->Gdopt("hide", "on");
1628   gMC->Gdopt("shad", "on");
1629   gMC->Gsatt("*", "fill", 7);
1630   gMC->SetClipBox(".");
1631   gMC->SetClipBox("TPMW",-300,300,-300,300,254.,270.);
1632   gMC->SetClipBox("TESR",-300,300,-300,300,254.,270.);
1633   gMC->SetClipBox("TSSW",-300,300,-300,300,283.,284.);
1634   gMC->SetClipBox("TSWC",-300,300,-300,300,283.,284.);
1635   gMC->SetClipBox("*", 0, 300, -300, 300, -290, 290);
1636   gMC->DefaultRange();
1637   gMC->Gdraw("alic", 40, 30, 0, 12, 9.5, .025, .025);
1638   gMC->Gdhead(1111, "Time Projection Chamber");
1639   gMC->Gdman(18, 4, "MAN");
1640   gMC->Gdopt("hide","off");
1641 }
1642
1643 //_____________________________________________________________________________
1644 void AliTPCv0::Init()
1645 {
1646   //
1647   // Initialise Time Projection Chamber version 0
1648   //
1649   printf("TPC version 0 initialized\n");
1650 }
1651
1652 //_____________________________________________________________________________
1653 void AliTPCv0::StepManager()
1654 {
1655   //
1656   // Procedure called at each step in the TPC
1657   //
1658 }