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