]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSv11.cxx
changes to be compliant with Eff C++ rules
[u/mrichter/AliRoot.git] / ITS / AliITSv11.cxx
CommitLineData
2b680d9b 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
b7943f00 16//************************************************************************
17// Inner Traking System geometry v11
18//
19// Based on ROOT geometrical modeler
b7943f00 20//
21// B. Nilsen, L. Gaudichet
22//************************************************************************
23
24
25//#include <Riostream.h>
541f7ba6 26#include <TClonesArray.h>
2b680d9b 27#include <TLorentzVector.h>
b7943f00 28
29#include "AliITS.h"
531d6cdc 30#include "AliITSDetTypeSim.h"
b7943f00 31#include "AliITSgeom.h"
32#include "AliITSgeomSDD.h"
33#include "AliITSgeomSPD.h"
34#include "AliITSgeomSSD.h"
35#include "AliITShit.h"
531d6cdc 36
37#include "AliITSCalibrationSDD.h"
38#include "AliITSCalibrationSPD.h"
39#include "AliITSCalibrationSSD.h"
40
2b680d9b 41#include "AliITSsegmentationSDD.h"
b7943f00 42#include "AliITSsegmentationSPD.h"
43#include "AliITSsegmentationSSD.h"
541f7ba6 44#include "AliITSv11.h"
b7943f00 45#include "AliMagF.h"
46#include "AliRun.h"
47#include "AliTrackReference.h"
48#include "AliMC.h"
49
50#include <TGeoManager.h>
51#include <TGeoVolume.h>
52#include <TGeoPcon.h>
53//#include "AliITSv11GeometrySPD.h"
db486a6e 54#include "AliITSv11GeometrySDD.h"
b7943f00 55//#include "AliITSv11GeometrySupport.h"
171f3f35 56
2b680d9b 57
541f7ba6 58
b7943f00 59ClassImp(AliITSv11)
60
fa4639a3 61
62
33ddec7d 63//______________________________________________________________________
64AliITSv11::AliITSv11() : AliITS(),
65 fGeomDetOut(kFALSE), // Don't write .det file
66 fGeomDetIn(kTRUE), // Read .det file
67 fByThick(kTRUE),
68 fMajorVersion(0),
69 fMinorVersion(0),
70 fSDDgeom(0)
71{
b7943f00 72 // Standard default constructor for the ITS version 11.
f7315efc 73
531d6cdc 74 fIdN = 0;
75 fIdName = 0;
76 fIdSens = 0;
77 fEuclidOut = kFALSE; // Don't write Euclide file
531d6cdc 78 Int_t i;
79 for(i=0;i<60;i++) fRead[i] = '\0';
80 for(i=0;i<60;i++) fWrite[i] = '\0';
81 for(i=0;i<60;i++) fEuclidGeomDet[i] = '\0';
82 strncpy(fRead,"$ALICE_ROOT/ITS/ITSgeometry_vPPRasymmFMD.det",60);
2b680d9b 83}
b7943f00 84
fa4639a3 85
86//______________________________________________________________________
87AliITSv11::AliITSv11(const char *name, const char *title)
33ddec7d 88 : AliITS("ITS", title),
89 fGeomDetOut(kFALSE), // Don't write .det file
90 fGeomDetIn(kTRUE), // Read .det file
91 fByThick(kTRUE),
92 fMajorVersion(0),
93 fMinorVersion(0),
94 fSDDgeom(0)
95{
fa4639a3 96 // Standard constructor for the ITS version 11.
97
531d6cdc 98 fSDDgeom = new AliITSv11GeometrySDD(0);
fa4639a3 99
100 Int_t i;
531d6cdc 101 fIdN = 6;
102 fIdName = new TString[fIdN];
103 fIdName[0] = name; // removes warning message
104 fIdName[0] = "ITS1";
105 fIdName[1] = "ITS2";
106 fIdName[2] = fSDDgeom->GetSenstiveVolumeMame();
107 fIdName[3] = fSDDgeom->GetSenstiveVolumeMame();
108 fIdName[4] = "ITS5";
109 fIdName[5] = "ITS6";
fa4639a3 110 fIdSens = new Int_t[fIdN];
531d6cdc 111 for(i=0;i<fIdN;i++) fIdSens[i] = 0;
112 fEuclidOut = kFALSE; // Don't write Euclide file
33ddec7d 113 //SetDensityServicesByThickness();
114 // not needed, fByThick set to kTRUE in in the member initialization lis
531d6cdc 115
33ddec7d 116
531d6cdc 117 fEuclidGeometry="$ALICE_ROOT/ITS/ITSgeometry_vPPRasymm2.euc";
118 strncpy(fEuclidGeomDet,"$ALICE_ROOT/ITS/ITSgeometry_vPPRasymm2.det",60);
119 strncpy(fRead,fEuclidGeomDet,60);
120 strncpy(fWrite,fEuclidGeomDet,60);
121 strncpy(fRead,"$ALICE_ROOT/ITS/ITSgeometry_vPPRasymmFMD.det",60);
fa4639a3 122}
123
124
2b680d9b 125//______________________________________________________________________
db486a6e 126AliITSv11::AliITSv11(Int_t debugITS,Int_t debugSPD,Int_t debugSDD,
b7943f00 127 Int_t debugSSD,Int_t debugSUP) :
33ddec7d 128 AliITS("ITS","ITS geometry v11"),
129 fGeomDetOut(kFALSE), // Don't write .det file
130 fGeomDetIn(kTRUE), // Read .det file
131 fByThick(kTRUE),
132 fMajorVersion(0),
133 fMinorVersion(0),
134 fSDDgeom(0)
135 {
b7943f00 136 // Standard default constructor for the ITS version 11.
b7943f00 137
b7943f00 138
531d6cdc 139 // fSPDgeom = new AliITSv11GeometrySPD(debugSPD);
140 fSDDgeom = new AliITSv11GeometrySDD(debugSDD);
141 fSDDgeom->SetDebug(debugSDD);
142 // fSupgeom = new AliITSv11GeometrySupport(debugSUP);
143
144 Int_t i;
145 fIdN = 6;
146 fIdName = new TString[fIdN];
147 fIdName[0] = "ITS1";
148 fIdName[1] = "ITS2";
149 fIdName[2] = fSDDgeom->GetSenstiveVolumeMame();
150 fIdName[3] = fSDDgeom->GetSenstiveVolumeMame();
151 fIdName[4] = "ITS5";
152 fIdName[5] = "ITS6";
153 fIdSens = new Int_t[fIdN];
154 for(i=0;i<fIdN;i++) fIdSens[i] = 0;
155 fEuclidOut = kFALSE; // Don't write Euclide file
33ddec7d 156 //SetDensityServicesByThickness();
531d6cdc 157
b7943f00 158 fEuclidGeometry="$ALICE_ROOT/ITS/ITSgeometry_vPPRasymm2.euc";
159 strncpy(fEuclidGeomDet,"$ALICE_ROOT/ITS/ITSgeometry_vPPRasymm2.det",60);
160 strncpy(fRead,fEuclidGeomDet,60);
161 strncpy(fWrite,fEuclidGeomDet,60);
162 strncpy(fRead,"$ALICE_ROOT/ITS/ITSgeometry_vPPRasymmFMD.det",60);
163
fa4639a3 164 debugITS = (debugSPD && debugSSD && debugSUP && debugSDD); //remove temp. warnings
162acd47 165}
b7943f00 166
167
162acd47 168//______________________________________________________________________
b7943f00 169AliITSv11::AliITSv11(const AliITSv11 &source) :
33ddec7d 170 AliITS(source),
171 fGeomDetOut(kFALSE), // Don't write .det file
172 fGeomDetIn(kTRUE), // Read .det file
173 fByThick(kTRUE),
174 fMajorVersion(0),
175 fMinorVersion(0),
176 fSDDgeom(0)
177{
b7943f00 178 // Copy Constructor for ITS version 11. This function is not to be
179 // used. If any other instance of this function, other than "this" is
180 // passed, an error message is returned.
162acd47 181 // Inputs:
b7943f00 182 // const AliITSv11 &source This class
162acd47 183
184 if(&source == this) return;
b7943f00 185 Warning("Copy Constructor","Not allowed to copy AliITSv11");
162acd47 186 return;
187}
b7943f00 188
189
162acd47 190//______________________________________________________________________
b7943f00 191AliITSv11& AliITSv11::operator=(const AliITSv11
192 &source){
193 // Assignment operator for the ITS version 11. This function is not
194 // to be used. If any other instance of this function, other than "this"
195 // is passed, an error message is returned.
162acd47 196 // Inputs:
b7943f00 197 // const AliITSv11 &source This class
162acd47 198
199 if(&source == this) return *this;
b7943f00 200 Warning("= operator","Not allowed to copy AliITSv11");
162acd47 201 return *this;
dfefbaec 202}
b7943f00 203
204
dfefbaec 205//______________________________________________________________________
b7943f00 206AliITSv11::~AliITSv11() {
207 delete fSDDgeom;
208}
2b680d9b 209
2b680d9b 210
b7943f00 211//______________________________________________________________________
212void AliITSv11::BuildGeometry(){
213
2b680d9b 214}
b7943f00 215
216
2b680d9b 217//______________________________________________________________________
aa9bc63b 218void AliITSv11::CreateGeometry(){
b7943f00 219 //
220 // Create ROOT geometry
221 //
222
223 TGeoManager *geoManager = gGeoManager;
224 TGeoVolume *vALIC = geoManager->GetTopVolume();
225
226 TGeoPcon *sITS = new TGeoPcon("ITS Top Volume",0.0,360.0,2);
227
228 // DefineSection(section number, Z, Rmin, Rmax).
229 const Double_t kcm = 1.0;
230 sITS->DefineSection(0,-300.0*kcm,0.01*kcm,50.0*kcm);
231 sITS->DefineSection(1,+300.0*kcm,0.01*kcm,50.0*kcm);
232
531d6cdc 233 TGeoMedium *air = gGeoManager->GetMedium("ITS_ITSair");
b7943f00 234 TGeoVolume *vITS = new TGeoVolume("vITS",sITS,air);
235 vITS->SetVisibility(kFALSE);
236 vALIC->AddNode(vITS,1,0);
237
238// fSPDgeom->CenteralSPD(vITS);
fa4639a3 239
b7943f00 240 fSDDgeom->Layer3(vITS);
241 fSDDgeom->Layer4(vITS);
fa4639a3 242
b7943f00 243// fSupgeom->SPDCone(vITS);
244// fSupgeom->SPDThermalSheald(vITS);
245// fSupgeom->SDDCone(vITS);
246// fSupgeom->SSDCone(vITS);
247// fSupgeom->ServicesCableSupport(vITS);
248
541f7ba6 249}
b7943f00 250
251
541f7ba6 252//______________________________________________________________________
253void AliITSv11::CreateMaterials(){
b7943f00 254 //
255 // Create ITS materials
256 // Defined media here should correspond to the one defined in galice.cuts
257 // File which is red in (AliMC*) fMCApp::Init() { ReadTransPar(); }
258 //
259
531d6cdc 260// Int_t ifield = gAlice->Field()->Integ();
261// Float_t fieldm = gAlice->Field()->Max();
262
263// Float_t tmaxfd = 0.1; // 1.0; // Degree
264// Float_t stemax = 1.0; // cm
265// Float_t deemax = 0.1; // 30.0; // Fraction of particle's energy 0<deemax<=1
266// Float_t epsil = 1.0E-4; // 1.0; // cm
267// Float_t stmin = 0.0; // cm "Default value used"
268
269// Float_t tmaxfdSi = 0.1; // .10000E+01; // Degree
270// Float_t stemaxSi = 0.0075; // .10000E+01; // cm
271// Float_t deemaxSi = 0.1; // 0.30000E-02; // Fraction of particle's energy 0<deemax<=1
272// Float_t epsilSi = 1.0E-4;// .10000E+01;
273// Float_t stminSi = 0.0; // cm "Default value used"
274
275// Float_t tmaxfdAir = 0.1; // .10000E+01; // Degree
276// Float_t stemaxAir = .10000E+01; // cm
277// Float_t deemaxAir = 0.1; // 0.30000E-02; // Fraction of particle's energy 0<deemax<=1
278// Float_t epsilAir = 1.0E-4;// .10000E+01;
279// Float_t stminAir = 0.0; // cm "Default value used"
280
281// Float_t tmaxfdServ = 1.0; // 10.0; // Degree
282// Float_t stemaxServ = 1.0; // 0.01; // cm
283// Float_t deemaxServ = 0.5; // 0.1; // Fraction of particle's energy 0<deemax<=1
284// Float_t epsilServ = 1.0E-3; // 0.003; // cm
285// Float_t stminServ = 0.0; //0.003; // cm "Default value used"
286
287// // Freon PerFluorobuthane C4F10 see
288// // http://st-support-cooling-electronics.web.cern.ch/
289// // st-support-cooling-electronics/default.htm
290// Float_t afre[2] = { 12.011,18.9984032 };
291// Float_t zfre[2] = { 6., 9. };
292// Float_t wfre[2] = { 4.,10. };
293// Float_t densfre = 1.52;
294
295
296// //CM55J
297// Float_t aCM55J[4]={12.0107,14.0067,15.9994,1.00794};
298// Float_t zCM55J[4]={6.,7.,8.,1.};
299// Float_t wCM55J[4]={0.908508078,0.010387573,0.055957585,0.025146765};
300// Float_t dCM55J = 1.63;
301
302// //ALCM55J
303// Float_t aALCM55J[5]={12.0107,14.0067,15.9994,1.00794,26.981538};
304// Float_t zALCM55J[5]={6.,7.,8.,1.,13.};
305// Float_t wALCM55J[5]={0.817657902,0.0093488157,0.0503618265,0.0226320885,0.1};
306// Float_t dALCM55J = 1.9866;
307
308// //Si Chips
309// Float_t aSICHIP[6]={12.0107,14.0067,15.9994,1.00794,28.0855,107.8682};
310// Float_t zSICHIP[6]={6.,7.,8.,1.,14., 47.};
311// Float_t wSICHIP[6]={0.039730642,0.001396798,0.01169634,
312// 0.004367771,0.844665,0.09814344903};
313// Float_t dSICHIP = 2.36436;
314
315// //Inox
316// Float_t aINOX[9]={12.0107,54.9380, 28.0855,30.9738,32.066,
317// 58.6928,55.9961,95.94,55.845};
318// Float_t zINOX[9]={6.,25.,14.,15.,16., 28.,24.,42.,26.};
319// Float_t wINOX[9]={0.0003,0.02,0.01,0.00045,0.0003,0.12,0.17,0.025,0.654};
320// Float_t dINOX = 8.03;
321
322// //SDD HV microcable
323// Float_t aHVm[5]={12.0107,1.00794,14.0067,15.9994,26.981538};
324// Float_t zHVm[5]={6.,1.,7.,8.,13.};
325// Float_t wHVm[5]={0.520088819984,0.01983871336,0.0551367996,0.157399667056, 0.247536};
326// Float_t dHVm = 1.6087;
327
328// //SDD LV+signal cable
329// Float_t aLVm[5]={12.0107,1.00794,14.0067,15.9994,26.981538};
330// Float_t zLVm[5]={6.,1.,7.,8.,13.};
331// Float_t wLVm[5]={0.21722436468,0.0082859922,0.023028867,0.06574077612, 0.68572};
332// Float_t dLVm = 2.1035;
333
334// //SDD hybrid microcab
335// Float_t aHLVm[5]={12.0107,1.00794,14.0067,15.9994,26.981538};
336// Float_t zHLVm[5]={6.,1.,7.,8.,13.};
337// Float_t wHLVm[5]={0.24281879711,0.00926228815,0.02574224025,0.07348667449, 0.64869};
338// Float_t dHLVm = 2.0502;
339
340// //SDD anode microcab
341// Float_t aALVm[5]={12.0107,1.00794,14.0067,15.9994,26.981538};
342// Float_t zALVm[5]={6.,1.,7.,8.,13.};
343// Float_t wALVm[5]={0.392653705471,0.0128595919215,
344// 0.041626868025,0.118832707289, 0.431909};
345// Float_t dALVm = 2.0502;
346
347// //X7R capacitors
348// Float_t aX7R[7]={137.327,47.867,15.9994,58.6928,63.5460,118.710,207.2};
349// Float_t zX7R[7]={56.,22.,8.,28.,29.,50.,82.};
350// Float_t wX7R[7]={0.251639432,0.084755042,0.085975822,
351// 0.038244751,0.009471271,0.321736471,0.2081768};
352// Float_t dX7R = 7.14567;
353
354// // AIR
355// Float_t aAir[4]={12.0107,14.0067,15.9994,39.948};
356// Float_t zAir[4]={6.,7.,8.,18.};
357// Float_t wAir[4]={0.000124,0.755267,0.231781,0.012827};
358// Float_t dAir = 1.20479E-3;
359
360// // Water
361// Float_t aWater[2]={1.00794,15.9994};
362// Float_t zWater[2]={1.,8.};
363// Float_t wWater[2]={0.111894,0.888106};
364// Float_t dWater = 1.0;
365
366// // CERAMICS
367// // 94.4% Al2O3 , 2.8% SiO2 , 2.3% MnO , 0.5% Cr2O3
368// Float_t acer[5] = { 26.981539,15.9994,28.0855,54.93805,51.9961 };
369// Float_t zcer[5] = { 13., 8., 14., 25., 24. };
370// Float_t wcer[5] = {.4443408,.5213375,.0130872,.0178135,.003421};
371// Float_t denscer = 3.6;
372
373// //G10FR4
374// Float_t zG10FR4[14] = {14.00, 20.00, 13.00, 12.00, 5.00,
375// 22.00, 11.00, 19.00, 26.00, 9.00,
376// 8.00, 6.00, 7.00, 1.00};
377// Float_t aG10FR4[14] = {28.0855000,40.0780000,26.9815380,24.3050000,
378// 10.8110000,47.8670000,22.9897700,39.0983000,
379// 55.8450000,18.9984000,15.9994000,12.0107000,
380// 14.0067000,1.0079400};
381// Float_t wG10FR4[14] = {0.15144894,0.08147477,0.04128158,0.00904554,
382// 0.01397570,0.00287685,0.00445114,0.00498089,
383// 0.00209828,0.00420000,0.36043788,0.27529426,
384// 0.01415852,0.03427566};
385// Float_t densG10FR4= 1.8;
386
387// //--- EPOXY --- C18 H19 O3
388// Float_t aEpoxy[3] = {15.9994, 1.00794, 12.0107} ;
389// Float_t zEpoxy[3] = { 8., 1., 6.} ;
390// Float_t wEpoxy[3] = { 3., 19., 18.} ;
391// Float_t dEpoxy = 1.8 ;
392
393// // rohacell: C9 H13 N1 O2
394// Float_t arohac[4] = {12.01, 1.01, 14.010, 16.};
395// Float_t zrohac[4] = { 6., 1., 7., 8.};
396// Float_t wrohac[4] = { 9., 13., 1., 2.};
397// Float_t drohac = 0.05;
398
399// // If he/she means stainless steel (inox) + Aluminium and Zeff=15.3383 then
400// //
401// // %Al=81.6164 %inox=100-%Al
402
403// Float_t aInAl[5] = {27., 55.847,51.9961,58.6934,28.0855 };
404// Float_t zInAl[5] = {13., 26.,24.,28.,14. };
405// Float_t wInAl[5] = {.816164, .131443,.0330906,.0183836,.000919182};
406// Float_t dInAl = 3.075;
407
408// // Kapton
409// Float_t aKapton[4]={1.00794,12.0107, 14.010,15.9994};
410// Float_t zKapton[4]={1.,6.,7.,8.};
411// Float_t wKapton[4]={0.026362,0.69113,0.07327,0.209235};
412// Float_t dKapton = 1.42;
413
414// //SDD ruby sph.
415// Float_t aAlOxide[2] = { 26.981539,15.9994};
416// Float_t zAlOxide[2] = { 13., 8.};
417// Float_t wAlOxide[2] = {0.4707, 0.5293};
418// Float_t dAlOxide = 3.97;
419
420// //---------
421// AliMaterial(1,"ITSsddSi",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
422// AliMedium(1,"ITSsddSi",1,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,epsilSi,stminSi);
423
424// AliMixture(5,"ITSair",aAir,zAir,dAir,4,wAir);
425// AliMedium(5,"ITSair",5,0,ifield,fieldm,tmaxfdAir,stemaxAir,deemaxAir,epsilAir,stminAir);
426
427// AliMixture(7,"ITSsddSiChip",aSICHIP,zSICHIP,dSICHIP,6,wSICHIP);
428// AliMedium(7,"ITSsddSiChip",7,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,epsilSi,stminSi);
429
430// AliMaterial(79,"SDD SI insensitive$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
431// AliMedium(79,"SDD SI insensitive$",79,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
432
433// AliMaterial(11,"ITSal",0.26982E+02,0.13000E+02,0.26989E+01,0.89000E+01,0.99900E+03);
434// AliMedium(11,"ITSal",11,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
435
436// AliMixture(9,"ITSsddCarbonM55J",aCM55J,zCM55J,dCM55J,4,wCM55J);
437// AliMedium(9,"ITSsddCarbonM55J",9,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
438
439// AliMixture(10,"SDD AIR$",aAir,zAir,dAir,4,wAir);
440// AliMedium(10,"SDD AIR$",10,0,ifield,fieldm,tmaxfdAir,stemaxAir,deemaxAir,epsilAir,stminAir);
441
442// AliMixture(12, "WATER",aWater,zWater,dWater,2,wWater);
443// AliMedium(12,"WATER",12,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
444
445// AliMixture(69,"ITSsddCAlM55J",aALCM55J,zALCM55J,dALCM55J,5,wALCM55J);
446// AliMedium(69,"ITSsddCAlM55J",69,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
447
448// AliMixture(70, "ITSsddKAPTON_POLYCH2", aKapton, zKapton, dKapton, 4, wKapton);
449// AliMedium(70,"ITSsddKAPTON_POLYCH2",70,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
450
451// AliMixture(77,"SDDX7Rcapacitors",aX7R,zX7R,dX7R,7,wX7R);
452// AliMedium(77,"SDDX7Rcapacitors",77,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
453
454// AliMixture(78,"SDD ruby sph. Al2O3$",aAlOxide,zAlOxide,dAlOxide,2,wAlOxide);
455// AliMedium(78,"SDD ruby sph. Al2O3$",78,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
456
457
458// AliMaterial(64,"ALUMINUM$",0.26982E+02,0.13000E+02,0.26989E+01,0.89000E+01,0.99900E+03);
459// AliMedium(64,"ALUMINUM$",64,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
460
461// AliMaterial(14,"COPPER",0.63546E+02,0.29000E+02,0.89600E+01,0.14300E+01,0.99900E+03);
462// AliMedium(14,"COPPER",14,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
463
464// AliMaterial(2,"SPD SI CHIP$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
465// AliMedium(2,"SPD SI CHIP$",2,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,epsilSi,stminSi);
466
467// AliMaterial(3,"SPD SI BUS$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
468// AliMedium(3,"SPD SI BUS$",3,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,epsilSi,stminSi);
469
470// AliMixture(4,"C (M55J)$",aCM55J,zCM55J,dCM55J,4,wCM55J);
471// AliMedium(4,"C (M55J)$",4,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
472
473
474// AliMixture(6,"GEN AIR$",aAir,zAir,dAir,4,wAir);
475// AliMedium(6,"GEN AIR$",6,0,ifield,fieldm,tmaxfdAir,stemaxAir,deemaxAir,epsilAir,stminAir);
476
477// AliMixture(13,"Freon$",afre,zfre,densfre,-2,wfre);
478// AliMedium(13,"Freon$",13,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
479
480
481// AliMixture(15,"CERAMICS$",acer,zcer,denscer,5,wcer);
482// AliMedium(15,"CERAMICS$",15,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
483
484// AliMixture(20,"SSD C (M55J)$",aCM55J,zCM55J,dCM55J,4,wCM55J);
485// AliMedium(20,"SSD C (M55J)$",20,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
486
487// AliMixture(21,"SSD AIR$",aAir,zAir,dAir,4,wAir);
488// AliMedium(21,"SSD AIR$",21,0,ifield,fieldm,tmaxfdAir,stemaxAir,deemaxAir,epsilAir,stminAir);
489
490// AliMixture(25,"G10FR4$",aG10FR4,zG10FR4,densG10FR4,14,wG10FR4);
491// AliMedium(25,"G10FR4$",25,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
492
493// AliMixture(26,"GEN C (M55J)$",aCM55J,zCM55J,dCM55J,4,wCM55J);
494// AliMedium(26,"GEN C (M55J)$",26,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
495
496// AliMixture(27,"GEN Air$",aAir,zAir,dAir,4,wAir);
497// AliMedium(27,"GEN Air$",27,0,ifield,fieldm,tmaxfdAir,stemaxAir,deemaxAir,epsilAir,stminAir);
498
499// AliMaterial(51,"SPD SI$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
500// AliMedium(51,"SPD SI$",51,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,epsilSi,stminSi);
501
502// AliMaterial(52,"SPD SI CHIP$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
503// AliMedium(52,"SPD SI CHIP$",52,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,epsilSi,stminSi);
504
505// AliMaterial(53,"SPD SI BUS$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
506// AliMedium(53,"SPD SI BUS$",53,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,epsilSi,stminSi);
507
508// AliMixture(54,"SPD C (M55J)$",aCM55J,zCM55J,dCM55J,4,wCM55J);
509// AliMedium(54,"SPD C (M55J)$",54,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
510
511// AliMixture(55,"SPD AIR$",aAir,zAir,dAir,4,wAir);
512// AliMedium(55,"SPD AIR$",55,0,ifield,fieldm,tmaxfdAir,stemaxAir,deemaxAir,epsilAir,stminAir);
513
514// AliMixture(56, "SPD KAPTON(POLYCH2)", aKapton, zKapton, dKapton, 4, wKapton);
515// AliMedium(56,"SPD KAPTON(POLYCH2)$",56,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
516
517// AliMixture(61,"EPOXY$",aEpoxy,zEpoxy,dEpoxy,-3,wEpoxy);
518// AliMedium(61,"EPOXY$",61,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
519
520// AliMaterial(62,"SILICON$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
521// AliMedium(62,"SILICON$",62,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,epsilSi,stminSi);
522
523// AliMixture(63, "KAPTONH(POLYCH2)", aKapton, zKapton, dKapton, 4, wKapton);
524// AliMedium(63,"KAPTONH(POLYCH2)$",63,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
525
526
527// AliMixture(65,"INOX$",aINOX,zINOX,dINOX,9,wINOX);
528// AliMedium(65,"INOX$",65,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
529
530// AliMixture(68,"ROHACELL$",arohac,zrohac,drohac,-4,wrohac);
531// AliMedium(68,"ROHACELL$",68,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
532
533
534// AliMaterial(71,"ITS SANDW A$",0.12011E+02,0.60000E+01,0.2115E+00,0.17479E+03,0.99900E+03);
535// AliMedium(71,"ITS SANDW A$",71,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
536
537// AliMaterial(72,"ITS SANDW B$",0.12011E+02,0.60000E+01,0.27000E+00,0.18956E+03,0.99900E+03);
538// AliMedium(72,"ITS SANDW B$",72,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
539
540// AliMaterial(73,"ITS SANDW C$",0.12011E+02,0.60000E+01,0.41000E+00,0.90868E+02,0.99900E+03);
541// AliMedium(73,"ITS SANDW C$",73,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
542
543// AliMaterial(74,"HEAT COND GLUE$",0.12011E+02,0.60000E+01,0.1930E+01,0.22100E+02,0.99900E+03);
544// AliMedium(74,"HEAT COND GLUE$",74,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
545
546// AliMaterial(75,"ELASTO SIL$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
547// AliMedium(75,"ELASTO SIL$",75,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
548
549// AliMaterial(76,"SPDBUS(AL+KPT+EPOX)$",0.19509E+02,0.96502E+01,0.19060E+01,0.15413E+02,0.99900E+03);
550// AliMedium(76,"SPDBUS(AL+KPT+EPOX)$",76,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
551
552
553// AliMixture(80,"SDD HV microcable$",aHVm,zHVm,dHVm,5,wHVm);
554// AliMedium(80,"SDD HV microcable$",80,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
555
556// AliMixture(81,"SDD LV+signal cable$",aLVm,zLVm,dLVm,5,wLVm);
557// AliMedium(81,"SDD LV+signal cable$",81,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
558
559// AliMixture(82,"SDD hybrid microcab$",aHLVm, zHLVm,dHLVm,5,wHLVm);
560// AliMedium(82,"SDD hybrid microcab$",82,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
561
562// AliMixture(83,"SDD anode microcab$",aALVm,zALVm,dALVm,5,wALVm);
563// AliMedium(83,"SDD anode microcab$",83,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
564
565// AliMaterial(84,"SDD/SSD rings$",0.123565E+02,0.64561E+01,0.18097E+01,0.229570E+02,0.99900E+03);
566// AliMedium(84,"SDD/SSD rings$",84,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
567
568// AliMixture(85,"inox/alum$",aInAl,zInAl,dInAl,5,wInAl);
569// AliMedium(85,"inox/alum$",85,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
570
571
572// // special media to take into account services in the SDD and SSD
573// // cones for the FMD
574
575// Float_t aA[13],zZ[13],wW[13],den;
576// // From Pierluigi Barberis calculations of 2SPD+1SDD October 2 2002.
577// zZ[0] = 1.0; aA[0] = 1.00794; // Hydrogen
578// zZ[1] = 6.0; aA[1] = 12.011; // Carbon
579// zZ[2] = 7.0; aA[2] = 14.00674; // Nitrogen
580// zZ[3] = 8.0; aA[3] = 15.9994; // Oxigen
581// zZ[4] = 14.0; aA[4] = 28.0855; // Silicon
582// zZ[5] = 24.0; aA[5] = 51.9961; //Cromium
583// zZ[6] = 25.0; aA[6] = 54.938049; // Manganese
584// zZ[7] = 26.0; aA[7] = 55.845; // Iron
585// zZ[8] = 28.0; aA[8] = 58.6934; // Nickle
586// zZ[9] = 29.0; aA[9] = 63.546; // Copper
587// zZ[10] = 13.0; aA[10] = 26.981539; // Alulminum
588// zZ[11] = 47.0; aA[11] = 107.8682; // Silver
589// zZ[12] = 27.0; aA[12] = 58.9332; // Cobolt
590// wW[0] = 0.019965;
591// wW[1] = 0.340961;
592// wW[2] = 0.041225;
593// wW[3] = 0.200352;
594// wW[4] = 0.000386;
595// wW[5] = 0.001467;
596// wW[6] = 0.000155;
597// wW[7] = 0.005113;
598// wW[8] = 0.000993;
599// wW[9] = 0.381262;
600// wW[10] = 0.008121;
601// wW[11] = 0.000000;
602// wW[12] = 0.000000;
603// if(fByThick){// New values seeITS_MatBudget_4B.xls
604// den = 1.5253276; // g/cm^3 Cell O370
605// }else{
606// den = 2.58423412; // g/cm^3 Cell L370
607// } // end if fByThick
608// //den = 6161.7/(3671.58978);//g/cm^3 Volume does not exclude holes
609// AliMixture(86,"AIRFMDSDD$",aA,zZ,den,+11,wW);
610// AliMedium(86,"AIRFMDSDD$",86,0,ifield,fieldm,tmaxfdAir,stemaxAir,
611// deemaxAir,epsilAir,stminAir);
612
613
614// wW[0] = 0.019777;
615// wW[1] = 0.325901;
616// wW[2] = 0.031848;
617// wW[3] = 0.147668;
618// wW[4] = 0.030609;
619// wW[5] = 0.013993;
620// wW[6] = 0.001479;
621// wW[7] = 0.048792;
622// wW[8] = 0.009477;
623// wW[9] = 0.350697;
624// wW[10] = 0.014546;
625// wW[11] = 0.005213;
626// wW[12] = 0.000000;
627// if(fByThick){// New values seeITS_MatBudget_4B.xls
628// den = 1.2464275; // g/cm^3 Cell O403
629// }else{
630// den = 1.28134409; // g/cm^3 Cell L403
631// } // end if fByThick
632// //den = 7666.3/(9753.553259); // volume does not exclude holes
633// AliMixture(87,"AIRFMDSSD$",aA,zZ,den,+12,wW);
634// AliMedium(87,"AIRFMDSSD$",87,0,ifield,fieldm,tmaxfdAir,stemaxAir,
635// deemaxAir,epsilAir,stminAir);
636
637// wW[0] = 0.016302;
638// wW[1] = 0.461870;
639// wW[2] = 0.033662;
640// wW[3] = 0.163595;
641// wW[4] = 0.000315;
642// wW[5] = 0.001197;
643// wW[6] = 0.000127;
644// wW[7] = 0.004175;
645// wW[8] = 0.000811;
646// wW[9] = 0.311315;
647// wW[10] = 0.006631;
648// wW[11] = 0.000000;
649// wW[12] = 0.000000;
650// if(fByThick){// New values seeITS_MatBudget_4B.xls
651// den = 1.9353276; // g/cm^3 Cell N370
652// }else{
653// den = 3.2788626; // g/cm^3 Cell F370
654// } // end if fByThick
655// //den = 7667.1/(3671.58978); // Volume does not excludeholes
656// AliMixture(88,"ITS SANDW CFMDSDD$",aA,zZ,den,+11,wW);
657// AliMedium(88,"ITS SANDW CFMDSDD$",88,0,ifield,fieldm,tmaxfd,stemax,
658// deemax,epsil,stmin);
659
660// wW[0] = 0.014065;
661// wW[1] = 0.520598;
662// wW[2] = 0.022650;
663// wW[3] = 0.105018;
664// wW[4] = 0.021768;
665// wW[5] = 0.009952;
666// wW[6] = 0.001051;
667// wW[7] = 0.034700;
668// wW[8] = 0.006740;
669// wW[9] = 0.249406;
670// wW[10] = 0.010345;
671// wW[11] = 0.0003707;
672// wW[12] = 0.000000;
673// if(fByThick){// New values seeITS_MatBudget_4B.xls
674// den = 1.6564275; // g/cm^3 Cell N304
675// }else{
676// den = 1.7028296; // g/cm^3 Cell F304
677// } // end if fByThick
678// //den = 1166.5/(3671.58978); // Volume does not exclude holes
679// AliMixture(89,"ITS SANDW CFMDSSD$",aA,zZ,den,+12,wW);
680// AliMedium(89,"ITS SANDW CFMDSSD$",89,0,ifield,fieldm,tmaxfd,stemax,
681// deemax,epsil,stmin);
682
683// wW[0] = 0.005970;
684// wW[1] = 0.304704;
685// wW[2] = 0.042510;
686// wW[3] = 0.121715;
687// wW[4] = 0.001118;
688// wW[5] = 0.030948;
689// wW[6] = 0.003270;
690// wW[7] = 0.107910;
691// wW[8] = 0.020960;
692// wW[9] = 0.360895;
693// wW[10] = 0.000000;
694// wW[11] = 0.000000;
695// wW[12] = 0.000000;
696// if(fByThick){// New values seeITS_MatBudget_4B.xls
697// den = 80.31136576; // g/cm^3 Cell H329
698// }else{
699// den = 87.13062; // g/cm^3 Cell G329
700// } // end if fByThick
701// //den = 1251.3/(0.05*2.0*TMath::Pi()*(7.75*7.75 - 3.7*3.7)); // g/cm^3
702// AliMixture(97,"SPD SERVICES$",aA,zZ,den,+10,wW);
703// AliMedium(97,"SPD SERVICES$",97,0,ifield,fieldm,tmaxfd,stemax,
704// deemax,epsil,stmin);
705
706// // Special media
707
708// AliMaterial(90,"SPD shield$", 12.011, 6., 1.93/10. , 22.1*10., 999);
709// AliMedium(90,"SPD shield$",90,0,ifield,fieldm,tmaxfdServ,stemaxServ,
710// deemaxServ,epsilServ,stminServ);
711
712// AliMaterial(91, "SPD End ladder$", 47.0447, 21.7963, 3.6374, 4.4711, 999);
713// AliMedium(91,"SPD End ladder$",91,0,ifield,fieldm,tmaxfdServ,stemaxServ,
714// deemaxServ,epsilServ,stminServ);
715
716// AliMaterial(92, "SPD cone$",28.0855, 14., 2.33, 9.36, 999);
717// AliMedium(92,"SPD cone$",92,0,ifield,fieldm,tmaxfdServ,stemaxServ,
718// deemaxServ,epsilServ,stminServ);
719
720// // Material with fractional Z not actually used
721// // AliMaterial(93, "SDD End ladder$", 69.9298, 29.8246, 0.3824, 36.5103, 999);
722// // AliMedium(93,"SDD End ladder$",93,0,ifield,fieldm,tmaxfdServ,stemaxServ,
723// // deemaxServ,epsilServ,stminServ);
724
725// AliMaterial(94, "SDD cone$",63.546, 29., 1.15, 1.265, 999);
726// AliMedium(94,"SDD cone$",94,0,ifield,fieldm,tmaxfdServ,stemaxServ,
727// deemaxServ,epsilServ,stminServ);
728
729// // Material with fractional Z not actually used
730// // AliMaterial(95, "SSD End ladder$", 32.0988, 15.4021, 0.68, 35.3238, 999);
731// // AliMedium(95,"SSD End ladder$",95,0,ifield,fieldm,tmaxfdServ,stemaxServ,
732// // deemaxServ,epsilServ,stminServ);
733
734// AliMaterial(96, "SSD cone$",63.546, 29., 1.15, 1.265, 999);
735// AliMedium(96,"SSD cone$",96,0,ifield,fieldm,tmaxfdServ,stemaxServ,
736// deemaxServ,epsilServ,stminServ);
737
738
b7943f00 739 Int_t ifield = gAlice->Field()->Integ();
740 Float_t fieldm = gAlice->Field()->Max();
741
742 Float_t tmaxfd = 0.1; // 1.0; // Degree
743 Float_t stemax = 1.0; // cm
744 Float_t deemax = 0.1; // 30.0; // Fraction of particle's energy 0<deemax<=1
745 Float_t epsil = 1.0E-4; // 1.0; // cm
746 Float_t stmin = 0.0; // cm "Default value used"
747
748 Float_t tmaxfdSi = 0.1; // .10000E+01; // Degree
749 Float_t stemaxSi = 0.0075; // .10000E+01; // cm
750 Float_t deemaxSi = 0.1; // 0.30000E-02; // Fraction of particle's energy 0<deemax<=1
751 Float_t epsilSi = 1.0E-4;// .10000E+01;
752 Float_t stminSi = 0.0; // cm "Default value used"
753
754 Float_t tmaxfdAir = 0.1; // .10000E+01; // Degree
755 Float_t stemaxAir = .10000E+01; // cm
756 Float_t deemaxAir = 0.1; // 0.30000E-02; // Fraction of particle's energy 0<deemax<=1
757 Float_t epsilAir = 1.0E-4;// .10000E+01;
758 Float_t stminAir = 0.0; // cm "Default value used"
759
760 Float_t tmaxfdServ = 1.0; // 10.0; // Degree
761 Float_t stemaxServ = 1.0; // 0.01; // cm
762 Float_t deemaxServ = 0.5; // 0.1; // Fraction of particle's energy 0<deemax<=1
763 Float_t epsilServ = 1.0E-3; // 0.003; // cm
764 Float_t stminServ = 0.0; //0.003; // cm "Default value used"
765
766 // Freon PerFluorobuthane C4F10 see
767 // http://st-support-cooling-electronics.web.cern.ch/
768 // st-support-cooling-electronics/default.htm
769 Float_t afre[2] = { 12.011,18.9984032 };
770 Float_t zfre[2] = { 6., 9. };
771 Float_t wfre[2] = { 4.,10. };
772 Float_t densfre = 1.52;
773
774
775 //CM55J
531d6cdc 776
b7943f00 777 Float_t aCM55J[4]={12.0107,14.0067,15.9994,1.00794};
778 Float_t zCM55J[4]={6.,7.,8.,1.};
779 Float_t wCM55J[4]={0.908508078,0.010387573,0.055957585,0.025146765};
780 Float_t dCM55J = 1.63;
781
782 //ALCM55J
531d6cdc 783
b7943f00 784 Float_t aALCM55J[5]={12.0107,14.0067,15.9994,1.00794,26.981538};
785 Float_t zALCM55J[5]={6.,7.,8.,1.,13.};
786 Float_t wALCM55J[5]={0.817657902,0.0093488157,0.0503618265,0.0226320885,0.1};
787 Float_t dALCM55J = 1.9866;
788
789 //Si Chips
531d6cdc 790
b7943f00 791 Float_t aSICHIP[6]={12.0107,14.0067,15.9994,1.00794,28.0855,107.8682};
792 Float_t zSICHIP[6]={6.,7.,8.,1.,14., 47.};
531d6cdc 793 Float_t wSICHIP[6]={0.039730642,0.001396798,0.01169634,0.004367771,0.844665,0.09814344903};
b7943f00 794 Float_t dSICHIP = 2.36436;
795
796 //Inox
531d6cdc 797
798 Float_t aINOX[9]={12.0107,54.9380, 28.0855,30.9738,32.066,58.6928,55.9961,95.94,55.845};
b7943f00 799 Float_t zINOX[9]={6.,25.,14.,15.,16., 28.,24.,42.,26.};
800 Float_t wINOX[9]={0.0003,0.02,0.01,0.00045,0.0003,0.12,0.17,0.025,0.654};
801 Float_t dINOX = 8.03;
802
803 //SDD HV microcable
531d6cdc 804
b7943f00 805 Float_t aHVm[5]={12.0107,1.00794,14.0067,15.9994,26.981538};
806 Float_t zHVm[5]={6.,1.,7.,8.,13.};
807 Float_t wHVm[5]={0.520088819984,0.01983871336,0.0551367996,0.157399667056, 0.247536};
808 Float_t dHVm = 1.6087;
809
810 //SDD LV+signal cable
531d6cdc 811
b7943f00 812 Float_t aLVm[5]={12.0107,1.00794,14.0067,15.9994,26.981538};
813 Float_t zLVm[5]={6.,1.,7.,8.,13.};
814 Float_t wLVm[5]={0.21722436468,0.0082859922,0.023028867,0.06574077612, 0.68572};
815 Float_t dLVm = 2.1035;
816
817 //SDD hybrid microcab
531d6cdc 818
b7943f00 819 Float_t aHLVm[5]={12.0107,1.00794,14.0067,15.9994,26.981538};
820 Float_t zHLVm[5]={6.,1.,7.,8.,13.};
821 Float_t wHLVm[5]={0.24281879711,0.00926228815,0.02574224025,0.07348667449, 0.64869};
822 Float_t dHLVm = 2.0502;
823
824 //SDD anode microcab
531d6cdc 825
b7943f00 826 Float_t aALVm[5]={12.0107,1.00794,14.0067,15.9994,26.981538};
827 Float_t zALVm[5]={6.,1.,7.,8.,13.};
531d6cdc 828 Float_t wALVm[5]={0.392653705471,0.0128595919215,0.041626868025,0.118832707289, 0.431909};
b7943f00 829 Float_t dALVm = 2.0502;
830
831 //X7R capacitors
531d6cdc 832
b7943f00 833 Float_t aX7R[7]={137.327,47.867,15.9994,58.6928,63.5460,118.710,207.2};
834 Float_t zX7R[7]={56.,22.,8.,28.,29.,50.,82.};
531d6cdc 835 Float_t wX7R[7]={0.251639432,0.084755042,0.085975822,0.038244751,0.009471271,0.321736471,0.2081768};
b7943f00 836 Float_t dX7R = 7.14567;
837
838 // AIR
531d6cdc 839
b7943f00 840 Float_t aAir[4]={12.0107,14.0067,15.9994,39.948};
841 Float_t zAir[4]={6.,7.,8.,18.};
842 Float_t wAir[4]={0.000124,0.755267,0.231781,0.012827};
843 Float_t dAir = 1.20479E-3;
844
845 // Water
531d6cdc 846
b7943f00 847 Float_t aWater[2]={1.00794,15.9994};
848 Float_t zWater[2]={1.,8.};
849 Float_t wWater[2]={0.111894,0.888106};
850 Float_t dWater = 1.0;
851
852 // CERAMICS
853 // 94.4% Al2O3 , 2.8% SiO2 , 2.3% MnO , 0.5% Cr2O3
854 Float_t acer[5] = { 26.981539,15.9994,28.0855,54.93805,51.9961 };
855 Float_t zcer[5] = { 13., 8., 14., 25., 24. };
856 Float_t wcer[5] = {.4443408,.5213375,.0130872,.0178135,.003421};
857 Float_t denscer = 3.6;
858
859 //G10FR4
531d6cdc 860
861 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};
862 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};
863 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};
b7943f00 864 Float_t densG10FR4= 1.8;
865
866 //--- EPOXY --- C18 H19 O3
867 Float_t aEpoxy[3] = {15.9994, 1.00794, 12.0107} ;
868 Float_t zEpoxy[3] = { 8., 1., 6.} ;
869 Float_t wEpoxy[3] = { 3., 19., 18.} ;
870 Float_t dEpoxy = 1.8 ;
871
872 // rohacell: C9 H13 N1 O2
873 Float_t arohac[4] = {12.01, 1.01, 14.010, 16.};
874 Float_t zrohac[4] = { 6., 1., 7., 8.};
875 Float_t wrohac[4] = { 9., 13., 1., 2.};
876 Float_t drohac = 0.05;
877
878 // If he/she means stainless steel (inox) + Aluminium and Zeff=15.3383 then
879//
880// %Al=81.6164 %inox=100-%Al
881
882 Float_t aInAl[5] = {27., 55.847,51.9961,58.6934,28.0855 };
883 Float_t zInAl[5] = {13., 26.,24.,28.,14. };
884 Float_t wInAl[5] = {.816164, .131443,.0330906,.0183836,.000919182};
885 Float_t dInAl = 3.075;
886
887 // Kapton
531d6cdc 888
b7943f00 889 Float_t aKapton[4]={1.00794,12.0107, 14.010,15.9994};
890 Float_t zKapton[4]={1.,6.,7.,8.};
891 Float_t wKapton[4]={0.026362,0.69113,0.07327,0.209235};
892 Float_t dKapton = 1.42;
893
894 //SDD ruby sph.
895 Float_t aAlOxide[2] = { 26.981539,15.9994};
896 Float_t zAlOxide[2] = { 13., 8.};
897 Float_t wAlOxide[2] = {0.4707, 0.5293};
898 Float_t dAlOxide = 3.97;
899
b7943f00 900
531d6cdc 901 AliMaterial(1,"SI$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
902 AliMedium(1,"SI$",1,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,epsilSi,stminSi);
b7943f00 903
904 AliMaterial(2,"SPD SI CHIP$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
905 AliMedium(2,"SPD SI CHIP$",2,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,epsilSi,stminSi);
906
907 AliMaterial(3,"SPD SI BUS$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
908 AliMedium(3,"SPD SI BUS$",3,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,epsilSi,stminSi);
909
910 AliMixture(4,"C (M55J)$",aCM55J,zCM55J,dCM55J,4,wCM55J);
911 AliMedium(4,"C (M55J)$",4,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
912
531d6cdc 913 AliMixture(5,"AIR$",aAir,zAir,dAir,4,wAir);
914 AliMedium(5,"AIR$",5,0,ifield,fieldm,tmaxfdAir,stemaxAir,deemaxAir,epsilAir,stminAir);
915
b7943f00 916 AliMixture(6,"GEN AIR$",aAir,zAir,dAir,4,wAir);
917 AliMedium(6,"GEN AIR$",6,0,ifield,fieldm,tmaxfdAir,stemaxAir,deemaxAir,epsilAir,stminAir);
918
531d6cdc 919 AliMixture(7,"SDD SI CHIP$",aSICHIP,zSICHIP,dSICHIP,6,wSICHIP);
920 AliMedium(7,"SDD SI CHIP$",7,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,epsilSi,stminSi);
921
922 AliMixture(9,"SDD C (M55J)$",aCM55J,zCM55J,dCM55J,4,wCM55J);
923 AliMedium(9,"SDD C (M55J)$",9,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
924
925 AliMixture(10,"SDD AIR$",aAir,zAir,dAir,4,wAir);
926 AliMedium(10,"SDD AIR$",10,0,ifield,fieldm,tmaxfdAir,stemaxAir,deemaxAir,epsilAir,stminAir);
927
928 AliMaterial(11,"AL$",0.26982E+02,0.13000E+02,0.26989E+01,0.89000E+01,0.99900E+03);
929 AliMedium(11,"AL$",11,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
930
931 AliMixture(12, "Water$",aWater,zWater,dWater,2,wWater);
932 AliMedium(12,"WATER$",12,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
933
b7943f00 934 AliMixture(13,"Freon$",afre,zfre,densfre,-2,wfre);
935 AliMedium(13,"Freon$",13,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
936
531d6cdc 937 AliMaterial(14,"COPPER$",0.63546E+02,0.29000E+02,0.89600E+01,0.14300E+01,0.99900E+03);
938 AliMedium(14,"COPPER$",14,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
b7943f00 939 AliMixture(15,"CERAMICS$",acer,zcer,denscer,5,wcer);
940 AliMedium(15,"CERAMICS$",15,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
941
942 AliMixture(20,"SSD C (M55J)$",aCM55J,zCM55J,dCM55J,4,wCM55J);
943 AliMedium(20,"SSD C (M55J)$",20,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
944
945 AliMixture(21,"SSD AIR$",aAir,zAir,dAir,4,wAir);
946 AliMedium(21,"SSD AIR$",21,0,ifield,fieldm,tmaxfdAir,stemaxAir,deemaxAir,epsilAir,stminAir);
947
948 AliMixture(25,"G10FR4$",aG10FR4,zG10FR4,densG10FR4,14,wG10FR4);
949 AliMedium(25,"G10FR4$",25,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
950
951 AliMixture(26,"GEN C (M55J)$",aCM55J,zCM55J,dCM55J,4,wCM55J);
952 AliMedium(26,"GEN C (M55J)$",26,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
953
954 AliMixture(27,"GEN Air$",aAir,zAir,dAir,4,wAir);
955 AliMedium(27,"GEN Air$",27,0,ifield,fieldm,tmaxfdAir,stemaxAir,deemaxAir,epsilAir,stminAir);
956
957 AliMaterial(51,"SPD SI$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
958 AliMedium(51,"SPD SI$",51,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,epsilSi,stminSi);
959
960 AliMaterial(52,"SPD SI CHIP$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
961 AliMedium(52,"SPD SI CHIP$",52,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,epsilSi,stminSi);
962
963 AliMaterial(53,"SPD SI BUS$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
964 AliMedium(53,"SPD SI BUS$",53,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,epsilSi,stminSi);
965
966 AliMixture(54,"SPD C (M55J)$",aCM55J,zCM55J,dCM55J,4,wCM55J);
967 AliMedium(54,"SPD C (M55J)$",54,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
968
969 AliMixture(55,"SPD AIR$",aAir,zAir,dAir,4,wAir);
970 AliMedium(55,"SPD AIR$",55,0,ifield,fieldm,tmaxfdAir,stemaxAir,deemaxAir,epsilAir,stminAir);
971
972 AliMixture(56, "SPD KAPTON(POLYCH2)", aKapton, zKapton, dKapton, 4, wKapton);
973 AliMedium(56,"SPD KAPTON(POLYCH2)$",56,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
974
975 AliMixture(61,"EPOXY$",aEpoxy,zEpoxy,dEpoxy,-3,wEpoxy);
976 AliMedium(61,"EPOXY$",61,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
977
978 AliMaterial(62,"SILICON$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
979 AliMedium(62,"SILICON$",62,0,ifield,fieldm,tmaxfdSi,stemaxSi,deemaxSi,epsilSi,stminSi);
980
981 AliMixture(63, "KAPTONH(POLYCH2)", aKapton, zKapton, dKapton, 4, wKapton);
982 AliMedium(63,"KAPTONH(POLYCH2)$",63,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
983
531d6cdc 984 AliMaterial(64,"ALUMINUM$",0.26982E+02,0.13000E+02,0.26989E+01,0.89000E+01,0.99900E+03);
985 AliMedium(64,"ALUMINUM$",64,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
b7943f00 986
987 AliMixture(65,"INOX$",aINOX,zINOX,dINOX,9,wINOX);
988 AliMedium(65,"INOX$",65,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
989
990 AliMixture(68,"ROHACELL$",arohac,zrohac,drohac,-4,wrohac);
991 AliMedium(68,"ROHACELL$",68,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
992
531d6cdc 993 AliMixture(69,"SDD C AL (M55J)$",aALCM55J,zALCM55J,dALCM55J,5,wALCM55J);
994 AliMedium(69,"SDD C AL (M55J)$",69,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
995
996 AliMixture(70, "SDDKAPTON (POLYCH2)", aKapton, zKapton, dKapton, 4, wKapton);
997 AliMedium(70,"SDDKAPTON (POLYCH2)$",70,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
b7943f00 998
999 AliMaterial(71,"ITS SANDW A$",0.12011E+02,0.60000E+01,0.2115E+00,0.17479E+03,0.99900E+03);
1000 AliMedium(71,"ITS SANDW A$",71,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1001
1002 AliMaterial(72,"ITS SANDW B$",0.12011E+02,0.60000E+01,0.27000E+00,0.18956E+03,0.99900E+03);
1003 AliMedium(72,"ITS SANDW B$",72,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1004
1005 AliMaterial(73,"ITS SANDW C$",0.12011E+02,0.60000E+01,0.41000E+00,0.90868E+02,0.99900E+03);
1006 AliMedium(73,"ITS SANDW C$",73,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1007
1008 AliMaterial(74,"HEAT COND GLUE$",0.12011E+02,0.60000E+01,0.1930E+01,0.22100E+02,0.99900E+03);
1009 AliMedium(74,"HEAT COND GLUE$",74,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1010
1011 AliMaterial(75,"ELASTO SIL$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
1012 AliMedium(75,"ELASTO SIL$",75,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1013
531d6cdc 1014 // SPD bus (data from Petra Riedler)
1015 Float_t aSPDbus[5] = {1.00794,12.0107,14.01,15.9994,26.982 };
1016 Float_t zSPDbus[5] = {1.,6.,7.,8.,13.};
1017 Float_t wSPDbus[5] = {0.023523,0.318053,0.009776,0.078057,0.570591};
1018 Float_t dSPDbus = 2.128505;
1019
1020 // AliMaterial(76,"SPDBUS(AL+KPT+EPOX)$",0.19509E+02,0.96502E+01,0.19060E+01,0.15413E+02,0.99900E+03);
1021 AliMixture(76,"SPDBUS(AL+KPT+EPOX)$",aSPDbus,zSPDbus,dSPDbus,5,wSPDbus);
b7943f00 1022 AliMedium(76,"SPDBUS(AL+KPT+EPOX)$",76,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1023
531d6cdc 1024 AliMixture(77,"SDD X7R capacitors$",aX7R,zX7R,dX7R,7,wX7R);
1025 AliMedium(77,"SDD X7R capacitors$",77,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1026
1027 AliMixture(78,"SDD ruby sph. Al2O3$",aAlOxide,zAlOxide,dAlOxide,2,wAlOxide);
1028 AliMedium(78,"SDD ruby sph. Al2O3$",78,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1029
1030 AliMaterial(79,"SDD SI insensitive$",0.28086E+02,0.14000E+02,0.23300E+01,0.93600E+01,0.99900E+03);
1031 AliMedium(79,"SDD SI insensitive$",79,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
b7943f00 1032
1033 AliMixture(80,"SDD HV microcable$",aHVm,zHVm,dHVm,5,wHVm);
1034 AliMedium(80,"SDD HV microcable$",80,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1035
1036 AliMixture(81,"SDD LV+signal cable$",aLVm,zLVm,dLVm,5,wLVm);
1037 AliMedium(81,"SDD LV+signal cable$",81,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1038
1039 AliMixture(82,"SDD hybrid microcab$",aHLVm, zHLVm,dHLVm,5,wHLVm);
1040 AliMedium(82,"SDD hybrid microcab$",82,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1041
1042 AliMixture(83,"SDD anode microcab$",aALVm,zALVm,dALVm,5,wALVm);
1043 AliMedium(83,"SDD anode microcab$",83,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
531d6cdc 1044 Float_t aDSring[4]={12.0107, 1.00794, 14.0067, 15.9994};
1045 Float_t zDSring[4]={ 6., 1., 7., 8.};
1046 Float_t wDSring[4]={ 0.854323888, 0.026408778, 0.023050265, 0.096217069};
1047 Float_t dDSring = 0.2875;
1048 AliMixture(84,"SDD/SSD rings$",aDSring,zDSring,dDSring,4,wDSring);
b7943f00 1049 AliMedium(84,"SDD/SSD rings$",84,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1050
1051 AliMixture(85,"inox/alum$",aInAl,zInAl,dInAl,5,wInAl);
1052 AliMedium(85,"inox/alum$",85,0,ifield,fieldm,tmaxfd,stemax,deemax,epsil,stmin);
1053
b7943f00 1054 // special media to take into account services in the SDD and SSD
1055 // cones for the FMD
531d6cdc 1056 //Begin_Html
1057 /*
1058 <A HREF="http://www.Physics.ohio-state.edu/~nilsen/ITS/ITS_MatBudget_4B.xls">
1059 </pre>
1060 <br clear=left>
1061 <font size=+2 color=blue>
1062 <p> The Exel spread sheet from which these density number come from.
1063 </font></A>
1064 */
1065 //End_Html
1066
1067 // AliMaterial(86,"AIRFMDSDD$",0.14610E+02,0.73000E+01,0.12050E-02,0.30423E+05,0.99900E+03);
1068 Float_t aA[13],zZ[13],wW[13],den;
b7943f00 1069 // From Pierluigi Barberis calculations of 2SPD+1SDD October 2 2002.
1070 zZ[0] = 1.0; aA[0] = 1.00794; // Hydrogen
1071 zZ[1] = 6.0; aA[1] = 12.011; // Carbon
1072 zZ[2] = 7.0; aA[2] = 14.00674; // Nitrogen
1073 zZ[3] = 8.0; aA[3] = 15.9994; // Oxigen
1074 zZ[4] = 14.0; aA[4] = 28.0855; // Silicon
1075 zZ[5] = 24.0; aA[5] = 51.9961; //Cromium
1076 zZ[6] = 25.0; aA[6] = 54.938049; // Manganese
1077 zZ[7] = 26.0; aA[7] = 55.845; // Iron
1078 zZ[8] = 28.0; aA[8] = 58.6934; // Nickle
1079 zZ[9] = 29.0; aA[9] = 63.546; // Copper
1080 zZ[10] = 13.0; aA[10] = 26.981539; // Alulminum
1081 zZ[11] = 47.0; aA[11] = 107.8682; // Silver
1082 zZ[12] = 27.0; aA[12] = 58.9332; // Cobolt
1083 wW[0] = 0.019965;
1084 wW[1] = 0.340961;
1085 wW[2] = 0.041225;
1086 wW[3] = 0.200352;
1087 wW[4] = 0.000386;
1088 wW[5] = 0.001467;
1089 wW[6] = 0.000155;
1090 wW[7] = 0.005113;
1091 wW[8] = 0.000993;
1092 wW[9] = 0.381262;
1093 wW[10] = 0.008121;
1094 wW[11] = 0.000000;
1095 wW[12] = 0.000000;
1096 if(fByThick){// New values seeITS_MatBudget_4B.xls
1097 den = 1.5253276; // g/cm^3 Cell O370
1098 }else{
1099 den = 2.58423412; // g/cm^3 Cell L370
1100 } // end if fByThick
1101 //den = 6161.7/(3671.58978);//g/cm^3 Volume does not exclude holes
1102 AliMixture(86,"AIRFMDSDD$",aA,zZ,den,+11,wW);
1103 AliMedium(86,"AIRFMDSDD$",86,0,ifield,fieldm,tmaxfdAir,stemaxAir,
1104 deemaxAir,epsilAir,stminAir);
1105
531d6cdc 1106 //AliMaterial(87,"AIRFMDSSD$",0.14610E+02,0.73000E+01,0.12050E-02,0.30423E+05,0.99900E+03);
1107 // From Pierluigi Barberis calculations of SSD October 2 2002.
b7943f00 1108 wW[0] = 0.019777;
1109 wW[1] = 0.325901;
1110 wW[2] = 0.031848;
1111 wW[3] = 0.147668;
1112 wW[4] = 0.030609;
1113 wW[5] = 0.013993;
1114 wW[6] = 0.001479;
1115 wW[7] = 0.048792;
1116 wW[8] = 0.009477;
1117 wW[9] = 0.350697;
1118 wW[10] = 0.014546;
1119 wW[11] = 0.005213;
1120 wW[12] = 0.000000;
1121 if(fByThick){// New values seeITS_MatBudget_4B.xls
1122 den = 1.2464275; // g/cm^3 Cell O403
1123 }else{
1124 den = 1.28134409; // g/cm^3 Cell L403
1125 } // end if fByThick
1126 //den = 7666.3/(9753.553259); // volume does not exclude holes
1127 AliMixture(87,"AIRFMDSSD$",aA,zZ,den,+12,wW);
1128 AliMedium(87,"AIRFMDSSD$",87,0,ifield,fieldm,tmaxfdAir,stemaxAir,
1129 deemaxAir,epsilAir,stminAir);
1130
531d6cdc 1131 //AliMaterial(88,"ITS SANDW CFMDSDD$",0.12011E+02,0.60000E+01,0.41000E+00,0.90868E+02,0.99900E+03);
1132 // From Pierluigi Barberis calculations of 1SDD+Carbon fiber October 2 2002
b7943f00 1133 wW[0] = 0.016302;
1134 wW[1] = 0.461870;
1135 wW[2] = 0.033662;
1136 wW[3] = 0.163595;
1137 wW[4] = 0.000315;
1138 wW[5] = 0.001197;
1139 wW[6] = 0.000127;
1140 wW[7] = 0.004175;
1141 wW[8] = 0.000811;
1142 wW[9] = 0.311315;
1143 wW[10] = 0.006631;
1144 wW[11] = 0.000000;
1145 wW[12] = 0.000000;
1146 if(fByThick){// New values seeITS_MatBudget_4B.xls
1147 den = 1.9353276; // g/cm^3 Cell N370
1148 }else{
1149 den = 3.2788626; // g/cm^3 Cell F370
1150 } // end if fByThick
1151 //den = 7667.1/(3671.58978); // Volume does not excludeholes
1152 AliMixture(88,"ITS SANDW CFMDSDD$",aA,zZ,den,+11,wW);
1153 AliMedium(88,"ITS SANDW CFMDSDD$",88,0,ifield,fieldm,tmaxfd,stemax,
1154 deemax,epsil,stmin);
1155
531d6cdc 1156 //AliMaterial(89,"ITS SANDW CFMDSSD$",0.12011E+02,0.60000E+01,0.41000E+00,0.90868E+02,0.99900E+03);
1157 // From Pierluigi Barberis calculations of SSD+Carbon fiber October 2 2002.
b7943f00 1158 wW[0] = 0.014065;
1159 wW[1] = 0.520598;
1160 wW[2] = 0.022650;
1161 wW[3] = 0.105018;
1162 wW[4] = 0.021768;
1163 wW[5] = 0.009952;
1164 wW[6] = 0.001051;
1165 wW[7] = 0.034700;
1166 wW[8] = 0.006740;
1167 wW[9] = 0.249406;
1168 wW[10] = 0.010345;
1169 wW[11] = 0.0003707;
1170 wW[12] = 0.000000;
1171 if(fByThick){// New values seeITS_MatBudget_4B.xls
1172 den = 1.6564275; // g/cm^3 Cell N304
1173 }else{
1174 den = 1.7028296; // g/cm^3 Cell F304
1175 } // end if fByThick
1176 //den = 1166.5/(3671.58978); // Volume does not exclude holes
1177 AliMixture(89,"ITS SANDW CFMDSSD$",aA,zZ,den,+12,wW);
1178 AliMedium(89,"ITS SANDW CFMDSSD$",89,0,ifield,fieldm,tmaxfd,stemax,
1179 deemax,epsil,stmin);
1180
531d6cdc 1181 //AliMaterial(97,"SPD SERVICES$",0.12011E+02,0.60000E+01,0.41000E+00,0.90868E+02,0.99900E+03);
1182 // From Pierluigi Barberis calculations of 1SPD October 2 2002.
b7943f00 1183 wW[0] = 0.005970;
1184 wW[1] = 0.304704;
1185 wW[2] = 0.042510;
1186 wW[3] = 0.121715;
1187 wW[4] = 0.001118;
1188 wW[5] = 0.030948;
1189 wW[6] = 0.003270;
1190 wW[7] = 0.107910;
1191 wW[8] = 0.020960;
1192 wW[9] = 0.360895;
1193 wW[10] = 0.000000;
1194 wW[11] = 0.000000;
1195 wW[12] = 0.000000;
1196 if(fByThick){// New values seeITS_MatBudget_4B.xls
1197 den = 80.31136576; // g/cm^3 Cell H329
1198 }else{
1199 den = 87.13062; // g/cm^3 Cell G329
1200 } // end if fByThick
1201 //den = 1251.3/(0.05*2.0*TMath::Pi()*(7.75*7.75 - 3.7*3.7)); // g/cm^3
1202 AliMixture(97,"SPD SERVICES$",aA,zZ,den,+10,wW);
1203 AliMedium(97,"SPD SERVICES$",97,0,ifield,fieldm,tmaxfd,stemax,
1204 deemax,epsil,stmin);
1205
531d6cdc 1206
b7943f00 1207 // Special media
1208
1209 AliMaterial(90,"SPD shield$", 12.011, 6., 1.93/10. , 22.1*10., 999);
531d6cdc 1210 AliMedium(90,"SPD shield$",90,0,ifield,fieldm,tmaxfdServ,stemaxServ,deemaxServ,epsilServ,stminServ);
b7943f00 1211
531d6cdc 1212 // SPD End Ladder (data from Petra Riedler)
1213 Float_t aSPDel[5] = {1.00794,12.0107,14.01,15.9994,63.54 };
1214 Float_t zSPDel[5] = {1.,6.,7.,8.,29.};
1215 Float_t wSPDel[5] = {0.004092,0.107274,0.011438,0.032476,0.844719};
1216 Float_t dSPDel = 3.903403;
b7943f00 1217
531d6cdc 1218 // AliMaterial(91, "SPD End ladder$", 47.0447, 21.7963, 3.6374, 4.4711, 999);
1219 AliMixture(91,"SPD End ladder$",aSPDel,zSPDel,dSPDel,5,wSPDel);
1220 AliMedium(91,"SPD End ladder$",91,0,ifield,fieldm,tmaxfdServ,stemaxServ,deemaxServ,epsilServ,stminServ);
b7943f00 1221
531d6cdc 1222 AliMaterial(92, "SPD cone$",28.0855, 14., 2.33, 9.36, 999);
1223 AliMedium(92,"SPD cone$",92,0,ifield,fieldm,tmaxfdServ,stemaxServ,deemaxServ,epsilServ,stminServ);
1224 /* Material with fractional Z not actually used
1225 AliMaterial(93, "SDD End ladder$", 69.9298, 29.8246, 0.3824, 36.5103, 999);
1226 AliMedium(93,"SDD End ladder$",93,0,ifield,fieldm,tmaxfdServ,stemaxServ,deemaxServ,epsilServ,stminServ);
1227 */
b7943f00 1228 AliMaterial(94, "SDD cone$",63.546, 29., 1.15, 1.265, 999);
531d6cdc 1229 AliMedium(94,"SDD cone$",94,0,ifield,fieldm,tmaxfdServ,stemaxServ,deemaxServ,epsilServ,stminServ);
1230 /* Material with fractional Z not actually used
1231 AliMaterial(95, "SSD End ladder$", 32.0988, 15.4021, 0.68, 35.3238, 999);
1232 AliMedium(95,"SSD End ladder$",95,0,ifield,fieldm,tmaxfdServ,stemaxServ,deemaxServ,epsilServ,stminServ);
1233 */
b7943f00 1234 AliMaterial(96, "SSD cone$",63.546, 29., 1.15, 1.265, 999);
531d6cdc 1235 AliMedium(96,"SSD cone$",96,0,ifield,fieldm,tmaxfdServ,stemaxServ,deemaxServ,epsilServ,stminServ);
b7943f00 1236
dfefbaec 1237}
b7943f00 1238
1239
dfefbaec 1240//______________________________________________________________________
1241void AliITSv11::InitAliITSgeom(){
b7943f00 1242 //
1243 // Fill fITSgeom with the 3 sub-detector geometries
1244 //
1245
531d6cdc 1246 const Int_t knlayers = 6;
1247 const Int_t kndeep = 3;
1248 const AliITSDetector idet[knlayers]={kSPD,kSPD,kSDD,kSDD,kSSD,kSSD};
1249 const TString names[knlayers] = {
1250
1251 "", // lay=1
1252 "", // lay=2
1253 "/ALIC_1/ITSV_1/ITSsddLayer3_1/ITSsddLadd_%d/ITSsddSensor_%d/ITSsddWafer_%d", // lay=3
1254 "/ALIC_1/ITSV_1/ITSsddLayer4_1/ITSsddLadd_%d/ITSsddSensor_%d/ITSsddWafer_%d", // lay=4
1255 "", // lay=5
1256 ""}; // lay=6
1257
1258 const Int_t itsGeomTreeCopys[knlayers][kndeep]= {{10, 2, 4},// lay=1
1259 {10, 4, 4},// lay=2
1260 {14, 6, 1},// lay=3
1261 {22, 8, 1},// lay=4
1262 {34,22, 1},// lay=5
1263 {38,25, 1}};//lay=6
1264 Int_t nlad[knlayers],ndet[knlayers];
1265 Int_t mod,lay,lad=0,det=0,i,j,k,cp0,cp1,cp2;
1266 TString path,shapeName;
1267 TGeoHMatrix materix;
1268 Double_t trans[3]={3*0.0},rot[10]={9*0.0,1.0};
1269 TArrayD shapePar;
1270 TArrayF shapeParF;
1271
1272 AliDebug(1,"Reading Geometry transformation directly from Modler.");
1273 mod = 0;
1274 for(i=0;i<knlayers;i++){
1275 k = 1;
1276 for(j=0;j<kndeep;j++) if(itsGeomTreeCopys[i][j]!=0)
1277 k *= TMath::Abs(itsGeomTreeCopys[i][j]);
1278 mod += k;
1279 } // end for i
1280
1281 if(GetITSgeom()!=0) delete GetITSgeom();
1282 SetITSgeom(0);
1283 nlad[0]=20;nlad[1]=40;nlad[2]=14;nlad[3]=22;nlad[4]=34;nlad[5]=38;
1284 ndet[0]= 4;ndet[1]= 4;ndet[2]= 6;ndet[3]= 8;ndet[4]=22;ndet[5]=25;
1285 AliITSgeom* geom = new AliITSgeom(0,6,nlad,ndet,mod);
1286 SetITSgeom(geom);
1287 mod = 0;
1288 for(lay=1;lay<=knlayers;lay++){
1289 for(cp0=1;cp0<=itsGeomTreeCopys[lay-1][0];cp0++){
1290 for(cp1=1;cp1<=itsGeomTreeCopys[lay-1][1];cp1++){
1291 for(cp2=1;cp2<=itsGeomTreeCopys[lay-1][2];cp2++){
1292 path.Form(names[lay-1].Data(),
1293 cp0,cp1,cp2);
1294 switch (lay){
1295 case 1:{
1296 det = cp2;
1297 lad = cp1+2*(cp0-1);
1298 }break;
1299 case 2:{
1300 det = cp2;
1301 lad = cp1+4*(cp0-1);
1302 } break;
1303 case 3: case 4: case 5: case 6:{
1304 det = cp1;
1305 lad = cp0;
1306 } break;
1307 } // end switch
1308 //AliInfo(Form("path=%s lay=%d lad=%d det=%d",
1309 // path.Data(),lay,lad,det));
1310 gMC->GetTransformation(path.Data(),materix);
1311 gMC->GetShape(path.Data(),shapeName,shapePar);
1312 shapeParF.Set(shapePar.GetSize());
1313 for(i=0;i<shapePar.GetSize();i++) shapeParF[i]=shapePar[i];
023ae34b 1314 geom->CreateMatrix(mod,lay,lad,det,idet[lay-1],trans,rot);
531d6cdc 1315 geom->SetTrans(mod,materix.GetTranslation());
1316 geom->SetRotMatrix(mod,materix.GetRotationMatrix());
1317 switch (lay){
1318 case 1: case 2:{
1319 geom->ReSetShape(kSPD,new AliITSgeomSPD425Short(
1320 shapeParF.GetSize(),shapeParF.GetArray()));
1321 }break;
1322 case 3: case 4:{
1323 geom->ReSetShape(kSDD,new AliITSgeomSDD256(
1324 shapeParF.GetSize(),shapeParF.GetArray()));
1325 }break;
1326 case 5: case 6:{
1327 geom->ReSetShape(kSSD,new AliITSgeomSSD75and275(
1328 shapeParF.GetSize(),shapeParF.GetArray()));
1329 }break;
1330 default:{
1331 }break;
1332 } // end switch
1333 mod++;
1334 } /// end for cp2
1335 } // end for cp1
1336 } // end for cp0
1337 } // end for lay
1338 return;
1339
1340// fSDDgeom->ExportSensorGeometry(GetITSgeom(), +3, 0); //SDD
1341
dfefbaec 1342}
b7943f00 1343
1344
dfefbaec 1345//______________________________________________________________________
1346void AliITSv11::Init(){
b7943f00 1347 //
1348 // Initialise the ITS after it has been created.
1349 //
1350
531d6cdc 1351 //AliInfo(Form("Minor version %d",fMinorVersion));
1352 //
b7943f00 1353 if(fRead[0]=='\0') strncpy(fRead,fEuclidGeomDet,60);
1354 if(fWrite[0]=='\0') strncpy(fWrite,fEuclidGeomDet,60);
531d6cdc 1355 if(GetITSgeom()!=0) SetITSgeom(0x0);
1356 AliITSgeom* geom = new AliITSgeom();
1357 SetITSgeom(geom);
1358 if(fGeomDetIn) GetITSgeom()->ReadNewFile(fRead);
b7943f00 1359 else this->InitAliITSgeom();
531d6cdc 1360 if(fGeomDetOut) GetITSgeom()->WriteNewFile(fWrite);
b7943f00 1361 AliITS::Init();
531d6cdc 1362 //
dfefbaec 1363}
b7943f00 1364
dfefbaec 1365//______________________________________________________________________
1366void AliITSv11::SetDefaults(){
b7943f00 1367 //
1368 // Set response ans segmentation models for SPD, SDD and SSD
1369 //
531d6cdc 1370 const Float_t kconv = 1.0e+04; // convert cm to microns
1371 AliInfo("Called");
b7943f00 1372
531d6cdc 1373 if(!fDetTypeSim) fDetTypeSim = new AliITSDetTypeSim();
1374 fDetTypeSim->SetITSgeom(GetITSgeom());
1375
1376 AliITSgeomSPD *s0;
1377 AliITSgeomSDD *s1;
1378 AliITSgeomSSD *s2;
1379 Int_t i;
1380 Float_t bx[256],bz[280];
1381
1382 fDetTypeSim->ResetCalibrationArray();
1383 fDetTypeSim->ResetSegmentation();
1384 fDetTypeSim->SetDefaults();
1385
1386 //SPD
1387 s0 = (AliITSgeomSPD*) GetITSgeom()->GetShape(kSPD);// Get shape info. Do it this way for now.
1388 AliITSsegmentationSPD* seg0 = (AliITSsegmentationSPD*)fDetTypeSim->GetSegmentationModel(0);
b7943f00 1389 seg0->SetDetSize(s0->GetDx()*2.*kconv, // base this on AliITSgeomSPD
1390 s0->GetDz()*2.*kconv, // for now.
1391 s0->GetDy()*2.*kconv); // x,z,y full width in microns.
1392 seg0->SetNPads(256,160);// Number of Bins in x and z
1393 for(i=000;i<256;i++) bx[i] = 50.0; // in x all are 50 microns.
1394 for(i=000;i<160;i++) bz[i] = 425.0; // most are 425 microns except below
1395 for(i=160;i<280;i++) bz[i] = 0.0; // Outside of detector.
1396 bz[ 31] = bz[ 32] = 625.0; // first chip boundry
1397 bz[ 63] = bz[ 64] = 625.0; // first chip boundry
1398 bz[ 95] = bz[ 96] = 625.0; // first chip boundry
1399 bz[127] = bz[128] = 625.0; // first chip boundry
1400 bz[160] = 425.0; // Set so that there is no zero pixel size for fNz.
1401 seg0->SetBinSize(bx,bz); // Based on AliITSgeomSPD for now.
1402 SetSegmentationModel(kSPD,seg0);
1403 // set digit and raw cluster classes to be used
531d6cdc 1404 const char *kData0=(fDetTypeSim->GetCalibrationModel(GetITSgeom()->GetStartSPD()))->DataType();
1405 if (strstr(kData0,"real")) fDetTypeSim->SetDigitClassName(kSPD,"AliITSdigit");
1406 else fDetTypeSim->SetDigitClassName(kSPD,"AliITSdigitSPD");
1407
1408
1409
1410 // SDD
1411 s1 = (AliITSgeomSDD*) GetITSgeom()->GetShape(kSDD);// Get shape info. Do it this way for now.
1412 AliITSsegmentationSDD* seg1 = (AliITSsegmentationSDD*)fDetTypeSim->GetSegmentationModel(1);
1413 seg1->SetDetSize(s1->GetDx()*kconv, // base this on AliITSgeomSDD
1414 s1->GetDz()*2.*kconv, // for now.
1415 s1->GetDy()*2.*kconv); // x,z,y full width in microns.
1416 seg1->SetNPads(256,256);// Use AliITSgeomSDD for now
1417 SetSegmentationModel(kSDD,seg1);
1418 const char *kData1=(fDetTypeSim->GetCalibrationModel(GetITSgeom()->GetStartSDD()))->DataType();
1419 AliITSCalibrationSDD* rsp = (AliITSCalibrationSDD*)fDetTypeSim->GetCalibrationModel(GetITSgeom()->GetStartSDD());
1420 const char *kopt=rsp->GetZeroSuppOption();
b7943f00 1421 if((!strstr(kopt,"2D")) && (!strstr(kopt,"1D")) || strstr(kData1,"real") ){
531d6cdc 1422 fDetTypeSim->SetDigitClassName(kSDD,"AliITSdigit");
1423 } else fDetTypeSim->SetDigitClassName(kSDD,"AliITSdigitSDD");
1424
1425
1426 // SSD
1427 s2 = (AliITSgeomSSD*) GetITSgeom()->GetShape(kSSD);// Get shape info. Do it this way for now.
1428 AliITSsegmentationSSD* seg2 = (AliITSsegmentationSSD*)fDetTypeSim->GetSegmentationModel(2);
b7943f00 1429 seg2->SetDetSize(s2->GetDx()*2.*kconv, // base this on AliITSgeomSSD
1430 s2->GetDz()*2.*kconv, // for now.
1431 s2->GetDy()*2.*kconv); // x,z,y full width in microns.
1432 seg2->SetPadSize(95.,0.); // strip x pitch in microns
1433 seg2->SetNPads(768,0); // number of strips on each side.
1434 seg2->SetAngles(0.0075,0.0275); // strip angels rad P and N side.
1435 seg2->SetAnglesLay5(0.0075,0.0275); // strip angels rad P and N side.
1436 seg2->SetAnglesLay6(0.0275,0.0075); // strip angels rad P and N side.
1437 SetSegmentationModel(kSSD,seg2);
531d6cdc 1438 const char *kData2=(fDetTypeSim->GetCalibrationModel(GetITSgeom()->GetStartSSD()))->DataType();
1439 if(strstr(kData2,"real") ) fDetTypeSim->SetDigitClassName(kSSD,"AliITSdigit");
1440 else fDetTypeSim->SetDigitClassName(kSSD,"AliITSdigitSSD");
1441 if(fgkNTYPES>3){
1442 Warning("SetDefaults",
1443 "Only the four basic detector types are initialised!");
1444 }// end if
1445
1446
1447 return;
1448}
b7943f00 1449
1450
dfefbaec 1451//______________________________________________________________________
b7943f00 1452void AliITSv11::DrawModule() const{
1453
dfefbaec 1454}
b7943f00 1455
dfefbaec 1456//______________________________________________________________________
1457void AliITSv11::StepManager(){
b7943f00 1458 //
1459 // Called for every step in the ITS, then calles the AliITShit class
1460 // creator with the information to be recoreded about that hit.
1461 //
531d6cdc 1462 Int_t copy, id;
1463 TLorentzVector position, momentum;
1464 static TLorentzVector position0;
1465 static Int_t stat0=0;
1466
1467 if(!(this->IsActive())){
1468 return;
1469 } // end if !Active volume.
1470
1471 if(!(gMC->TrackCharge())) return;
1472
1473 id=gMC->CurrentVolID(copy);
1474
1475 Bool_t sensvol = kFALSE;
1476 for(Int_t kk=0;kk<6;kk++)if(id == fIdSens[kk])sensvol=kTRUE;
1477 if(sensvol && (gMC->IsTrackExiting())){
1478 copy = fTrackReferences->GetEntriesFast();
1479 TClonesArray &lTR = *fTrackReferences;
1480 // Fill TrackReference structure with this new TrackReference.
1481 new(lTR[copy]) AliTrackReference(gAlice->GetMCApp()->GetCurrentTrackNumber());
1482 } // if Outer ITS mother Volume
1483
1484
1485 Int_t copy1,copy2;
1486 Int_t vol[5];
1487 TClonesArray &lhits = *fHits;
1488 //
1489 // Track status
1490 vol[3] = 0;
1491 vol[4] = 0;
1492 if(gMC->IsTrackInside()) vol[3] += 1;
1493 if(gMC->IsTrackEntering()) vol[3] += 2;
1494 if(gMC->IsTrackExiting()) vol[3] += 4;
1495 if(gMC->IsTrackOut()) vol[3] += 8;
1496 if(gMC->IsTrackDisappeared()) vol[3] += 16;
1497 if(gMC->IsTrackStop()) vol[3] += 32;
1498 if(gMC->IsTrackAlive()) vol[3] += 64;
1499 //
1500 // Fill hit structure.
1501 if(!(gMC->TrackCharge())) return;
1502 //
1503 // Only entering charged tracks
1504 if((id = gMC->CurrentVolID(copy)) == fIdSens[0]) {
1505 vol[0] = 1;
1506 id = gMC->CurrentVolOffID(2,copy);
1507 //detector copy in the ladder = 1<->4 (ITS1 < I101 < I103 < I10A)
1508 vol[1] = copy;
1509 gMC->CurrentVolOffID(3,copy1);
1510 //ladder copy in the module = 1<->2 (I10A < I12A)
1511 gMC->CurrentVolOffID(4,copy2);
1512 //module copy in the layer = 1<->10 (I12A < IT12)
1513 vol[2] = copy1+(copy2-1)*2;//# of ladders in one module = 2
1514 } else if(id == fIdSens[1]){
1515 vol[0] = 2;
1516 id = gMC->CurrentVolOffID(2,copy);
1517 //detector copy in the ladder = 1<->4 (ITS2 < I1D1 < I1D3 < I20A)
1518 vol[1] = copy;
1519 gMC->CurrentVolOffID(3,copy1);
1520 //ladder copy in the module = 1<->4 (I20A < I12A)
1521 gMC->CurrentVolOffID(4,copy2);
1522 //module copy in the layer = 1<->10 (I12A < IT12)
1523 vol[2] = copy1+(copy2-1)*4;//# of ladders in one module = 4
1524 } else if(id == fIdSens[2]){
1525 vol[0] = 3;
1526 id = gMC->CurrentVolOffID(1,copy);
1527 //detector copy in the ladder = 1<->6 (ITS3 < I302 < I004)
1528 vol[1] = copy;
1529 id = gMC->CurrentVolOffID(2,copy);
1530 //ladder copy in the layer = 1<->14 (I004 < IT34)
1531 vol[2] = copy;
1532 } else if(id == fIdSens[3]){
1533 vol[0] = 4;
1534 id = gMC->CurrentVolOffID(1,copy);
1535 //detector copy in the ladder = 1<->8 (ITS4 < I402 < I005)
1536 vol[1] = copy;
1537 id = gMC->CurrentVolOffID(2,copy);
1538 //ladder copy in the layer = 1<->22 (I005 < IT34))
1539 vol[2] = copy;
1540 }else if(id == fIdSens[4]){
1541 vol[0] = 5;
1542 id = gMC->CurrentVolOffID(1,copy);
1543 //detector copy in the ladder = 1<->22 (ITS5 < I562 < I565)
1544 vol[1] = copy;
1545 id = gMC->CurrentVolOffID(2,copy);
1546 //ladder copy in the layer = 1<->34 (I565 < IT56)
1547 vol[2] = copy;
1548 }else if(id == fIdSens[5]){
1549 vol[0] = 6;
1550 id = gMC->CurrentVolOffID(1,copy);
1551 //detector copy in the ladder = 1<->25 (ITS6 < I566 < I569)
1552 vol[1] = copy;
1553 id = gMC->CurrentVolOffID(2,copy);
1554 //ladder copy in the layer = 1<->38 (I569 < IT56)
1555 vol[2] = copy;
1556 } else {
1557 return; // not an ITS volume?
1558 } // end if/else if (gMC->CurentVolID(copy) == fIdSens[i])
1559 //
1560 gMC->TrackPosition(position);
1561 gMC->TrackMomentum(momentum);
1562 vol[4] = stat0;
1563 if(gMC->IsTrackEntering()){
1564 position0 = position;
1565 stat0 = vol[3];
1566 return;
1567 } // end if IsEntering
1568 // Fill hit structure with this new hit.
b7943f00 1569
531d6cdc 1570 new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->GetMCApp()->GetCurrentTrackNumber(),vol,
1571 gMC->Edep(),gMC->TrackTime(),position,
1572 position0,momentum);
b7943f00 1573
b7943f00 1574 position0 = position;
1575 stat0 = vol[3];
531d6cdc 1576
b7943f00 1577 return;
531d6cdc 1578}