User correct weight for atomes making up Al2O3
[u/mrichter/AliRoot.git] / macros / Config.C
CommitLineData
fe4da5cc 1void Config()
2{
3
4new TGeant3("C++ Interface to Geant3");
5
6//=======================================================================
7// Create the output file
8
9TFile *rootfile = new TFile("galice.root","recreate");
10rootfile->SetCompressionLevel(2);
11TGeant3 *geant3 = (TGeant3*)gMC;
12
13//=======================================================================
14// ******* GEANT STEERING parameters FOR ALICE SIMULATION *******
15geant3->SetTRIG(1); //Number of events to be processed
16geant3->SetSWIT(4,10);
17geant3->SetDEBU(0,0,1);
18//geant3->SetSWIT(2,2);
19geant3->SetDCAY(1);
20geant3->SetPAIR(1);
21geant3->SetCOMP(1);
22geant3->SetPHOT(1);
23geant3->SetPFIS(0);
24geant3->SetDRAY(0);
25geant3->SetANNI(1);
26geant3->SetBREM(1);
27geant3->SetMUNU(1);
28geant3->SetCKOV(1);
29geant3->SetHADR(1); //Select pure GEANH (HADR 1) or GEANH/NUCRIN (HADR 3)
30geant3->SetLOSS(2);
31geant3->SetMULS(1);
32geant3->SetRAYL(1);
33geant3->SetAUTO(1); //Select automatic STMIN etc... calc. (AUTO 1) or manual (AUTO 0)
34geant3->SetABAN(0); //Restore 3.16 behaviour for abandoned tracks
35geant3->SetOPTI(2); //Select optimisation level for GEANT geometry searches (0,1,2)
36Float_t cut = 1.e-3; // 1MeV cut by default
37Float_t tofmax = 1.e10;
38// GAM ELEC NHAD CHAD MUON EBREM MUHAB EDEL MUDEL MUPA TOFMAX
39geant3->SetCUTS(cut,cut, cut, cut, cut, cut, cut, cut, cut, cut, tofmax);
40//
41//=======================================================================
42// ************* STEERING parameters FOR ALICE SIMULATION **************
43// --- Specify event type to be tracked through the ALICE setup
44// --- All positions are in cm, angles in degrees, and P and E in GeV
45AliGenHIJINGpara *gener = new AliGenHIJINGpara(50);
46gener->SetMomentumRange(0,999);
47gener->SetPhiRange(0,360);
48gener->SetThetaRange(10,170);
49gener->SetOrigin(0,0,0); //vertex position
50gener->SetSigma(0,0,0); //Sigma in (X,Y,Z) (cm) on IP position
51gener->Init();
52//
53// Activate this line if you want the vertex smearing to happen
54// track by track
55//
56//gener->SetVertexSmear(perTrack);
57
58gAlice->SetField(-999,2); //Specify maximum magnetic field in Tesla (neg. ==> default field)
59
60Int_t iMAG=1;
61Int_t iITS=1;
62Int_t iTPC=1;
63Int_t iTOF=1;
64Int_t iRICH=1;
4048e88d 65Int_t iZDC=0;
fe4da5cc 66Int_t iCASTOR=1;
67Int_t iTRD=1;
68Int_t iABSO=1;
69Int_t iDIPO=1;
70Int_t iHALL=1;
43f0a169 71Int_t iFRAME=1;
fe4da5cc 72Int_t iSHIL=1;
73Int_t iPIPE=1;
74Int_t iFMD=1;
75Int_t iMUON=1;
76Int_t iPHOS=1;
77Int_t iPMD=1;
78
79//=================== Alice BODY parameters =============================
80AliBODY *BODY = new AliBODY("BODY","Alice envelop");
81
82
83if(iMAG) {
84//=================== MAG parameters ============================
85// --- Start with Magnet since detector layouts may be depending ---
86// --- on the selected Magnet dimensions ---
87AliMAG *MAG = new AliMAG("MAG","Magnet");
88}
89
4b11ac09 90
91if(iABSO) {
92//=================== ABSO parameters ============================
93AliABSO *ABSO = new AliABSO("ABSO","Muon Absorber");
94}
95
96if(iDIPO) {
97//=================== DIPO parameters ============================
98
99AliDIPO *DIPO = new AliDIPOv2("DIPO","Dipole version 2");
100}
101
102if(iHALL) {
103//=================== HALL parameters ============================
104
105AliHALL *HALL = new AliHALL("HALL","Alice Hall");
106}
107
108
109if(iFRAME) {
110//=================== FRAME parameters ============================
111
112AliFRAME *FRAME = new AliFRAMEv0("FRAME","Space Frame");
113}
114
115if(iSHIL) {
116//=================== SHIL parameters ============================
117
118AliSHIL *SHIL = new AliSHIL("SHIL","Shielding");
119}
120
121
122if(iPIPE) {
123//=================== PIPE parameters ============================
124
125AliPIPE *PIPE = new AliPIPEv0("PIPE","Beam Pipe");
126}
127
128
fe4da5cc 129if(iITS) {
130//=================== ITS parameters ============================
131//
132// EUCLID is a flag to output (=1) both geometry and media to two ASCII files
133// (called by default ITSgeometry.euc and ITSgeometry.tme) in a format
134// understandable to the CAD system EUCLID. The default (=0) means that you
135// dont want to use this facility.
136//
137AliITS *ITS = new AliITSv3("ITS","normal ITS");
138ITS->SetEUCLID(1);
139}
140
141if(iTPC) {
142//============================ TPC parameters ================================
143// --- This allows the user to specify sectors for the SLOW (TPC geometry 2)
144// --- Simulator. SecAL (SecAU) <0 means that ALL lower (upper)
145// --- sectors are specified, any value other than that requires at least one
146// --- sector (lower or upper)to be specified!
147// --- Reminder: sectors 1-24 are lower sectors (1-12 -> z>0, 13-24 -> z<0)
148// --- sectors 25-72 are the upper ones (25-48 -> z>0, 49-72 -> z<0)
149// --- SecLows - number of lower sectors specified (up to 6)
150// --- SecUps - number of upper sectors specified (up to 12)
151// --- Sens - sensitive strips for the Slow Simulator !!!
152// --- This does NOT work if all S or L-sectors are specified, i.e.
153// --- if SecAL or SecAU < 0
154//
155//
156//-----------------------------------------------------------------------------
157
158AliTPC *TPC = new AliTPCv1("TPC","Normal TPC");
50e125f7 159AliTPCD *paramd = TPC->GetDigParam();
160AliTPCParam *param = &(paramd->GetParam());
161
162// Set geometrical parameters
163
164param->SetSectorAngles(40.,0.,20.,10.);
165param->SetInnerRadiusLow(83.7);
166param->SetInnerRadiusUp(132.9);
167param->SetOuterRadiusLow(146.9);
168param->SetOuterRadiusUp(249.4);
169param->SetInSecLowEdge(81.6);
170param->SetInSecUpEdge(135.);
171param->SetOuSecLowEdge(144.2);
172param->SetOuSecUpEdge(252.1);
173param->SetEdge(1.5);
174param->SetDeadZone(1.15);
175param->Update();
176
177// set gas mixture
178
179TPC->SetGasMixt(2,20,10,-1,0.9,0.1,0.);
fe4da5cc 180TPC->SetSecAL(1);
181TPC->SetSecAU(1);
50e125f7 182TPC->SetSecLows(0, -1, -1, -1, -1, -1);
183TPC->SetSecUps(18, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1);
184TPC->SetSens(-1);
fe4da5cc 185}
186
187if(iTOF) {
188//=================== TOF parameters ============================
189AliTOF *TOF = new AliTOFv2("TOF","normal TOF");
190}
191
192if(iRICH) {
193//=================== RICH parameters ===========================
194
206e3707 195 AliRICH *RICH = new AliRICHv0("RICH","normal RICH");
fe4da5cc 196
206e3707 197 RICH->SetSMAXAR(0.03);
198 RICH->SetSMAXAL(-1);
199//
200// Version 0
201// Default Segmentation
202 AliRICHsegmentationV0* RsegV0 = new AliRICHsegmentationV0;
203 RsegV0->SetPADSIZ(.8, .8);
204 RsegV0->SetDAnod(0.8/3);
205// Default response
206 AliRICHresponseV0* Rresponse0 = new AliRICHresponseV0;
207 AliRICHresponseCkv* RresponseCkv = new AliRICHresponseCkv;
208
209//------------------------Chambers 0-6 ----------------------------
210 for (Int_t i=0; i<7; i++) {
211 RICH->SetSegmentationModel(i, 1, RsegV0);
212 RICH->SetResponseModel(i, mip , Rresponse0);
213 RICH->SetResponseModel(i, cerenkov, RresponseCkv);
214 RICH->Chamber(i).SetRSIGM(5.);
215 RICH->Chamber(i).SetMUCHSP(43.);
216 RICH->Chamber(i).SetMUSIGM(0.18, 0.18);
217 RICH->Chamber(i).SetMAXADC( 1024);
218 RICH->Chamber(i).SetSqrtKx3(0.77459667);
219 RICH->Chamber(i).SetKx2(0.962);
220 RICH->Chamber(i).SetKx4(0.379);
221 RICH->Chamber(i).SetSqrtKy3(0.77459667);
222 RICH->Chamber(i).SetKy2(0.962);
223 RICH->Chamber(i).SetKy4(0.379);
224 RICH->Chamber(i).SetPitch(0.25);
225 RICH->SetNsec(i,1);
226 }
fe4da5cc 227}
228
229if(iZDC) {
230//=================== ZDC parameters ============================
231
232AliZDC *ZDC = new AliZDCv1("ZDC","normal ZDC");
233}
234
235if(iCASTOR) {
236//=================== CASTOR parameters ============================
237
238AliCASTOR *CASTOR = new AliCASTORv1("CASTOR","normal CASTOR");
239}
240
241if(iTRD) {
242//=================== TRD parameters ============================
243
50772691 244AliTRD *TRD = new AliTRDv0("TRD","TRD version 0");
43f0a169 245// Select the gas mixture (0: 97% Xe + 3% isobutane, 1: 90% Xe + 10% CO2)
246TRD->SetGasMix(0);
50772691 247TRD->SetHits(1);
fe4da5cc 248}
249
fe4da5cc 250if(iFMD) {
251//=================== FMD parameters ============================
252
253AliFMD *FMD = new AliFMDv1("FMD","normal FMD");
254}
255
256if(iMUON) {
257//=================== MUON parameters ===========================
258
259AliMUON *MUON = new AliMUONv0("MUON","normal MUON");
260
916c29ab 261 MUON->SetMaxStepGas(0.1);
262 MUON->SetMaxStepAlu(0.1);
263//
fe4da5cc 264// Version 0
265//
266// First define the number of planes that are segmented (1 or 2) by a call
267// to SetNsec.
268// Then chose for each chamber (chamber plane) the segmentation
269// and response model.
270// They should be equal for the two chambers of each station. In a future
271// version this will be enforced.
272//
273//
274 Int_t chamber;
275 Int_t station;
fe4da5cc 276// Default response
277 AliMUONresponseV0* response0 = new AliMUONresponseV0;
0f5936af 278 response0->SetSqrtKx3(0.7131);
279 response0->SetKx2(1.0107);
280 response0->SetKx4(0.4036);
281 response0->SetSqrtKy3(0.7642);
282 response0->SetKy2(0.9706);
283 response0->SetKy4(0.3831);
fe4da5cc 284 response0->SetPitch(0.25);
0f5936af 285 response0->SetSigmaIntegration(10.);
286 response0->SetChargeSlope(50);
287 response0->SetChargeSpread(0.18, 0.18);
288 response0->SetMaxAdc(4096);
fe4da5cc 289//--------------------------------------------------------
290// Configuration for Chamber TC1/2 (Station 1) ----------
291//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0f5936af 292// Float_t rseg1[4]={17.5, 55.2, 71.3, 95.5};
293 Float_t rseg1[4]={15.5, 55.2, 71.3, 95.5};
294 Int_t nseg1[4]={4, 4, 2, 1};
295//
fe4da5cc 296 chamber=1;
297//^^^^^^^^^
298 MUON->SetNsec(chamber-1,2);
299//
300 AliMUONsegmentationV01 *seg11=new AliMUONsegmentationV01;
0f5936af 301
302 seg11->SetSegRadii(rseg1);
303 seg11->SetPADSIZ(3, 0.5);
304 seg11->SetDAnod(3.0/3./4);
305 seg11->SetPadDivision(nseg1);
306
fe4da5cc 307 MUON->SetSegmentationModel(chamber-1, 1, seg11);
308//
0f5936af 309 AliMUONsegmentationV02 *seg12=new AliMUONsegmentationV02;
310 seg12->SetSegRadii(rseg1);
311 seg12->SetPADSIZ(0.75, 2.0);
312 seg12->SetDAnod(3.0/3./4);
313 seg12->SetPadDivision(nseg1);
fe4da5cc 314
315 MUON->SetSegmentationModel(chamber-1, 2, seg12);
316
0f5936af 317 MUON->SetResponseModel(chamber-1, response0);
318
fe4da5cc 319 chamber=2;
320//^^^^^^^^^
0f5936af 321//
fe4da5cc 322 MUON->SetNsec(chamber-1,2);
0f5936af 323//
324 AliMUONsegmentationV01 *seg21=new AliMUONsegmentationV01;
325 seg21->SetSegRadii(rseg1);
326 seg21->SetPADSIZ(3, 0.5);
327 seg21->SetDAnod(3.0/3./4);
328 seg21->SetPadDivision(nseg1);
329 MUON->SetSegmentationModel(chamber-1, 1, seg21);
330//
331 AliMUONsegmentationV02 *seg22=new AliMUONsegmentationV02;
332 seg22->SetSegRadii(rseg1);
333 seg22->SetPADSIZ(0.75, 2.);
334 seg22->SetDAnod(3.0/3./4);
335 seg22->SetPadDivision(nseg1);
336 MUON->SetSegmentationModel(chamber-1, 2, seg22);
fe4da5cc 337
0f5936af 338 MUON->SetResponseModel(chamber-1, response0);
fe4da5cc 339//
340//--------------------------------------------------------
341// Configuration for Chamber TC3/4 -----------------------
342//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0f5936af 343// Float_t rseg2[4]={23.5, 47.1, 87.7, 122.5};
344 Float_t rseg2[4]={21.5, 47.1, 87.7, 122.5};
345 Int_t nseg2[4]={4, 4, 2, 1};
346//
fe4da5cc 347 chamber=3;
0f5936af 348//^^^^^^^^^
349 MUON->SetNsec(chamber-1,2);
350//
351 AliMUONsegmentationV01 *seg31=new AliMUONsegmentationV01;
352 seg31->SetSegRadii(rseg2);
353 seg31->SetPADSIZ(3, 0.5);
354 seg31->SetDAnod(3.0/3./4);
355 seg31->SetPadDivision(nseg2);
356 MUON->SetSegmentationModel(chamber-1, 1, seg31);
357//
358 AliMUONsegmentationV02 *seg32=new AliMUONsegmentationV02;
359 seg32->SetSegRadii(rseg2);
360 seg32->SetPADSIZ(0.75, 2.);
361 seg32->SetPadDivision(nseg2);
362 seg32->SetDAnod(3.0/3./4);
363
364 MUON->SetSegmentationModel(chamber-1, 2, seg32);
365
fe4da5cc 366 MUON->SetResponseModel(chamber-1, response0);
367
368 chamber=4;
0f5936af 369//^^^^^^^^^
fe4da5cc 370//
0f5936af 371 MUON->SetNsec(chamber-1,2);
372//
373 AliMUONsegmentationV01 *seg41=new AliMUONsegmentationV01;
374 seg41->SetSegRadii(rseg2);
375 seg41->SetPADSIZ(3, 0.5);
376 seg41->SetDAnod(3.0/3./4);
377 seg41->SetPadDivision(nseg2);
378 MUON->SetSegmentationModel(chamber-1, 1, seg41);
fe4da5cc 379//
0f5936af 380 AliMUONsegmentationV02 *seg42=new AliMUONsegmentationV02;
381 seg42->SetSegRadii(rseg2);
382 seg42->SetPADSIZ(0.75, 2.);
383 seg42->SetPadDivision(nseg2);
384 seg42->SetDAnod(3.0/3./4);
385
386 MUON->SetSegmentationModel(chamber-1, 2, seg42);
387
388 MUON->SetResponseModel(chamber-1, response0);
389
390
fe4da5cc 391//--------------------------------------------------------
392// Configuration for Chamber TC5/6 -----------------------
393//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
916c29ab 394/*
fe4da5cc 395 seg5 = new AliMUONsegmentationV1;
396 AliMUONresponseV0* response5 = new AliMUONresponseV0;
397 // K3 = 0.62
398 response5->SetSqrtKx3(0.78740079);
399 response5->SetKx2(0.95237319); // 0.5 * kPI * (1- 0.5*sqrtky3 )
400 response5->SetKx4(0.37480633); // 0.25/TMath::ATan(sqrtkx3)
401 // K3 = 0.55
402 response5->SetSqrtKy3(0.74161985);
403 response5->SetKy2(0.98832946);
404 response5->SetKy4(0.39177817);
405 response5->SetPitch(0.325);
0f5936af 406 response5->SetSigmaIntegration(10.);
407 response5->SetChargeSlope(50);
408 response5->SetChargeSpread(0.4, 0.4);
409 response5->SetMaxAdc(4096);
fe4da5cc 410
411 chamber=5;
412 MUON->SetNsec(chamber-1,1);
413 MUON->SetSegmentationModel(chamber-1, 1, seg5);
414 MUON->SetResponseModel(chamber-1, response5);
415
416 chamber=6;
417 MUON->SetNsec(chamber-1,1);
418 MUON->SetSegmentationModel(chamber-1, 1, seg5);
419 MUON->SetResponseModel(chamber-1, response5);
420//
421// Station 3
422 station=3;
423 MUON->SetPADSIZ(station, 1, 0.975, 0.55);
916c29ab 424*/
425
426 chamber=5;
427//^^^^^^^^^
428 MUON->SetNsec(chamber-1,2);
429//
430 AliMUONsegmentationV0 *seg51=new AliMUONsegmentationV0;
431 seg51->SetPADSIZ(0.75, 0.5);
432 seg51->SetDAnod(3.0/3./4);
433 MUON->SetSegmentationModel(chamber-1, 1, seg51);
434//
435 AliMUONsegmentationV0 *seg52=new AliMUONsegmentationV0;
436 seg52->SetPADSIZ(0.5,0.75);
437 seg52->SetDAnod(3.0/3./4);
438 MUON->SetSegmentationModel(chamber-1, 2, seg52);
439
440 MUON->SetResponseModel(chamber-1, response0);
441
442 chamber=6;
443//^^^^^^^^^
444 MUON->SetNsec(chamber-1,2);
445//
446 AliMUONsegmentationV0 *seg61=new AliMUONsegmentationV0;
447 seg61->SetPADSIZ(0.75, 0.5);
448 seg61->SetDAnod(3.0/3./4);
449 MUON->SetSegmentationModel(chamber-1, 1, seg61);
450//
451 AliMUONsegmentationV0 *seg62=new AliMUONsegmentationV0;
452 seg62->SetPADSIZ(0.5,0.75);
453 seg62->SetDAnod(3.0/3./4);
454 MUON->SetSegmentationModel(chamber-1, 2, seg62);
455
456 MUON->SetResponseModel(chamber-1, response0);
fe4da5cc 457
fe4da5cc 458//--------------------------------------------------------
0f5936af 459// Configuration for Chamber TC7/8 (Station 4) ----------
fe4da5cc 460//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
461
0f5936af 462 Int_t nseg4[4]={4, 4, 2, 1};
463
fe4da5cc 464 chamber=7;
0f5936af 465//^^^^^^^^^
466 MUON->SetNsec(chamber-1,2);
467//
468 AliMUONsegmentationV04 *seg71=new AliMUONsegmentationV04;
469 seg71->SetPADSIZ(10.,0.5);
470 seg71->SetDAnod(0.25);
471 seg71->SetPadDivision(nseg4);
472 MUON->SetSegmentationModel(chamber-1, 1, seg71);
473
474 AliMUONsegmentationV05 *seg72=new AliMUONsegmentationV05;
475 seg72->SetPADSIZ(1,10);
476 seg72->SetDAnod(0.25);
477 seg72->SetPadDivision(nseg4);
478 MUON->SetSegmentationModel(chamber-1, 2, seg72);
fe4da5cc 479
fe4da5cc 480 MUON->SetResponseModel(chamber-1, response0);
481
482 chamber=8;
0f5936af 483//^^^^^^^^^
484 MUON->SetNsec(chamber-1,2);
485 AliMUONsegmentationV04 *seg81=new AliMUONsegmentationV04;
486 seg81->SetPADSIZ(10., 0.5);
487 seg81->SetPadDivision(nseg4);
488 seg81->SetDAnod(0.25);
489 MUON->SetSegmentationModel(chamber-1, 1, seg81);
490
491 AliMUONsegmentationV05 *seg82=new AliMUONsegmentationV05;
492 seg82->SetPADSIZ(1, 10);
493 seg82->SetPadDivision(nseg4);
494 seg82->SetDAnod(0.25);
495 MUON->SetSegmentationModel(chamber-1, 2, seg82);
496
fe4da5cc 497 MUON->SetResponseModel(chamber-1, response0);
0f5936af 498//--------------------------------------------------------
499// Configuration for Chamber TC9/10 (Station 5) ---------
500//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
501 chamber=9;
502//^^^^^^^^^
503 MUON->SetNsec(chamber-1,2);
fe4da5cc 504//
0f5936af 505 AliMUONsegmentationV04 *seg91=new AliMUONsegmentationV04;
506 seg91->SetPADSIZ(10.,0.5);
507 seg91->SetDAnod(0.25);
508 seg91->SetPadDivision(nseg4);
509 MUON->SetSegmentationModel(chamber-1, 1, seg91);
fe4da5cc 510
0f5936af 511 AliMUONsegmentationV05 *seg92=new AliMUONsegmentationV05;
512 seg92->SetPADSIZ(1,10);
513 seg92->SetDAnod(0.25);
514 seg92->SetPadDivision(nseg4);
515
516 MUON->SetSegmentationModel(chamber-1, 2, seg92);
fe4da5cc 517
fe4da5cc 518 MUON->SetResponseModel(chamber-1, response0);
519
520 chamber=10;
0f5936af 521//^^^^^^^^^
522 MUON->SetNsec(chamber-1,2);
523 AliMUONsegmentationV04 *seg101=new AliMUONsegmentationV04;
524 seg101->SetPADSIZ(10., 0.5);
525 seg101->SetPadDivision(nseg4);
526 seg101->SetDAnod(0.25);
527 MUON->SetSegmentationModel(chamber-1, 1, seg101);
528
529 AliMUONsegmentationV05 *seg102=new AliMUONsegmentationV05;
530 seg102->SetPADSIZ(1,10);
531 seg102->SetPadDivision(nseg4);
532 seg102->SetDAnod(0.25);
533 MUON->SetSegmentationModel(chamber-1, 2, seg102);
534
fe4da5cc 535 MUON->SetResponseModel(chamber-1, response0);
0f5936af 536//--------------------------------------------------------
537// Configuration for Trigger staions ---------------------
538// (not yet used/implemented) ----------------------------
539//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
fe4da5cc 540
541 chamber=11;
542 MUON->SetNsec(chamber-1,1);
543 AliMUONsegmentationV0 *seg1112=new AliMUONsegmentationV0;
544 seg1112->SetDAnod(0.51/3.);
545
546 MUON->SetSegmentationModel(chamber-1, 1, seg1112);
547 MUON->SetResponseModel(chamber-1, response0);
548
549 chamber=12;
550 MUON->SetNsec(chamber-1,1);
551 MUON->SetSegmentationModel(chamber-1, 1, seg1112);
552 MUON->SetResponseModel(chamber-1, response0);
553//
554// Trigger Station 1
555 station=6;
556 MUON->SetPADSIZ(station, 1, 0.75, 0.5);
557
558 chamber=13;
559 MUON->SetNsec(chamber-1,1);
560 AliMUONsegmentationV0 *seg1314=new AliMUONsegmentationV0;
561 seg1314->SetDAnod(0.51/3.);
562
563 MUON->SetSegmentationModel(chamber-1, 1, seg1314);
564 MUON->SetResponseModel(chamber-1, response0);
565
566 chamber=14;
567 MUON->SetNsec(chamber-1,1);
568 MUON->SetSegmentationModel(chamber-1, 1, seg1314);
569 MUON->SetResponseModel(chamber-1, response0);
570//
571// Trigger Station 2
572 station=7;
573 MUON->SetPADSIZ(station, 1, 0.75, 0.5);
574}
0f5936af 575
fe4da5cc 576if(iPHOS) {
577//=================== PHOS parameters ===========================
578
579AliPHOS *PHOS = new AliPHOSv1("PHOS","normal PHOS");
580// * PHOSflags: YES: X<>0 NO: X=0
581// * PHOSflags(1) : -----X Create branch for TObjArray of AliPHOSCradle
582// * ----X- Create file (ftn03 on HP-UX) with list of SHAKER particles (7Mb/event)
583// *
584PHOS->SetFlags(000001);
585PHOS->SetRadius(460); //Distance from beam to PHOS crystals.
586// (crystal_side_size,crystal_length,wrap_thikness,air_thikness,PIN_size,PIN length)
587PHOS->SetCell(2.2, 18., 0.01, 0.01, 1., 0.1);
588PHOS->SetCradleSize(104, 88, 4); // Nz (along beam), Nphi, Ncradles
589PHOS->SetCradleA(0); //Angle between Cradles
590PHOS->SetCPV(1., 2.); //CPV thikness, CPV-PHOS distance
591// * ===============
592// * PHOS extra parameters (contact Maxim Volkov volkov@mail.cern.ch)
593// * 1. STE_THICK Steel cover thickness
594// * 2. SUP_Y Crystal support height
595// * 3. FTIU_THICK Thermo Insulating outer cover Upper plate thickness
596// * 4. UFP_Y Upper Polystyrene Foam plate thickness
597// * 5. TCB_THICK Thermo insulating Crystal Block wall thickness
598// * 6. UCP_Y Upper Cooling Plate thickness
599// * 7. ASP_Y Al Support Plate thickness
600// * 8. TIP_Y Lower Thermo Insulating Plate thickness
601// * 9. TXP_Y Lower Textolit Plate thickness
602PHOS->SetExtra(0.001, 6.95, 4., 5., 2., 0.06, 10., 3., 1.);
603PHOS->SetTextolitWall(209., 71., 250.); //Textolit Wall box dimentions
604PHOS->SetInnerAir(206., 66., 244.); //Inner AIR volume dimensions
605// * ===============================
606// * 1. FTI_X Foam Thermo Insulating outer cover dimensions
607// * 2. FTI_Y ==//==
608// * 3. FTI_Z ==//==
609// * 4. FTI_R Distance from IP to Foam Thermo Insulating top plate
610PHOS->SetFoam(214.6, 80., 260., 467.);
611// =================================
612// *******************************************************************************
613// * KINE 700 - SHAKER generator
614// * KINE 700 x y z NDNDY YLIM PTLIM ChargeFlag
615// * JWEAK=0
616// * JPI0=JETA=1
617// * JPIC=JPRO=JKAC=JKA0=JRHO=JOME=JPHI=JPSI=JDRY=ChargeFlag
618// * Int_t JWEI; // Unweighted generation
619// * Int_t NDNDY; // Density of charged particles
620// * Float_t YLIM; // Rapidity Limit
621// * Float_t PTLIM; // Pt limit in GeV/c
622// * Int_t JWEAK; // Disable weak decays
623// * Int_t JPI0; // pi0 generation
624// * Int_t JETA; // eta generation
625// * Int_t JPIC; // pi+/- generation
626// * Int_t JPRO; // proton generation
627// * Int_t JKAC; // K+/- generation
628// * Int_t JKA0; // K0 generation
629// * Int_t JRHO; // rho generation
630// * Int_t JOME; // omega generation
631// * Int_t JPHI; // phi generation
632// * Int_t JPSI; // J/psi generation
633// * Int_t JDRY; // Drell-Yan generation
634// * KINE 700 5. 175. 0. 800. 1.5 5. 1.
635// *******************************************************************************
636}
637
638if(iPMD) {
639//=================== PMD parameters ============================
640
ecd5c1f7 641AliPMD *PMD = new AliPMDv0("PMD","normal PMD");
fe4da5cc 642PMD->SetPAR(1., 1., 0.8, 0.02);
ecd5c1f7 643PMD->SetIN(6., 18., -580., 27., 27.);
fe4da5cc 644PMD->SetGEO(0.0, 0.2, 4.);
ecd5c1f7 645PMD->SetPadSize(0.8, 1.0, 1.0, 1.5);
646
fe4da5cc 647}
648
649}