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