]>
Commit | Line | Data |
---|---|---|
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$ | |
720b23b8 | 18 | Revision 1.21 2000/11/02 16:55:24 kowal2 |
19 | Corrected bug in the inner containment vessel geometry. | |
20 | Thanks to J. Belikov | |
21 | ||
08db548a | 22 | Revision 1.20 2000/11/02 07:24:11 kowal2 |
23 | Correction in the TPC geometry. | |
24 | Changes due to the new hit structure. | |
25 | ||
6a905708 | 26 | Revision 1.19 2000/07/10 20:57:39 hristov |
27 | Update of TPC code and macros by M.Kowalski | |
28 | ||
37831078 | 29 | Revision 1.18 2000/06/30 12:07:50 kowal2 |
30 | Updated from the TPC-PreRelease branch | |
31 | ||
73042f01 | 32 | Revision 1.17.2.4 2000/06/26 07:39:42 kowal2 |
33 | Changes to obey the coding rules | |
34 | ||
35 | Revision 1.17.2.3 2000/06/25 08:38:41 kowal2 | |
36 | Splitted from AliTPCtracking | |
37 | ||
38 | Revision 1.17.2.2 2000/06/16 12:58:13 kowal2 | |
39 | Changed parameter settings | |
40 | ||
41 | Revision 1.17.2.1 2000/06/09 07:15:07 kowal2 | |
42 | ||
43 | Defaults loaded automatically (hard-wired) | |
44 | Optional parameters can be set via macro called in the constructor | |
45 | ||
46 | Revision 1.17 2000/05/15 10:00:30 kowal2 | |
47 | Corrected bug in the TPC geometry, thanks to Ivana Hrivnacova | |
48 | ||
e94dd9ca | 49 | Revision 1.16 2000/04/17 09:37:33 kowal2 |
50 | removed obsolete AliTPCDigitsDisplay.C | |
51 | ||
cc80f89e | 52 | Revision 1.15.8.2 2000/04/10 08:29:48 kowal2 |
53 | ||
54 | Different pad geometry for different sectors | |
55 | Updated readouch chambers geometry | |
56 | ||
57 | Revision 1.15.8.1 2000/04/10 07:56:53 kowal2 | |
58 | Not used anymore - removed | |
59 | ||
60 | Revision 1.15 1999/11/04 17:28:07 fca | |
61 | Correct barrel part of HV Degrader | |
62 | ||
a5371c42 | 63 | Revision 1.14 1999/10/08 06:27:23 fca |
64 | Corrected bug in the HV degrader geometry, thanks to G.Tabary | |
65 | ||
d183a600 | 66 | Revision 1.13 1999/10/04 13:39:54 fca |
67 | Correct array index problem | |
68 | ||
cdde5b1e | 69 | Revision 1.12 1999/09/29 09:24:34 fca |
70 | Introduction of the Copyright and cvs Log | |
71 | ||
4c039060 | 72 | */ |
73 | ||
73042f01 | 74 | // |
fe4da5cc | 75 | /////////////////////////////////////////////////////////////////////////////// |
76 | // // | |
77 | // Time Projection Chamber version 1 -- detailed TPC and fast simulation // | |
37831078 | 78 | // // |
fe4da5cc | 79 | //Begin_Html |
80 | /* | |
1439f98e | 81 | <img src="picts/AliTPCv1Class.gif"> |
fe4da5cc | 82 | */ |
83 | //End_Html | |
84 | // // | |
85 | // // | |
86 | /////////////////////////////////////////////////////////////////////////////// | |
87 | ||
88 | #include <TMath.h> | |
89 | #include <TGeometry.h> | |
90 | #include <TNode.h> | |
91 | #include <TBRIK.h> | |
92 | #include <TTUBE.h> | |
93 | #include "AliTPCv1.h" | |
94 | #include "AliRun.h" | |
95 | #include <iostream.h> | |
96 | #include <fstream.h> | |
97 | ||
98 | #include "AliMC.h" | |
99 | #include "AliConst.h" | |
100 | ||
8c555625 | 101 | #include "AliTPCParam.h" |
73042f01 | 102 | #include "AliTPCParamSR.h" |
cc80f89e | 103 | #include "AliTPCDigitsArray.h" |
73042f01 | 104 | #include <TInterpreter.h> |
8c555625 | 105 | |
fe4da5cc | 106 | ClassImp(AliTPCv1) |
6a905708 | 107 | |
108 | //_____________________________________________________________________________ | |
109 | ||
110 | AliTPCv1::AliTPCv1(){ | |
111 | ||
112 | fHitType = 1; | |
113 | ||
114 | } | |
fe4da5cc | 115 | |
116 | //_____________________________________________________________________________ | |
117 | AliTPCv1::AliTPCv1(const char *name, const char *title) | |
118 | :AliTPC(name, title) { | |
119 | // | |
120 | // Standard constructor for Time Projection Chamber | |
121 | // | |
37831078 | 122 | fIdSens=fIdLSec=fIdUSec=0; |
73042f01 | 123 | |
124 | SetGasMixt(2,20,10,-1,0.9,0.1,0.); | |
125 | ||
126 | if (fTPCParam) | |
127 | fTPCParam->Write(fTPCParam->GetTitle()); | |
6a905708 | 128 | |
129 | fHitType=1; | |
fe4da5cc | 130 | } |
131 | ||
132 | //_____________________________________________________________________________ | |
133 | void AliTPCv1::CreateGeometry() | |
134 | { | |
37831078 | 135 | //------------------------------------------------------------- |
fe4da5cc | 136 | // Creates geometry for Time Projection Chamber version 1 |
37831078 | 137 | // Detailed geometry -- Fast simulation - space points |
138 | // at the pad-rows centers | |
139 | // Origin M.Kowalski, INP Cracow, Marek.Kowalski@ifj.edu.pl | |
140 | //----------------------------------------------------------- | |
141 | ||
fe4da5cc | 142 | //Begin_Html |
143 | /* | |
37831078 | 144 | <img src="picts/AliTPC.gif"> |
fe4da5cc | 145 | */ |
146 | //End_Html | |
147 | //Begin_Html | |
148 | /* | |
1439f98e | 149 | <img src="picts/AliTPCv1Tree.gif"> |
fe4da5cc | 150 | */ |
151 | //End_Html | |
37831078 | 152 | Float_t dm[50]; |
fe4da5cc | 153 | |
37831078 | 154 | Int_t *idtmed = fIdtmed->GetArray(); // TPC media |
8c555625 | 155 | |
37831078 | 156 | Int_t idrotm[120]; // rotation matrices |
8c555625 | 157 | |
37831078 | 158 | Int_t nRotMat = 0; // actual number of rotation matrices |
1283eee5 | 159 | |
1283eee5 | 160 | |
37831078 | 161 | // |
162 | // Mother volume (Air) - all volumes will be positioned in it | |
163 | // | |
164 | ||
165 | dm[0]=0.; | |
166 | dm[1]=360.; | |
167 | dm[2]=12.; | |
1283eee5 | 168 | |
37831078 | 169 | // |
170 | ||
171 | dm[3]= -283.7; | |
172 | dm[4]= 66.2; | |
173 | dm[5]= 277.95; | |
1283eee5 | 174 | |
37831078 | 175 | // |
1283eee5 | 176 | |
37831078 | 177 | dm[6]= -255.6; |
178 | dm[7]= 66.2; | |
179 | dm[8]= 277.95; | |
1283eee5 | 180 | |
37831078 | 181 | // |
1283eee5 | 182 | |
37831078 | 183 | dm[9]= -73.3; |
184 | dm[10]= 59.0; | |
185 | dm[11]= 277.95; | |
1283eee5 | 186 | |
37831078 | 187 | // |
1283eee5 | 188 | |
37831078 | 189 | dm[12]= -73.3; |
190 | dm[13]= 56.9; | |
191 | dm[14]= 277.95; | |
1283eee5 | 192 | |
37831078 | 193 | // |
fe4da5cc | 194 | |
37831078 | 195 | dm[15]= -72.1; |
196 | dm[16]= 56.9; | |
197 | dm[17]= 277.95; | |
1283eee5 | 198 | |
37831078 | 199 | // |
1283eee5 | 200 | |
37831078 | 201 | dm[18]= -72.1; |
202 | dm[19]= 60.65; | |
203 | dm[20]= 277.95; | |
1283eee5 | 204 | |
37831078 | 205 | // |
1283eee5 | 206 | |
37831078 | 207 | dm[21]= 72.1; |
208 | dm[22]= 60.65; | |
209 | dm[23]= 277.95; | |
1283eee5 | 210 | |
37831078 | 211 | // |
1283eee5 | 212 | |
37831078 | 213 | dm[24]= 72.1; |
214 | dm[25]= 56.9; | |
215 | dm[26]= 277.95; | |
1283eee5 | 216 | |
37831078 | 217 | // |
1283eee5 | 218 | |
37831078 | 219 | dm[27]= 73.3; |
220 | dm[28]= 56.9; | |
221 | dm[29]= 277.95; | |
1283eee5 | 222 | |
37831078 | 223 | // |
1283eee5 | 224 | |
37831078 | 225 | dm[30]= 73.3; |
226 | dm[31]= 60.65; | |
227 | dm[32]= 277.95; | |
1283eee5 | 228 | |
37831078 | 229 | // |
1283eee5 | 230 | |
37831078 | 231 | dm[33]= 250.4; |
232 | dm[34]= 66.0; | |
233 | dm[35]= 277.95; | |
1283eee5 | 234 | |
37831078 | 235 | // |
1283eee5 | 236 | |
37831078 | 237 | dm[36]= 283.7; |
238 | dm[37]= 66.0; | |
239 | dm[38]= 277.95; | |
1283eee5 | 240 | |
1283eee5 | 241 | |
37831078 | 242 | gMC->Gsvolu("TPC ","PCON",idtmed[0],dm,39); |
1283eee5 | 243 | |
1283eee5 | 244 | |
37831078 | 245 | //------------------------------------------------------------------- |
246 | // Tpc Outer INsulator (CO2) | |
247 | //------------------------------------------------------------------- | |
1283eee5 | 248 | |
37831078 | 249 | dm[0]= 0.; |
250 | dm[1]= 360.; | |
251 | dm[2]= 6.; | |
1283eee5 | 252 | |
37831078 | 253 | // |
254 | ||
255 | dm[3]= -253.6; | |
256 | dm[4]= 258.; | |
257 | dm[5]= 266.65; | |
1283eee5 | 258 | |
37831078 | 259 | // |
1283eee5 | 260 | |
37831078 | 261 | dm[6]= -253.; |
262 | dm[7]= 258.; | |
263 | dm[8]= 266.65; | |
1283eee5 | 264 | |
37831078 | 265 | dm[9]= -253.; |
266 | dm[10]= 258.; | |
267 | dm[11]= 277.97; | |
1283eee5 | 268 | |
37831078 | 269 | dm[12]= 253.6; |
270 | dm[13]= 258.; | |
271 | dm[14]= 277.97; | |
1283eee5 | 272 | |
37831078 | 273 | // |
1283eee5 | 274 | |
37831078 | 275 | dm[15]= 253.6; |
276 | dm[16]= 265.2; | |
277 | dm[17]= 277.95; | |
cc80f89e | 278 | |
37831078 | 279 | // |
1283eee5 | 280 | |
37831078 | 281 | dm[18]= 255.6; |
282 | dm[19]= 265.2; | |
283 | dm[20]= 277.95; | |
1283eee5 | 284 | |
1283eee5 | 285 | |
37831078 | 286 | gMC->Gsvolu("TOIN","PCON",idtmed[3],dm,21); |
1283eee5 | 287 | |
37831078 | 288 | //--------------------------------------------------------------- |
289 | // shreds (G10) - TPC Rings | |
290 | //--------------------------------------------------------------- | |
cc80f89e | 291 | |
37831078 | 292 | gMC->Gsvolu("TPCR","TUBE",idtmed[12],dm,0); |
1283eee5 | 293 | |
37831078 | 294 | dm[0]= 258.; |
295 | dm[1]= 266.65; | |
296 | dm[2]= 0.3; | |
1283eee5 | 297 | |
37831078 | 298 | gMC->Gsposp("TPCR",1,"TOIN",0.,0.,-253.3,0,"ONLY",dm,3); // left bottom |
1283eee5 | 299 | |
37831078 | 300 | // |
1283eee5 | 301 | |
37831078 | 302 | dm[0]= 258.; |
303 | dm[1]= 270.9; | |
304 | dm[2]= 0.3; | |
1283eee5 | 305 | |
37831078 | 306 | gMC->Gsposp("TPCR",2,"TOIN",0.,0.,253.3,0,"ONLY",dm,3); // right |
1283eee5 | 307 | |
37831078 | 308 | // |
1283eee5 | 309 | |
37831078 | 310 | dm[0]= 272.2; |
311 | dm[1]= 277.95; | |
312 | dm[2]= 0.3; | |
1283eee5 | 313 | |
37831078 | 314 | gMC->Gsposp("TPCR",3,"TOIN",0.,0.,-250.7,0,"ONLY",dm,3); // left top |
1283eee5 | 315 | |
37831078 | 316 | //---------------------------------------------------------------- |
317 | // Tpc Outer Contaiment Vessel | |
318 | // mother volume - Al, daughters - composite (sandwich) | |
319 | //---------------------------------------------------------------- | |
320 | ||
321 | dm[0]= 0.; | |
322 | dm[1]= 360.; | |
720b23b8 | 323 | dm[2]=6.; |
1283eee5 | 324 | |
37831078 | 325 | // |
1283eee5 | 326 | |
37831078 | 327 | dm[3]= -250.4; |
328 | dm[4]= 272.2; | |
329 | dm[5]= 277.95; | |
1283eee5 | 330 | |
37831078 | 331 | // |
8c555625 | 332 | |
37831078 | 333 | dm[6]= -248.4; |
334 | dm[7]= 272.2; | |
335 | dm[8]= 277.95; | |
8c555625 | 336 | |
37831078 | 337 | // |
720b23b8 | 338 | dm[9]= -248.4; |
339 | dm[10]= 274.81; | |
340 | dm[11]= 277.95; | |
1283eee5 | 341 | |
37831078 | 342 | // |
1283eee5 | 343 | |
37831078 | 344 | dm[12]= 253.6; |
720b23b8 | 345 | dm[13]= 274.81; |
37831078 | 346 | dm[14]= 277.95; |
1283eee5 | 347 | |
720b23b8 | 348 | // |
8c555625 | 349 | |
720b23b8 | 350 | dm[15]= 253.6; |
37831078 | 351 | dm[16]= 265.2; |
352 | dm[17]= 277.95; | |
8c555625 | 353 | |
720b23b8 | 354 | // |
355 | ||
356 | dm[18]= 255.6; | |
357 | dm[19]= 265.2; | |
358 | dm[20]= 277.95; | |
359 | ||
360 | gMC->Gsvolu("TOCV","PCON",idtmed[4],dm,21); | |
1283eee5 | 361 | |
37831078 | 362 | // Daughter volumes |
1283eee5 | 363 | |
37831078 | 364 | // Tpc SAndwich 1 - Al |
365 | ||
366 | dm[0]= 274.81; | |
367 | dm[1]= 277.95; | |
368 | dm[2]= 251.7; | |
1283eee5 | 369 | |
37831078 | 370 | gMC->Gsvolu("TSA1","TUBE",idtmed[4],dm,3); |
1283eee5 | 371 | |
37831078 | 372 | // Tpc SAndwich 2 - Tedlar |
1283eee5 | 373 | |
37831078 | 374 | dm[0] += 5.e-3; |
375 | dm[1] -= 5.e-3; | |
376 | ||
377 | gMC->Gsvolu("TSA2","TUBE",idtmed[9],dm,3); | |
1283eee5 | 378 | |
37831078 | 379 | // Tpc SAndwich 3 - Kevlar |
1283eee5 | 380 | |
37831078 | 381 | dm[0] += 5e-3; |
382 | dm[1] -= 5.e-3; | |
1283eee5 | 383 | |
37831078 | 384 | gMC->Gsvolu("TSA3","TUBE",idtmed[5],dm,3); |
1283eee5 | 385 | |
37831078 | 386 | // Tpc SAndwich 4 - NOMEX honeycomb |
1283eee5 | 387 | |
37831078 | 388 | dm[0] += 0.06; |
389 | dm[1] -= 0.06; | |
1283eee5 | 390 | |
37831078 | 391 | gMC->Gsvolu("TSA4","TUBE",idtmed[5],dm,3); |
392 | ||
393 | // 4->3->2->1->TOCV | |
1283eee5 | 394 | |
37831078 | 395 | gMC->Gspos("TSA4",1,"TSA3",0.,0.,0.,0,"ONLY"); |
396 | gMC->Gspos("TSA3",1,"TSA2",0.,0.,0.,0,"ONLY"); | |
397 | gMC->Gspos("TSA2",1,"TSA1",0.,0.,0.,0,"ONLY"); | |
1283eee5 | 398 | |
37831078 | 399 | gMC->Gspos("TSA1",1,"TOCV",0.,0.,2.6,0,"ONLY"); |
1283eee5 | 400 | |
37831078 | 401 | // TCOV-> TOIN |
1283eee5 | 402 | |
37831078 | 403 | gMC->Gspos("TOCV",1,"TOIN",0.,0.,0.,0,"ONLY"); |
1283eee5 | 404 | |
37831078 | 405 | //------------------------------------------------------- |
406 | // Tpc Outer Field Cage | |
407 | // mother volume - Al, daughters - composite (sandwich) | |
408 | //------------------------------------------------------- | |
1283eee5 | 409 | |
37831078 | 410 | dm[0]=0.; |
411 | dm[1]=360.; | |
412 | dm[2]=6.; | |
cc80f89e | 413 | |
37831078 | 414 | dm[3]= -253.; |
415 | dm[4]= 258.; | |
416 | dm[5]= 277.95; | |
1283eee5 | 417 | |
37831078 | 418 | // |
1283eee5 | 419 | |
37831078 | 420 | dm[6]= -251.; |
421 | dm[7]= 258.; | |
422 | dm[8]= 277.95; | |
8c555625 | 423 | |
37831078 | 424 | // |
425 | ||
426 | dm[9]= -251.; | |
427 | dm[10]= 258.; | |
428 | dm[11]= 260.05; | |
1283eee5 | 429 | |
37831078 | 430 | // |
1283eee5 | 431 | |
37831078 | 432 | dm[12]= 251.; |
433 | dm[13]= 258.; | |
434 | dm[14]= 260.05; | |
1283eee5 | 435 | |
37831078 | 436 | // |
8c555625 | 437 | |
37831078 | 438 | dm[15]= 251.; |
439 | dm[16]= 258.; | |
720b23b8 | 440 | dm[17]= 270.9; |
1283eee5 | 441 | |
37831078 | 442 | // |
1283eee5 | 443 | |
37831078 | 444 | dm[18]= 253.; |
445 | dm[19]= 258.; | |
446 | dm[20]= 270.9; | |
1283eee5 | 447 | |
37831078 | 448 | gMC->Gsvolu("TOFC","PCON",idtmed[4],dm,21); |
1283eee5 | 449 | |
37831078 | 450 | // Daughter volumes |
1283eee5 | 451 | |
6a905708 | 452 | // Tpc SAndwich 5 - Tedlar |
62a73ee5 | 453 | |
37831078 | 454 | dm[0]= 258.; |
455 | dm[1]= 260.05; | |
456 | dm[2]= 251.7; | |
1283eee5 | 457 | |
6a905708 | 458 | gMC->Gsvolu("TSA5","TUBE",idtmed[9],dm,3); |
1283eee5 | 459 | |
6a905708 | 460 | // Tpc SAndwich 6 - Kevlar |
1283eee5 | 461 | |
37831078 | 462 | dm[0] += 5.e-3; |
463 | dm[1] -= 5.e-3; | |
1283eee5 | 464 | |
6a905708 | 465 | gMC->Gsvolu("TSA6","TUBE",idtmed[5],dm,3); |
1283eee5 | 466 | |
fe4da5cc | 467 | |
6a905708 | 468 | // Tpc SAndwich 7 - NOMEX |
1283eee5 | 469 | |
37831078 | 470 | dm[0] += 0.02; |
471 | dm[1] -= 0.02; | |
1283eee5 | 472 | |
6a905708 | 473 | gMC->Gsvolu("TSA7","TUBE",idtmed[6],dm,3); |
1283eee5 | 474 | |
6a905708 | 475 | // 7->6->5->TOFC |
1283eee5 | 476 | |
37831078 | 477 | gMC->Gspos("TSA7",1,"TSA6",0.,0.,0.,0,"ONLY"); |
478 | gMC->Gspos("TSA6",1,"TSA5",0.,0.,0.,0,"ONLY"); | |
1283eee5 | 479 | |
37831078 | 480 | gMC->Gspos("TSA5",1,"TOFC",0.,0.,0.,0,"ONLY"); |
1283eee5 | 481 | |
37831078 | 482 | // TOFC->TOIN |
1283eee5 | 483 | |
37831078 | 484 | gMC->Gspos("TOFC",1,"TOIN",0.,0.,0.,0,"ONLY"); |
1283eee5 | 485 | |
37831078 | 486 | // TOIN->TPC |
1283eee5 | 487 | |
37831078 | 488 | gMC->Gspos("TOIN",1,"TPC ",0.,0.,0.,0,"ONLY"); |
fe4da5cc | 489 | |
37831078 | 490 | //-------------------------------------------------------------------- |
491 | // Tpc Inner INsulator (CO2) | |
492 | //-------------------------------------------------------------------- | |
1283eee5 | 493 | |
1283eee5 | 494 | |
37831078 | 495 | dm[0]=0.; |
496 | dm[1]= 360.; | |
497 | dm[2]= 15.; | |
1283eee5 | 498 | |
37831078 | 499 | // |
1283eee5 | 500 | |
37831078 | 501 | dm[3]= -255.6; |
502 | dm[4]= 66.2; | |
503 | dm[5]= 74.8; | |
1283eee5 | 504 | |
37831078 | 505 | // |
1283eee5 | 506 | |
37831078 | 507 | Float_t tanL = (66.2-59.0)/(255.6-73.3); // tangent of the left cone part |
1283eee5 | 508 | |
37831078 | 509 | dm[6]= -253.6; |
510 | dm[7]= 59.0+ (253.6-73.3)*tanL; | |
511 | dm[8]= 74.8; | |
1283eee5 | 512 | |
37831078 | 513 | // |
1283eee5 | 514 | |
37831078 | 515 | dm[9]= -253.6; |
516 | dm[10]= dm[7]; | |
517 | dm[11]= 79.2; | |
1283eee5 | 518 | |
37831078 | 519 | // |
1283eee5 | 520 | |
37831078 | 521 | dm[12]= -73.3; |
522 | dm[13]= 59.0; | |
523 | dm[14]= 79.2; | |
1283eee5 | 524 | |
37831078 | 525 | // |
1283eee5 | 526 | |
37831078 | 527 | dm[15]= -73.3; |
528 | dm[16]= 56.9; | |
529 | dm[17]= 79.2; | |
1283eee5 | 530 | |
37831078 | 531 | // |
1283eee5 | 532 | |
37831078 | 533 | dm[18]= -72.1; |
534 | dm[19]= 59.6; | |
535 | dm[20]= 79.2; | |
1283eee5 | 536 | |
537 | // | |
37831078 | 538 | |
539 | dm[21]= -72.1; | |
540 | dm[22]= 60.65; | |
541 | dm[23]= 79.2; | |
542 | ||
1283eee5 | 543 | // |
544 | ||
37831078 | 545 | dm[24]= 72.1; |
546 | dm[25]= 60.65; | |
547 | dm[26]= 79.2; | |
548 | ||
549 | // | |
1283eee5 | 550 | |
37831078 | 551 | dm[27]= 72.1; |
552 | dm[28]= 59.6; | |
553 | dm[29]= 79.2; | |
1283eee5 | 554 | |
37831078 | 555 | // |
556 | ||
557 | dm[30]= 73.3; | |
558 | dm[31]= 56.9; | |
559 | dm[32]= 79.2; | |
560 | ||
561 | // | |
1283eee5 | 562 | |
37831078 | 563 | dm[33]= 73.3; |
564 | dm[34]= 59.0; | |
565 | dm[35]= 79.2; | |
1283eee5 | 566 | |
37831078 | 567 | // |
568 | ||
569 | dm[36]= 250.4; | |
570 | dm[37]= 66.0; | |
571 | dm[38]= 79.2; | |
572 | ||
573 | // | |
fe4da5cc | 574 | |
37831078 | 575 | dm[39]= 253.0; |
576 | dm[40]= 66.0; | |
577 | dm[41]= 79.2; | |
1283eee5 | 578 | |
37831078 | 579 | // |
580 | ||
581 | dm[42]= 253.0; | |
582 | dm[43]= 75.3; | |
583 | dm[44]= 79.2; | |
584 | ||
585 | // | |
1283eee5 | 586 | |
37831078 | 587 | dm[45]= 253.6; |
588 | dm[46]= 75.3; | |
589 | dm[47]= 79.2; | |
1283eee5 | 590 | |
37831078 | 591 | gMC->Gsvolu("TIIN","PCON",idtmed[3],dm,48); |
592 | ||
593 | ||
594 | //-------------------------------------------------------------------- | |
595 | // Tpc Inner Containment vessel, Left part | |
596 | // mother volume - Al, daughter - composite (sandwich) | |
597 | //-------------------------------------------------------------------- | |
598 | ||
599 | dm[0]= 0.; | |
600 | dm[1]= 360.; | |
601 | dm[2]= 8.; | |
1283eee5 | 602 | |
603 | // | |
37831078 | 604 | |
605 | dm[3]= -255.6; | |
606 | dm[4]= 66.2; | |
607 | dm[5]= 74.8; | |
608 | ||
1283eee5 | 609 | // |
610 | ||
37831078 | 611 | Float_t cosL = 1./TMath::Sqrt(1.+tanL*tanL); |
612 | Float_t sandThick = 2.14; // cone composite thickness | |
1283eee5 | 613 | |
1283eee5 | 614 | |
37831078 | 615 | // |
1283eee5 | 616 | |
37831078 | 617 | dm[6]= -253.6; |
618 | dm[7]= 59.0 + (253.6-73.3)*tanL; | |
619 | dm[8]= 74.8; | |
1283eee5 | 620 | |
37831078 | 621 | // |
1283eee5 | 622 | |
37831078 | 623 | dm[9]= -253.6; |
624 | dm[10]= dm[7]; | |
625 | dm[11]= dm[7]+sandThick/cosL; | |
1283eee5 | 626 | |
37831078 | 627 | // |
1283eee5 | 628 | |
37831078 | 629 | dm[12]= -75.6; |
630 | dm[13]= 59.0+(75.6-73.3)*tanL; | |
631 | dm[14]= dm[13]+sandThick/cosL; | |
1283eee5 | 632 | |
37831078 | 633 | // |
1283eee5 | 634 | |
37831078 | 635 | dm[15]= -75.6; |
636 | dm[16]= dm[13]; | |
637 | dm[17]= 60.65; | |
1283eee5 | 638 | |
37831078 | 639 | // |
1283eee5 | 640 | |
37831078 | 641 | dm[18]= -73.3; |
642 | dm[19]= 59.0; | |
643 | dm[20]= 60.65; | |
1283eee5 | 644 | |
37831078 | 645 | // |
1283eee5 | 646 | |
37831078 | 647 | dm[21]= -73.3; |
648 | dm[22]= 56.9; | |
649 | dm[23]= 60.65; | |
1283eee5 | 650 | |
37831078 | 651 | // |
1283eee5 | 652 | |
37831078 | 653 | dm[24]= -72.1; |
654 | dm[25]= 56.9; | |
655 | dm[26]= 60.65; | |
1283eee5 | 656 | |
37831078 | 657 | gMC->Gsvolu("TICL","PCON",idtmed[4],dm,27); |
1283eee5 | 658 | |
37831078 | 659 | // Daughter volumes |
1283eee5 | 660 | |
37831078 | 661 | // Tpc SAndwich 9 - Al |
1283eee5 | 662 | |
37831078 | 663 | dm[0]= 0.; |
664 | dm[1]= 360.; | |
665 | dm[2]= 2.; | |
1283eee5 | 666 | |
37831078 | 667 | // |
1283eee5 | 668 | |
37831078 | 669 | dm[3]= - 254.3; |
670 | dm[4]= 59.0+(254.3-73.3)*tanL; | |
671 | dm[5]= dm[4]+sandThick/cosL; | |
1283eee5 | 672 | |
37831078 | 673 | // |
1283eee5 | 674 | |
37831078 | 675 | dm[6]= -78.3; |
676 | dm[7]= 59.0+(78.3-73.3)*tanL; | |
677 | dm[8]= dm[7]+sandThick/cosL; | |
1283eee5 | 678 | |
37831078 | 679 | // |
1283eee5 | 680 | |
37831078 | 681 | gMC->Gsvolu("TSA9","PCON",idtmed[4],dm,9); |
1283eee5 | 682 | |
37831078 | 683 | // Tpc SAndwich 10 - Tedlar |
1283eee5 | 684 | |
37831078 | 685 | dm[4]+= 5.e-3/cosL; |
686 | dm[5]-= 5.e-3/cosL; | |
1283eee5 | 687 | |
37831078 | 688 | // |
1283eee5 | 689 | |
37831078 | 690 | dm[7]+= 5.e-3/cosL; |
691 | dm[8]+= 5.e-3/cosL; | |
1283eee5 | 692 | |
37831078 | 693 | gMC->Gsvolu("TS10","PCON",idtmed[9],dm,9); |
1283eee5 | 694 | |
37831078 | 695 | // Tpc SAndwich 11 - Kevlar |
1283eee5 | 696 | |
37831078 | 697 | dm[4]+= 5.e-3/cosL; |
698 | dm[5]-= 5.e-3/cosL; | |
1283eee5 | 699 | |
37831078 | 700 | // |
701 | ||
702 | dm[7]+= 5.e-3/cosL; | |
703 | dm[8]+= 5.e-3/cosL; | |
1283eee5 | 704 | |
37831078 | 705 | gMC->Gsvolu("TS11","PCON",idtmed[5],dm,9); |
1283eee5 | 706 | |
37831078 | 707 | // Tpc SAndwich 12 - NOMEX |
708 | ||
709 | dm[4]+= 0.06/cosL; | |
710 | dm[5]-= 0.06/cosL; | |
1283eee5 | 711 | |
712 | // | |
713 | ||
37831078 | 714 | dm[7]+= 0.06/cosL; |
715 | dm[8]+= 0.06/cosL; | |
716 | ||
717 | gMC->Gsvolu("TS12","PCON",idtmed[6],dm,9); | |
1283eee5 | 718 | |
37831078 | 719 | // 12->11->10->9 |
720 | ||
721 | gMC->Gspos("TS12",1,"TS11",0.,0.,0.,0,"ONLY"); | |
722 | gMC->Gspos("TS11",1,"TS10",0.,0.,0.,0,"ONLY"); | |
723 | gMC->Gspos("TS10",1,"TSA9",0.,0.,0.,0,"ONLY"); | |
724 | ||
725 | // TSA9->TICL | |
726 | ||
727 | gMC->Gspos("TSA9",1,"TICL",0.,0.,0.,0,"ONLY"); | |
1283eee5 | 728 | |
37831078 | 729 | //-------------------------------------------------------------------- |
730 | // Tpc Inner Containment vessel, Right part | |
731 | // mother volume - Al, daughter - composite (sandwich) | |
732 | //-------------------------------------------------------------------- | |
733 | ||
734 | dm[0]= 0.; | |
735 | dm[1]= 360.; | |
736 | dm[2]=8.; | |
1283eee5 | 737 | |
37831078 | 738 | // |
1283eee5 | 739 | |
37831078 | 740 | dm[3]= 72.1; |
741 | dm[4]= 56.9; | |
742 | dm[5]= 60.65; | |
1283eee5 | 743 | |
37831078 | 744 | // |
1283eee5 | 745 | |
37831078 | 746 | dm[6]= 73.3; |
747 | dm[7]= 56.9; | |
748 | dm[8]= 60.65; | |
1283eee5 | 749 | |
37831078 | 750 | // |
1283eee5 | 751 | |
37831078 | 752 | dm[9]= 73.3; |
753 | dm[10]= 59.0; | |
754 | dm[11]= 60.65; | |
1283eee5 | 755 | |
37831078 | 756 | // |
1283eee5 | 757 | |
37831078 | 758 | Float_t tanR = (66.0-59.0)/(250.5-73.3); // to avoid accuracy problems |
759 | Float_t cosR = 1./TMath::Sqrt(1.+tanR*tanR); //as above | |
1283eee5 | 760 | |
37831078 | 761 | // |
1283eee5 | 762 | |
37831078 | 763 | dm[12]= 75.6; |
764 | dm[13]= 59.0+(75.6-73.3)*tanR; | |
765 | dm[14]= 60.65; | |
1283eee5 | 766 | |
37831078 | 767 | // |
1283eee5 | 768 | |
37831078 | 769 | dm[15]= 75.6; |
770 | dm[16]= dm[13]; | |
771 | dm[17]= dm[16]+sandThick/cosR; | |
1283eee5 | 772 | |
37831078 | 773 | // |
1283eee5 | 774 | |
37831078 | 775 | dm[18]= 248.4; |
776 | dm[19]= 59.0+(248.4-73.3)*tanR; | |
777 | dm[20]= dm[19]+sandThick/cosR; | |
1283eee5 | 778 | |
37831078 | 779 | // |
1283eee5 | 780 | |
37831078 | 781 | dm[21]= 248.4; |
782 | dm[22]= dm[19]; | |
783 | dm[23]= 70.2; | |
1283eee5 | 784 | |
37831078 | 785 | // |
1283eee5 | 786 | |
37831078 | 787 | dm[24]= 250.4; |
788 | dm[25]= 66.0; | |
789 | dm[26]= 70.2; | |
1283eee5 | 790 | |
37831078 | 791 | gMC->Gsvolu("TICR","PCON",idtmed[4],dm,27); |
1283eee5 | 792 | |
1283eee5 | 793 | |
1283eee5 | 794 | |
37831078 | 795 | // Daughter volumes |
1283eee5 | 796 | |
37831078 | 797 | // Tpc SAndwich 13 - Al |
1283eee5 | 798 | |
37831078 | 799 | dm[0]= 0.; |
800 | dm[1]= 360.; | |
801 | dm[2]= 2.; | |
1283eee5 | 802 | |
37831078 | 803 | // |
1283eee5 | 804 | |
37831078 | 805 | dm[3]= 78.3; |
806 | dm[4]= 59.0+(78.3-73.3)*tanR; | |
807 | dm[5]= dm[4]+sandThick/cosR; | |
1283eee5 | 808 | |
37831078 | 809 | // |
1283eee5 | 810 | |
37831078 | 811 | dm[6]= 249.1; |
812 | dm[7]= 59.0+(249.1-73.3)*tanR; | |
813 | dm[8]= dm[7]+sandThick/cosR; | |
1283eee5 | 814 | |
37831078 | 815 | // |
1283eee5 | 816 | |
37831078 | 817 | gMC->Gsvolu("TS13","PCON",idtmed[4],dm,9); |
1283eee5 | 818 | |
37831078 | 819 | // Tpc SAndwich 14 - Tedlar |
fe4da5cc | 820 | |
37831078 | 821 | dm[4]+= 5.e-3/cosR; |
822 | dm[5]-= 5.e-3/cosR; | |
fe4da5cc | 823 | |
37831078 | 824 | // |
1283eee5 | 825 | |
37831078 | 826 | dm[7]+= 5.e-3/cosR; |
827 | dm[8]+= 5.e-3/cosR; | |
1283eee5 | 828 | |
37831078 | 829 | gMC->Gsvolu("TS14","PCON",idtmed[9],dm,9); |
1283eee5 | 830 | |
37831078 | 831 | // Tpc SAndwich 15 - Kevlar |
1283eee5 | 832 | |
37831078 | 833 | dm[4]+= 5.e-3/cosR; |
834 | dm[5]-= 5.e-3/cosR; | |
1283eee5 | 835 | |
37831078 | 836 | // |
fe4da5cc | 837 | |
37831078 | 838 | dm[7]+= 5.e-3/cosR; |
839 | dm[8]+= 5.e-3/cosR; | |
1283eee5 | 840 | |
37831078 | 841 | gMC->Gsvolu("TS15","PCON",idtmed[5],dm,9); |
1283eee5 | 842 | |
37831078 | 843 | // Tpc SAndwich 16 - NOMEX |
1283eee5 | 844 | |
37831078 | 845 | dm[4]+= 0.06/cosR; |
846 | dm[5]-= 0.06/cosR; | |
1283eee5 | 847 | |
37831078 | 848 | // |
1283eee5 | 849 | |
37831078 | 850 | dm[7]+= 0.06/cosR; |
851 | dm[8]+= 0.06/cosR; | |
1283eee5 | 852 | |
37831078 | 853 | gMC->Gsvolu("TS16","PCON",idtmed[6],dm,9); |
1283eee5 | 854 | |
37831078 | 855 | // 16->15->14->13 |
1283eee5 | 856 | |
37831078 | 857 | gMC->Gspos("TS16",1,"TS15",0.,0.,0.,0,"ONLY"); |
858 | gMC->Gspos("TS15",1,"TS14",0.,0.,0.,0,"ONLY"); | |
859 | gMC->Gspos("TS14",1,"TS13",0.,0.,0.,0,"ONLY"); | |
1283eee5 | 860 | |
37831078 | 861 | // TS12->TICR |
1283eee5 | 862 | |
37831078 | 863 | gMC->Gspos("TS13",1,"TICR",0.,0.,0.,0,"ONLY"); |
1283eee5 | 864 | |
37831078 | 865 | //------------------------------------------------------ |
866 | // Tpc Inner Field Cage | |
867 | // mother volume - Al, daughters - composite (sandwich) | |
868 | //------------------------------------------------------ | |
1283eee5 | 869 | |
37831078 | 870 | dm[0]= 0.; |
871 | dm[1]= 360.; | |
872 | dm[2]=6.; | |
1283eee5 | 873 | |
37831078 | 874 | // |
1283eee5 | 875 | |
37831078 | 876 | dm[3]= -253.0; |
877 | dm[4]= 70.7; | |
878 | dm[5]= 79.2; | |
fe4da5cc | 879 | |
fe4da5cc | 880 | // |
37831078 | 881 | |
882 | dm[6]= -251.0; | |
883 | dm[7]= 70.7; | |
884 | dm[8]= 79.2; | |
885 | ||
fe4da5cc | 886 | // |
887 | ||
37831078 | 888 | dm[9]= -251.0; |
889 | dm[10]= 77.15; | |
890 | dm[11]= 79.2; | |
891 | ||
fe4da5cc | 892 | // |
cc80f89e | 893 | |
37831078 | 894 | dm[12]= 251.0; |
895 | dm[13]= 77.15; | |
896 | dm[14]= 79.2; | |
fe4da5cc | 897 | |
fe4da5cc | 898 | // |
37831078 | 899 | |
900 | dm[15]= 251.0; | |
901 | dm[16]= 66.0; | |
902 | dm[17]= 79.2; | |
903 | ||
fe4da5cc | 904 | // |
fe4da5cc | 905 | |
37831078 | 906 | dm[18]= 253.0; |
907 | dm[19]= 66.0; | |
908 | dm[20]= 79.2; | |
909 | ||
910 | gMC->Gsvolu("TIFC","PCON",idtmed[4],dm,21); | |
911 | ||
912 | // Daughter volumes | |
913 | ||
6a905708 | 914 | // Tpc Sandwich 17 - Tedlar |
37831078 | 915 | |
916 | dm[0]= 77.15; | |
917 | dm[1]= 79.2; | |
918 | dm[2]= 251.7; | |
919 | ||
6a905708 | 920 | gMC->Gsvolu("TS17","TUBE",idtmed[9],dm,3); |
37831078 | 921 | |
6a905708 | 922 | // Tpc Sandwich 18 - Kevlar |
37831078 | 923 | |
924 | dm[0]+= 5.e-3; | |
925 | dm[1]-= 5.e-3; | |
926 | ||
6a905708 | 927 | gMC->Gsvolu("TS18","TUBE",idtmed[5],dm,3); |
37831078 | 928 | |
37831078 | 929 | |
6a905708 | 930 | // Tpc Sandwich 19 - NOMEX |
37831078 | 931 | |
6a905708 | 932 | dm[0]+= 0.02; |
933 | dm[1]-= 0.02; | |
37831078 | 934 | |
6a905708 | 935 | gMC->Gsvolu("TS19","TUBE",idtmed[6],dm,3); |
37831078 | 936 | |
6a905708 | 937 | // 19->18->17 |
37831078 | 938 | |
37831078 | 939 | gMC->Gspos("TS19",1,"TS18",0.,0.,0.,0,"ONLY"); |
940 | gMC->Gspos("TS18",1,"TS17",0.,0.,0.,0,"ONLY"); | |
941 | ||
942 | // TS17->TIFC | |
943 | ||
944 | gMC->Gspos("TS17",1,"TIFC",0.,0.,0.,0,"ONLY"); | |
945 | ||
946 | // TPC Rings | |
947 | ||
948 | dm[0]= 70.7; | |
949 | dm[1]= 79.2; | |
950 | dm[2]= 0.3; | |
951 | ||
952 | gMC->Gsposp("TPCR",4,"TIIN",0.,0.,-253.3,0,"ONLY",dm,3); | |
953 | ||
954 | dm[0]= 66.0; | |
955 | dm[1]= 70.2; | |
956 | ||
957 | gMC->Gsposp("TPCR",5,"TIIN",0.,0.,250.7,0,"ONLY",dm,3); | |
958 | ||
959 | dm[0]= 75.3; | |
960 | dm[1]= 79.2; | |
961 | ||
962 | gMC->Gsposp("TPCR",6,"TIIN",0.,0.,253.3,0,"ONLY",dm,3); | |
963 | ||
964 | // TICL->TIIN | |
965 | ||
966 | gMC->Gspos("TICL",1,"TIIN",0.,0.,0.,0,"ONLY"); | |
967 | ||
968 | // TICR->TIIN | |
969 | ||
970 | gMC->Gspos("TICR",1,"TIIN",0.,0.,0.,0,"ONLY"); | |
971 | ||
972 | // TIFC->TIIN | |
973 | ||
974 | gMC->Gspos("TIFC",1,"TIIN",0.,0.,0.,0,"ONLY"); | |
975 | ||
976 | // Tpc Sandwich 21 - Al (central barrel) | |
977 | ||
08db548a | 978 | dm[0]= 60.65; |
979 | dm[1]= 61.21; | |
37831078 | 980 | dm[2]= 75.2; |
981 | ||
982 | gMC->Gsvolu("TS21","TUBE",idtmed[4],dm,3); | |
983 | ||
984 | // Tpc Sandwich 22 - Tedlar (central barrel) | |
985 | ||
986 | dm[0]+= 5.e-3; | |
987 | dm[1]-= 5.e-3; | |
988 | ||
989 | gMC->Gsvolu("TS22","TUBE",idtmed[9],dm,3); | |
990 | ||
991 | // Tpc Sandwich 23 - Kevlar (central barrel) | |
992 | ||
993 | dm[0]+= 5.e-3; | |
994 | dm[1]-= 5.e-3; | |
995 | ||
996 | gMC->Gsvolu("TS23","TUBE",idtmed[5],dm,3); | |
997 | ||
998 | // Tpc Sandwich 24 - NOMEX (central barrel) | |
999 | ||
1000 | dm[0]+= 0.02; | |
1001 | dm[1]-= 0.02; | |
1002 | ||
1003 | gMC->Gsvolu("TS24","TUBE",idtmed[6],dm,3); | |
1004 | ||
1005 | // 24->23->22->21 | |
1006 | ||
1007 | gMC->Gspos("TS24",1,"TS23",0.,0.,0.,0,"ONLY"); | |
1008 | gMC->Gspos("TS23",1,"TS22",0.,0.,0.,0,"ONLY"); | |
1009 | gMC->Gspos("TS22",1,"TS21",0.,0.,0.,0,"ONLY"); | |
1010 | ||
1011 | gMC->Gspos("TS21",1,"TIIN",0.,0.,0.,0,"ONLY"); | |
1012 | ||
1013 | // put everything into the TPC | |
1014 | ||
1015 | gMC->Gspos("TIIN",1,"TPC ",0.,0.,0.,0,"ONLY"); | |
1016 | ||
1017 | ||
1018 | //--------------------------------------------------------- | |
1019 | // Tpc Dift Gas volume Nonsensitive (Ne-CO2 90/10) | |
1020 | // and its daughters (HV membrane, rods, readout chambers) | |
1021 | //--------------------------------------------------------- | |
1022 | ||
1023 | dm[0]= 79.2; | |
1024 | dm[1]= 258.0; | |
1025 | dm[2]= 253.6; | |
1026 | ||
1027 | gMC->Gsvolu("TDGN","TUBE",idtmed[1],dm,3); | |
1028 | ||
1029 | // sector opening angles | |
1030 | ||
1031 | Float_t innerOpenAngle = fTPCParam->GetInnerAngle(); | |
1032 | Float_t outerOpenAngle = fTPCParam->GetOuterAngle(); | |
1033 | ||
1034 | // sector angle shift | |
1035 | ||
1036 | Float_t innerAngleShift = fTPCParam->GetInnerAngleShift(); | |
1037 | ||
1038 | // number of sectors | |
1039 | ||
1040 | Int_t nInnerSector = fTPCParam->GetNInnerSector()/2; | |
1041 | Int_t nOuterSector = fTPCParam->GetNOuterSector()/2; | |
1042 | ||
1043 | // All above parameters are identical for inner and outer | |
1044 | // sectors. The distinction is kept for the historical reasons | |
1045 | // and eventually will disappear. | |
1046 | ||
1047 | Float_t tanAlpha = TMath::Tan(0.5*innerOpenAngle); | |
1048 | Float_t cosAlpha = TMath::Sqrt(1.+tanAlpha*tanAlpha); | |
1049 | Float_t space; | |
1050 | ||
1051 | //------------------------------------------------------------------------- | |
1052 | // Tpc Inner Readout Chambers | |
1053 | //------------------------------------------------------------------------- | |
1054 | ||
1055 | dm[0]= 14.483; | |
1056 | dm[1]= 23.3345; | |
1057 | dm[2]= 1.6; // thickness | |
1058 | dm[3]= 25.1; | |
1059 | ||
1060 | gMC->Gsvolu("TIRC","TRD1",idtmed[4],dm,4); | |
1061 | ||
1062 | // this volume will be positioned in the empty space | |
1063 | // of the end-cap to avoid overlaps | |
1064 | ||
1065 | dm[0]= 13.7305; | |
1066 | dm[1]= 21.1895; | |
1067 | dm[2]= 2.25; | |
1068 | dm[3]= 21.15; | |
1069 | ||
1070 | gMC->Gsvolu("TIC1","TRD1",idtmed[4],dm,4); | |
1071 | ||
1072 | ||
1073 | //------------------------------------------------ | |
1074 | // Tpc Inner readout chamber Pad Plane | |
1075 | //------------------------------------------------ | |
1076 | ||
1077 | dm[0]= 14.483; | |
1078 | dm[1]= 23.3345; | |
1079 | dm[2]= 0.5; | |
1080 | dm[3]= 25.1; | |
1081 | ||
1082 | gMC->Gsvolu("TIPP","TRD1",idtmed[12],dm,4); | |
1083 | ||
1084 | // | |
1085 | ||
1086 | dm[0] -= 1.218511934; | |
1087 | dm[1] -= 1.218511934; | |
1088 | dm[2] = 0.35; | |
1089 | ||
1090 | gMC->Gsvolu("TIC3","TRD1",idtmed[1],dm,4); | |
1091 | ||
1092 | gMC->Gspos("TIC3",1,"TIPP",0.,0.15,0.,0,"ONLY"); | |
1093 | ||
1094 | gMC->Gspos("TIPP",1,"TIRC",0.,1.1,0.,0,"ONLY"); | |
1095 | ||
1096 | ||
1097 | //---------------------------------------------- | |
1098 | // Tpc Readout Chambers Empty spaces - for both | |
1099 | // inner and outer sectors | |
1100 | //---------------------------------------------- | |
1101 | ||
1102 | gMC->Gsvolu("TRCE","TRD1",idtmed[0],dm,0); | |
1103 | ||
1104 | // Inner sector - 4 spaces | |
1105 | ||
1106 | ||
1107 | dm[3] = 4.7625; | |
1108 | dm[0] = 12.472; | |
1109 | ||
1110 | Float_t rr = 90.52; | |
1111 | Float_t zz; | |
1112 | ||
1113 | zz= -12.7875; | |
1114 | ||
1115 | space = rr*tanAlpha-dm[0]; | |
1116 | ||
1117 | for(Int_t nsLow=0;nsLow<4;nsLow++){ | |
1118 | ||
1119 | rr += 9.525; | |
1120 | dm[1]= rr*tanAlpha - space; | |
1121 | ||
1122 | dm[2]=0.8; | |
1123 | ||
1124 | gMC->Gsposp("TRCE",nsLow+1,"TIRC",0.,-0.8,zz,0,"ONLY",dm,4); | |
1125 | ||
1126 | // | |
1127 | ||
1128 | dm[2]= 1.2; | |
1129 | ||
1130 | gMC->Gsposp("TRCE",nsLow+5,"TIC1",0.,1.05,zz-2.1,0,"ONLY",dm,4); | |
1131 | ||
1132 | rr += 0.4; | |
1133 | dm[0] = rr*tanAlpha - space; | |
1134 | zz += (0.4+9.525); | |
1135 | ||
1136 | } | |
1137 | ||
1138 | dm[0]= 12.472; | |
1139 | // dm[1] - this is the dm[1] from the previous TRCE | |
1140 | dm[2]= 1.05; | |
1141 | dm[3]= 19.65; | |
1142 | ||
1143 | gMC->Gsposp("TRCE",9,"TIC1",0.,-1.2,0.,0,"ONLY",dm,4); | |
1144 | ||
1145 | // | |
1146 | // TPc Space for Connectors | |
1147 | // | |
1148 | ||
1149 | dm[0]= .3; | |
1150 | dm[1]= .3; | |
1151 | dm[2]= 4.5; | |
1152 | ||
1153 | gMC->Gsvolu("TPSC","BOX ",idtmed[0],dm,3); | |
1154 | ||
1155 | // TPC Connectors | |
1156 | ||
1157 | dm[0]= .25; | |
1158 | dm[1]= .15; | |
1159 | dm[2]= 3.75; | |
1160 | ||
1161 | gMC->Gsvolu("TPCC","BOX ",idtmed[13],dm,3); | |
1162 | ||
1163 | gMC->Gspos("TPCC",1,"TPSC",0.,0.15,0.,0,"ONLY"); | |
1164 | ||
1165 | zz = -12.7875; | |
1166 | ||
1167 | ||
1168 | Float_t alpha; | |
1169 | Float_t astep; | |
1170 | ||
1171 | Float_t phi1,phi2,phi3,theta1,theta2,theta3; // rotation angles | |
1172 | ||
1173 | // inner part of the inner sector - 2 x 20 holes | |
1174 | ||
1175 | astep = 20.00096874/19.; | |
1176 | ||
1177 | alpha = 10.00048437-astep; | |
1178 | ||
1179 | Float_t x1,x2; | |
1180 | ||
1181 | x1 = 13.31175725; | |
1182 | x1 -= 0.996357832; | |
1183 | ||
1184 | x2 = 15.06180253; | |
1185 | x2 -= 1.163028812; | |
1186 | ||
1187 | Int_t ncon; | |
1188 | ||
1189 | for(ncon=0;ncon<20;ncon++){ | |
1190 | ||
1191 | phi1 = 0.; | |
1192 | theta1 = 90.+alpha; | |
1193 | phi2=90.; | |
1194 | theta2 = 90.; | |
1195 | phi3 = (alpha>0) ? 0. : 180.; | |
1196 | theta3 = TMath::Abs(alpha); | |
1197 | ||
1198 | AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3); | |
1199 | ||
1200 | ||
1201 | ||
1202 | gMC->Gspos("TPSC",ncon+1,"TIRC",x1,0.3,-12.7875,idrotm[nRotMat],"ONLY"); | |
1203 | gMC->Gspos("TPSC",ncon+21,"TIRC",x2,0.3,-2.8625,idrotm[nRotMat],"ONLY"); | |
1204 | ||
1205 | ||
1206 | x1 -= 1.296357833; | |
1207 | x2 -= 1.463028812; | |
1208 | ||
1209 | alpha -= astep; | |
1210 | nRotMat++; | |
1211 | ||
1212 | } | |
1213 | ||
1214 | // outer part of the inner sector - 2 x 25 holes | |
1215 | ||
1216 | astep = 20.00096874/24.; | |
1217 | alpha = 10.00048437-astep; | |
1218 | ||
1219 | x1 = 16.81184781; | |
1220 | x1 -= 1.016295986; | |
1221 | ||
1222 | x2 = 18.5618931; | |
1223 | x2 -= 1.150914854; | |
1224 | ||
1225 | for(ncon=0;ncon<25;ncon++){ | |
1226 | ||
1227 | phi1 = 0.; | |
1228 | theta1 = 90.+alpha; | |
1229 | phi2=90.; | |
1230 | theta2 = 90.; | |
1231 | phi3 = (alpha>0) ? 0. : 180.; | |
1232 | theta3 = TMath::Abs(alpha); | |
1233 | ||
1234 | AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3); | |
1235 | ||
1236 | ||
1237 | ||
1238 | gMC->Gspos("TPSC",ncon+41,"TIRC",x1,0.3,7.0625,idrotm[nRotMat],"ONLY"); | |
1239 | gMC->Gspos("TPSC",ncon+66,"TIRC",x2,0.3,16.9875,idrotm[nRotMat],"ONLY"); | |
1240 | ||
1241 | ||
1242 | x1 -= 1.316295986; | |
1243 | x2 -= 1.450914854; | |
1244 | ||
1245 | alpha -= astep; | |
1246 | nRotMat++; | |
1247 | ||
1248 | } | |
1249 | ||
1250 | //-------------------------------------------------------------------------- | |
1251 | // TPC Outer Readout Chambers | |
1252 | // this is NOT a final design | |
1253 | //-------------------------------------------------------------------------- | |
1254 | ||
1255 | dm[0]= 23.3875; | |
1256 | dm[1]= 43.524; | |
1257 | dm[2]= 1.5; //thickness | |
1258 | dm[3]= 57.1; | |
1259 | ||
1260 | gMC->Gsvolu("TORC","TRD1",idtmed[4],dm,4); | |
1261 | ||
1262 | //------------------------------------------------ | |
1263 | // Tpc Outer readout chamber Pad Plane | |
1264 | //------------------------------------------------ | |
1265 | ||
1266 | dm[2]= 0.5; | |
1267 | ||
1268 | gMC->Gsvolu("TOPP","TRD1",idtmed[12],dm,4); | |
1269 | ||
1270 | dm[0] -= 1.218511934; | |
1271 | dm[1] -= 1.218511934; | |
1272 | dm[2] = 0.35; | |
1273 | ||
1274 | gMC->Gsvolu("TOC3","TRD1",idtmed[1],dm,4); | |
1275 | ||
1276 | gMC->Gspos("TOC3",1,"TOPP",0.,0.15,0.,0,"ONLY"); | |
1277 | ||
1278 | gMC->Gspos("TOPP",1,"TORC",0.,1.0,0.,0,"ONLY"); | |
1279 | ||
1280 | // empty space | |
1281 | ||
1282 | ||
1283 | dm[0]= 21.035; | |
1284 | dm[1]= 38.7205; | |
1285 | dm[2]= 0.7; | |
1286 | dm[3]= 50.15; | |
1287 | ||
1288 | gMC->Gsposp("TRCE",11,"TORC",0.,-0.8,-2.15,0,"ONLY",dm,4); | |
1289 | ||
1290 | dm[0]= 22.2935; | |
1291 | dm[1]= 40.5085; | |
1292 | dm[2]= 2.25; | |
1293 | dm[3]= 51.65; | |
1294 | ||
1295 | gMC->Gsvolu("TOC1","TRD1",idtmed[4],dm,4); | |
1296 | ||
1297 | ||
1298 | dm[0]= 21.35; | |
1299 | dm[1]= 38.7205; | |
1300 | dm[2]= 2.25; | |
1301 | dm[3]= 50.15; | |
1302 | ||
1303 | gMC->Gsposp("TRCE",11,"TOC1",0.,0.,0.,0,"ONLY",dm,4); | |
1304 | ||
1305 | ||
1306 | //----------------------------------------------- | |
1307 | // Tpc Services Support Wheel | |
1308 | //----------------------------------------------- | |
1309 | ||
1310 | dm[0]=0.; | |
1311 | dm[1]=360.; | |
1312 | dm[2]=18.; | |
1313 | dm[3]=2.; | |
1314 | ||
1315 | dm[4]= -5.; | |
1316 | dm[5]= 77.017; | |
1317 | dm[6]= 255.267; | |
1318 | ||
1319 | dm[7]= 5.; | |
1320 | dm[8]= dm[5]; | |
1321 | dm[9]= dm[6]; | |
1322 | ||
1323 | gMC->Gsvolu("TSSW","PGON",idtmed[4],dm,10); | |
1324 | ||
1325 | // Tpc Services Wheel Cover | |
1326 | ||
1327 | dm[4]= -0.5; | |
1328 | dm[7]= 0.5; | |
1329 | ||
1330 | gMC->Gsvolu("TSWC","PGON",idtmed[4],dm,10); | |
1331 | ||
1332 | // Tpc Service wheel Cover Empty space | |
1333 | ||
1334 | dm[0]= 10.99; | |
1335 | dm[1]= 39.599; | |
1336 | dm[2]= .5; | |
1337 | dm[3]= 81.125; | |
1338 | ||
1339 | gMC->Gsvolu("TSCE","TRD1",idtmed[0],dm,4); | |
1340 | ||
1341 | // Tpc services Wheel Empty Spaces | |
1342 | ||
1343 | dm[0]= 13.18017507; | |
1344 | dm[1]= 44.61045938; | |
1345 | dm[2]= 4.; | |
1346 | dm[3]= 89.125; | |
1347 | ||
1348 | gMC->Gsvolu("TWES","TRD1",idtmed[0],dm,4); | |
1349 | ||
1350 | // Tpc Services Wheel Bars | |
1351 | ||
1352 | gMC->Gsvolu("TSWB","TRD1",idtmed[4],dm,0); | |
1353 | ||
1354 | // bars-> TWES | |
1355 | ||
1356 | dm[2]= 4.; | |
1357 | dm[3]= .4; | |
1358 | ||
1359 | dm[0]= 13.8149522; | |
1360 | dm[1]= 13.95601379; | |
1361 | ||
1362 | gMC->Gsposp("TSWB",1,"TWES",0.,0.,-85.125,0,"ONLY",dm,4); | |
1363 | ||
1364 | dm[0]= 43.83462067; | |
1365 | dm[1]= 43.97568225; | |
1366 | ||
1367 | gMC->Gsposp("TSWB",2,"TWES",0.,0.,85.125,0,"ONLY",dm,4); | |
1368 | ||
1369 | // TPc ELectronics - right now 30% X0 Si | |
1370 | ||
1371 | dm[0]= 14.03813696; | |
1372 | dm[1]= 43.3524075; | |
1373 | dm[2]= 1.404; | |
1374 | dm[3]= 83.125; | |
1375 | ||
1376 | gMC->Gsvolu("TPEL","TRD1",idtmed[11],dm,4); | |
1377 | gMC->Gspos("TPEL",1,"TWES",0.,0.,0.,0,"ONLY"); | |
1378 | ||
1379 | //-------------------------------------------------------------------------- | |
1380 | // End caps | |
1381 | //-------------------------------------------------------------------------- | |
1382 | ||
1383 | // TPc Main Wheel - Al | |
1384 | ||
1385 | dm[0]= 75.3; | |
1386 | dm[1]= 264.8; | |
1387 | dm[2]= 3.0; | |
1388 | ||
1389 | gMC->Gsvolu("TPMW","TUBE",idtmed[4],dm,3); | |
1390 | ||
1391 | // TPc Extra Wheel (to avoid overlapping) - Al | |
1392 | ||
1393 | dm[0]= 264.8; | |
1394 | dm[1]= 277.0; | |
1395 | dm[2]= 1.95; | |
1396 | ||
1397 | gMC->Gsvolu("TPEW","TUBE",idtmed[4],dm,3); | |
1398 | ||
1399 | //-------------------------------------------------------------------------- | |
1400 | // Tpc Empty Space for the Readout chambers | |
1401 | //-------------------------------------------------------------------------- | |
1402 | ||
1403 | Float_t rLow= 86.2; | |
1404 | Float_t rUp= 243.5; | |
1405 | Float_t dR = 0.5*(rUp-rLow); | |
1406 | ||
1407 | space= 1.4/cosAlpha; // wheel ribs are 2.8 cm wide | |
1408 | ||
1409 | dm[0]= rLow*tanAlpha-space; | |
1410 | dm[1]= rUp*tanAlpha-space; | |
1411 | dm[2]= 3.0; | |
1412 | dm[3]= dR; | |
1413 | ||
1414 | gMC->Gsvolu("TESR","TRD1",idtmed[0],dm,4); | |
1415 | ||
1416 | // TIC1->TESR | |
1417 | ||
1418 | ||
1419 | gMC->Gspos("TIC1",1,"TESR",0.,0.75,-dR+23.97,0,"ONLY"); | |
1420 | ||
1421 | ||
1422 | // TOC1->TESR | |
1423 | ||
1424 | gMC->Gspos("TOC1",1,"TESR",0.,0.75,dR-55.02,0,"ONLY"); | |
1425 | ||
1426 | // Tpc Empty Space Bars - Al (daughters of TESR) | |
1427 | ||
1428 | Float_t zBar; | |
1429 | ||
1430 | gMC->Gsvolu("TESB","TRD1",idtmed[4],dm,0); | |
1431 | ||
1432 | // lower bar | |
1433 | ||
1434 | dm[0]= rLow*tanAlpha-space; | |
1435 | dm[1]= 88.7*tanAlpha-space; | |
1436 | dm[2]= 0.95; | |
1437 | dm[3]= 1.275; | |
1438 | ||
1439 | zBar = -dR+dm[3]; | |
1440 | ||
1441 | gMC->Gsposp("TESB",1,"TESR",0.,2.05,zBar,0,"ONLY",dm,4); | |
1442 | ||
1443 | // middle bar | |
1444 | ||
1445 | dm[0]= 131.65*tanAlpha-space; | |
1446 | dm[1]= 136.5*tanAlpha-space; | |
1447 | dm[3]= 2.425; | |
1448 | ||
1449 | zBar = -dR +131.65+dm[3]-rLow; | |
1450 | ||
1451 | gMC->Gsposp("TESB",2,"TESR",0.,2.05,zBar,0,"ONLY",dm,4); | |
1452 | ||
1453 | // upper bar | |
1454 | ||
1455 | dm[0]= 240.4*tanAlpha-space; | |
1456 | dm[1]= rUp*tanAlpha-space; | |
1457 | dm[3]= 1.55; | |
1458 | ||
1459 | zBar = dR-dm[3]; | |
1460 | ||
1461 | gMC->Gsposp("TESB",3,"TESR",0.,2.05,zBar,0,"ONLY",dm,4); | |
1462 | ||
1463 | //------------------------------------------------------ | |
1464 | // TPc Lower "S" Sectors | |
1465 | //------------------------------------------------------ | |
1466 | ||
1467 | Float_t deadSpace; | |
1468 | ||
1469 | ||
1470 | Float_t inSecLowEdge = fTPCParam->GetInnerRadiusLow(); | |
1471 | Float_t inSecUpEdge = fTPCParam->GetInnerRadiusUp(); | |
1472 | ||
1473 | dm[0] = inSecLowEdge*TMath::Tan(0.5*innerOpenAngle)-0.01; | |
1474 | dm[1] = inSecUpEdge*TMath::Tan(0.5*innerOpenAngle)-0.01; | |
1475 | dm[2] = 0.5*(250. - 0.3); | |
1476 | dm[3] = 0.5*(inSecUpEdge-inSecLowEdge); | |
1477 | ||
1478 | gMC->Gsvolu("TPLS", "TRD1", idtmed[1], dm, 4); // nonsensitive | |
1479 | ||
1480 | //---------------------------------------------------------- | |
1481 | // TPc Upper Sectors | |
1482 | //---------------------------------------------------------- | |
1483 | ||
1484 | Float_t ouSecLowEdge = fTPCParam->GetOuterRadiusLow(); | |
1485 | Float_t ouSecUpEdge = fTPCParam->GetOuterRadiusUp(); | |
1486 | ||
1487 | dm[0] = ouSecLowEdge*TMath::Tan(0.5*outerOpenAngle)-0.01; | |
1488 | dm[1] = ouSecUpEdge*TMath::Tan(0.5*outerOpenAngle)-0.01; | |
1489 | dm[2] = 0.5*(250. - 0.3); | |
1490 | dm[3] = 0.5*(ouSecUpEdge-ouSecLowEdge); | |
1491 | ||
1492 | gMC->Gsvolu("TPUS", "TRD1", idtmed[1], dm, 4); // nonsensitive | |
1493 | ||
1494 | //-------------------------------------------------------- | |
1495 | // TPc Sensitive Strips, the same for S and L sectors | |
1496 | //-------------------------------------------------------- | |
1497 | ||
1498 | gMC->Gsvolu("TPSS","TRD1",idtmed[2],dm,0); // sensitive | |
1499 | ||
1500 | Int_t nofStrips,nstr; | |
1501 | Float_t r1,r2,zs; | |
1502 | Float_t stripThick = 0.01; // 100 microns | |
1503 | ||
1504 | // inner sector | |
1505 | ||
1506 | nofStrips = fTPCParam->GetNRowLow(); | |
1507 | deadSpace = fTPCParam->GetInnerWireMount(); | |
1508 | ||
1509 | dm[2] = 0.5*(250. - 0.3); | |
1510 | dm[3] = 0.5 * stripThick; | |
1511 | ||
1512 | for(nstr=0;nstr<nofStrips;nstr++){ | |
1513 | ||
1514 | r1 = fTPCParam->GetPadRowRadiiLow(nstr); | |
1515 | r2 = r1 + stripThick; | |
1516 | dm[0] = r1 * TMath::Tan(0.5*innerOpenAngle) - deadSpace; | |
1517 | dm[1] = r2 * TMath::Tan(0.5*innerOpenAngle) - deadSpace; | |
1518 | zs = -inSecLowEdge -0.5*(inSecUpEdge-inSecLowEdge); | |
1519 | zs += r1; | |
1520 | zs += dm[3]; | |
1521 | ||
1522 | gMC->Gsposp("TPSS", nstr+1, "TPLS", 0., 0., zs, 0, "ONLY", dm, 4); | |
1523 | ||
1524 | } | |
1525 | ||
1526 | Int_t nsSave = nofStrips; | |
1527 | ||
1528 | // outer sector | |
1529 | ||
1530 | nofStrips = fTPCParam->GetNRowUp(); | |
1531 | deadSpace = fTPCParam->GetOuterWireMount(); | |
1532 | ||
1533 | dm[2] = 0.5*(250. - 0.3); | |
1534 | dm[3] = 0.5 * stripThick; | |
1535 | ||
1536 | for(nstr=0;nstr<nofStrips;nstr++){ | |
1537 | ||
1538 | r1 = fTPCParam->GetPadRowRadiiUp(nstr); | |
1539 | r2 = r1 + stripThick; | |
1540 | dm[0] = r1 * TMath::Tan(0.5*outerOpenAngle) - deadSpace; | |
1541 | dm[1] = r2 * TMath::Tan(0.5*outerOpenAngle) - deadSpace; | |
1542 | zs = -ouSecLowEdge -0.5*(ouSecUpEdge-ouSecLowEdge); | |
1543 | zs += r1; | |
1544 | zs += dm[3]; | |
1545 | ||
1546 | gMC->Gsposp("TPSS", nstr+1+nsSave, "TPUS", 0., 0., zs, 0, "ONLY", dm, 4); | |
1547 | ||
1548 | } | |
1549 | ||
1550 | ||
1551 | //------------------------------------------------------- | |
1552 | // positioning of the empty spaces into the main wheel | |
1553 | // and readout chambers and sectors into the drift gas | |
1554 | //------------------------------------------------------- | |
1555 | ||
1556 | Float_t rCenter,xc,yc; | |
1557 | Float_t rInner,rOuter; // center of the inner and outer chamber | |
1558 | ||
1559 | rCenter = rLow+dR; | |
1560 | ||
1561 | rInner = 108.07; | |
1562 | rOuter = 190.68; | |
1563 | ||
1564 | for(Int_t ns=0; ns<nInnerSector;ns++){ | |
1565 | ||
1566 | phi1 = ns * innerOpenAngle + innerAngleShift; | |
1567 | phi1 *= kRaddeg; // in degrees | |
1568 | ||
1569 | phi1 = (Float_t)TMath::Nint(phi1) + 270.; | |
1570 | ||
1571 | if (phi1 > 360.) phi1 -= 360.; | |
1572 | ||
1573 | theta1 = 90.; | |
1574 | phi2 = 90.; | |
1575 | theta2 = 180.; | |
1576 | phi3 = ns * innerOpenAngle + innerAngleShift; | |
1577 | phi3 *= kRaddeg; // in degrees | |
1578 | ||
1579 | phi3 = (Float_t)TMath::Nint(phi3); | |
1580 | ||
1581 | if(phi3 > 360.) phi3 -= 360.; | |
1582 | ||
1583 | theta3 = 90.; | |
1584 | ||
1585 | // "holes"->End plate | |
1586 | ||
1587 | xc = rCenter*TMath::Cos(phi3*kDegrad); | |
1588 | yc = rCenter*TMath::Sin(phi3*kDegrad); | |
1589 | ||
1590 | AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3); | |
1591 | ||
1592 | gMC->Gspos("TESR",ns+1,"TPMW",xc,yc,0.,idrotm[nRotMat],"ONLY"); | |
1593 | ||
1594 | // TSCE->TSWC (services wheel volumes) | |
1595 | ||
1596 | xc = 166.142*TMath::Cos(phi3*kDegrad); | |
1597 | yc = 166.142*TMath::Sin(phi3*kDegrad); | |
1598 | ||
1599 | gMC->Gspos("TSCE",ns+1,"TSWC",xc,yc,0.,idrotm[nRotMat],"ONLY"); | |
1600 | gMC->Gspos("TWES",ns+1,"TSSW",xc,yc,0.,idrotm[nRotMat],"ONLY"); | |
1601 | ||
1602 | ||
1603 | // readout chambers->TDGN (drift gas) | |
1604 | ||
1605 | xc = rInner*TMath::Cos(phi3*kDegrad); | |
1606 | yc = rInner*TMath::Sin(phi3*kDegrad); | |
1607 | ||
1608 | gMC->Gspos("TIRC",ns+1,"TDGN",xc,yc,252.,idrotm[nRotMat],"ONLY"); | |
1609 | ||
1610 | // here lower sectors | |
1611 | ||
1612 | gMC->Gspos("TPLS",ns+1,"TDGN",xc,yc,125.15,idrotm[nRotMat],"ONLY"); | |
1613 | gMC->Gspos("TPLS",ns+nInnerSector+1,"TDGN",xc,yc,-125.15,idrotm[nRotMat],"ONLY"); | |
1614 | ||
1615 | xc = rOuter*TMath::Cos(phi3*kDegrad); | |
1616 | yc = rOuter*TMath::Sin(phi3*kDegrad); | |
1617 | ||
1618 | gMC->Gspos("TORC",ns+1,"TDGN",xc,yc,252.1,idrotm[nRotMat],"ONLY"); | |
1619 | ||
1620 | // here upper sectors | |
1621 | ||
1622 | gMC->Gspos("TPUS",ns+1,"TDGN",xc,yc,125.15,idrotm[nRotMat],"ONLY"); | |
1623 | gMC->Gspos("TPUS",ns+nOuterSector+1,"TDGN",xc,yc,-125.15,idrotm[nRotMat],"ONLY"); | |
1624 | ||
1625 | nRotMat++; | |
1626 | ||
1627 | theta2 = 0.; // reflection | |
1628 | ||
1629 | AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3); | |
1630 | ||
1631 | xc = rInner*TMath::Cos(phi3*kDegrad); | |
1632 | yc = rInner*TMath::Sin(phi3*kDegrad); | |
1633 | ||
1634 | gMC->Gspos("TIRC",ns+nInnerSector+1,"TDGN",xc,yc,-252.,idrotm[nRotMat],"ONLY"); | |
1635 | ||
1636 | xc = rOuter*TMath::Cos(phi3*kDegrad); | |
1637 | yc = rOuter*TMath::Sin(phi3*kDegrad); | |
1638 | ||
1639 | gMC->Gspos("TORC",ns+nOuterSector+1,"TDGN",xc,yc,-252.1,idrotm[nRotMat],"ONLY"); | |
1640 | ||
1641 | nRotMat++; | |
1642 | ||
1643 | } | |
1644 | ||
1645 | // reflection matrix | |
1646 | ||
1647 | theta1 = 90.; | |
1648 | phi1 = 0.; | |
1649 | theta2 = 90.; | |
1650 | phi2 = 270.; | |
1651 | theta3 = 180.; | |
1652 | phi3 = 0.; | |
1653 | ||
1654 | AliMatrix(idrotm[nRotMat], theta1, phi1, theta2, phi2, theta3, phi3); | |
1655 | ||
1656 | ||
1657 | // TPMW->TPC | |
1658 | ||
1659 | gMC->Gspos("TPMW",1,"TPC ",0.,0.,256.6,0,"ONLY"); | |
1660 | gMC->Gspos("TPMW",2,"TPC ",0.,0.,-256.6,idrotm[nRotMat],"ONLY"); | |
1661 | gMC->Gspos("TPEW",1,"TPC ",0.,0.,257.65,0,"ONLY"); | |
1662 | gMC->Gspos("TPEW",2,"TPC ",0.,0.,-257.5,0,"ONLY"); | |
1663 | ||
1664 | ||
1665 | ||
1666 | //------------------------------------------------------- | |
1667 | // Tpc High Voltage Membrane - NOMEX honeycomb | |
1668 | //------------------------------------------------------- | |
1669 | ||
1670 | dm[0]=0., | |
1671 | dm[1]=360.; | |
1672 | dm[2]=18.; | |
1673 | dm[3]=2.; | |
1674 | ||
1675 | // | |
1676 | ||
1677 | dm[4]= -0.3; | |
1678 | dm[5]= 81.156; | |
1679 | dm[6]= 253.386; | |
1680 | ||
1681 | // | |
1682 | ||
1683 | dm[7]= 0.3; | |
1684 | dm[8]= dm[5]; | |
1685 | dm[9]= dm[6]; | |
1686 | ||
1687 | gMC->Gsvolu("THVM","PGON",idtmed[6],dm,10); | |
1688 | ||
1689 | gMC->Gspos("THVM",1,"TDGN",0.,0.,0.,0,"ONLY"); | |
1690 | ||
1691 | //---------------------------------------------------------- | |
1692 | // TPc Support Rods - MAKROLON | |
1693 | //---------------------------------------------------------- | |
1694 | ||
1695 | dm[0]= 0.9; | |
1696 | dm[1]= 1.2; | |
1697 | dm[2]= 126.65; | |
1698 | ||
1699 | gMC->Gsvolu("TPSR","TUBE",idtmed[7],dm,3); | |
1700 | ||
1701 | for(Int_t nrod=1;nrod<18;nrod++){ | |
1702 | Float_t angle=innerOpenAngle*(Float_t)nrod; | |
1703 | ||
1704 | xc=82.4*TMath::Cos(angle); | |
1705 | yc=82.4*TMath::Sin(angle); | |
1706 | ||
1707 | gMC->Gspos("TPSR",nrod,"TDGN",xc,yc,126.95,0,"ONLY"); | |
1708 | gMC->Gspos("TPSR",nrod+17,"TDGN",xc,yc,-126.95,0,"ONLY"); | |
1709 | ||
1710 | xc=254.2*TMath::Cos(angle); | |
1711 | yc=254.2*TMath::Sin(angle); | |
1712 | ||
1713 | gMC->Gspos("TPSR",nrod+34,"TDGN",xc,yc,126.95,0,"ONLY"); | |
1714 | gMC->Gspos("TPSR",nrod+51,"TDGN",xc,yc,-126.95,0,"ONLY"); | |
1715 | ||
1716 | } | |
1717 | ||
1718 | //---------------------------------------------------------- | |
1719 | // Tpc High Voltage rod - MAKROLON + Copper cable | |
1720 | //---------------------------------------------------------- | |
1721 | ||
1722 | // rod with cable (Left) | |
1723 | ||
1724 | dm[0]=0.; | |
1725 | dm[1]=2.25; | |
1726 | dm[2]=126.65; | |
1727 | ||
1728 | gMC->Gsvolu("THVL","TUBE",idtmed[7],dm,3); | |
1729 | ||
1730 | // HV cable | |
1731 | ||
1732 | dm[0]=0.; | |
1733 | dm[1]=0.3; | |
1734 | dm[2]=126.65; | |
1735 | ||
1736 | gMC->Gsvolu("THVC","TUBE",idtmed[10],dm,3); | |
1737 | ||
1738 | // empty space | |
1739 | ||
1740 | dm[0]=0.3; | |
1741 | dm[1]=1.; | |
1742 | dm[2]=126.65; | |
1743 | ||
1744 | gMC->Gsvolu("THVE","TUBE",idtmed[1],dm,3); | |
1745 | ||
1746 | gMC->Gspos("THVC",1,"THVL",0.,0.,0.,0,"ONLY"); | |
1747 | gMC->Gspos("THVE",1,"THVL",0.,0.,0.,0,"ONLY"); | |
1748 | ||
1749 | // rod without cable | |
1750 | ||
1751 | dm[0]=1.8; | |
1752 | dm[1]=2.25; | |
1753 | dm[2]=126.65; | |
1754 | ||
1755 | gMC->Gsvolu("THVR","TUBE",idtmed[7],dm,3); | |
1756 | ||
1757 | ||
1758 | ||
1759 | gMC->Gspos("THVL",1,"TDGN",82.4,0.,-126.95,0,"ONLY"); | |
1760 | gMC->Gspos("THVL",2,"TDGN",254.2,0.,-126.95,0,"ONLY"); | |
1761 | ||
1762 | gMC->Gspos("THVR",1,"TDGN",82.4,0.,126.95,0,"ONLY"); | |
1763 | gMC->Gspos("THVR",2,"TDGN",254.2,0.,126.95,0,"ONLY"); | |
1764 | ||
1765 | ||
1766 | ||
1767 | gMC->Gspos("TDGN",1,"TPC ",0.,0.,0.,0,"ONLY"); | |
1768 | ||
1769 | // services wheel cover -> wheel | |
1770 | ||
1771 | ||
1772 | gMC->Gspos("TSWC",1,"TSSW",0.,0.,4.5,0,"ONLY"); | |
1773 | gMC->Gspos("TSWC",2,"TSSW",0.,0.,-4.5,0,"ONLY"); | |
1774 | ||
1775 | ||
1776 | // put the wheel into the TPC | |
1777 | ||
1778 | gMC->Gspos("TSSW",1,"TPC ",0.,0.,278.7,0,"ONLY"); | |
1779 | gMC->Gspos("TSSW",2,"TPC ",0.,0.,-278.7,0,"ONLY"); | |
1780 | ||
1781 | gMC->Gsord("TPMW",6); | |
1782 | gMC->Gsord("TPLS",3); | |
1783 | gMC->Gsord("TPUS",3); | |
1784 | gMC->Gsord("TDGN",6); | |
1785 | gMC->Gsord("TSSW",6); | |
1786 | gMC->Gsord("TSWC",6); | |
1787 | ||
1788 | // put the TPC into ALIC (main mother volume) | |
1789 | ||
1790 | gMC->Gspos("TPC ", 1, "ALIC", 0, 0, 0, 0, "ONLY"); | |
1791 | ||
1792 | ||
1793 | } // end of function | |
1794 | ||
1795 | //_____________________________________________________________________________ | |
1796 | void AliTPCv1::DrawDetector() | |
1797 | { | |
1798 | // | |
1799 | // Draw a shaded view of the Time Projection Chamber version 1 | |
1800 | // | |
1801 | ||
1802 | // Set everything unseen | |
1803 | gMC->Gsatt("*", "seen", -1); | |
1804 | // | |
1805 | // Set ALIC mother transparent | |
1806 | gMC->Gsatt("ALIC","SEEN",0); | |
1807 | // | |
1808 | // Set the volumes visible | |
1809 | gMC->Gsatt("TPC ","SEEN",0); | |
1810 | gMC->Gsatt("TOIN","SEEN",1); | |
1811 | gMC->Gsatt("TOIN","COLO",7); | |
1812 | gMC->Gsatt("TPCR","SEEN",0); | |
1813 | gMC->Gsatt("TOCV","SEEN",1); | |
1814 | gMC->Gsatt("TOCV","COLO",4); | |
1815 | gMC->Gsatt("TSA1","SEEN",0); | |
1816 | gMC->Gsatt("TSA2","SEEN",0); | |
1817 | gMC->Gsatt("TSA3","SEEN",0); | |
1818 | gMC->Gsatt("TSA4","SEEN",0); | |
1819 | gMC->Gsatt("TOFC","SEEN",1); | |
1820 | gMC->Gsatt("TOFC","COLO",4); | |
1821 | gMC->Gsatt("TSA5","SEEN",0); | |
1822 | gMC->Gsatt("TSA6","SEEN",0); | |
1823 | gMC->Gsatt("TSA7","SEEN",0); | |
37831078 | 1824 | gMC->Gsatt("TIIN","COLO",7); |
1825 | gMC->Gsatt("TIIN","SEEN",1); | |
1826 | gMC->Gsatt("TICL","SEEN",0); | |
1827 | gMC->Gsatt("TSA9","SEEN",0); | |
1828 | gMC->Gsatt("TS10","SEEN",0); | |
1829 | gMC->Gsatt("TS11","SEEN",0); | |
1830 | gMC->Gsatt("TS12","SEEN",0); | |
1831 | gMC->Gsatt("TICR","SEEN",0); | |
1832 | gMC->Gsatt("TS13","SEEN",0); | |
1833 | gMC->Gsatt("TS14","SEEN",0); | |
1834 | gMC->Gsatt("TS15","SEEN",0); | |
1835 | gMC->Gsatt("TS16","SEEN",0); | |
1836 | gMC->Gsatt("TIFC","SEEN",1); | |
1837 | gMC->Gsatt("TIFC","COLO",4); | |
1838 | gMC->Gsatt("TS17","SEEN",0); | |
1839 | gMC->Gsatt("TS18","SEEN",0); | |
1840 | gMC->Gsatt("TS19","SEEN",0); | |
37831078 | 1841 | gMC->Gsatt("TS21","SEEN",0); |
1842 | gMC->Gsatt("TS22","SEEN",0); | |
1843 | gMC->Gsatt("TS23","SEEN",0); | |
1844 | gMC->Gsatt("TS24","SEEN",0); | |
1845 | gMC->Gsatt("TDGN","SEEN",0); | |
1846 | gMC->Gsatt("TIRC","SEEN",0); | |
1847 | gMC->Gsatt("TIC1","SEEN",1); | |
1848 | gMC->Gsatt("TIPP","SEEN",0); | |
1849 | gMC->Gsatt("TIC3","SEEN",0); | |
1850 | gMC->Gsatt("TRCE","SEEN",0); | |
1851 | gMC->Gsatt("TPSC","SEEN",0); | |
1852 | gMC->Gsatt("TPCC","SEEN",0); | |
1853 | gMC->Gsatt("TORC","SEEN",0); | |
1854 | gMC->Gsatt("TOPP","SEEN",0); | |
1855 | gMC->Gsatt("TOC3","SEEN",0); | |
1856 | gMC->Gsatt("TOC1","SEEN",1); | |
1857 | gMC->Gsatt("TSSW","SEEN",1); | |
1858 | gMC->Gsatt("TSWC","SEEN",1); | |
1859 | gMC->Gsatt("TSCE","SEEN",1); | |
1860 | gMC->Gsatt("TSSW","COLO",3); | |
1861 | gMC->Gsatt("TSWC","COLO",3); | |
1862 | gMC->Gsatt("TSCE","COLO",6); | |
1863 | gMC->Gsatt("TWES","SEEN",0); | |
1864 | gMC->Gsatt("TSWB","SEEN",0); | |
1865 | gMC->Gsatt("TPEL","SEEN",0); | |
1866 | gMC->Gsatt("TPMW","SEEN",1); | |
1867 | gMC->Gsatt("TPEW","SEEN",1); | |
1868 | gMC->Gsatt("TESR","SEEN",1); | |
1869 | gMC->Gsatt("TPMW","COLO",12); | |
1870 | gMC->Gsatt("TPEW","COLO",12); | |
1871 | gMC->Gsatt("TWES","COLO",5); | |
1872 | gMC->Gsatt("TIC1","COLO",5); | |
1873 | gMC->Gsatt("TOC1","COLO",5); | |
1874 | gMC->Gsatt("TESB","SEEN",0); | |
1875 | gMC->Gsatt("TPLS","SEEN",0); | |
1876 | gMC->Gsatt("TPUS","SEEN",0); | |
1877 | gMC->Gsatt("TPSS","SEEN",0); | |
1878 | gMC->Gsatt("THVM","SEEN",1); | |
1879 | gMC->Gsatt("THVM","COLO",11); | |
1880 | gMC->Gsatt("TPSR","SEEN",0); | |
1881 | gMC->Gsatt("THVL","SEEN",0); | |
1882 | gMC->Gsatt("THVC","SEEN",0); | |
1883 | gMC->Gsatt("THVE","SEEN",0); | |
1884 | gMC->Gsatt("THVR","SEEN",0); | |
1885 | ||
1886 | gMC->Gdopt("hide", "on"); | |
1887 | gMC->Gdopt("shad", "on"); | |
1888 | gMC->Gsatt("*", "fill", 7); | |
1889 | gMC->SetClipBox("."); | |
1890 | gMC->SetClipBox("TPMW",-300,300,-300,300,254.,270.); | |
1891 | gMC->SetClipBox("TESR",-300,300,-300,300,254.,270.); | |
1892 | gMC->SetClipBox("TSSW",-300,300,-300,300,283.,284.); | |
1893 | gMC->SetClipBox("TSWC",-300,300,-300,300,283.,284.); | |
1894 | gMC->SetClipBox("*", 0, 300, -300, 300, -290, 290); | |
1895 | gMC->DefaultRange(); | |
1896 | gMC->Gdraw("alic", 40, 30, 0, 12, 9.5, .025, .025); | |
1897 | gMC->Gdhead(1111, "Time Projection Chamber"); | |
1898 | gMC->Gdman(18, 4, "MAN"); | |
1899 | gMC->Gdopt("hide","off"); | |
1900 | } | |
1901 | ||
1902 | //_____________________________________________________________________________ | |
1903 | void AliTPCv1::CreateMaterials() | |
1904 | { | |
1905 | // | |
1906 | // Define materials for Time Projection Chamber | |
1907 | // | |
1908 | AliTPC::CreateMaterials(); | |
1909 | } | |
1910 | ||
1911 | //_____________________________________________________________________________ | |
1912 | void AliTPCv1::Init() | |
fe4da5cc | 1913 | { |
1914 | // | |
1915 | // Initialises TPC detector after it has been created | |
1916 | // | |
cfce8870 | 1917 | |
37831078 | 1918 | fIdSens=gMC->VolId("TPSS"); // sensitive strip |
1919 | fIdLSec=gMC->VolId("TPLS"); // lower sector | |
1920 | fIdUSec=gMC->VolId("TPUS"); // upper sector | |
fe4da5cc | 1921 | |
1922 | printf("TPC version 1 initialized\n"); | |
1923 | } | |
1924 | ||
1925 | //_____________________________________________________________________________ | |
1926 | void AliTPCv1::StepManager() | |
1927 | { | |
1928 | // | |
1929 | // Called at every step in the Time Projection Chamber | |
1930 | // | |
0a6d8768 | 1931 | Int_t copy, id, i; |
fe4da5cc | 1932 | Float_t hits[4]; |
1933 | Int_t vol[2]; | |
0a6d8768 | 1934 | TLorentzVector p; |
6a905708 | 1935 | // |
1283eee5 | 1936 | |
0a6d8768 | 1937 | if(gMC->TrackCharge() && gMC->IsTrackEntering()) { |
37831078 | 1938 | |
1939 | // | |
1940 | // Only charged tracks entering the sensitive volume | |
fe4da5cc | 1941 | // |
37831078 | 1942 | |
1943 | id = gMC->CurrentVolID(copy); | |
1944 | ||
1945 | if(id == fIdSens){ | |
1946 | ||
1947 | // sensitive volume (strip) | |
1948 | ||
1949 | vol[1]= copy-1; // row number (absolute) | |
1950 | ||
1951 | // sector type | |
1952 | ||
1953 | id = gMC->CurrentVolOffID(1,copy); | |
1954 | ||
1955 | if(id == fIdLSec){ | |
1956 | ||
1957 | // lower sector | |
1958 | ||
1959 | vol[0] = copy-1; // sector number | |
1960 | ||
cc80f89e | 1961 | } |
37831078 | 1962 | else { |
1963 | ||
1964 | // upper sector | |
cc80f89e | 1965 | |
37831078 | 1966 | vol[0] = copy-1+fTPCParam->GetNInnerSector(); // sector number |
1967 | vol[1] -= fTPCParam->GetNRowLow(); // row number | |
1283eee5 | 1968 | |
37831078 | 1969 | } |
1970 | ||
1971 | if(vol[1] == 0){ | |
1972 | ||
1973 | // because Jouri wants to have this | |
1974 | ||
1975 | gMC->TrackMomentum(p); | |
1976 | hits[0]=p[0]; | |
1977 | hits[1]=p[1]; | |
1978 | hits[2]=p[2]; | |
1979 | hits[3]=0.; // this hit has no energy loss | |
6a905708 | 1980 | // new(lhits[fNhits++]) AliTPChit(fIshunt,gAlice->CurrentTrack(),vol,hits); |
1981 | ||
1982 | AddHit(gAlice->CurrentTrack(), vol,hits); // M.I. | |
37831078 | 1983 | |
1984 | gMC->TrackPosition(p); | |
1985 | hits[0]=p[0]; | |
1986 | hits[1]=p[1]; | |
1987 | hits[2]=p[2]; | |
1988 | hits[3]=0.; // this hit has no energy loss | |
6a905708 | 1989 | // new(lhits[fNhits++]) AliTPChit(fIshunt,gAlice->CurrentTrack(),vol,hits); |
1990 | ||
1991 | AddHit(gAlice->CurrentTrack(), vol,hits); // M.I. | |
37831078 | 1992 | |
1993 | } | |
1994 | ||
1995 | gMC->TrackPosition(p); | |
1996 | for(i=0;i<3;++i) hits[i]=p[i]; | |
1997 | hits[3]=1; //I'd like to have something positive here (I.Belikov) | |
6a905708 | 1998 | // new(lhits[fNhits++]) AliTPChit(fIshunt,gAlice->CurrentTrack(),vol,hits); |
1999 | ||
2000 | AddHit(gAlice->CurrentTrack(), vol,hits); // M.I. | |
37831078 | 2001 | |
2002 | } | |
2003 | ||
2004 | } | |
2005 | ||
fe4da5cc | 2006 | } |
37831078 | 2007 | //_____________________________________________________________________________ |
1283eee5 | 2008 | |
2009 | ||
2010 |