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