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