Upper cut of prim. pT distribution set to 5. GeV
[u/mrichter/AliRoot.git] / macros / Config_gener.C
CommitLineData
f4417773 1enum gentype_t {hijing, hijingParam, gun, box, pythia,
395b2e02 2 param1, param2, param3,
3 cocktail, fluka, halo, ntuple, scan, doublescan};
916c29ab 4
395b2e02 5gentype_t gentype=param1;
916c29ab 6
916c29ab 7ntracks=1;
8
9void Config()
10{
11
adc10334 12new AliGeant3("C++ Interface to Geant3");
916c29ab 13
14//=======================================================================
15// Create the output file
16
17TFile *rootfile = new TFile("galice.root","recreate");
18rootfile->SetCompressionLevel(2);
19TGeant3 *geant3 = (TGeant3*)gMC;
20
21//=======================================================================
22// ******* GEANT STEERING parameters FOR ALICE SIMULATION *******
23geant3->SetTRIG(1); //Number of events to be processed
24geant3->SetSWIT(4,10);
25geant3->SetDEBU(0,0,1);
26//geant3->SetSWIT(2,2);
27geant3->SetDCAY(1);
28geant3->SetPAIR(1);
29geant3->SetCOMP(1);
30geant3->SetPHOT(1);
31geant3->SetPFIS(0);
32geant3->SetDRAY(0);
33geant3->SetANNI(1);
34geant3->SetBREM(1);
35geant3->SetMUNU(1);
36geant3->SetCKOV(1);
37geant3->SetHADR(1); //Select pure GEANH (HADR 1) or GEANH/NUCRIN (HADR 3)
38geant3->SetLOSS(2);
39geant3->SetMULS(1);
40geant3->SetRAYL(1);
41geant3->SetAUTO(1); //Select automatic STMIN etc... calc. (AUTO 1) or manual (AUTO 0)
42geant3->SetABAN(0); //Restore 3.16 behaviour for abandoned tracks
43geant3->SetOPTI(2); //Select optimisation level for GEANT geometry searches (0,1,2)
44Float_t cut = 1.e-3; // 1MeV cut by default
45Float_t tofmax = 1.e10;
46// GAM ELEC NHAD CHAD MUON EBREM MUHAB EDEL MUDEL MUPA TOFMAX
47geant3->SetCUTS(cut,cut, cut, cut, cut, cut, cut, cut, cut, cut, tofmax);
48//
49//=======================================================================
50// ************* STEERING parameters FOR ALICE SIMULATION **************
51// --- Specify event type to be tracked through the ALICE setup
52// --- All positions are in cm, angles in degrees, and P and E in GeV
53
54 switch(gentype)
55 {
56 case gun:
57//*********************************************
58// Example for Fixed Particle Gun
59//*********************************************
60 AliGenFixed *gener = new AliGenFixed(ntracks);
61 gener->SetMomentum(50);
62 gener->SetPhi(180.);
63 gener->SetTheta(5.);
64 gener->SetOrigin(0,0,0); //vertex position
65 gener->SetPart(13); //GEANT particle type
66 break;
67 case box:
68//*********************************************
69// Example for Moving Particle Gun *
70//*********************************************
71 AliGenBox *gener = new AliGenBox(ntracks);
72 gener->SetMomentumRange(3,4);
73 gener->SetPhiRange(0,360);
74 gener->SetThetaRange(90, 180. );
75 gener->SetOrigin(0,0,0);
76 //vertex position
77 gener->SetSigma(0,0,0); //Sigma in (X,Y,Z) (cm) on IP position
78 gener->SetPart(5); //GEANT particle type
79 break;
80 case scan:
81//*********************************************
82// Scanning on a grid *
83//*********************************************
84 AliGenScan *gener = new AliGenScan(-1);
85 gener->SetMomentumRange(4,4);
86 gener->SetPhiRange(0,360);
87 gener->SetThetaRange(9,9);
88 //vertex position
89 gener->SetSigma(6,6,0); //Sigma in (X,Y,Z) (cm) on IP position
90 gener->SetPart(5);
91 gener->SetRange(20, -100, 100, 20, -100, 100, 1, 500, 500);
92 break;
93
50ea53d9 94 case hijingParam:
916c29ab 95 AliGenHIJINGpara *gener = new AliGenHIJINGpara(ntracks);
96 gener->SetMomentumRange(0,999);
97 gener->SetPhiRange(0,360);
98 gener->SetThetaRange(2,10);
99 gener->SetOrigin(0,0,0); //vertex position
100 gener->SetSigma(0,0,0); //Sigma in (X,Y,Z) (cm) on IP position
101 break;
50ea53d9 102 case hijing:
50ea53d9 103 AliGenHijing *gener = new AliGenHijing(-1);
104// centre of mass energy
105 gener->SetEnergyCMS(5500);
106// reference frame
107 gener->SetReferenceFrame("CMS ");
108// projectile
109 gener->SetProjectile("A ", 208, 82);
110 gener->SetTarget ("A ", 208, 82);
111// impact parameter range
112 gener->SetImpactParameterRange(0, 3.);
113// evaluate cross section before run
114 gener->SetEvaluate(1);
115// tell hijing to keep the full parent child chain
116 gener->KeepFullEvent();
117// enable jet quenching
118 gener->SetJetQuenching(1);
119// enable shadowing
120 gener->SetShadowing(1);
121// neutral pion and heavy particle decays switched off
122 gener->SetDecaysOff(1);
123// trigger
124 gener->SetTrigger(0);
125// kinematic selection
126 gener->SetSelectAll(0);
127// momentum range
128 gener->SetMomentumRange(0,999);
129// phi range
130 gener->SetPhiRange(-180,180);
131// theta range
132 gener->SetThetaRange(0,180.);
133// select flavor (0: no, 4: charm+beauty, 5:beauty)
134 gener->SetFlavor(4);
135//
136 gener->SetOrigin(0., 0.0 ,0);
137 gener->SetSigma(0,0,5.3);
aee8290b 138 gener->SetVertexSmear(kPerEvent);
50ea53d9 139// no tracking
140 gener->SetTrackingFlag(0);
916c29ab 141 case pythia:
142//********************************************
143// Example for Charm Production with Pythia *
144//********************************************
145
146 AliGenPythia *gener = new AliGenPythia(ntracks);
147 gener->SetMomentumRange(0,999);
148 gener->SetPhiRange(0,360);
149 gener->SetThetaRange(0., 180.);
150 gener->SetYRange(-10,10);
151 gener->SetPtRange(0,100);
152 gener->SetOrigin(0,0,0); // vertex position
aee8290b 153 gener->SetVertexSmear(kPerEvent);
916c29ab 154 gener->SetSigma(0,0,5.6); // Sigma in (X,Y,Z) (cm) on IP position
155// gener->SetStrucFunc(DO_Set_1);
156 gener->SetProcess(mb);
157 gener->SetEnergyCMS(5500.);
158 break;
159
395b2e02 160
161 case param1:
916c29ab 162//*******************************************************
395b2e02 163// Example for J/psi Production from Parameterisation
164// using default library (AliMUONlib)
916c29ab 165//*******************************************************
395b2e02 166 AliGenParam *gener =
167 new AliGenParam(ntracks,upsilon_p);
916c29ab 168 gener->SetMomentumRange(0,999);
395b2e02 169 gener->SetPtRange(0,999);
170 gener->SetPhiRange(-180, 180);
916c29ab 171 gener->SetYRange(2.5,4);
395b2e02 172 gener->SetCutOnChild(1);
173 gener->SetChildThetaRange(2,9);
916c29ab 174 gener->SetOrigin(0,0,0); //vertex position
395b2e02 175 gener->SetSigma(0,0,5.3); //Sigma in (X,Y,Z) (cm) on IP position
3e7b17bf 176 gener->SetForceDecay(dimuon);
395b2e02 177 gener->SetTrackingFlag(0);
178 break;
179
180 case param2:
181//*******************************************************
182// Example for Omega Production from Parameterisation
183// specifying library.
184//*******************************************************
185 AliGenParam *gener = new AliGenParam(1000,new AliGenPHOSlib(), Omega);
186 gener->SetWeighting(non_analog);
187 gener->SetForceDecay(nodecay);
188 gener->SetPtRange(0,100);
189 gener->SetThetaRange(45,135);
190 gener->SetTrackingFlag(0);
191 break;
192
193 case param3:
194//*******************************************************
195// Example for Upsilon Production from Parameterisation
196// specifying library.
197// GSI style
198//*******************************************************
199 AliGenParam *gener = new AliGenParam(1000,new AliGenGSIlib(), upsilon_p, "MUON");
200 gener->SetMomentumRange(0,999);
201 gener->SetPtRange(0,999);
202 gener->SetPhiRange(-180, 180);
203 gener->SetYRange(2.5,4);
916c29ab 204 gener->SetCutOnChild(1);
395b2e02 205 gener->SetChildThetaRange(2,9);
206 gener->SetOrigin(0,0,0); //vertex position
207 gener->SetSigma(0,0,5.3); //Sigma in (X,Y,Z) (cm) on IP position
208 gener->SetForceDecay(dimuon);
209 gener->SetTrackingFlag(0);
210 break;
211
212 case param4:
213//*******************************************************
214// Example for Omega Production from Parameterisation
215// specifying library.
216// The alternative way.
217//*******************************************************
218 AliGenLib* Lib=new AliGenPHOSlib();
219 AliGenParam *gener = new AliGenParam(50,Omega,
220 Lib->GetPt(Omega),
221 Lib->GetY(Omega),
222 Lib->GetIp(Omega));
223 gener->SetWeighting(non_analog);
224 gener->SetForceDecay(nodecay);
225 gener->SetTrackingFlag(0);
916c29ab 226 break;
227
228 case fluka:
229//*******************************************************
230// Example for a FLUKA Boundary Source *
231//*******************************************************
232 AliGenFLUKAsource *gener = new AliGenFLUKAsource(-1);
1aa4f403 233 gener->SetFileName("$(ALICE_ROOT)/data/all32.root");
916c29ab 234 gener->SetPartFlag(9);
235 gener->SetAgeMax(1.e-5);
236// 31.7 events
237 gener->SetFraction(0.0315);
238// gener->SetFraction(0.75*0.0315);
239 rootfile->cd();
240// gener->SetPartFlag(10);
241 gener->SetMomentumRange(0,999);
242 gener->SetPhiRange(0,360);
243 gener->SetThetaRange(0., 180.);
244 gener->SetAgeMax(1.e-5);
245
246// 31.7 events
247// gener->SetFraction(0.0315);
248 break;
249
250 case ntuple:
251//*******************************************************
252// Example for reading from a external file *
253//*******************************************************
254 AliGenExtFile *gener = new AliGenExtFile(-1);
255 gener->SetFileName("$(ALICE_ROOT)/data/dtujet93.root");
aee8290b 256 gener->SetVertexSmear(kPerEvent);
916c29ab 257 gener->SetTrackingFlag(1);
258 break;
259
260 case halo:
261//*******************************************************
262// Example for Tunnel Halo Source *
263//*******************************************************
264 AliGenHalo *gener = new AliGenHalo(ntracks);
265 gener->SetFileName("/h1/morsch/marsip/marsip5.mu");
266 break;
267
268 case cocktail:
269//*******************************************************
270// Example for a Cocktail *
271//*******************************************************
272
273 AliGenCocktail *gener = new AliGenCocktail();
274
275 gener->SetPhiRange(0,360);
276 gener->SetYRange(2.5,4);
277 gener->SetThetaRange(2,9);
278 gener->SetPtRange(0,10);
279 gener->SetOrigin(0,0,0); //vertex position
280 gener->SetSigma(0,0,0); //Sigma in (X,Y,Z) (cm) on IP position
281 gener->SetMomentumRange(0,999);
282
283 AliGenParam *jpsi = new AliGenParam(1,jpsi_p);
3e7b17bf 284 jpsi->SetForceDecay(dimuon);
916c29ab 285 jpsi->SetCutOnChild(1);
286
287
288 AliGenFLUKAsource *bg = new AliGenFLUKAsource(-1);
289 bg->AddFile("$(ALICE_ROOT)/data/all32.root");
290 rootfile->cd();
291 bg->SetPartFlag(9);
292 bg->SetAgeMax(1.e-5);
293// 31.7 events
294// gener->SetFraction(0.0315);
295 bg->SetFraction(0.01*0.0315);
296
297 gener->AddGenerator(jpsi,"J/Psi", 1);
298 gener->AddGenerator(bg,"Background",1);
299
300 break;
301 }
302
303// Activate this line if you want the vertex smearing to happen
304// track by track
305//
aee8290b 306// gener->SetVertexSmear(kPerTrack);
916c29ab 307
308gener->Init();
309
310gAlice->SetField(-999,2); //Specify maximum magnetic field in Tesla (neg. ==> default field)
311
312Int_t iMAG=1;
313Int_t iITS=1;
314Int_t iTPC=1;
315Int_t iTOF=1;
316Int_t iRICH=1;
317Int_t iZDC=0;
318Int_t iCASTOR=1;
319Int_t iTRD=1;
320Int_t iABSO=1;
321Int_t iDIPO=1;
322Int_t iHALL=1;
323Int_t iFRAME=1;
324Int_t iSHIL=1;
325Int_t iPIPE=1;
adc10334 326Int_t iFMD=0;
916c29ab 327Int_t iMUON=1;
328Int_t iPHOS=1;
329Int_t iPMD=1;
adc10334 330Int_t iSTART=1;
916c29ab 331
332//=================== Alice BODY parameters =============================
333AliBODY *BODY = new AliBODY("BODY","Alice envelop");
334
335
336if(iMAG) {
337//=================== MAG parameters ============================
338// --- Start with Magnet since detector layouts may be depending ---
339// --- on the selected Magnet dimensions ---
340AliMAG *MAG = new AliMAG("MAG","Magnet");
341}
342
343
344if(iABSO) {
345//=================== ABSO parameters ============================
adc10334 346AliABSO *ABSO = new AliABSOv0("ABSO","Muon Absorber");
916c29ab 347}
348
349if(iDIPO) {
350//=================== DIPO parameters ============================
351
352AliDIPO *DIPO = new AliDIPOv2("DIPO","Dipole version 2");
353}
354
355if(iHALL) {
356//=================== HALL parameters ============================
357
358AliHALL *HALL = new AliHALL("HALL","Alice Hall");
359}
360
361
362if(iFRAME) {
363//=================== FRAME parameters ============================
364
adc10334 365AliFRAME *FRAME = new AliFRAMEv1("FRAME","Space Frame");
366
916c29ab 367}
368
369if(iSHIL) {
370//=================== SHIL parameters ============================
371
adc10334 372AliSHIL *SHIL = new AliSHILv0("SHIL","Shielding");
916c29ab 373}
374
375
376if(iPIPE) {
377//=================== PIPE parameters ============================
378
379AliPIPE *PIPE = new AliPIPEv0("PIPE","Beam Pipe");
380}
381
382
383if(iITS) {
384//=================== ITS parameters ============================
385//
386// EUCLID is a flag to output (=1) both geometry and media to two ASCII files
387// (called by default ITSgeometry.euc and ITSgeometry.tme) in a format
388// understandable to the CAD system EUCLID. The default (=0) means that you
389// dont want to use this facility.
390//
8dfe31df 391AliITS *ITS = new AliITSv5("ITS","normal ITS");
392ITS->SetEUCLID(0);
916c29ab 393}
394
adc10334 395
916c29ab 396if(iTPC) {
397//============================ TPC parameters ================================
398// --- This allows the user to specify sectors for the SLOW (TPC geometry 2)
399// --- Simulator. SecAL (SecAU) <0 means that ALL lower (upper)
400// --- sectors are specified, any value other than that requires at least one
401// --- sector (lower or upper)to be specified!
402// --- Reminder: sectors 1-24 are lower sectors (1-12 -> z>0, 13-24 -> z<0)
403// --- sectors 25-72 are the upper ones (25-48 -> z>0, 49-72 -> z<0)
404// --- SecLows - number of lower sectors specified (up to 6)
405// --- SecUps - number of upper sectors specified (up to 12)
406// --- Sens - sensitive strips for the Slow Simulator !!!
407// --- This does NOT work if all S or L-sectors are specified, i.e.
408// --- if SecAL or SecAU < 0
409//
410//
411//-----------------------------------------------------------------------------
412
adc10334 413 gROOT->LoadMacro("SetTPCParam.C");
414 AliTPCParam *param = SetTPCParam();
415 AliTPC *TPC = new AliTPCv1("TPC","Normal TPC"); //v1 is default
416 TPC->SetParam(param); // pass the parameter object to the TPC
f72f44b7 417
916c29ab 418// set gas mixture
419
420TPC->SetGasMixt(2,20,10,-1,0.9,0.1,0.);
adc10334 421TPC->SetSecAL(4);
422TPC->SetSecAU(4);
423TPC->SetSecLows(1, 2, 3, 19, 20, 21);
424TPC->SetSecUps(37, 38, 39, 37+18, 38+18, 39+18, -1, -1, -1, -1, -1, -1);
f72f44b7 425TPC->SetSens(1);
426
adc10334 427if (TPC->IsVersion()==1) param->Write(param->GetTitle());
916c29ab 428}
429
430if(iTOF) {
431//=================== TOF parameters ============================
3e7b17bf 432AliTOF *TOF = new AliTOFv1("TOF","normal TOF");
916c29ab 433}
434
435if(iRICH) {
436//=================== RICH parameters ===========================
adc10334 437 AliRICH *RICH = new AliRICHv0("RICH","normal RICH");
438
916c29ab 439//
440// Version 0
441// Default Segmentation
adc10334 442 AliRICHSegmentationV0* SegmentationV0 = new AliRICHSegmentationV0;
443//
444// Segmentation parameters
445 SegmentationV0->SetPadSize(0.84,0.80);
446 SegmentationV0->SetDAnod(0.84/2);
447//
448// Geometry parameters
449 AliRICHGeometry* GeometryV0 = new AliRICHGeometryV0;
450 GeometryV0->SetGapThickness(7.6);
451 GeometryV0->SetProximityGapThickness(.4);
452 GeometryV0->SetQuartzLength(131);
453 GeometryV0->SetQuartzWidth(126.2);
454 GeometryV0->SetQuartzThickness(.5);
455 GeometryV0->SetOuterFreonLength(131);
456 GeometryV0->SetOuterFreonWidth(40.3);
457 GeometryV0->SetInnerFreonLength(131);
458 GeometryV0->SetInnerFreonWidth(40.3);
459 GeometryV0->SetFreonThickness(1);
460//
461// Response parameters
462 AliRICHResponseV0* Rresponse0 = new AliRICHResponseV0;
463 Rresponse0->SetSigmaIntegration(5.);
464 Rresponse0->SetChargeSlope(41.);
465 Rresponse0->SetChargeSpread(0.18, 0.18);
466 Rresponse0->SetMaxAdc(1024);
467 Rresponse0->SetAlphaFeedback(0.05);
468 Rresponse0->SetEIonisation(26.e-9);
469 Rresponse0->SetSqrtKx3(0.77459667);
470 Rresponse0->SetKx2(0.962);
471 Rresponse0->SetKx4(0.379);
472 Rresponse0->SetSqrtKy3(0.77459667);
473 Rresponse0->SetKy2(0.962);
474 Rresponse0->SetKy4(0.379);
475 Rresponse0->SetPitch(0.25);
476//
477//
916c29ab 478 for (Int_t i=0; i<7; i++) {
adc10334 479 RICH->SetGeometryModel(i,GeometryV0);
480 RICH->SetSegmentationModel(i, SegmentationV0);
481 RICH->SetResponseModel(i, Rresponse0);
916c29ab 482 RICH->SetNsec(i,1);
483 }
484}
485
adc10334 486
916c29ab 487if(iZDC) {
488//=================== ZDC parameters ============================
489
490AliZDC *ZDC = new AliZDCv1("ZDC","normal ZDC");
491}
492
493if(iCASTOR) {
494//=================== CASTOR parameters ============================
495
496AliCASTOR *CASTOR = new AliCASTORv1("CASTOR","normal CASTOR");
497}
498
499if(iTRD) {
500//=================== TRD parameters ============================
adc10334 501
502 AliTRD *TRD = new AliTRDv0("TRD","TRD fast simulator");
503 //TRD->SetHits();
504
505 //AliTRD *TRD = new AliTRDv1("TRD","TRD slow simulator");
506 //TRD->SetSensPlane(0);
507 //TRD->SetSensChamber(2);
508 //TRD->SetSensSector(17);
509
510 // Select the gas mixture (0: 97% Xe + 3% isobutane, 1: 90% Xe + 10% CO2)
511 TRD->SetGasMix(1);
512
513 // With hole in front of PHOS
514 TRD->SetPHOShole();
515 // With hole in front of RICH
516 TRD->SetRICHhole();
916c29ab 517}
518
519if(iFMD) {
520//=================== FMD parameters ============================
521
522AliFMD *FMD = new AliFMDv1("FMD","normal FMD");
523}
524
525if(iMUON) {
526//=================== MUON parameters ===========================
527
528AliMUON *MUON = new AliMUONv0("MUON","normal MUON");
529
530 MUON->SetMaxStepGas(0.1);
531 MUON->SetMaxStepAlu(0.1);
532//
533// Version 0
534//
535// First define the number of planes that are segmented (1 or 2) by a call
536// to SetNsec.
537// Then chose for each chamber (chamber plane) the segmentation
538// and response model.
539// They should be equal for the two chambers of each station. In a future
540// version this will be enforced.
541//
542//
543 Int_t chamber;
544 Int_t station;
545// Default response
546 AliMUONresponseV0* response0 = new AliMUONresponseV0;
547 response0->SetSqrtKx3(0.7131);
548 response0->SetKx2(1.0107);
549 response0->SetKx4(0.4036);
550 response0->SetSqrtKy3(0.7642);
551 response0->SetKy2(0.9706);
552 response0->SetKy4(0.3831);
553 response0->SetPitch(0.25);
554 response0->SetSigmaIntegration(10.);
555 response0->SetChargeSlope(50);
556 response0->SetChargeSpread(0.18, 0.18);
557 response0->SetMaxAdc(4096);
558//--------------------------------------------------------
559// Configuration for Chamber TC1/2 (Station 1) ----------
560//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
561// Float_t rseg1[4]={17.5, 55.2, 71.3, 95.5};
562 Float_t rseg1[4]={15.5, 55.2, 71.3, 95.5};
563 Int_t nseg1[4]={4, 4, 2, 1};
564//
565 chamber=1;
566//^^^^^^^^^
567 MUON->SetNsec(chamber-1,2);
568//
569 AliMUONsegmentationV01 *seg11=new AliMUONsegmentationV01;
570
571 seg11->SetSegRadii(rseg1);
572 seg11->SetPADSIZ(3, 0.5);
573 seg11->SetDAnod(3.0/3./4);
574 seg11->SetPadDivision(nseg1);
575
576 MUON->SetSegmentationModel(chamber-1, 1, seg11);
577//
578 AliMUONsegmentationV02 *seg12=new AliMUONsegmentationV02;
579 seg12->SetSegRadii(rseg1);
580 seg12->SetPADSIZ(0.75, 2.0);
581 seg12->SetDAnod(3.0/3./4);
582 seg12->SetPadDivision(nseg1);
583
584 MUON->SetSegmentationModel(chamber-1, 2, seg12);
585
586 MUON->SetResponseModel(chamber-1, response0);
587
588 chamber=2;
589//^^^^^^^^^
590//
591 MUON->SetNsec(chamber-1,2);
592//
593 AliMUONsegmentationV01 *seg21=new AliMUONsegmentationV01;
594 seg21->SetSegRadii(rseg1);
595 seg21->SetPADSIZ(3, 0.5);
596 seg21->SetDAnod(3.0/3./4);
597 seg21->SetPadDivision(nseg1);
598 MUON->SetSegmentationModel(chamber-1, 1, seg21);
599//
600 AliMUONsegmentationV02 *seg22=new AliMUONsegmentationV02;
601 seg22->SetSegRadii(rseg1);
602 seg22->SetPADSIZ(0.75, 2.);
603 seg22->SetDAnod(3.0/3./4);
604 seg22->SetPadDivision(nseg1);
605 MUON->SetSegmentationModel(chamber-1, 2, seg22);
606
607 MUON->SetResponseModel(chamber-1, response0);
608//
609//--------------------------------------------------------
610// Configuration for Chamber TC3/4 -----------------------
611//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
612// Float_t rseg2[4]={23.5, 47.1, 87.7, 122.5};
613 Float_t rseg2[4]={21.5, 47.1, 87.7, 122.5};
614 Int_t nseg2[4]={4, 4, 2, 1};
615//
616 chamber=3;
617//^^^^^^^^^
618 MUON->SetNsec(chamber-1,2);
619//
620 AliMUONsegmentationV01 *seg31=new AliMUONsegmentationV01;
621 seg31->SetSegRadii(rseg2);
622 seg31->SetPADSIZ(3, 0.5);
623 seg31->SetDAnod(3.0/3./4);
624 seg31->SetPadDivision(nseg2);
625 MUON->SetSegmentationModel(chamber-1, 1, seg31);
626//
627 AliMUONsegmentationV02 *seg32=new AliMUONsegmentationV02;
628 seg32->SetSegRadii(rseg2);
629 seg32->SetPADSIZ(0.75, 2.);
630 seg32->SetPadDivision(nseg2);
631 seg32->SetDAnod(3.0/3./4);
632
633 MUON->SetSegmentationModel(chamber-1, 2, seg32);
634
635 MUON->SetResponseModel(chamber-1, response0);
636
637 chamber=4;
638//^^^^^^^^^
639//
640 MUON->SetNsec(chamber-1,2);
641//
642 AliMUONsegmentationV01 *seg41=new AliMUONsegmentationV01;
643 seg41->SetSegRadii(rseg2);
644 seg41->SetPADSIZ(3, 0.5);
645 seg41->SetDAnod(3.0/3./4);
646 seg41->SetPadDivision(nseg2);
647 MUON->SetSegmentationModel(chamber-1, 1, seg41);
648//
649 AliMUONsegmentationV02 *seg42=new AliMUONsegmentationV02;
650 seg42->SetSegRadii(rseg2);
651 seg42->SetPADSIZ(0.75, 2.);
652 seg42->SetPadDivision(nseg2);
653 seg42->SetDAnod(3.0/3./4);
654
655 MUON->SetSegmentationModel(chamber-1, 2, seg42);
656
657 MUON->SetResponseModel(chamber-1, response0);
658
659
660//--------------------------------------------------------
661// Configuration for Chamber TC5/6 -----------------------
662//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
663/*
664 seg5 = new AliMUONsegmentationV1;
665 AliMUONresponseV0* response5 = new AliMUONresponseV0;
666 // K3 = 0.62
667 response5->SetSqrtKx3(0.78740079);
668 response5->SetKx2(0.95237319); // 0.5 * kPI * (1- 0.5*sqrtky3 )
669 response5->SetKx4(0.37480633); // 0.25/TMath::ATan(sqrtkx3)
670 // K3 = 0.55
671 response5->SetSqrtKy3(0.74161985);
672 response5->SetKy2(0.98832946);
673 response5->SetKy4(0.39177817);
674 response5->SetPitch(0.325);
675 response5->SetSigmaIntegration(10.);
676 response5->SetChargeSlope(50);
677 response5->SetChargeSpread(0.4, 0.4);
678 response5->SetMaxAdc(4096);
679
680 chamber=5;
681 MUON->SetNsec(chamber-1,1);
682 MUON->SetSegmentationModel(chamber-1, 1, seg5);
683 MUON->SetResponseModel(chamber-1, response5);
684
685 chamber=6;
686 MUON->SetNsec(chamber-1,1);
687 MUON->SetSegmentationModel(chamber-1, 1, seg5);
688 MUON->SetResponseModel(chamber-1, response5);
689//
690// Station 3
691 station=3;
692 MUON->SetPADSIZ(station, 1, 0.975, 0.55);
693*/
694
695 chamber=5;
696//^^^^^^^^^
697 MUON->SetNsec(chamber-1,2);
698//
699 AliMUONsegmentationV0 *seg51=new AliMUONsegmentationV0;
700 seg51->SetPADSIZ(0.75, 0.5);
701 seg51->SetDAnod(3.0/3./4);
702 MUON->SetSegmentationModel(chamber-1, 1, seg51);
703//
704 AliMUONsegmentationV0 *seg52=new AliMUONsegmentationV0;
705 seg52->SetPADSIZ(0.5,0.75);
706 seg52->SetDAnod(3.0/3./4);
707 MUON->SetSegmentationModel(chamber-1, 2, seg52);
708
709 MUON->SetResponseModel(chamber-1, response0);
710
711 chamber=6;
712//^^^^^^^^^
713 MUON->SetNsec(chamber-1,2);
714//
715 AliMUONsegmentationV0 *seg61=new AliMUONsegmentationV0;
716 seg61->SetPADSIZ(0.75, 0.5);
717 seg61->SetDAnod(3.0/3./4);
718 MUON->SetSegmentationModel(chamber-1, 1, seg61);
719//
720 AliMUONsegmentationV0 *seg62=new AliMUONsegmentationV0;
721 seg62->SetPADSIZ(0.5,0.75);
722 seg62->SetDAnod(3.0/3./4);
723 MUON->SetSegmentationModel(chamber-1, 2, seg62);
724
725 MUON->SetResponseModel(chamber-1, response0);
726
727//--------------------------------------------------------
728// Configuration for Chamber TC7/8 (Station 4) ----------
729//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
730
731 Int_t nseg4[4]={4, 4, 2, 1};
732
733 chamber=7;
734//^^^^^^^^^
735 MUON->SetNsec(chamber-1,2);
736//
737 AliMUONsegmentationV04 *seg71=new AliMUONsegmentationV04;
738 seg71->SetPADSIZ(10.,0.5);
739 seg71->SetDAnod(0.25);
740 seg71->SetPadDivision(nseg4);
741 MUON->SetSegmentationModel(chamber-1, 1, seg71);
742
743 AliMUONsegmentationV05 *seg72=new AliMUONsegmentationV05;
744 seg72->SetPADSIZ(1,10);
745 seg72->SetDAnod(0.25);
746 seg72->SetPadDivision(nseg4);
747 MUON->SetSegmentationModel(chamber-1, 2, seg72);
748
749 MUON->SetResponseModel(chamber-1, response0);
750
751 chamber=8;
752//^^^^^^^^^
753 MUON->SetNsec(chamber-1,2);
754 AliMUONsegmentationV04 *seg81=new AliMUONsegmentationV04;
755 seg81->SetPADSIZ(10., 0.5);
756 seg81->SetPadDivision(nseg4);
757 seg81->SetDAnod(0.25);
758 MUON->SetSegmentationModel(chamber-1, 1, seg81);
759
760 AliMUONsegmentationV05 *seg82=new AliMUONsegmentationV05;
761 seg82->SetPADSIZ(1, 10);
762 seg82->SetPadDivision(nseg4);
763 seg82->SetDAnod(0.25);
764 MUON->SetSegmentationModel(chamber-1, 2, seg82);
765
766 MUON->SetResponseModel(chamber-1, response0);
767//--------------------------------------------------------
768// Configuration for Chamber TC9/10 (Station 5) ---------
769//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
770 chamber=9;
771//^^^^^^^^^
772 MUON->SetNsec(chamber-1,2);
773//
774 AliMUONsegmentationV04 *seg91=new AliMUONsegmentationV04;
775 seg91->SetPADSIZ(10.,0.5);
776 seg91->SetDAnod(0.25);
777 seg91->SetPadDivision(nseg4);
778 MUON->SetSegmentationModel(chamber-1, 1, seg91);
779
780 AliMUONsegmentationV05 *seg92=new AliMUONsegmentationV05;
781 seg92->SetPADSIZ(1,10);
782 seg92->SetDAnod(0.25);
783 seg92->SetPadDivision(nseg4);
784
785 MUON->SetSegmentationModel(chamber-1, 2, seg92);
786
787 MUON->SetResponseModel(chamber-1, response0);
788
789 chamber=10;
790//^^^^^^^^^
791 MUON->SetNsec(chamber-1,2);
792 AliMUONsegmentationV04 *seg101=new AliMUONsegmentationV04;
793 seg101->SetPADSIZ(10., 0.5);
794 seg101->SetPadDivision(nseg4);
795 seg101->SetDAnod(0.25);
796 MUON->SetSegmentationModel(chamber-1, 1, seg101);
797
798 AliMUONsegmentationV05 *seg102=new AliMUONsegmentationV05;
799 seg102->SetPADSIZ(1,10);
800 seg102->SetPadDivision(nseg4);
801 seg102->SetDAnod(0.25);
802 MUON->SetSegmentationModel(chamber-1, 2, seg102);
803
804 MUON->SetResponseModel(chamber-1, response0);
805//--------------------------------------------------------
806// Configuration for Trigger staions ---------------------
807// (not yet used/implemented) ----------------------------
808//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
809
810 chamber=11;
811 MUON->SetNsec(chamber-1,1);
812 AliMUONsegmentationV0 *seg1112=new AliMUONsegmentationV0;
813 seg1112->SetDAnod(0.51/3.);
814
815 MUON->SetSegmentationModel(chamber-1, 1, seg1112);
816 MUON->SetResponseModel(chamber-1, response0);
817
818 chamber=12;
819 MUON->SetNsec(chamber-1,1);
820 MUON->SetSegmentationModel(chamber-1, 1, seg1112);
821 MUON->SetResponseModel(chamber-1, response0);
822//
823// Trigger Station 1
824 station=6;
825 MUON->SetPADSIZ(station, 1, 0.75, 0.5);
826
827 chamber=13;
828 MUON->SetNsec(chamber-1,1);
829 AliMUONsegmentationV0 *seg1314=new AliMUONsegmentationV0;
830 seg1314->SetDAnod(0.51/3.);
831
832 MUON->SetSegmentationModel(chamber-1, 1, seg1314);
833 MUON->SetResponseModel(chamber-1, response0);
834
835 chamber=14;
836 MUON->SetNsec(chamber-1,1);
837 MUON->SetSegmentationModel(chamber-1, 1, seg1314);
838 MUON->SetResponseModel(chamber-1, response0);
839//
840// Trigger Station 2
841 station=7;
842 MUON->SetPADSIZ(station, 1, 0.75, 0.5);
843}
844
adc10334 845//=================== PHOS parameters ===========================
846
916c29ab 847if(iPHOS) {
47f39b79 848 AliPHOS *PHOS = new AliPHOSv0("PHOS","GPS2");
916c29ab 849}
850
adc10334 851
916c29ab 852if(iPMD) {
853//=================== PMD parameters ============================
854
855AliPMD *PMD = new AliPMDv0("PMD","normal PMD");
856PMD->SetPAR(1., 1., 0.8, 0.02);
857PMD->SetIN(6., 18., -580., 27., 27.);
858PMD->SetGEO(0.0, 0.2, 4.);
859PMD->SetPadSize(0.8, 1.0, 1.0, 1.5);
860
861}
adc10334 862
b422f318 863if(iSTART) {
864//=================== START parameters ============================
865AliSTART *START = new AliSTARTv0("START","START Detector");
866}
867
adc10334 868
916c29ab 869}