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