Initial version
[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
adc10334 11new AliGeant3("C++ Interface to Geant3");
916c29ab 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
3e7b17bf 134 gener->SetForceDecay(dimuon);
916c29ab 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);
1aa4f403 143 gener->SetFileName("$(ALICE_ROOT)/data/all32.root");
916c29ab 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);
3e7b17bf 194 jpsi->SetForceDecay(dimuon);
916c29ab 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;
adc10334 236Int_t iFMD=0;
916c29ab 237Int_t iMUON=1;
238Int_t iPHOS=1;
239Int_t iPMD=1;
adc10334 240Int_t iSTART=1;
916c29ab 241
242//=================== Alice BODY parameters =============================
243AliBODY *BODY = new AliBODY("BODY","Alice envelop");
244
245
246if(iMAG) {
247//=================== MAG parameters ============================
248// --- Start with Magnet since detector layouts may be depending ---
249// --- on the selected Magnet dimensions ---
250AliMAG *MAG = new AliMAG("MAG","Magnet");
251}
252
253
254if(iABSO) {
255//=================== ABSO parameters ============================
adc10334 256AliABSO *ABSO = new AliABSOv0("ABSO","Muon Absorber");
916c29ab 257}
258
259if(iDIPO) {
260//=================== DIPO parameters ============================
261
262AliDIPO *DIPO = new AliDIPOv2("DIPO","Dipole version 2");
263}
264
265if(iHALL) {
266//=================== HALL parameters ============================
267
268AliHALL *HALL = new AliHALL("HALL","Alice Hall");
269}
270
271
272if(iFRAME) {
273//=================== FRAME parameters ============================
274
adc10334 275AliFRAME *FRAME = new AliFRAMEv1("FRAME","Space Frame");
276
916c29ab 277}
278
279if(iSHIL) {
280//=================== SHIL parameters ============================
281
adc10334 282AliSHIL *SHIL = new AliSHILv0("SHIL","Shielding");
916c29ab 283}
284
285
286if(iPIPE) {
287//=================== PIPE parameters ============================
288
289AliPIPE *PIPE = new AliPIPEv0("PIPE","Beam Pipe");
290}
291
292
293if(iITS) {
294//=================== ITS parameters ============================
295//
296// EUCLID is a flag to output (=1) both geometry and media to two ASCII files
297// (called by default ITSgeometry.euc and ITSgeometry.tme) in a format
298// understandable to the CAD system EUCLID. The default (=0) means that you
299// dont want to use this facility.
300//
8dfe31df 301AliITS *ITS = new AliITSv5("ITS","normal ITS");
302ITS->SetEUCLID(0);
916c29ab 303}
304
adc10334 305
916c29ab 306if(iTPC) {
307//============================ TPC parameters ================================
308// --- This allows the user to specify sectors for the SLOW (TPC geometry 2)
309// --- Simulator. SecAL (SecAU) <0 means that ALL lower (upper)
310// --- sectors are specified, any value other than that requires at least one
311// --- sector (lower or upper)to be specified!
312// --- Reminder: sectors 1-24 are lower sectors (1-12 -> z>0, 13-24 -> z<0)
313// --- sectors 25-72 are the upper ones (25-48 -> z>0, 49-72 -> z<0)
314// --- SecLows - number of lower sectors specified (up to 6)
315// --- SecUps - number of upper sectors specified (up to 12)
316// --- Sens - sensitive strips for the Slow Simulator !!!
317// --- This does NOT work if all S or L-sectors are specified, i.e.
318// --- if SecAL or SecAU < 0
319//
320//
321//-----------------------------------------------------------------------------
322
adc10334 323 gROOT->LoadMacro("SetTPCParam.C");
324 AliTPCParam *param = SetTPCParam();
325 AliTPC *TPC = new AliTPCv1("TPC","Normal TPC"); //v1 is default
326 TPC->SetParam(param); // pass the parameter object to the TPC
f72f44b7 327
916c29ab 328// set gas mixture
329
330TPC->SetGasMixt(2,20,10,-1,0.9,0.1,0.);
adc10334 331TPC->SetSecAL(4);
332TPC->SetSecAU(4);
333TPC->SetSecLows(1, 2, 3, 19, 20, 21);
334TPC->SetSecUps(37, 38, 39, 37+18, 38+18, 39+18, -1, -1, -1, -1, -1, -1);
f72f44b7 335TPC->SetSens(1);
336
adc10334 337if (TPC->IsVersion()==1) param->Write(param->GetTitle());
916c29ab 338}
339
340if(iTOF) {
341//=================== TOF parameters ============================
3e7b17bf 342AliTOF *TOF = new AliTOFv1("TOF","normal TOF");
916c29ab 343}
344
345if(iRICH) {
346//=================== RICH parameters ===========================
adc10334 347 AliRICH *RICH = new AliRICHv0("RICH","normal RICH");
348
916c29ab 349//
350// Version 0
351// Default Segmentation
adc10334 352 AliRICHSegmentationV0* SegmentationV0 = new AliRICHSegmentationV0;
353//
354// Segmentation parameters
355 SegmentationV0->SetPadSize(0.84,0.80);
356 SegmentationV0->SetDAnod(0.84/2);
357//
358// Geometry parameters
359 AliRICHGeometry* GeometryV0 = new AliRICHGeometryV0;
360 GeometryV0->SetGapThickness(7.6);
361 GeometryV0->SetProximityGapThickness(.4);
362 GeometryV0->SetQuartzLength(131);
363 GeometryV0->SetQuartzWidth(126.2);
364 GeometryV0->SetQuartzThickness(.5);
365 GeometryV0->SetOuterFreonLength(131);
366 GeometryV0->SetOuterFreonWidth(40.3);
367 GeometryV0->SetInnerFreonLength(131);
368 GeometryV0->SetInnerFreonWidth(40.3);
369 GeometryV0->SetFreonThickness(1);
370//
371// Response parameters
372 AliRICHResponseV0* Rresponse0 = new AliRICHResponseV0;
373 Rresponse0->SetSigmaIntegration(5.);
374 Rresponse0->SetChargeSlope(41.);
375 Rresponse0->SetChargeSpread(0.18, 0.18);
376 Rresponse0->SetMaxAdc(1024);
377 Rresponse0->SetAlphaFeedback(0.05);
378 Rresponse0->SetEIonisation(26.e-9);
379 Rresponse0->SetSqrtKx3(0.77459667);
380 Rresponse0->SetKx2(0.962);
381 Rresponse0->SetKx4(0.379);
382 Rresponse0->SetSqrtKy3(0.77459667);
383 Rresponse0->SetKy2(0.962);
384 Rresponse0->SetKy4(0.379);
385 Rresponse0->SetPitch(0.25);
386//
387//
916c29ab 388 for (Int_t i=0; i<7; i++) {
adc10334 389 RICH->SetGeometryModel(i,GeometryV0);
390 RICH->SetSegmentationModel(i, SegmentationV0);
391 RICH->SetResponseModel(i, Rresponse0);
916c29ab 392 RICH->SetNsec(i,1);
393 }
394}
395
adc10334 396
916c29ab 397if(iZDC) {
398//=================== ZDC parameters ============================
399
400AliZDC *ZDC = new AliZDCv1("ZDC","normal ZDC");
401}
402
403if(iCASTOR) {
404//=================== CASTOR parameters ============================
405
406AliCASTOR *CASTOR = new AliCASTORv1("CASTOR","normal CASTOR");
407}
408
409if(iTRD) {
410//=================== TRD parameters ============================
adc10334 411
412 AliTRD *TRD = new AliTRDv0("TRD","TRD fast simulator");
413 //TRD->SetHits();
414
415 //AliTRD *TRD = new AliTRDv1("TRD","TRD slow simulator");
416 //TRD->SetSensPlane(0);
417 //TRD->SetSensChamber(2);
418 //TRD->SetSensSector(17);
419
420 // Select the gas mixture (0: 97% Xe + 3% isobutane, 1: 90% Xe + 10% CO2)
421 TRD->SetGasMix(1);
422
423 // With hole in front of PHOS
424 TRD->SetPHOShole();
425 // With hole in front of RICH
426 TRD->SetRICHhole();
916c29ab 427}
428
429if(iFMD) {
430//=================== FMD parameters ============================
431
432AliFMD *FMD = new AliFMDv1("FMD","normal FMD");
433}
434
435if(iMUON) {
436//=================== MUON parameters ===========================
437
438AliMUON *MUON = new AliMUONv0("MUON","normal MUON");
439
440 MUON->SetMaxStepGas(0.1);
441 MUON->SetMaxStepAlu(0.1);
442//
443// Version 0
444//
445// First define the number of planes that are segmented (1 or 2) by a call
446// to SetNsec.
447// Then chose for each chamber (chamber plane) the segmentation
448// and response model.
449// They should be equal for the two chambers of each station. In a future
450// version this will be enforced.
451//
452//
453 Int_t chamber;
454 Int_t station;
455// Default response
456 AliMUONresponseV0* response0 = new AliMUONresponseV0;
457 response0->SetSqrtKx3(0.7131);
458 response0->SetKx2(1.0107);
459 response0->SetKx4(0.4036);
460 response0->SetSqrtKy3(0.7642);
461 response0->SetKy2(0.9706);
462 response0->SetKy4(0.3831);
463 response0->SetPitch(0.25);
464 response0->SetSigmaIntegration(10.);
465 response0->SetChargeSlope(50);
466 response0->SetChargeSpread(0.18, 0.18);
467 response0->SetMaxAdc(4096);
468//--------------------------------------------------------
469// Configuration for Chamber TC1/2 (Station 1) ----------
470//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
471// Float_t rseg1[4]={17.5, 55.2, 71.3, 95.5};
472 Float_t rseg1[4]={15.5, 55.2, 71.3, 95.5};
473 Int_t nseg1[4]={4, 4, 2, 1};
474//
475 chamber=1;
476//^^^^^^^^^
477 MUON->SetNsec(chamber-1,2);
478//
479 AliMUONsegmentationV01 *seg11=new AliMUONsegmentationV01;
480
481 seg11->SetSegRadii(rseg1);
482 seg11->SetPADSIZ(3, 0.5);
483 seg11->SetDAnod(3.0/3./4);
484 seg11->SetPadDivision(nseg1);
485
486 MUON->SetSegmentationModel(chamber-1, 1, seg11);
487//
488 AliMUONsegmentationV02 *seg12=new AliMUONsegmentationV02;
489 seg12->SetSegRadii(rseg1);
490 seg12->SetPADSIZ(0.75, 2.0);
491 seg12->SetDAnod(3.0/3./4);
492 seg12->SetPadDivision(nseg1);
493
494 MUON->SetSegmentationModel(chamber-1, 2, seg12);
495
496 MUON->SetResponseModel(chamber-1, response0);
497
498 chamber=2;
499//^^^^^^^^^
500//
501 MUON->SetNsec(chamber-1,2);
502//
503 AliMUONsegmentationV01 *seg21=new AliMUONsegmentationV01;
504 seg21->SetSegRadii(rseg1);
505 seg21->SetPADSIZ(3, 0.5);
506 seg21->SetDAnod(3.0/3./4);
507 seg21->SetPadDivision(nseg1);
508 MUON->SetSegmentationModel(chamber-1, 1, seg21);
509//
510 AliMUONsegmentationV02 *seg22=new AliMUONsegmentationV02;
511 seg22->SetSegRadii(rseg1);
512 seg22->SetPADSIZ(0.75, 2.);
513 seg22->SetDAnod(3.0/3./4);
514 seg22->SetPadDivision(nseg1);
515 MUON->SetSegmentationModel(chamber-1, 2, seg22);
516
517 MUON->SetResponseModel(chamber-1, response0);
518//
519//--------------------------------------------------------
520// Configuration for Chamber TC3/4 -----------------------
521//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
522// Float_t rseg2[4]={23.5, 47.1, 87.7, 122.5};
523 Float_t rseg2[4]={21.5, 47.1, 87.7, 122.5};
524 Int_t nseg2[4]={4, 4, 2, 1};
525//
526 chamber=3;
527//^^^^^^^^^
528 MUON->SetNsec(chamber-1,2);
529//
530 AliMUONsegmentationV01 *seg31=new AliMUONsegmentationV01;
531 seg31->SetSegRadii(rseg2);
532 seg31->SetPADSIZ(3, 0.5);
533 seg31->SetDAnod(3.0/3./4);
534 seg31->SetPadDivision(nseg2);
535 MUON->SetSegmentationModel(chamber-1, 1, seg31);
536//
537 AliMUONsegmentationV02 *seg32=new AliMUONsegmentationV02;
538 seg32->SetSegRadii(rseg2);
539 seg32->SetPADSIZ(0.75, 2.);
540 seg32->SetPadDivision(nseg2);
541 seg32->SetDAnod(3.0/3./4);
542
543 MUON->SetSegmentationModel(chamber-1, 2, seg32);
544
545 MUON->SetResponseModel(chamber-1, response0);
546
547 chamber=4;
548//^^^^^^^^^
549//
550 MUON->SetNsec(chamber-1,2);
551//
552 AliMUONsegmentationV01 *seg41=new AliMUONsegmentationV01;
553 seg41->SetSegRadii(rseg2);
554 seg41->SetPADSIZ(3, 0.5);
555 seg41->SetDAnod(3.0/3./4);
556 seg41->SetPadDivision(nseg2);
557 MUON->SetSegmentationModel(chamber-1, 1, seg41);
558//
559 AliMUONsegmentationV02 *seg42=new AliMUONsegmentationV02;
560 seg42->SetSegRadii(rseg2);
561 seg42->SetPADSIZ(0.75, 2.);
562 seg42->SetPadDivision(nseg2);
563 seg42->SetDAnod(3.0/3./4);
564
565 MUON->SetSegmentationModel(chamber-1, 2, seg42);
566
567 MUON->SetResponseModel(chamber-1, response0);
568
569
570//--------------------------------------------------------
571// Configuration for Chamber TC5/6 -----------------------
572//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
573/*
574 seg5 = new AliMUONsegmentationV1;
575 AliMUONresponseV0* response5 = new AliMUONresponseV0;
576 // K3 = 0.62
577 response5->SetSqrtKx3(0.78740079);
578 response5->SetKx2(0.95237319); // 0.5 * kPI * (1- 0.5*sqrtky3 )
579 response5->SetKx4(0.37480633); // 0.25/TMath::ATan(sqrtkx3)
580 // K3 = 0.55
581 response5->SetSqrtKy3(0.74161985);
582 response5->SetKy2(0.98832946);
583 response5->SetKy4(0.39177817);
584 response5->SetPitch(0.325);
585 response5->SetSigmaIntegration(10.);
586 response5->SetChargeSlope(50);
587 response5->SetChargeSpread(0.4, 0.4);
588 response5->SetMaxAdc(4096);
589
590 chamber=5;
591 MUON->SetNsec(chamber-1,1);
592 MUON->SetSegmentationModel(chamber-1, 1, seg5);
593 MUON->SetResponseModel(chamber-1, response5);
594
595 chamber=6;
596 MUON->SetNsec(chamber-1,1);
597 MUON->SetSegmentationModel(chamber-1, 1, seg5);
598 MUON->SetResponseModel(chamber-1, response5);
599//
600// Station 3
601 station=3;
602 MUON->SetPADSIZ(station, 1, 0.975, 0.55);
603*/
604
605 chamber=5;
606//^^^^^^^^^
607 MUON->SetNsec(chamber-1,2);
608//
609 AliMUONsegmentationV0 *seg51=new AliMUONsegmentationV0;
610 seg51->SetPADSIZ(0.75, 0.5);
611 seg51->SetDAnod(3.0/3./4);
612 MUON->SetSegmentationModel(chamber-1, 1, seg51);
613//
614 AliMUONsegmentationV0 *seg52=new AliMUONsegmentationV0;
615 seg52->SetPADSIZ(0.5,0.75);
616 seg52->SetDAnod(3.0/3./4);
617 MUON->SetSegmentationModel(chamber-1, 2, seg52);
618
619 MUON->SetResponseModel(chamber-1, response0);
620
621 chamber=6;
622//^^^^^^^^^
623 MUON->SetNsec(chamber-1,2);
624//
625 AliMUONsegmentationV0 *seg61=new AliMUONsegmentationV0;
626 seg61->SetPADSIZ(0.75, 0.5);
627 seg61->SetDAnod(3.0/3./4);
628 MUON->SetSegmentationModel(chamber-1, 1, seg61);
629//
630 AliMUONsegmentationV0 *seg62=new AliMUONsegmentationV0;
631 seg62->SetPADSIZ(0.5,0.75);
632 seg62->SetDAnod(3.0/3./4);
633 MUON->SetSegmentationModel(chamber-1, 2, seg62);
634
635 MUON->SetResponseModel(chamber-1, response0);
636
637//--------------------------------------------------------
638// Configuration for Chamber TC7/8 (Station 4) ----------
639//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
640
641 Int_t nseg4[4]={4, 4, 2, 1};
642
643 chamber=7;
644//^^^^^^^^^
645 MUON->SetNsec(chamber-1,2);
646//
647 AliMUONsegmentationV04 *seg71=new AliMUONsegmentationV04;
648 seg71->SetPADSIZ(10.,0.5);
649 seg71->SetDAnod(0.25);
650 seg71->SetPadDivision(nseg4);
651 MUON->SetSegmentationModel(chamber-1, 1, seg71);
652
653 AliMUONsegmentationV05 *seg72=new AliMUONsegmentationV05;
654 seg72->SetPADSIZ(1,10);
655 seg72->SetDAnod(0.25);
656 seg72->SetPadDivision(nseg4);
657 MUON->SetSegmentationModel(chamber-1, 2, seg72);
658
659 MUON->SetResponseModel(chamber-1, response0);
660
661 chamber=8;
662//^^^^^^^^^
663 MUON->SetNsec(chamber-1,2);
664 AliMUONsegmentationV04 *seg81=new AliMUONsegmentationV04;
665 seg81->SetPADSIZ(10., 0.5);
666 seg81->SetPadDivision(nseg4);
667 seg81->SetDAnod(0.25);
668 MUON->SetSegmentationModel(chamber-1, 1, seg81);
669
670 AliMUONsegmentationV05 *seg82=new AliMUONsegmentationV05;
671 seg82->SetPADSIZ(1, 10);
672 seg82->SetPadDivision(nseg4);
673 seg82->SetDAnod(0.25);
674 MUON->SetSegmentationModel(chamber-1, 2, seg82);
675
676 MUON->SetResponseModel(chamber-1, response0);
677//--------------------------------------------------------
678// Configuration for Chamber TC9/10 (Station 5) ---------
679//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
680 chamber=9;
681//^^^^^^^^^
682 MUON->SetNsec(chamber-1,2);
683//
684 AliMUONsegmentationV04 *seg91=new AliMUONsegmentationV04;
685 seg91->SetPADSIZ(10.,0.5);
686 seg91->SetDAnod(0.25);
687 seg91->SetPadDivision(nseg4);
688 MUON->SetSegmentationModel(chamber-1, 1, seg91);
689
690 AliMUONsegmentationV05 *seg92=new AliMUONsegmentationV05;
691 seg92->SetPADSIZ(1,10);
692 seg92->SetDAnod(0.25);
693 seg92->SetPadDivision(nseg4);
694
695 MUON->SetSegmentationModel(chamber-1, 2, seg92);
696
697 MUON->SetResponseModel(chamber-1, response0);
698
699 chamber=10;
700//^^^^^^^^^
701 MUON->SetNsec(chamber-1,2);
702 AliMUONsegmentationV04 *seg101=new AliMUONsegmentationV04;
703 seg101->SetPADSIZ(10., 0.5);
704 seg101->SetPadDivision(nseg4);
705 seg101->SetDAnod(0.25);
706 MUON->SetSegmentationModel(chamber-1, 1, seg101);
707
708 AliMUONsegmentationV05 *seg102=new AliMUONsegmentationV05;
709 seg102->SetPADSIZ(1,10);
710 seg102->SetPadDivision(nseg4);
711 seg102->SetDAnod(0.25);
712 MUON->SetSegmentationModel(chamber-1, 2, seg102);
713
714 MUON->SetResponseModel(chamber-1, response0);
715//--------------------------------------------------------
716// Configuration for Trigger staions ---------------------
717// (not yet used/implemented) ----------------------------
718//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
719
720 chamber=11;
721 MUON->SetNsec(chamber-1,1);
722 AliMUONsegmentationV0 *seg1112=new AliMUONsegmentationV0;
723 seg1112->SetDAnod(0.51/3.);
724
725 MUON->SetSegmentationModel(chamber-1, 1, seg1112);
726 MUON->SetResponseModel(chamber-1, response0);
727
728 chamber=12;
729 MUON->SetNsec(chamber-1,1);
730 MUON->SetSegmentationModel(chamber-1, 1, seg1112);
731 MUON->SetResponseModel(chamber-1, response0);
732//
733// Trigger Station 1
734 station=6;
735 MUON->SetPADSIZ(station, 1, 0.75, 0.5);
736
737 chamber=13;
738 MUON->SetNsec(chamber-1,1);
739 AliMUONsegmentationV0 *seg1314=new AliMUONsegmentationV0;
740 seg1314->SetDAnod(0.51/3.);
741
742 MUON->SetSegmentationModel(chamber-1, 1, seg1314);
743 MUON->SetResponseModel(chamber-1, response0);
744
745 chamber=14;
746 MUON->SetNsec(chamber-1,1);
747 MUON->SetSegmentationModel(chamber-1, 1, seg1314);
748 MUON->SetResponseModel(chamber-1, response0);
749//
750// Trigger Station 2
751 station=7;
752 MUON->SetPADSIZ(station, 1, 0.75, 0.5);
753}
754
adc10334 755//=================== PHOS parameters ===========================
756
916c29ab 757if(iPHOS) {
47f39b79 758 AliPHOS *PHOS = new AliPHOSv0("PHOS","GPS2");
916c29ab 759}
760
adc10334 761
916c29ab 762if(iPMD) {
763//=================== PMD parameters ============================
764
765AliPMD *PMD = new AliPMDv0("PMD","normal PMD");
766PMD->SetPAR(1., 1., 0.8, 0.02);
767PMD->SetIN(6., 18., -580., 27., 27.);
768PMD->SetGEO(0.0, 0.2, 4.);
769PMD->SetPadSize(0.8, 1.0, 1.0, 1.5);
770
771}
adc10334 772
b422f318 773if(iSTART) {
774//=================== START parameters ============================
775AliSTART *START = new AliSTARTv0("START","START Detector");
776}
777
adc10334 778
916c29ab 779}