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