]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSv11.cxx
Update of SSD cable mass at ladder ends and on support cone to patch panels (outside...
[u/mrichter/AliRoot.git] / ITS / AliITSv11.cxx
CommitLineData
2b680d9b 1/**************************************************************************
717cdf18 2 * Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
2b680d9b 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
effd7456 16
717cdf18 17/* $Id: */
18
19
20//========================================================================
effd7456 21//
717cdf18 22// Geometry of the Inner Tracking System
23// ---------------------------------------
24// This geometry is fully described in TGeo geometry (v11)
25//
26// Ludovic Gaudichet (gaudichet@to.infn.it)
27// Mario Sitta (sitta@to.infn.it)
b7943f00 28//
717cdf18 29//========================================================================
30
31
32// $Log$
33// Revision 1.1 2011/06/10 14:48:24 masera
34// First version from v11Hybrid to v11 (M. Sitta)
b7943f00 35//
717cdf18 36
b7943f00 37
541f7ba6 38#include <TClonesArray.h>
717cdf18 39#include <TGeoGlobalMagField.h>
7dd2cbe4 40#include <TGeoManager.h>
717cdf18 41#include <TGeoMatrix.h>
42#include <TGeoPhysicalNode.h>
7dd2cbe4 43#include <TGeoVolume.h>
717cdf18 44#include <TGeoXtru.h>
2b680d9b 45#include <TLorentzVector.h>
717cdf18 46#include <TString.h>
7dd2cbe4 47#include <TVirtualMC.h>
b7943f00 48
49#include "AliITS.h"
531d6cdc 50#include "AliITSDetTypeSim.h"
b7943f00 51#include "AliITShit.h"
717cdf18 52#include "AliITSCalibrationSDD.h"
2b680d9b 53#include "AliITSsegmentationSDD.h"
b7943f00 54#include "AliITSsegmentationSPD.h"
55#include "AliITSsegmentationSSD.h"
108bd0fe 56#include "AliITSv11.h"
717cdf18 57#include "AliLog.h"
7dd2cbe4 58#include "AliMC.h"
59#include "AliMagF.h"
60#include "AliRun.h"
61#include "AliTrackReference.h"
717cdf18 62#include "AliITSv11GeometrySPD.h"
63#include "AliITSv11GeometrySDD.h"
64#include "AliITSv11GeometrySSD.h"
65#include "AliITSv11GeometrySupport.h"
66#include "AliGeomManager.h"
67
541f7ba6 68
b7943f00 69ClassImp(AliITSv11)
f7315efc 70
717cdf18 71//______________________________________________________________________
72AliITSv11::AliITSv11():
73 fByThick(kTRUE),
74 fMajorVersion(IsVersion()),
75 fMinorVersion(-1),
76 fIDMother(0),
77 fInitGeom((AliITSVersion_t)fMajorVersion,fMinorVersion),
78 fSPDgeom(0),
79 fSDDgeom(0),
80 fSSDgeom(0),
81 fSupgeom(0)
82 {
83 // Standard default constructor
84 // Inputs:
85 // none.
86 // Outputs:
87 // none.
88 // Return:
89 // none.
2b680d9b 90}
b7943f00 91
fa4639a3 92//______________________________________________________________________
717cdf18 93AliITSv11::AliITSv11(const char *title)
94 : AliITS("ITS", title),
95 fByThick(kTRUE),
96 fMajorVersion(IsVersion()),
97 fMinorVersion(1),
98 fIDMother(0),
99 fInitGeom((AliITSVersion_t)fMajorVersion,fMinorVersion),
100 fSPDgeom(0),
101 fSDDgeom(0),
102 fSSDgeom(0),
103 fSupgeom(0)
33ddec7d 104{
717cdf18 105 // Standard constructor for the v11 geometry.
106 // Inputs:
107 // const char * title Arbitrary title
108 // Outputs:
109 // none.
110 // Return:
111 // none.
112 Int_t i;
113
114 fSPDgeom = new AliITSv11GeometrySPD();
531d6cdc 115 fSDDgeom = new AliITSv11GeometrySDD(0);
717cdf18 116 fSSDgeom = new AliITSv11GeometrySSD();
117 fSupgeom = new AliITSv11GeometrySupport();
fa4639a3 118
531d6cdc 119 fIdN = 6;
120 fIdName = new TString[fIdN];
717cdf18 121
122 fIdName[0] = fSPDgeom->GetSenstiveVolumeName1();
123 fIdName[1] = fSPDgeom->GetSenstiveVolumeName2();
124
108bd0fe 125 fIdName[2] = fSDDgeom->GetSenstiveVolumeName3();
126 fIdName[3] = fSDDgeom->GetSenstiveVolumeName4();
717cdf18 127
128 fIdName[4] = fSSDgeom->GetSenstiveVolumeName5();
129 fIdName[5] = fSSDgeom->GetSenstiveVolumeName6();
130
fa4639a3 131 fIdSens = new Int_t[fIdN];
531d6cdc 132 for(i=0;i<fIdN;i++) fIdSens[i] = 0;
717cdf18 133
134 SetDensityServicesByThickness();
531d6cdc 135
fa4639a3 136}
717cdf18 137
2b680d9b 138//______________________________________________________________________
b78b741f 139AliITSv11::AliITSv11(const char *name, const char *title)
717cdf18 140 : AliITS("ITS", title),
141 fByThick(kTRUE),
142 fMajorVersion(IsVersion()),
143 fMinorVersion(1),
144 fIDMother(0),
145 fInitGeom((AliITSVersion_t)fMajorVersion,fMinorVersion),
146 fSPDgeom(0),
147 fSDDgeom(0),
148 fSSDgeom(0),
149 fSupgeom(0)
012f0f4c 150{
717cdf18 151 // Standard constructor for the v11 geometry.
152 // Inputs:
153 // const char * name Ignored, set to "ITS"
154 // const char * title Arbitrary title
155 // Outputs:
156 // none.
157 // Return:
158 // none.
159 Int_t i;
160
161 fSPDgeom = new AliITSv11GeometrySPD();
162 fSDDgeom = new AliITSv11GeometrySDD(0);
325d8c32 163 fSSDgeom = new AliITSv11GeometrySSD();
717cdf18 164 fSupgeom = new AliITSv11GeometrySupport();
531d6cdc 165
531d6cdc 166 fIdN = 6;
167 fIdName = new TString[fIdN];
717cdf18 168
169 (void) name; // removes warning message
170
54c9a3d9 171 fIdName[0] = fSPDgeom->GetSenstiveVolumeName1();
172 fIdName[1] = fSPDgeom->GetSenstiveVolumeName2();
717cdf18 173
108bd0fe 174 fIdName[2] = fSDDgeom->GetSenstiveVolumeName3();
175 fIdName[3] = fSDDgeom->GetSenstiveVolumeName4();
717cdf18 176
54c9a3d9 177 fIdName[4] = fSSDgeom->GetSenstiveVolumeName5();
178 fIdName[5] = fSSDgeom->GetSenstiveVolumeName6();
717cdf18 179
531d6cdc 180 fIdSens = new Int_t[fIdN];
181 for(i=0;i<fIdN;i++) fIdSens[i] = 0;
717cdf18 182
183 SetDensityServicesByThickness();
184
162acd47 185}
717cdf18 186
dfefbaec 187//______________________________________________________________________
b7943f00 188AliITSv11::~AliITSv11() {
717cdf18 189 // Standard destructor
190 // Inputs:
191 // none.
192 // Outputs:
193 // none.
194 // Return:
195 // none.
196 delete fSPDgeom;
b7943f00 197 delete fSDDgeom;
717cdf18 198 delete fSSDgeom;
199 delete fSupgeom;
2b680d9b 200}
717cdf18 201
2b680d9b 202//______________________________________________________________________
717cdf18 203void AliITSv11::SetT2Lmatrix(Int_t uid, Double_t yShift,
204 Bool_t yFlip, Bool_t yRot180) const
205{
206
207 //
208 // Creates the TGeo Local to Tracking transformation matrix
209 // and sends it to the corresponding TGeoPNEntry
210 //
211 // This function is used in AddAlignableVolumes()
212
213 TGeoPNEntry *alignableEntry = gGeoManager->GetAlignableEntryByUID(uid);
214 TGeoHMatrix* globMatrix = alignableEntry->GetGlobalOrig();
215
216 Double_t *gtrans = globMatrix->GetTranslation(), rotMatrix[9];
217 memcpy(&rotMatrix[0], globMatrix->GetRotationMatrix(), 9*sizeof(Double_t));
218 Double_t al = TMath::ATan2(rotMatrix[1],rotMatrix[0]);
219 if (yRot180) {
220 al = TMath::ATan2(rotMatrix[1],-rotMatrix[0]);
221 }
222 Double_t xShift = gtrans[0]*TMath::Cos(al)+gtrans[1]*TMath::Sin(al);
223 Double_t zShift = -gtrans[2];
224
225 TGeoHMatrix *matLtoT = new TGeoHMatrix;
226 matLtoT->SetDx( xShift ); // translation
227 matLtoT->SetDy( yShift );
228 matLtoT->SetDz( zShift );
229 rotMatrix[0]= 0; rotMatrix[1]= 1; rotMatrix[2]= 0; // + rotation
230 rotMatrix[3]= 1; rotMatrix[4]= 0; rotMatrix[5]= 0;
231 rotMatrix[6]= 0; rotMatrix[7]= 0; rotMatrix[8]=-1;
232 if (yFlip) rotMatrix[3] = -1; // flipping in y (for SPD1)
233 if (yFlip) rotMatrix[1] = -1; // flipping in y (for SPD1)
234
235 if (yRot180) { // rotation of pi around the axis perpendicular to the wafer
236 if (yFlip) matLtoT->SetDx( -xShift ); // flipping in y (for SPD1)
237 matLtoT->SetDy( -yShift );
238 matLtoT->SetDz( -zShift );
239 rotMatrix[8]=1;
240 rotMatrix[3] = -1;
241 if (yFlip) rotMatrix[3] = 1; // flipping in y (for SPD1)
242 }
243
244 TGeoRotation rot;
245 rot.SetMatrix(rotMatrix);
246 matLtoT->MultiplyLeft(&rot);
247 TGeoHMatrix *matTtoL = new TGeoHMatrix(matLtoT->Inverse());
248 delete matLtoT;
249 alignableEntry->SetMatrix(matTtoL);
250}
251
252//______________________________________________________________________
253void AliITSv11::AddAlignableVolumes() const
254{
255 // Creates entries for alignable volumes associating the symbolic volume
256 // name with the corresponding volume path.
257 //
258 // Records in the alignable entries the transformation matrices converting
259 // TGeo local coordinates (in the RS of alignable volumes) to the tracking
260 // system
261 // For this, this function has to run before the misalignment because we
262 // are using the ideal positions in the AliITSgeom object.
263 // Inputs:
264 // none.
265 // Outputs:
266 // none.
267 // Return:
268 // none.
269
270 AliInfo("Add ITS alignable volumes");
271
272 if (!gGeoManager) {
273 AliFatal("TGeoManager doesn't exist !");
274 return;
275 }
276
277 AliGeomManager::ELayerID layerId;
278 Int_t modUID, modnum;
279
280 if( !gGeoManager->SetAlignableEntry("ITS","ALIC_1/ITSV_1") )
281 AliFatal(Form("Unable to set alignable entry ! %s :: %s",
282 "ITS","ALIC_1/ITSV_1"));
283
284 TString strSPD = "ITS/SPD";
285 TString strSDD = "ITS/SDD";
286 TString strSSD = "ITS/SSD";
287 TString strStave = "/Stave";
288 TString strHalfStave = "/HalfStave";
289 TString strLadder = "/Ladder";
290 TString strSector = "/Sector";
291 TString strSensor = "/Sensor";
292 TString strEntryName1;
293 TString strEntryName2;
294 TString strEntryName3;
295 TString strEntryName4;
296
297 TString str0;
298 TString str1;
299 TString str2;
300
301 TString ladder;
302
303 //===== SPD layers =====
304
305 str0 = "ALIC_1/ITSV_1/ITSSPD_1/ITSSPDCarbonFiberSectorV_";
306 str1 = "/ITSSPDSensitiveVirtualvolumeM0_1/ITSSPDlay1-Stave_";
307
308 TString str1Bis = "/ITSSPDhalf-Stave";
309 TString str1Tierce = "_1";
310
311 str2 = "/ITSSPDlay1-Ladder_";
312
313 TString sector;
314 TString stave;
315 TString halfStave;
316 TString module;
317
318 layerId = AliGeomManager::kSPD1;
319 modnum = 0;
320
321 for(Int_t cSect = 0; cSect<10; cSect++) {
322
323 sector = str0;
324 sector += cSect+1; // this is one full sector
325 strEntryName1 = strSPD;
326 strEntryName1 += 0;
327 strEntryName1 += strSector;
328 strEntryName1 += cSect;
329 if(!gGeoManager->SetAlignableEntry(strEntryName1.Data(),sector.Data()))
330 AliFatal(Form("New lay 1: Unable to set alignable entry 1! %s::%s",
331 strEntryName1.Data(),sector.Data()));
b7943f00 332
717cdf18 333 for(Int_t cStave=0; cStave<2; cStave++) {
334
335 stave = sector;
336 stave += str1;
337 stave += cStave+1;
338 strEntryName2 = strEntryName1;
339 strEntryName2 += strStave;
340 strEntryName2 += cStave;
341
342 for(Int_t cHS=0; cHS<2; cHS++) {
343
344 halfStave = stave;
345 halfStave += str1Bis;
346 halfStave += cHS;
347 halfStave += str1Tierce;
348 strEntryName3 = strEntryName2;
349 strEntryName3 += strHalfStave;
350 strEntryName3 += cHS;
351
352 if(!gGeoManager->SetAlignableEntry(strEntryName3.Data(),
353 halfStave.Data()))
354 AliFatal(Form("New lay 1: Unable to set alignable entry 3! %s::%s",
355 strEntryName3.Data(),halfStave.Data()));
356
357 for(Int_t cLad=0; cLad<2; cLad++) {
358
359 modUID = AliGeomManager::LayerToVolUID(layerId,modnum++);
360 module = halfStave;
361 module += str2;
362 module += cLad+cHS*2+1;
363 strEntryName4 = strEntryName3;
364 strEntryName4 += strLadder;
365 strEntryName4 += cLad+cHS*2;
366 if(!gGeoManager->SetAlignableEntry(strEntryName4.Data(),module.Data(),modUID))
367 AliFatal(Form("New lay 1: Unable to set alignable entry 4! %s::%s",
368 strEntryName4.Data(),module.Data()));
369
370 SetT2Lmatrix(modUID, 0.0081, kTRUE, kTRUE);
371 // 0.0081 is the shift between the centers of alignable
372 // and sensitive volumes. It is directly extracted from
373 // the new SPD geometry
374 } // end for cLad
375 } // end for cHS
376 } // end for cStave
377 } // end for cSect
378
379 layerId = AliGeomManager::kSPD2;
380 modnum = 0;
381 str1 = "/ITSSPDSensitiveVirtualvolumeM0_1/ITSSPDlay2-Stave_";
382 str2 = "/ITSSPDlay2-Ladder_";
383
384 for(Int_t cSect = 0; cSect<10; cSect++) {
385
386 sector = str0;
387 sector += cSect+1; // this is one full sector
388 strEntryName1 = strSPD;
389 strEntryName1 += 1;
390 strEntryName1 += strSector;
391 strEntryName1 += cSect;
392
393 for(Int_t cStave=0; cStave<4; cStave++) {
394
395 stave = sector;
396 stave += str1;
397 stave += cStave+1;
398 strEntryName2 = strEntryName1;
399 strEntryName2 += strStave;
400 strEntryName2 += cStave;
401
402 for(Int_t cHS=0; cHS<2; cHS++) {
403
404 halfStave = stave;
405 halfStave += str1Bis;
406 halfStave += cHS;
407 halfStave += str1Tierce;
408 strEntryName3 = strEntryName2;
409 strEntryName3 += strHalfStave;
410 strEntryName3 += cHS;
411
412 if(!gGeoManager->SetAlignableEntry(strEntryName3.Data(),
413 halfStave.Data()))
414 AliFatal(Form("New lay 2: Unable to set alignable entry 3! %s::%s",
415 strEntryName3.Data(),halfStave.Data()));
416
417 for(Int_t cLad=0; cLad<2; cLad++) {
418
419 modUID = AliGeomManager::LayerToVolUID(layerId,modnum++);
420 module = halfStave;
421 module += str2;
422 module += cLad+cHS*2 +1;
423 strEntryName4 = strEntryName3;
424 strEntryName4 += strLadder;
425 strEntryName4 += cLad+cHS*2;
426 if(!gGeoManager->SetAlignableEntry(strEntryName4.Data(),module.Data(),modUID))
427 AliFatal(Form("New lay 2: Unable to set alignable entry 4! %s::%s",
428 strEntryName4.Data(),module.Data()));
429
430 SetT2Lmatrix(modUID, -0.0081, kFALSE);
431 } // end for cLad
432 } // end for cHS
433 } // end for cStave
434 } // cSect
435
436 //===== SDD layers =====
437
438 layerId = AliGeomManager::kSDD1;
439 modnum = 0;
440
441 str0 = "/ALIC_1/ITSV_1/ITSsddLayer3_1/ITSsddLadd_"; // SDD layer1
442 str1 = "/ITSsddSensor3_";
443
444 TString sensor;
445
446 for(Int_t c1 = 0; c1<14; c1++) {
447
448 ladder = str0;
449 ladder += c1; // the set of wafers from one ladder
450 strEntryName1 = strSDD;
451 strEntryName1 += 2;
452 strEntryName1 +=strLadder;
453 strEntryName1 += c1;
454 //printf("%s == %s\n",strEntryName1.Data(),ladder.Data());
455 if(!gGeoManager->SetAlignableEntry(strEntryName1.Data(),ladder.Data()))
456 AliFatal(Form("Unable to set alignable entry 1! %s :: %s",
457 strEntryName1.Data(),ladder.Data()));
458
459 for(Int_t c2 =0; c2<6; c2++) {
460
461 modUID = AliGeomManager::LayerToVolUID(layerId,modnum++);
462 sensor = ladder;
463 sensor += str1;
464 sensor += c2;
465 strEntryName2 = strEntryName1;
466 strEntryName2 += strSensor;
467 strEntryName2 += c2;
468 //printf("%s == %s\n",strEntryName2.Data(),wafer.Data());
469 if(!gGeoManager->SetAlignableEntry(strEntryName2.Data(),sensor.Data(),modUID))
470 AliFatal(Form("Unable to set alignable entry 2! %s :: %s",
471 strEntryName2.Data(),sensor.Data()));
472
473 SetT2Lmatrix(modUID, 0, kFALSE, c2>=3);
474 }
475 }
476
477 layerId = AliGeomManager::kSDD2;
478 modnum = 0;
479 str0 = "/ALIC_1/ITSV_1/ITSsddLayer4_1/ITSsddLadd_"; // SDD layer2
480 str1 = "/ITSsddSensor4_";
481
482 for(Int_t c1 = 0; c1<22; c1++) {
483
484 ladder = str0;
485 ladder += c1; // the set of wafers from one ladder
486 strEntryName1 = strSDD;
487 strEntryName1 += 3;
488 strEntryName1 += strLadder;
489 strEntryName1 += c1;
490 //printf("%s == %s\n",strEntryName1.Data(),ladder.Data());
491 if(!gGeoManager->SetAlignableEntry(strEntryName1.Data(),ladder.Data()))
492 AliFatal(Form("Unable to set alignable entry 1! %s :: %s",
493 strEntryName1.Data(),ladder.Data()));
494
495 for(Int_t c2 =0; c2<8; c2++) {
496
497 modUID = AliGeomManager::LayerToVolUID(layerId,modnum++);
498 sensor = ladder;
499 sensor += str1;
500 sensor += c2;
501 strEntryName2 = strEntryName1;
502 strEntryName2 += strSensor;
503 strEntryName2 += c2;
504 //printf("%s == %s\n",strEntryName2.Data(),wafer.Data());
505 if(!gGeoManager->SetAlignableEntry(strEntryName2.Data(),sensor.Data(),modUID))
506 AliFatal(Form("Unable to set alignable entry 2! %s :: %s",
507 strEntryName2.Data(),sensor.Data()));
508
509 SetT2Lmatrix(modUID, 0, kFALSE, c2>=4);
510 }
511 }
512
513 //===== SSD layers =====
514
515 layerId = AliGeomManager::kSSD1;
516 modnum = 0;
517
518 str0 = "/ALIC_1/ITSV_1/ITSssdLayer5_1/ITSssdLay5Ladd_";//SSD layer1
519 str1 = "/ITSssdSensor5_";
520 str2 = "";
521
522 TString wafer;
523
524 for(Int_t c1 = 0; c1<34; c1++) {
525
526 ladder = str0;
527 ladder += c1; // the set of wafers from one ladder
528 strEntryName1 = strSSD;
529 strEntryName1 += 4;
530 strEntryName1 += strLadder;
531 strEntryName1 += c1;
532 //printf("%s == %s\n",strEntryName1.Data(),ladder.Data());
533 if(!gGeoManager->SetAlignableEntry(strEntryName1.Data(),ladder.Data()))
534 AliFatal(Form("Unable to set alignable entry 1! %s :: %s",
535 strEntryName1.Data(),ladder.Data()));
536
537 for(Int_t c2 =0; c2<22; c2++) {
538
539 modUID = AliGeomManager::LayerToVolUID(layerId,modnum++);
540 wafer = ladder;
541 wafer += str1;
542 wafer += c2;
543 //wafer += str2; // one wafer
544 strEntryName2 = strEntryName1;
545 strEntryName2 += strSensor;
546 strEntryName2 += c2;
547 //printf("%s == %s\n",strEntryName2.Data(),wafer.Data());
548 if(!gGeoManager->SetAlignableEntry(strEntryName2.Data(),wafer.Data(),modUID))
549 AliFatal(Form("Unable to set alignable entry 2! %s :: %s",
550 strEntryName2.Data(),wafer.Data()));
551
552 SetT2Lmatrix(modUID, 0, kFALSE, kFALSE);
553 }
554 }
555
556 layerId = AliGeomManager::kSSD2;
557 modnum = 0;
558 str0 = "/ALIC_1/ITSV_1/ITSssdLayer6_1/ITSssdLay6Ladd_"; // SSD layer2
559 str1 = "/ITSssdSensor6_";
560 str2 = "";
561
562 for(Int_t c1 = 0; c1<38; c1++) {
563
564 ladder = str0;
565 ladder += c1; // the set of wafers from one ladder
566 strEntryName1 = strSSD;
567 strEntryName1 += 5;
568 strEntryName1 += strLadder;
569 strEntryName1 += c1;
570 //printf("%s == %s\n",strEntryName1.Data(),ladder.Data());
571 if(!gGeoManager->SetAlignableEntry(strEntryName1.Data(),ladder.Data()))
572 AliFatal(Form("Unable to set alignable entry 1! %s :: %s",
573 strEntryName1.Data(),ladder.Data()));
574
575 for(Int_t c2 =0; c2<25; c2++) {
576
577 modUID = AliGeomManager::LayerToVolUID(layerId,modnum++);
578 wafer = ladder;
579 wafer += str1;
580 wafer += c2;
581 //wafer += str2; // one wafer
582 strEntryName2 = strEntryName1;
583 strEntryName2 += strSensor;
584 strEntryName2 += c2;
585 //printf("%s == %s\n",strEntryName2.Data(),wafer.Data());
586 if(!gGeoManager->SetAlignableEntry(strEntryName2.Data(),wafer.Data(),modUID))
587 AliFatal(Form("Unable to set alignable entry 2! %s :: %s",
588 strEntryName2.Data(),wafer.Data()));
589
590 SetT2Lmatrix(modUID, 0, kFALSE, kFALSE);
591 }
592 }
593
541f7ba6 594}
717cdf18 595
541f7ba6 596//______________________________________________________________________
717cdf18 597void AliITSv11::CreateGeometry()
598{
599 // Create the geometry and insert it in ALIC
600
601 TGeoManager *geoManager = gGeoManager;
602
603 TGeoVolume *vALIC = geoManager->GetVolume("ALIC");
604
605 // This part is really ugly, needs to be redone
606 new TGeoVolumeAssembly("ITSV");
607 new TGeoVolumeAssembly("ITSS");
608
609 TGeoVolume *vITSV = geoManager->GetVolume("ITSV");
610 TGeoVolume *vITSS = geoManager->GetVolume("ITSS");
611
612 vALIC->AddNode(vITSV, 1, 0);
613 vALIC->AddNode(vITSS, 1, 0);
614
615 //
616 const Char_t *cvsDate="$Date$";
617 const Char_t *cvsRevision="$Revision$";
618 const Int_t kLength=100;
619 Char_t vstrng[kLength];
620 if(fInitGeom.WriteVersionString(vstrng,kLength,(AliITSVersion_t)IsVersion(),
621 fMinorVersion,cvsDate,cvsRevision)) {
622 vITSV->SetTitle(vstrng);
623 vITSS->SetTitle(vstrng);
624 }
625
626 fSPDgeom->SPDSector(vITSV);
627
628 fSDDgeom->Layer3(vITSV);
629 fSDDgeom->Layer4(vITSV);
630 fSDDgeom->ForwardLayer3(vITSV);
631 fSDDgeom->ForwardLayer4(vITSV);
632
633 fSSDgeom->Layer5(vITSV);
634 fSSDgeom->Layer6(vITSV);
635 fSSDgeom->LadderSupportLayer5(vITSV);
636 fSSDgeom->LadderSupportLayer6(vITSV);
637 fSSDgeom->EndCapSupportSystemLayer6(vITSV);
638 fSSDgeom->EndCapSupportSystemLayer5(vITSV);
639
640 fSupgeom->SPDCone(vITSV);
641 fSupgeom->SDDCone(vITSV);
642 fSupgeom->SSDCone(vITSV);
643
644 fSDDgeom->SDDCables(vITSV);
645 fSSDgeom->SSDCables(vITSV);
646 fSupgeom->ServicesCableSupport(vITSS);
647
648 fSupgeom->ITSTPCSupports(vITSS);
649
650}
651
652//______________________________________________________________________
653void AliITSv11::CreateMaterials()
654{
655 // Create ITS materials
656 // This function defines the default materials used in the Geant
657 // Monte Carlo simulations for the geometries AliITSv1, AliITSv3,
658 // AliITSv11.
659 // In general it is automatically replaced by
660 // the CreateMaterials routine defined in AliITSv?. Should the function
661 // CreateMaterials not exist for the geometry version you are using this
662 // one is used. See the definition found in AliITSv5 or the other routine
663 // for a complete definition.
54c9a3d9 664 // Inputs:
717cdf18 665 // none.
54c9a3d9 666 // Outputs:
717cdf18 667 // none.
54c9a3d9 668 // Return:
717cdf18 669 // none.
670
671 Int_t ifield = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->Integ();
672 Float_t fieldm = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->Max();
531d6cdc 673
717cdf18 674 Float_t tmaxfd = 0.1; // 1.0; // Degree
675 Float_t stemax = 1.0; // cm
676 Float_t deemax = 0.1; // 30.0; // Fraction of particle's energy 0<deemax<=1
677 Float_t epsil = 1.0E-4; // 1.0; // cm
678 Float_t stmin = 0.0; // cm "Default value used"
679
680 Float_t tmaxfdSi = 0.1; // .10000E+01; // Degree
681 Float_t stemaxSi = 0.0075; // .10000E+01; // cm
682 Float_t deemaxSi = 0.1; // 0.30000E-02; // Fraction of particle's energy 0<deemax<=1
683 Float_t epsilSi = 1.0E-4;// .10000E+01;
684 Float_t stminSi = 0.0; // cm "Default value used"
685
686 Float_t tmaxfdAir = 0.1; // .10000E+01; // Degree
687 Float_t stemaxAir = .10000E+01; // cm
688 Float_t deemaxAir = 0.1; // 0.30000E-02; // Fraction of particle's energy 0<deemax<=1
689 Float_t epsilAir = 1.0E-4;// .10000E+01;
690 Float_t stminAir = 0.0; // cm "Default value used"
691
692 Float_t tmaxfdServ = 1.0; // 10.0; // Degree
693 Float_t stemaxServ = 1.0; // 0.01; // cm
694 Float_t deemaxServ = 0.5; // 0.1; // Fraction of particle's energy 0<deemax<=1
695 Float_t epsilServ = 1.0E-3; // 0.003; // cm
696 Float_t stminServ = 0.0; //0.003; // cm "Default value used"
697
698 // Freon PerFluorobuthane C4F10 see
699 // http://st-support-cooling-electronics.web.cern.ch/
700 // st-support-cooling-electronics/default.htm
701 Float_t afre[2] = { 12.011,18.9984032 };
702 Float_t zfre[2] = { 6., 9. };
703 Float_t wfre[2] = { 4.,10. };
704 Float_t densfre = 1.52;
705
706
707 //CM55J
708
709 Float_t aCM55J[4]={12.0107,14.0067,15.9994,1.00794};
710 Float_t zCM55J[4]={6.,7.,8.,1.};
711 Float_t wCM55J[4]={0.908508078,0.010387573,0.055957585,0.025146765};
712 Float_t dCM55J = 1.8;
713
714 //ALCM55J
715
716 Float_t aALCM55J[5]={12.0107,14.0067,15.9994,1.00794,26.981538};
717 Float_t zALCM55J[5]={6.,7.,8.,1.,13.};
718 Float_t wALCM55J[5]={0.817657902,0.0093488157,0.0503618265,0.0226320885,0.1};
719 Float_t dALCM55J = 1.9866;
720
721 //Si Chips
722
723 Float_t aSICHIP[6]={12.0107,14.0067,15.9994,1.00794,28.0855,107.8682};
724 Float_t zSICHIP[6]={6.,7.,8.,1.,14., 47.};
725 Float_t wSICHIP[6]={0.039730642,0.001396798,0.01169634,0.004367771,0.844665,0.09814344903};
726 Float_t dSICHIP = 2.36436;
727
728 //Inox
531d6cdc 729
717cdf18 730 Float_t aINOX[9]={12.0107,54.9380, 28.0855,30.9738,32.066,58.6928,51.9961,95.94,55.845};
731 Float_t zINOX[9]={6.,25.,14.,15.,16., 28.,24.,42.,26.};
732 Float_t wINOX[9]={0.0003,0.02,0.01,0.00045,0.0003,0.12,0.17,0.025,0.654};
733 Float_t dINOX = 8.03;
734
735 //AISI 304 L (from F.Tosello's web page - M.S. 18 Oct 10)
736
737 Float_t a304L[8]={12.0107,54.9380, 28.0855,30.9738,32.066,58.6928,51.9961,55.845};
738 Float_t z304L[8]={6.,25.,14.,15.,16., 28.,24.,26.};
739 Float_t w304L[8]={0.0003,0.02,0.01,0.00045,0.003,0.0925,0.19,0.6865};
740 Float_t d304L = 8.03;
741
742 //SDD HV microcable
743
744 Float_t aHVm[5]={12.0107,1.00794,14.0067,15.9994,26.981538};
745 Float_t zHVm[5]={6.,1.,7.,8.,13.};
746 Float_t wHVm[5]={0.520088819984,0.01983871336,0.0551367996,0.157399667056, 0.247536};
747 Float_t dHVm = 1.6087;
748
749 //SDD LV+signal cable
750
751 Float_t aLVm[5]={12.0107,1.00794,14.0067,15.9994,26.981538};
752 Float_t zLVm[5]={6.,1.,7.,8.,13.};
753 Float_t wLVm[5]={0.21722436468,0.0082859922,0.023028867,0.06574077612, 0.68572};
754 Float_t dLVm = 2.1035;
755
756 //SDD hybrid microcab
757
758 Float_t aHLVm[5]={12.0107,1.00794,14.0067,15.9994,26.981538};
759 Float_t zHLVm[5]={6.,1.,7.,8.,13.};
760 Float_t wHLVm[5]={0.24281879711,0.00926228815,0.02574224025,0.07348667449, 0.64869};
761 Float_t dHLVm = 2.0502;
762
763 //SDD anode microcab
764
765 Float_t aALVm[5]={12.0107,1.00794,14.0067,15.9994,26.981538};
766 Float_t zALVm[5]={6.,1.,7.,8.,13.};
767 Float_t wALVm[5]={0.392653705471,0.0128595919215,0.041626868025,0.118832707289, 0.431909};
768 Float_t dALVm = 2.0502;
769
770 //X7R capacitors - updated from F.Tosello's web page - M.S. 18 Oct 10
771
772 Float_t aX7R[6]={137.327,47.867,15.9994,58.6928,63.5460,118.710};
773 Float_t zX7R[6]={56.,22.,8.,28.,29.,50.};
774 Float_t wX7R[6]={0.524732,0.176736,0.179282,0.079750,0.019750,0.019750};
775 Float_t dX7R = 6.07914;
776
777 //X7R weld, i.e. Sn 60% Pb 40% (from F.Tosello's web page - M.S. 15 Oct 10)
778
779 Float_t aX7Rweld[2]={118.71 , 207.20};
780 Float_t zX7Rweld[2]={ 50. , 82. };
781 Float_t wX7Rweld[2]={ 0.60 , 0.40};
782 Float_t dX7Rweld = 8.52358;
783
784 // AIR
785
786 Float_t aAir[4]={12.0107,14.0067,15.9994,39.948};
787 Float_t zAir[4]={6.,7.,8.,18.};
788 Float_t wAir[4]={0.000124,0.755267,0.231781,0.012827};
789 Float_t dAir = 1.20479E-3;
790
791 // Water
792
793 Float_t aWater[2]={1.00794,15.9994};
794 Float_t zWater[2]={1.,8.};
795 Float_t wWater[2]={0.111894,0.888106};
796 Float_t dWater = 1.0;
797
798 // CERAMICS
799 // 94.4% Al2O3 , 2.8% SiO2 , 2.3% MnO , 0.5% Cr2O3
800 Float_t acer[5] = { 26.981539,15.9994,28.0855,54.93805,51.9961 };
801 Float_t zcer[5] = { 13., 8., 14., 25., 24. };
802 Float_t wcer[5] = {.4443408,.5213375,.0130872,.0178135,.003421};
803 Float_t denscer = 3.6;
804
805 //G10FR4
806
807 Float_t zG10FR4[14] = {14.00, 20.00, 13.00, 12.00, 5.00, 22.00, 11.00, 19.00, 26.00, 9.00, 8.00, 6.00, 7.00, 1.00};
808 Float_t aG10FR4[14] = {28.0855000,40.0780000,26.9815380,24.3050000,10.8110000,47.8670000,22.9897700,39.0983000,55.8450000,18.9984000,15.9994000,12.0107000,14.0067000,1.0079400};
809 Float_t wG10FR4[14] = {0.15144894,0.08147477,0.04128158,0.00904554,0.01397570,0.00287685,0.00445114,0.00498089,0.00209828,0.00420000,0.36043788,0.27529426,0.01415852,0.03427566};
810 Float_t densG10FR4= 1.8;
811
812 //--- EPOXY --- C18 H19 O3
813 Float_t aEpoxy[3] = {15.9994, 1.00794, 12.0107} ;
814 Float_t zEpoxy[3] = { 8., 1., 6.} ;
815 Float_t wEpoxy[3] = { 3., 19., 18.} ;
816 Float_t dEpoxy = 1.8 ;
817
818 // rohacell: C9 H13 N1 O2
819 Float_t arohac[4] = {12.01, 1.01, 14.010, 16.};
820 Float_t zrohac[4] = { 6., 1., 7., 8.};
821 Float_t wrohac[4] = { 14., 10., 2., 6.};
822 Float_t drohac = 0.052;
823
824 // If he/she means stainless steel (inox) + Aluminium and Zeff=15.3383 then
825//
826// %Al=81.6164 %inox=100-%Al
827
828 Float_t aInAl[5] = {27., 55.847,51.9961,58.6934,28.0855 };
829 Float_t zInAl[5] = {13., 26.,24.,28.,14. };
830 Float_t wInAl[5] = {.816164, .131443,.0330906,.0183836,.000919182};
831 Float_t dInAl = 3.075;
832
833 // Aluminum alloy with 12% Copper - 21 Oct 10
834
835 Float_t aAlCu12[2] = {26.9815, 63.546};
836 Float_t zAlCu12[2] = {13. , 29. };
837 Float_t wAlCu12[2] = { 0.88 , 0.12 };
838 Float_t dAlCu12 = 2.96;
839
840 // Kapton
841
842 Float_t aKapton[4]={1.00794,12.0107, 14.010,15.9994};
843 Float_t zKapton[4]={1.,6.,7.,8.};
844 Float_t wKapton[4]={0.026362,0.69113,0.07327,0.209235};
845 Float_t dKapton = 1.42;
846
847 // Kapton + Cu (for Pixel Bus)
848
849 Float_t aKaptonCu[5]={1.00794, 12.0107, 14.010, 15.9994, 63.5460};
850 Float_t zKaptonCu[5]={1., 6., 7., 8., 29.};
851 Float_t wKaptonCuBus[5];
852
853 // Kapton + Cu (for Pixel MCM)
854
855 Float_t wKaptonCuMCM[5];
856
857 // Kapton + Cu (mix of two above)
858
859 Float_t wKaptonCuMix[5];
860
861 //SDD ruby sph.
862 Float_t aAlOxide[2] = { 26.981539,15.9994};
863 Float_t zAlOxide[2] = { 13., 8.};
864 Float_t wAlOxide[2] = {0.4707, 0.5293};
865 Float_t dAlOxide = 3.97;
866
867 // Silica for optical fibers: Si O2
868 Float_t aoptfib[2] = { 28.0855, 15.9994};
869 Float_t zoptfib[2] = { 14., 8. };
870 Float_t woptfib[2] = { 1., 2. };
871 Float_t doptfib = 2.55;
872
873 // Tetrafluorethylene-Perfluorpropylene (FEP) - 08 Mar 10
874 Float_t aFEP[2] = { 12.0107, 18.9984};
875 Float_t zFEP[2] = { 6. , 9. };
876 Float_t wFEP[2] = { 1. , 2. };
877 Float_t dFEP = 2.15;
878
879 // PVC (C2H3Cl)n - 08 Jul 10
880 Float_t aPVC[3] = { 12.0107, 1.00794, 35.4527};
881 Float_t zPVC[3] = { 6. , 1. , 35. };
882 Float_t wPVC[3] = { 2. , 3. , 1. };
883 Float_t dPVC = 1.3;
884
885 // PBT (Polybutylene terephthalate = C12-H12-O4) - 01 Sep 10
886 Float_t aPBT[3] = { 12.0107, 1.00794, 15.9994};
887 Float_t zPBT[3] = { 6. , 1. , 8. };
888 Float_t wPBT[3] = { 12. ,12. , 4. };
889 Float_t dPBT = 1.31;
890
891 // POLYAX (POLYAX = C37-H24-O6-N2) - 03 Sep 10
892 Float_t aPOLYAX[4] = { 12.0107, 1.00794, 15.9994, 14.00674};
893 Float_t zPOLYAX[4] = { 6. , 1. , 8. , 7. };
894 Float_t wPOLYAX[4] = { 37. ,24. , 6. , 2. };
895 Float_t dPOLYAX = 1.27;
896
897 // PPS (PPS = C6-H4-S) - 05 Sep 10
898 Float_t aPPS[3] = { 12.0107, 1.00794, 32.066};
899 Float_t zPPS[3] = { 6. , 1. , 16. };
900 Float_t wPPS[3] = { 6. , 4. , 1. };
901 Float_t dPPS = 1.35;
902
903 // Megolon (Polyolefin = (C-H2)n) - 20 Oct 10
904 Float_t aMegolon[2] = { 12.0107, 1.00794};
905 Float_t zMegolon[2] = { 6. , 1. };
906 Float_t wMegolon[2] = { 1. , 2. };
907 Float_t dMegolon = 1.51; // Mean of various types
908
909 // Standard glass (from glassproperties.com/glasses - M.S. 21 Oct 10)
910 Float_t aStdGlass[7] = {15.9994 ,28.0855 ,22.98977 ,40.078 ,
911 24.305 ,26.981539,39.0983 };
912 Float_t zStdGlass[7] = { 8. ,14. ,11. ,20. ,
913 12. ,13. ,19. };
914 Float_t wStdGlass[7] = { 0.468377, 0.348239, 0.096441, 0.071469,
915 0.006030, 0.005293, 0.004151};
916 Float_t dStdGlass = 2.53;
917
918 // Glass Fiber (from F.Tosello's web page - M.S. 15 Oct 10)
919 Float_t aGlass[11] = {15.9994 ,28.0855 ,40.078 ,26.981539,10.811 ,
920 24.305 ,39.0983 ,22.98977 ,18.9984 ,47.867 ,55.845};
921 Float_t zGlass[11] = { 8. ,14. ,20 ,13 , 5 ,
922 12. ,19 ,11 , 9 ,22 ,26 };
923 Float_t wGlass[11] = { 0.473610, 0.252415, 0.135791, 0.068803, 0.023293,
924 0.015076, 0.008301, 0.007419, 0.007000, 0.004795, 0.003497};
925 Float_t dGlass = 2.61;
926
927 // Ryton R-4 04 (from F.Tosello's web page - M.S. 15 Oct 10)
928 Float_t aRyton[14] = {15.9994 ,28.0855 ,40.078 ,26.981539,10.811 ,
929 24.305 ,39.0983 ,22.98977 ,18.9984 ,47.867 ,
930 55.845 ,12.0107 , 1.00794 ,32.066 };
931 Float_t zRyton[14] = { 8. ,14. ,20. ,13. , 5. ,
932 12. ,19. ,11. , 9. ,22. ,
933 26. , 6. , 1. ,16. };
934 Float_t wRyton[14] = { 0.189445, 0.100966, 0.054316, 0.027521, 0.009317,
935 0.006030, 0.003320, 0.002968, 0.002800, 0.001918,
936 0.001399, 0.399760, 0.022365, 0.177875};
937 Float_t dRyton = 1.65;
938
939 // Plexiglas (Poly(methyl methacrylate) (C5O2H8)n - M.S. 05 nov 10)
940 Float_t aPlexy[3] = { 12.0107, 15.9994, 1.00794};
941 Float_t zPlexy[3] = { 6. , 8. , 1. };
942 Float_t wPlexy[3] = { 5. , 2. , 8. };
943 Float_t dPlexy = 1.18;
944
945 //SSD NiSn capacitor ends
946 Float_t aNiSn[2] = { 56.6934,118.710};
947 Float_t zNiSn[2] = { 28., 50.};
948 Float_t wNiSn[2] = {0.33, 0.67};
949 Float_t dNiSn = wNiSn[0]*8.908 + wNiSn[1]*7.310;
950
39c2e170 951 // SPD cooling capillaries (Phynox)
952 Float_t aPhynox[5] = { 55.8450, 58.9332, 51.9961, 58.6934, 95.94 };
953 Float_t zPhynox[5] = { 26. , 27. , 24. , 28. , 42. };
954 Float_t wPhynox[5] = { 0.17 , 0.40 , 0.20 , 0.16 , 0.07 };
955 Float_t dPhynox = 8.3;
956
717cdf18 957 AliMaterial(1,"SI$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
958 AliMedium(1,"SI$",1,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,epsilSi,stminSi);
959
960 AliMaterial(2,"SPD SI CHIP$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
961 AliMedium(2,"SPD SI CHIP$",2,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,epsilSi,stminSi);
962
963 AliMaterial(3,"SPD SI BUS$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
964 AliMedium(3,"SPD SI BUS$",3,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,epsilSi,stminSi);
965
966 AliMixture(4,"C (M55J)$",aCM55J,zCM55J,dCM55J,4,wCM55J);
967 AliMedium(4,"C (M55J)$",4,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
968
969 AliMixture(5,"AIR$",aAir,zAir,dAir,4,wAir);
970 AliMedium(5,"AIR$",5,0,ifield,fieldm,tmaxfdAir,stemaxAir,deemaxAir,epsilAir,stminAir);
971
972 AliMixture(6,"GEN AIR$",aAir,zAir,dAir,4,wAir);
973 AliMedium(6,"GEN AIR$",6,0,ifield,fieldm,tmaxfdAir,stemaxAir,deemaxAir,epsilAir,stminAir);
974
975 AliMixture(7,"SDD SI CHIP$",aSICHIP,zSICHIP,dSICHIP,6,wSICHIP);
976 AliMedium(7,"SDD SI CHIP$",7,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,epsilSi,stminSi);
977
39c2e170 978 AliMixture(8,"PHYNOX$",aPhynox,zPhynox,dPhynox,5,wPhynox);
979 AliMedium(8,"PHYNOX$",8,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
980
717cdf18 981 AliMixture(9,"SDD C (M55J)$",aCM55J,zCM55J,dCM55J,4,wCM55J);
982 AliMedium(9,"SDD C (M55J)$",9,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
983
984 AliMixture(10,"SDD AIR$",aAir,zAir,dAir,4,wAir);
985 AliMedium(10,"SDD AIR$",10,0,ifield,fieldm,tmaxfdAir,stemaxAir,deemaxAir,epsilAir,stminAir);
986
987 AliMaterial(11,"AL$",0.26982E+02,0.13000E+02,0.26989E+01,0.89000E+01,0.99900E+03);
988 AliMedium(11,"AL$",11,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
989
990 AliMixture(12, "Water$",aWater,zWater,dWater,2,wWater);
991 AliMedium(12,"WATER$",12,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
992
b78b741f 993 AliMixture(13,"Freon$",afre,zfre,densfre,-2,wfre);
717cdf18 994 AliMedium(13,"Freon$",13,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
995
996 AliMaterial(14,"COPPER$",0.63546E+02,0.29000E+02,0.89600E+01,0.14300E+01,0.99900E+03);
997 AliMedium(14,"COPPER$",14,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
998 AliMixture(15,"CERAMICS$",acer,zcer,denscer,5,wcer);
999 AliMedium(15,"CERAMICS$",15,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1000
1001 AliMixture(20,"SSD C (M55J)$",aCM55J,zCM55J,dCM55J,4,wCM55J);
1002 AliMedium(20,"SSD C (M55J)$",20,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1003
1004 AliMixture(21,"SSD AIR$",aAir,zAir,dAir,4,wAir);
1005 AliMedium(21,"SSD AIR$",21,0,ifield,fieldm,tmaxfdAir,stemaxAir,deemaxAir,epsilAir,stminAir);
1006
1007 AliMixture(25,"G10FR4$",aG10FR4,zG10FR4,densG10FR4,14,wG10FR4);
1008 AliMedium(25,"G10FR4$",25,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1009
1010 AliMixture(26,"GEN C (M55J)$",aCM55J,zCM55J,dCM55J,4,wCM55J);
1011 AliMedium(26,"GEN C (M55J)$",26,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1012
1013 AliMixture(27,"GEN Air$",aAir,zAir,dAir,4,wAir);
1014 AliMedium(27,"GEN Air$",27,0,ifield,fieldm,tmaxfdAir,stemaxAir,deemaxAir,epsilAir,stminAir);
1015
1016 AliMixture(35,"PLEXYGLAS$",aPlexy,zPlexy,dPlexy,-3,wPlexy);
1017 AliMedium(35,"PLEXYGLAS$",35,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1018
1019 AliMixture(36,"STDGLASS$",aStdGlass,zStdGlass,dStdGlass,7,wStdGlass);
1020 AliMedium(36,"STDGLASS$",36,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1021
1022 AliMixture(37,"ALCU12$",aAlCu12,zAlCu12,dAlCu12,2,wAlCu12);
1023 AliMedium(37,"ALCU12$",37,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1024
b78b741f 1025 AliMixture(38,"MEGOLON$",aMegolon,zMegolon,dMegolon,-2,wMegolon);
717cdf18 1026 AliMedium(38,"MEGOLON$",38,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1027
1028 AliMixture(39,"RYTON$",aRyton,zRyton,dRyton,14,wRyton);
1029 AliMedium(39,"RYTON$",39,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1030
1031 AliMixture(40,"GLASS FIBER$",aGlass,zGlass,dGlass,11,wGlass);
1032 AliMedium(40,"GLASS FIBER$",40,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1033
1034 AliMixture(41,"AISI304L$",a304L,z304L,d304L,8,w304L);
1035 AliMedium(41,"AISI304L$",41,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1036
1037 AliMaterial(42,"NICKEL$",0.58693E+02,0.28000E+02,0.89080E+01,0.14200E+01,0.99900E+03);
1038 AliMedium(42,"NICKEL$",42,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1039
1040 AliMixture(43,"SDD X7R weld$",aX7Rweld,zX7Rweld,dX7Rweld,2,wX7Rweld);
1041 AliMedium(43,"SDD X7R weld$",43,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1042
b78b741f 1043 AliMixture(44,"PPS$",aPPS,zPPS,dPPS,-3,wPPS);
717cdf18 1044 AliMedium(44,"PPS$",44,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1045
b78b741f 1046 AliMixture(45,"POLYAX$",aPOLYAX,zPOLYAX,dPOLYAX,-4,wPOLYAX);
717cdf18 1047 AliMedium(45,"POLYAX$",45,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1048
b78b741f 1049 AliMixture(46,"PBT$",aPBT,zPBT,dPBT,-3,wPBT);
717cdf18 1050 AliMedium(46,"PBT$",46,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1051
1052 AliMixture(47,"PVC$",aPVC,zPVC,dPVC,-3,wPVC);
1053 AliMedium(47,"PVC$",47,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1054
1055 Double_t cuFrac = 0.56;
1056 Double_t kFrac = 1.0 - cuFrac;
1057 Double_t cuDens = 8.96;
1058 Float_t dKaptonCuBus = cuFrac * cuDens + kFrac * dKapton;
1059 for (Int_t j=0; j<4; j++)
1060 wKaptonCuBus[j] = wKapton[j]*kFrac;
1061 wKaptonCuBus[4] = cuFrac;
1062 AliMixture(48, "SPD-BUS CU KAPTON", aKaptonCu, zKaptonCu, dKaptonCuBus, 5, wKaptonCuBus);
1063 AliMedium(48,"SPD-BUS CU KAPTON$",48,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1064
1065 cuFrac = 0.5;
1066 kFrac = 1.0 - cuFrac;
1067 Float_t dKaptonCuMCM = cuFrac * cuDens + kFrac * dKapton;
1068 for (Int_t j=0; j<4; j++)
1069 wKaptonCuMCM[j] = wKapton[j]*kFrac;
1070 wKaptonCuMCM[4] = cuFrac;
1071 AliMixture(49, "SPD-MCM CU KAPTON", aKaptonCu, zKaptonCu, dKaptonCuMCM, 5, wKaptonCuMCM);
1072 AliMedium(49,"SPD-MCM CU KAPTON$",49,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1073
1074 cuFrac = (0.56 + 0.5) / 2.0;
1075 kFrac = 1.0 - cuFrac;
1076 Float_t dKaptonCuMix = cuFrac * cuDens + kFrac * dKapton;
1077 for (Int_t j=0; j<4; j++)
1078 wKaptonCuMix[j] = wKapton[j]*kFrac;
1079 wKaptonCuMix[4] = cuFrac;
1080 AliMixture(50, "SPD-MIX CU KAPTON", aKaptonCu, zKaptonCu, dKaptonCuMix, 5, wKaptonCuMix);
1081 AliMedium(50,"SPD-MIX CU KAPTON$",50,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1082
1083 AliMaterial(51,"SPD SI$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
1084 AliMedium(51,"SPD SI$",51,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,epsilSi,stminSi);
1085
1086 AliMaterial(52,"SPD SI CHIP$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
1087 AliMedium(52,"SPD SI CHIP$",52,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,epsilSi,stminSi);
1088
1089 AliMaterial(53,"SPD SI BUS$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
1090 AliMedium(53,"SPD SI BUS$",53,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,epsilSi,stminSi);
1091
1092 AliMixture(54,"SPD C (M55J)$",aCM55J,zCM55J,dCM55J,4,wCM55J);
1093 AliMedium(54,"SPD C (M55J)$",54,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1094
1095 AliMixture(55,"SPD AIR$",aAir,zAir,dAir,4,wAir);
1096 AliMedium(55,"SPD AIR$",55,0,ifield,fieldm,tmaxfdAir,stemaxAir,deemaxAir,epsilAir,stminAir);
1097
1098 AliMixture(56, "SPD KAPTON(POLYCH2)", aKapton, zKapton, dKapton, 4, wKapton);
1099 AliMedium(56,"SPD KAPTON(POLYCH2)$",56,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1100
1101 // Gaseous Freon has same chemical composition but air density at 1.7 atm
b78b741f 1102 AliMixture(59,"GASEOUS FREON$",afre,zfre,1.7*dAir,-2,wfre);
717cdf18 1103 AliMedium(59,"GASEOUS FREON$",59,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1104
1105 AliMixture(61,"EPOXY$",aEpoxy,zEpoxy,dEpoxy,-3,wEpoxy);
1106 AliMedium(61,"EPOXY$",61,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1107
1108 AliMaterial(62,"SILICON$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
1109 AliMedium(62,"SILICON$",62,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,epsilSi,stminSi);
1110
1111 AliMixture(63, "KAPTONH(POLYCH2)", aKapton, zKapton, dKapton, 4, wKapton);
1112 AliMedium(63,"KAPTONH(POLYCH2)$",63,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1113
1114 AliMaterial(64,"ALUMINUM$",0.26982E+02,0.13000E+02,0.26989E+01,0.89000E+01,0.99900E+03);
1115 AliMedium(64,"ALUMINUM$",64,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1116
1117 AliMixture(65,"INOX$",aINOX,zINOX,dINOX,9,wINOX);
1118 AliMedium(65,"INOX$",65,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1119
1120 AliMixture(66,"NiSn$",aNiSn,zNiSn,dNiSn,2,wNiSn);
1121 AliMedium(66,"NiSn$",66,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1122
1123 AliMaterial(67,"Sn$", 118.710, 50., 7.310, 1.206, 999.);
1124 AliMedium(67,"Sn$",67,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1125
1126 AliMixture(68,"ROHACELL$",arohac,zrohac,drohac,-4,wrohac);
1127 AliMedium(68,"ROHACELL$",68,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1128
1129 AliMixture(69,"SDD C AL (M55J)$",aALCM55J,zALCM55J,dALCM55J,5,wALCM55J);
1130 AliMedium(69,"SDD C AL (M55J)$",69,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1131
1132 AliMixture(70, "SDDKAPTON (POLYCH2)", aKapton, zKapton, dKapton, 4, wKapton);
1133 AliMedium(70,"SDDKAPTON (POLYCH2)$",70,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1134
1135 AliMaterial(71,"ITS SANDW A$",0.12011E+02,0.60000E+01,0.2115E+00,0.17479E+03,0.99900E+03);
1136 AliMedium(71,"ITS SANDW A$",71,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1137
1138 AliMaterial(72,"ITS SANDW B$",0.12011E+02,0.60000E+01,0.27000E+00,0.18956E+03,0.99900E+03);
1139 AliMedium(72,"ITS SANDW B$",72,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1140
1141 AliMaterial(73,"ITS SANDW C$",0.12011E+02,0.60000E+01,0.41000E+00,0.90868E+02,0.99900E+03);
1142 AliMedium(73,"ITS SANDW C$",73,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1143
1144 AliMaterial(74,"HEAT COND GLUE$",0.12011E+02,0.60000E+01,0.1930E+01,0.22100E+02,0.99900E+03);
1145 AliMedium(74,"HEAT COND GLUE$",74,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1146
1147 AliMaterial(75,"ELASTO SIL$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
1148 AliMedium(75,"ELASTO SIL$",75,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1149
1150 // SPD bus (data from Petra Riedler)
1151 Float_t aSPDbus[5] = {1.00794,12.0107,14.01,15.9994,26.982 };
1152 Float_t zSPDbus[5] = {1.,6.,7.,8.,13.};
1153 Float_t wSPDbus[5] = {0.023523,0.318053,0.009776,0.078057,0.570591};
1154 Float_t dSPDbus = 2.128505;
1155
1156 // AliMaterial(76,"SPDBUS(AL+KPT+EPOX)$",0.19509E+02,0.96502E+01,0.19060E+01,0.15413E+02,0.99900E+03);
1157 AliMixture(76,"SPDBUS(AL+KPT+EPOX)$",aSPDbus,zSPDbus,dSPDbus,5,wSPDbus);
1158 AliMedium(76,"SPDBUS(AL+KPT+EPOX)$",76,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1159
1160 AliMixture(77,"SDD X7R capacitors$",aX7R,zX7R,dX7R,6,wX7R);
1161 AliMedium(77,"SDD X7R capacitors$",77,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1162
1163 AliMixture(78,"SDD ruby sph. Al2O3$",aAlOxide,zAlOxide,dAlOxide,2,wAlOxide);
1164 AliMedium(78,"SDD ruby sph. Al2O3$",78,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1165
1166 AliMaterial(79,"SDD SI insensitive$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
1167 AliMedium(79,"SDD SI insensitive$",79,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1168
1169 AliMixture(80,"SDD HV microcable$",aHVm,zHVm,dHVm,5,wHVm);
1170 AliMedium(80,"SDD HV microcable$",80,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1171
1172 AliMixture(81,"SDD LV+signal cable$",aLVm,zLVm,dLVm,5,wLVm);
1173 AliMedium(81,"SDD LV+signal cable$",81,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1174
1175 AliMixture(82,"SDD hybrid microcab$",aHLVm, zHLVm,dHLVm,5,wHLVm);
1176 AliMedium(82,"SDD hybrid microcab$",82,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1177
1178 AliMixture(83,"SDD anode microcab$",aALVm,zALVm,dALVm,5,wALVm);
1179 AliMedium(83,"SDD anode microcab$",83,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1180 Float_t aDSring[4]={12.0107, 1.00794, 14.0067, 15.9994};
1181 Float_t zDSring[4]={ 6., 1., 7., 8.};
1182 Float_t wDSring[4]={ 0.854323888, 0.026408778, 0.023050265, 0.096217069};
1183 Float_t dDSring = 0.2875;
1184 AliMixture(84,"SDD/SSD rings$",aDSring,zDSring,dDSring,4,wDSring);
1185 AliMedium(84,"SDD/SSD rings$",84,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1186
1187 AliMixture(85,"inox/alum$",aInAl,zInAl,dInAl,5,wInAl);
1188 AliMedium(85,"inox/alum$",85,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1189
1190 // special media to take into account services in the SDD and SSD
1191 // cones for the FMD
1192 //Begin_Html
1193 /*
1194 <A HREF="http://www.Physics.ohio-state.edu/~nilsen/ITS/ITS_MatBudget_4B.xls">
1195 </pre>
1196 <br clear=left>
1197 <font size=+2 color=blue>
1198 <p> The Exel spread sheet from which these density number come from.
1199 </font></A>
1200 */
1201 //End_Html
1202
1203 // AliMaterial(86,"AIRFMDSDD$",0.14610E+02,0.73000E+01,0.12050E-02,0.30423E+05,0.99900E+03);
1204 Float_t aA[13],zZ[13],wW[13],den;
1205 // From Pierluigi Barberis calculations of 2SPD+1SDD October 2 2002.
1206 zZ[0] = 1.0; aA[0] = 1.00794; // Hydrogen
1207 zZ[1] = 6.0; aA[1] = 12.011; // Carbon
1208 zZ[2] = 7.0; aA[2] = 14.00674; // Nitrogen
1209 zZ[3] = 8.0; aA[3] = 15.9994; // Oxigen
1210 zZ[4] = 14.0; aA[4] = 28.0855; // Silicon
1211 zZ[5] = 24.0; aA[5] = 51.9961; //Cromium
1212 zZ[6] = 25.0; aA[6] = 54.938049; // Manganese
1213 zZ[7] = 26.0; aA[7] = 55.845; // Iron
1214 zZ[8] = 28.0; aA[8] = 58.6934; // Nickle
1215 zZ[9] = 29.0; aA[9] = 63.546; // Copper
1216 zZ[10] = 13.0; aA[10] = 26.981539; // Alulminum
1217 zZ[11] = 47.0; aA[11] = 107.8682; // Silver
1218 zZ[12] = 27.0; aA[12] = 58.9332; // Cobolt
1219 wW[0] = 0.019965;
1220 wW[1] = 0.340961;
1221 wW[2] = 0.041225;
1222 wW[3] = 0.200352;
1223 wW[4] = 0.000386;
1224 wW[5] = 0.001467;
1225 wW[6] = 0.000155;
1226 wW[7] = 0.005113;
1227 wW[8] = 0.000993;
1228 wW[9] = 0.381262;
1229 wW[10] = 0.008121;
1230 wW[11] = 0.000000;
1231 wW[12] = 0.000000;
1232 if(fByThick){// New values seeITS_MatBudget_4B.xls
1233 den = 1.5253276; // g/cm^3 Cell O370
1234 }else{
1235 den = 2.58423412; // g/cm^3 Cell L370
1236 } // end if fByThick
1237 //den = 6161.7/(3671.58978);//g/cm^3 Volume does not exclude holes
1238 AliMixture(86,"AIRFMDSDD$",aA,zZ,den,+11,wW);
1239 AliMedium(86,"AIRFMDSDD$",86,0,ifield,fieldm,tmaxfdAir,stemaxAir,
1240 deemaxAir,epsilAir,stminAir);
1241
1242 //AliMaterial(87,"AIRFMDSSD$",0.14610E+02,0.73000E+01,0.12050E-02,0.30423E+05,0.99900E+03);
1243 // From Pierluigi Barberis calculations of SSD October 2 2002.
1244 wW[0] = 0.019777;
1245 wW[1] = 0.325901;
1246 wW[2] = 0.031848;
1247 wW[3] = 0.147668;
1248 wW[4] = 0.030609;
1249 wW[5] = 0.013993;
1250 wW[6] = 0.001479;
1251 wW[7] = 0.048792;
1252 wW[8] = 0.009477;
1253 wW[9] = 0.350697;
1254 wW[10] = 0.014546;
1255 wW[11] = 0.005213;
1256 wW[12] = 0.000000;
1257 if(fByThick){// New values seeITS_MatBudget_4B.xls
1258 den = 1.2464275; // g/cm^3 Cell O403
1259 }else{
1260 den = 1.28134409; // g/cm^3 Cell L403
1261 } // end if fByThick
1262 //den = 7666.3/(9753.553259); // volume does not exclude holes
1263 AliMixture(87,"AIRFMDSSD$",aA,zZ,den,+12,wW);
1264 AliMedium(87,"AIRFMDSSD$",87,0,ifield,fieldm,tmaxfdAir,stemaxAir,
1265 deemaxAir,epsilAir,stminAir);
1266
1267 //AliMaterial(88,"ITS SANDW CFMDSDD$",0.12011E+02,0.60000E+01,0.41000E+00,0.90868E+02,0.99900E+03);
1268 // From Pierluigi Barberis calculations of 1SDD+Carbon fiber October 2 2002
1269 wW[0] = 0.016302;
1270 wW[1] = 0.461870;
1271 wW[2] = 0.033662;
1272 wW[3] = 0.163595;
1273 wW[4] = 0.000315;
1274 wW[5] = 0.001197;
1275 wW[6] = 0.000127;
1276 wW[7] = 0.004175;
1277 wW[8] = 0.000811;
1278 wW[9] = 0.311315;
1279 wW[10] = 0.006631;
1280 wW[11] = 0.000000;
1281 wW[12] = 0.000000;
1282 if(fByThick){// New values seeITS_MatBudget_4B.xls
1283 den = 1.9353276; // g/cm^3 Cell N370
1284 }else{
1285 den = 3.2788626; // g/cm^3 Cell F370
1286 } // end if fByThick
1287 //den = 7667.1/(3671.58978); // Volume does not excludeholes
1288 AliMixture(88,"ITS SANDW CFMDSDD$",aA,zZ,den,+11,wW);
1289 AliMedium(88,"ITS SANDW CFMDSDD$",88,0,ifield,fieldm,tmaxfd,stemax,
1290 deemax,epsil,stmin);
1291
1292 //AliMaterial(89,"ITS SANDW CFMDSSD$",0.12011E+02,0.60000E+01,0.41000E+00,0.90868E+02,0.99900E+03);
1293 // From Pierluigi Barberis calculations of SSD+Carbon fiber October 2 2002.
1294 wW[0] = 0.014065;
1295 wW[1] = 0.520598;
1296 wW[2] = 0.022650;
1297 wW[3] = 0.105018;
1298 wW[4] = 0.021768;
1299 wW[5] = 0.009952;
1300 wW[6] = 0.001051;
1301 wW[7] = 0.034700;
1302 wW[8] = 0.006740;
1303 wW[9] = 0.249406;
1304 wW[10] = 0.010345;
1305 wW[11] = 0.0003707;
1306 wW[12] = 0.000000;
1307 if(fByThick){// New values seeITS_MatBudget_4B.xls
1308 den = 1.6564275; // g/cm^3 Cell N304
1309 }else{
1310 den = 1.7028296; // g/cm^3 Cell F304
1311 } // end if fByThick
1312 //den = 1166.5/(3671.58978); // Volume does not exclude holes
1313 AliMixture(89,"ITS SANDW CFMDSSD$",aA,zZ,den,+12,wW);
1314 AliMedium(89,"ITS SANDW CFMDSSD$",89,0,ifield,fieldm,tmaxfd,stemax,
1315 deemax,epsil,stmin);
1316
1317 //AliMaterial(97,"SPD SERVICES$",0.12011E+02,0.60000E+01,0.41000E+00,0.90868E+02,0.99900E+03);
1318 // From Pierluigi Barberis calculations of 1SPD October 2 2002.
1319 wW[0] = 0.005970;
1320 wW[1] = 0.304704;
1321 wW[2] = 0.042510;
1322 wW[3] = 0.121715;
1323 wW[4] = 0.001118;
1324 wW[5] = 0.030948;
1325 wW[6] = 0.003270;
1326 wW[7] = 0.107910;
1327 wW[8] = 0.020960;
1328 wW[9] = 0.360895;
1329 wW[10] = 0.000000;
1330 wW[11] = 0.000000;
1331 wW[12] = 0.000000;
1332 if(fByThick){// New values seeITS_MatBudget_4B.xls
1333 den = 80.31136576; // g/cm^3 Cell H329
1334 }else{
1335 den = 87.13062; // g/cm^3 Cell G329
1336 } // end if fByThick
1337 //den = 1251.3/(0.05*2.0*TMath::Pi()*(7.75*7.75 - 3.7*3.7)); // g/cm^3
1338 AliMixture(97,"SPD SERVICES$",aA,zZ,den,+10,wW);
1339 AliMedium(97,"SPD SERVICES$",97,0,ifield,fieldm,tmaxfd,stemax,
1340 deemax,epsil,stmin);
1341
1342
1343 // Special media
1344
1345 AliMaterial(90,"SPD shield$", 12.011, 6., 1.93 , 22.36, 999);
1346 AliMedium(90,"SPD shield$",90,0,ifield,fieldm,tmaxfdServ,stemaxServ,deemaxServ,epsilServ,stminServ);
1347
1348 // SPD End Ladder (data from Petra Riedler)
1349 Float_t aSPDel[5] = {1.00794,12.0107,14.01,15.9994,63.54 };
1350 Float_t zSPDel[5] = {1.,6.,7.,8.,29.};
1351 Float_t wSPDel[5] = {0.004092,0.107274,0.011438,0.032476,0.844719};
1352 Float_t dSPDel = 3.903403;
1353
1354 // AliMaterial(91, "SPD End ladder$", 47.0447, 21.7963, 3.6374, 4.4711, 999);
1355 AliMixture(91,"SPD End ladder$",aSPDel,zSPDel,dSPDel,5,wSPDel);
1356 AliMedium(91,"SPD End ladder$",91,0,ifield,fieldm,tmaxfdServ,stemaxServ,deemaxServ,epsilServ,stminServ);
1357
1358 AliMaterial(92, "SPD cone$",28.0855, 14., 2.33, 9.36, 999);
1359 AliMedium(92,"SPD cone$",92,0,ifield,fieldm,tmaxfdServ,stemaxServ,deemaxServ,epsilServ,stminServ);
1360 /* Material with fractional Z not actually used
1361 AliMaterial(93, "SDD End ladder$", 69.9298, 29.8246, 0.3824, 36.5103, 999);
1362 AliMedium(93,"SDD End ladder$",93,0,ifield,fieldm,tmaxfdServ,stemaxServ,deemaxServ,epsilServ,stminServ);
1363 */
1364 AliMaterial(94, "SDD cone$",63.546, 29., 1.15, 1.265, 999);
1365 AliMedium(94,"SDD cone$",94,0,ifield,fieldm,tmaxfdServ,stemaxServ,deemaxServ,epsilServ,stminServ);
1366 /* Material with fractional Z not actually used
1367 AliMaterial(95, "SSD End ladder$", 32.0988, 15.4021, 0.68, 35.3238, 999);
1368 AliMedium(95,"SSD End ladder$",95,0,ifield,fieldm,tmaxfdServ,stemaxServ,deemaxServ,epsilServ,stminServ);
1369 */
1370 AliMaterial(96, "SSD cone$",63.546, 29., 1.15, 1.265, 999);
1371 AliMedium(96,"SSD cone$",96,0,ifield,fieldm,tmaxfdServ,stemaxServ,deemaxServ,epsilServ,stminServ);
1372
1373 AliMixture(98,"SDD OPTICFIB$",aoptfib,zoptfib,doptfib,-2,woptfib);
1374 AliMedium(98,"SDD OPTICFIB$",98,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1375
b78b741f 1376 AliMixture(95,"SSD FEP$",aFEP,zFEP,dFEP,-2,wFEP);
717cdf18 1377 AliMedium(95,"SSD FEP$",95,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1378
1379 // Mean material for low-voltage cables on SPD trays Side A
1380 // (Copper + PolyEthylene (C2-H4)) (D.Elia for cable number and
1381 // cross-section area, M.Sitta for elemental computation) - 26 Feb 10
1382 wW[0] = 0.323024;//H
1383 wW[2] = 0.515464;//Cu
1384 wW[1] = 0.161512;//C
1385 wW[3] = 0.000000;//O
1386 wW[4] = 0.000000;//S
1387 wW[5] = 0.000000;//F
1388 wW[6] = 0.000000;//Sn
1389 wW[7] = 0.000000;//Pb
1390 wW[8] = 0.000000;//Cr
1391 wW[9] = 0.000000;//Si
1392 wW[10] = 0.000000;//Ni
1393 wW[11] = 0.000000;//Ca
1394
1395 den = 5.078866;
1396 AliMixture(60,"SPD_LOWCABLES$",aA,zZ,den,+3,wW);
1397 AliMedium(60,"SPD_LOWCABLES$",60,0,ifield,fieldm,tmaxfd,stemax,
1398 deemax,epsil,stmin);
1399
1400 // Mean material for high-voltage cables on SPD trays Side A & C
1401 // (Copper + HD PolyEthylene (C2-H2)) (D.Elia for cable number and
1402 // cross-section area, M.Sitta for elemental computation) - 10 Jun 10
1403 wW[0] = 0.083766;//H
1404 wW[2] = 0.417136;//Cu
1405 wW[1] = 0.499098;//C
1406 wW[3] = 0.000000;//O
1407 wW[4] = 0.000000;//S
1408 wW[5] = 0.000000;//F
1409 wW[6] = 0.000000;//Sn
1410 wW[7] = 0.000000;//Pb
1411 wW[8] = 0.000000;//Cr
1412 wW[9] = 0.000000;//Si
1413 wW[10] = 0.000000;//Ni
1414 wW[11] = 0.000000;//Ca
1415
1416 den = 1.514930;
1417 AliMixture(58,"SPD_HICABLES$",aA,zZ,den,+3,wW);
1418 AliMedium(58,"SPD_HICABLES$",58,0,ifield,fieldm,tmaxfd,stemax,
1419 deemax,epsil,stmin);
1420
1421 // PolyUrethane [C25-H42-N2-O6] - 07 Mar 10
1422 zZ[2] = 7.0; aA[2] = 14.0067; // Nitrogen - From Root TGeoElementTable
1423
1424 wW[0] = 0.090724;//H
1425 wW[2] = 0.060035;//N
1426 wW[1] = 0.643513;//C
1427 wW[3] = 0.205728;//O
1428 wW[4] = 0.000000;//S
1429 wW[5] = 0.000000;//F
1430 wW[6] = 0.000000;//Sn
1431 wW[7] = 0.000000;//Pb
1432 wW[8] = 0.000000;//Cr
1433 wW[9] = 0.000000;//Si
1434 wW[10] = 0.000000;//Ni
1435 wW[11] = 0.000000;//Ca
1436
1437 den = 1.158910;
1438 AliMixture(67,"POLYURETHANE$",aA,zZ,den,+4,wW);
1439 AliMedium(67,"POLYURETHANE$",67,0,ifield,fieldm,tmaxfd,stemax,
1440 deemax,epsil,stmin);
1441
1442 // POM (Polyoxymethylene = (CH2O)n ) - 02 May 10
1443 zZ[2] = 8.0; aA[2] = 15.9994; // Oxigen
1444
1445 wW[0] = 0.067137;//H
1446 wW[1] = 0.400016;//C
1447 wW[2] = 0.532847;//O
1448 wW[3] = 0.000000;//O
1449 wW[4] = 0.000000;//S
1450 wW[5] = 0.000000;//F
1451 wW[6] = 0.000000;//Sn
1452 wW[7] = 0.000000;//Pb
1453 wW[8] = 0.000000;//Cr
1454 wW[9] = 0.000000;//Si
1455 wW[10] = 0.000000;//Ni
1456 wW[11] = 0.000000;//Ca
1457
b78b741f 1458 den = 1.4200;
717cdf18 1459 AliMixture(57,"POLYOXYMETHYLENE$",aA,zZ,den,+3,wW);
1460 AliMedium(57,"POLYOXYMETHYLENE$",57,0,ifield,fieldm,tmaxfd,stemax,
1461 deemax,epsil,stmin);
1462
1463
1464 // Anticorodal (Aliminum alloy) - 08 nov 10
1465 // A,Z from Root TGeoElementTable, W from Web sites
1466 zZ[0] = 13.0; aA[0] = 26.9815; // Aluminium
1467 zZ[1] = 29.0; aA[1] = 63.546 ; // Copper
1468 zZ[2] = 26.0; aA[2] = 55.845 ; // Iron
1469 zZ[3] = 25.0; aA[3] = 54.938 ; // Manganese
1470 zZ[4] = 12.0; aA[4] = 24.305 ; // Magnesium
1471 zZ[5] = 14.0; aA[5] = 28.0855; // Silicon
1472 zZ[6] = 30.0; aA[6] = 65.39 ; // Zinc
1473 zZ[7] = 24.0; aA[7] = 51.9961; // Chromium
1474 zZ[8] = 22.0; aA[8] = 47.867 ; // Titanium
1475
1476 wW[1] = 0.001000;//Cu
1477 wW[2] = 0.005000;//Fe
1478 wW[3] = 0.007000;//Mn - mean value
1479 wW[4] = 0.009000;//Mg - mean value
1480 wW[5] = 0.001000;//Si - mean value
1481 wW[6] = 0.002000;//Zn
1482 wW[7] = 0.002500;//Cr
1483 wW[8] = 0.001000;//Ti
1484
1485 Double_t totFrac = 0;
1486 for (Int_t j=1; j<9; j++)
1487 totFrac += wW[j];
1488 wW[0] = 1. - totFrac;//Al - the remainder
1489
b78b741f 1490 den = 2.69;
717cdf18 1491 AliMixture(93,"ANTICORODAL$",aA,zZ,den,+9,wW);
1492 AliMedium(93,"ANTICORODAL$",93,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1493
1494 // Hokotol (another Aluminium alloy) - 08 nov 10
1495 // A,Z from Root TGeoElementTable, W from Web sites
1496 zZ[0] = 13.0; aA[0] = 26.9815; // Aluminium
1497 zZ[1] = 29.0; aA[1] = 63.546 ; // Copper
1498 zZ[2] = 26.0; aA[2] = 55.845 ; // Iron
1499 zZ[3] = 25.0; aA[3] = 54.938 ; // Manganese
1500 zZ[4] = 12.0; aA[4] = 24.305 ; // Magnesium
1501 zZ[5] = 14.0; aA[5] = 28.0855; // Silicon
1502 zZ[6] = 30.0; aA[6] = 65.39 ; // Zinc
1503 zZ[7] = 24.0; aA[7] = 51.9961; // Chromium
1504 zZ[8] = 22.0; aA[8] = 47.867 ; // Titanium
1505 zZ[9] = 40.0; aA[9] = 91.224 ; // Zirconium
1506
1507 wW[1] = 0.020500;//Cu - mean value
1508 wW[2] = 0.000300;//Fe
1509 wW[3] = 0.022000;//Mn - mean value
1510 wW[4] = 0.001000;//Mg - mean value
1511 wW[5] = 0.002000;//Si - mean value
1512 wW[6] = 0.066500;//Zn
1513 wW[7] = 0.005000;//Cr
1514 wW[8] = 0.000600;//Ti
1515 wW[9] = 0.001650;//Zr - mean value
1516
1517 totFrac = 0;
1518 for (Int_t j=1; j<10; j++)
1519 totFrac += wW[j];
1520 wW[0] = 1. - totFrac;//Al - the remainder
1521
1522 den = 2.69;
1523 AliMixture(34,"HOKOTOL$",aA,zZ,den,+10,wW);
1524 AliMedium(34,"HOKOTOL$",34,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1525
1526 // Ergal (7075) (yet another Aluminium alloy) - 09 nov 10
1527 // A,Z from Root TGeoElementTable, W from Web sites
1528 zZ[0] = 13.0; aA[0] = 26.9815; // Aluminium
1529 zZ[1] = 29.0; aA[1] = 63.546 ; // Copper
1530 zZ[2] = 26.0; aA[2] = 55.845 ; // Iron
1531 zZ[3] = 25.0; aA[3] = 54.938 ; // Manganese
1532 zZ[4] = 12.0; aA[4] = 24.305 ; // Magnesium
1533 zZ[5] = 14.0; aA[5] = 28.0855; // Silicon
1534 zZ[6] = 30.0; aA[6] = 65.39 ; // Zinc
1535 zZ[7] = 24.0; aA[7] = 51.9961; // Chromium
1536 zZ[8] = 22.0; aA[8] = 47.867 ; // Titanium
1537
1538 wW[1] = 0.016000;//Cu - mean value
1539 wW[2] = 0.005000;//Fe
1540 wW[3] = 0.003000;//Mn
1541 wW[4] = 0.025000;//Mg - mean value
1542 wW[5] = 0.004000;//Si
1543 wW[6] = 0.056000;//Zn - mean value
1544 wW[7] = 0.002300;//Cr - mean value
1545 wW[8] = 0.002000;//Ti
1546
1547 totFrac = 0;
1548 for (Int_t j=1; j<9; j++)
1549 totFrac += wW[j];
1550 wW[0] = 1. - totFrac;//Al - the remainder
1551
1552 den = 2.69;
1553 AliMixture(33,"ERGAL$",aA,zZ,den,+9,wW);
1554 AliMedium(33,"ERGAL$",33,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1555
dfefbaec 1556}
b7943f00 1557
dfefbaec 1558//______________________________________________________________________
717cdf18 1559void AliITSv11::Init()
1560{
1561 // Initialise the ITS after it has been created.
1562 // Inputs:
1563 // none.
1564 // Outputs:
1565 // none.
1566 // Return:
1567 // none.
b7943f00 1568
717cdf18 1569 AliDebug(1,Form("Init: Major version %d Minor version %d",fMajorVersion,
1570 fMinorVersion));
012f0f4c 1571 UpdateInternalGeometry();
1572 AliITS::Init();
012f0f4c 1573
717cdf18 1574 fIDMother = gMC->VolId("ITSV"); // ITS Mother Volume ID.
dfefbaec 1575}
b7943f00 1576
dfefbaec 1577//______________________________________________________________________
717cdf18 1578void AliITSv11::SetDefaults()
1579{
1580 // sets the default segmentation, response, digit and raw cluster classes
1581 // Inputs:
1582 // none.
1583 // Outputs:
1584 // none.
1585 // Return:
1586 // none.
b7943f00 1587
717cdf18 1588 if(!fDetTypeSim){
1589 Warning("SetDefaults","Error fDetTypeSim not defined");
1590 return;
108bd0fe 1591 }
717cdf18 1592
531d6cdc 1593 fDetTypeSim->SetDefaults();
1594
717cdf18 1595
531d6cdc 1596 if(fgkNTYPES>3){
1597 Warning("SetDefaults",
1598 "Only the four basic detector types are initialised!");
1599 }// end if
531d6cdc 1600 return;
dfefbaec 1601}
b7943f00 1602
dfefbaec 1603//______________________________________________________________________
717cdf18 1604void AliITSv11::StepManager()
1605{
1606 // Called for every step in the ITS, then calles the AliITShit class
1607 // creator with the information to be recoreded about that hit.
1608 // The value of the macro ALIITSPRINTGEOM if set to 1 will allow the
1609 // printing of information to a file which can be used to create a .det
1610 // file read in by the routine CreateGeometry(). If set to 0 or any other
1611 // value except 1, the default behavior, then no such file is created nor
1612 // it the extra variables and the like used in the printing allocated.
1613 // Inputs:
1614 // none.
1615 // Outputs:
1616 // none.
1617 // Return:
1618 // none.
531d6cdc 1619
717cdf18 1620 if(!(this->IsActive())) return;
531d6cdc 1621 if(!(gMC->TrackCharge())) return;
1622
717cdf18 1623 Int_t copy, lay = 0;
1624 Int_t id = gMC->CurrentVolID(copy);
1625
1626 Bool_t notSens = kFALSE;
1627 while ((lay<fIdN) && (notSens = id != fIdSens[lay])) ++lay;
1628 if (notSens) return;
531d6cdc 1629
717cdf18 1630 if(gMC->IsTrackExiting()) {
e6add757 1631 AddTrackReference(gAlice->GetMCApp()->GetCurrentTrackNumber(), AliTrackReference::kITS);
531d6cdc 1632 } // if Outer ITS mother Volume
1633
717cdf18 1634 static TLorentzVector position, momentum; // Saves on calls to construtors
1635 static AliITShit hit;// Saves on calls to constructors
531d6cdc 1636
717cdf18 1637 TClonesArray &lhits = *(Hits());
1638 Int_t cpn0, cpn1, mod, status = 0;
531d6cdc 1639 //
1640 // Track status
717cdf18 1641 if(gMC->IsTrackInside()) status += 1;
1642 if(gMC->IsTrackEntering()) status += 2;
1643 if(gMC->IsTrackExiting()) status += 4;
1644 if(gMC->IsTrackOut()) status += 8;
1645 if(gMC->IsTrackDisappeared()) status += 16;
1646 if(gMC->IsTrackStop()) status += 32;
1647 if(gMC->IsTrackAlive()) status += 64;
1648
531d6cdc 1649 //
717cdf18 1650 // retrieve the indices with the volume path
1651 //
1652 switch (lay) {
1653 case 0:case 1: // SPD
1654 gMC->CurrentVolOffID(1,copy); // ladder
1655 gMC->CurrentVolOffID(3,cpn1); // stave
1656 gMC->CurrentVolOffID(5,cpn0); // sector
1657 break;
1658 case 2:case 3: // SDD
1659 copy = 1;
1660 gMC->CurrentVolOffID(2,cpn1);
1661 gMC->CurrentVolOffID(3,cpn0);
1662 break;
1663 case 4:case 5: // SSD
1664 copy = 1;
1665 gMC->CurrentVolOffID(1,cpn1);
1666 gMC->CurrentVolOffID(2,cpn0);
1667 break;
1668 default:
1669 AliError(Form("Invalid value: lay= %d . Not an ITS sensitive volume",lay));
1670 return; // not an ITS sensitive volume.
1671 } //
1672
1673 fInitGeom.DecodeDetector(mod,lay+1,cpn0,cpn1,copy);
1674 // We should not need to pass by the switch !
1675 // This is time consuming...
1676 // therefore DecodeDetectorv11(...) shouldn't be private !
1677 // and we should be able to use instead :
1678 //fInitGeom.DecodeDetectorv11(mod,lay+1,cpn0,cpn1,copy);
108bd0fe 1679
531d6cdc 1680 //
717cdf18 1681 // Fill hit structure.
1682 //
1683 hit.SetModule(mod);
1684 hit.SetTrack(gAlice->GetMCApp()->GetCurrentTrackNumber());
531d6cdc 1685 gMC->TrackPosition(position);
1686 gMC->TrackMomentum(momentum);
717cdf18 1687 hit.SetPosition(position);
1688 hit.SetTime(gMC->TrackTime());
1689 hit.SetMomentum(momentum);
1690 hit.SetStatus(status);
1691 hit.SetEdep(gMC->Edep());
1692 hit.SetShunt(GetIshunt());
531d6cdc 1693 if(gMC->IsTrackEntering()){
717cdf18 1694 hit.SetStartPosition(position);
1695 hit.SetStartTime(gMC->TrackTime());
1696 hit.SetStartStatus(status);
1697 return; // don't save entering hit.
531d6cdc 1698 } // end if IsEntering
1699 // Fill hit structure with this new hit.
717cdf18 1700 //Info("StepManager","Calling Copy Constructor");
1701 new(lhits[fNhits++]) AliITShit(hit); // Use Copy Construtor.
1702 // Save old position... for next hit.
1703 hit.SetStartPosition(position);
1704 hit.SetStartTime(gMC->TrackTime());
1705 hit.SetStartStatus(status);
531d6cdc 1706
b7943f00 1707 return;
531d6cdc 1708}