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