Replace the PHOS version from IHEP to Run1 and fix the compilation, when possibletest...
[u/mrichter/AliRoot.git] / test / merge / backgr / Config.C
CommitLineData
3390182c 1// Underlying events
3928b038 2
3enum PprRun_t
4{
5 test50,
6 kParam_8000, kParam_4000, kParam_2000,
7 kHijing_cent1, kHijing_cent2,
8 kHijing_per1, kHijing_per2, kHijing_per3, kHijing_per4, kHijing_per5,
9 kHijing_jj25, kHijing_jj50, kHijing_jj75, kHijing_jj100, kHijing_jj200,
10 kHijing_gj25, kHijing_gj50, kHijing_gj75, kHijing_gj100, kHijing_gj200,
11 kHijing_pA, kPythia6,
12 kPythia6Jets20_24, kPythia6Jets24_29, kPythia6Jets29_35,
13 kPythia6Jets35_42, kPythia6Jets42_50, kPythia6Jets50_60,
14 kPythia6Jets60_72, kPythia6Jets72_86, kPythia6Jets86_104,
15 kPythia6Jets104_125, kPythia6Jets125_150, kPythia6Jets150_180,
16 kD0PbPb5500, kCharmSemiElPbPb5500, kBeautySemiElPbPb5500,
17 kCocktailTRD, kPyJJ, kPyGJ,
18 kMuonCocktailCent1, kMuonCocktailPer1, kMuonCocktailPer4,
19 kMuonCocktailCent1HighPt, kMuonCocktailPer1HighPt, kMuonCocktailPer4HighPt,
20 kMuonCocktailCent1Single, kMuonCocktailPer1Single, kMuonCocktailPer4Single,
21 kFlow_2_2000, kFlow_10_2000, kFlow_6_2000, kFlow_6_5000,
22 kHIJINGplus, kRunMax
23};
24
25const char* pprRunName[] = {
26 "test50",
27 "kParam_8000", "kParam_4000", "kParam_2000",
28 "kHijing_cent1", "kHijing_cent2",
29 "kHijing_per1", "kHijing_per2", "kHijing_per3", "kHijing_per4",
30 "kHijing_per5",
31 "kHijing_jj25", "kHijing_jj50", "kHijing_jj75", "kHijing_jj100",
32 "kHijing_jj200",
33 "kHijing_gj25", "kHijing_gj50", "kHijing_gj75", "kHijing_gj100",
34 "kHijing_gj200", "kHijing_pA", "kPythia6",
35 "kPythia6Jets20_24", "kPythia6Jets24_29", "kPythia6Jets29_35",
36 "kPythia6Jets35_42", "kPythia6Jets42_50", "kPythia6Jets50_60",
37 "kPythia6Jets60_72", "kPythia6Jets72_86", "kPythia6Jets86_104",
38 "kPythia6Jets104_125", "kPythia6Jets125_150", "kPythia6Jets150_180",
39 "kD0PbPb5500", "kCharmSemiElPbPb5500", "kBeautySemiElPbPb5500",
40 "kCocktailTRD", "kPyJJ", "kPyGJ",
41 "kMuonCocktailCent1", "kMuonCocktailPer1", "kMuonCocktailPer4",
42 "kMuonCocktailCent1HighPt", "kMuonCocktailPer1HighPt", "kMuonCocktailPer4HighPt",
43 "kMuonCocktailCent1Single", "kMuonCocktailPer1Single", "kMuonCocktailPer4Single",
44 "kFlow_2_2000", "kFlow_10_2000", "kFlow_6_2000", "kFlow_6_5000", "kHIJINGplus"
45};
46
47enum PprRad_t
48{
49 kGluonRadiation, kNoGluonRadiation
50};
51
3928b038 52enum PprTrigConf_t
53{
54 kDefaultPPTrig, kDefaultPbPbTrig
55};
56
57const char * pprTrigConfName[] = {
58 "p-p","Pb-Pb"
59};
60
61// This part for configuration
57222fcd 62
3928b038 63static PprRun_t srun = kHijing_per4;
64static PprRad_t srad = kGluonRadiation;
f7a1cc68 65static AliMagF::BMap_t smag = AliMagF::k5kG;
57222fcd 66static AliMagF::BeamType_t beamType = AliMagF::kBeamTypeAA;
67static Double_t beamEnergy = 7000.*82./208;
68static Int_t sseed = 12345; //Set 0 to use the current time
69static PprTrigConf_t strig = kDefaultPbPbTrig; // default pp trigger configuration
3928b038 70
71// Comment line
72static TString comment;
73
74// Functions
75Float_t EtaToTheta(Float_t arg);
76AliGenerator* GeneratorFactory(PprRun_t srun);
57222fcd 77AliGenerator* HijingStandard();
3928b038 78AliGenGeVSim* GeVSimStandard(Float_t, Float_t);
79void ProcessEnvironmentVars();
80
81void Config()
82{
83 // ThetaRange is (0., 180.). It was (0.28,179.72) 7/12/00 09:00
84 // Theta range given through pseudorapidity limits 22/6/2001
85
86 // Get settings from environment variables
87 ProcessEnvironmentVars();
88
89 // Set Random Number seed
90 gRandom->SetSeed(sseed);
91 cout<<"Seed for random number generation= "<<gRandom->GetSeed()<<endl;
92
93
3928b038 94 new TGeant3TGeo("C++ Interface to Geant3");
95
57222fcd 96 // Output every 100 tracks
3390182c 97 TVirtualMC * vmc = TVirtualMC::GetMC();
98
99 ((TGeant3*)vmc)->SetSWIT(4,100);
57222fcd 100
3928b038 101 AliRunLoader* rl=0x0;
102
57222fcd 103 AliLog::Message(AliLog::kInfo, "Creating Run Loader", "", "", "Config()"," ConfigPPR.C", __LINE__);
3928b038 104
105 rl = AliRunLoader::Open("galice.root",
106 AliConfig::GetDefaultEventFolderName(),
107 "recreate");
108 if (rl == 0x0)
109 {
110 gAlice->Fatal("Config.C","Can not instatiate the Run Loader");
111 return;
112 }
113 rl->SetCompressionLevel(2);
57222fcd 114 rl->SetNumberOfEventsPerFile(100);
3928b038 115 gAlice->SetRunLoader(rl);
116
117 // Set the trigger configuration
28da60d3 118 AliSimulation::Instance()->SetTriggerConfig(pprTrigConfName[strig]);
3928b038 119 cout<<"Trigger configuration is set to "<<pprTrigConfName[strig]<<endl;
120
121 //
122 // Set External decayer
123 AliDecayer *decayer = new AliDecayerPythia();
124
125
126 switch (srun) {
127 case kD0PbPb5500:
128 decayer->SetForceDecay(kHadronicD);
129 break;
130 case kCharmSemiElPbPb5500:
131 decayer->SetForceDecay(kSemiElectronic);
132 break;
133 case kBeautySemiElPbPb5500:
134 decayer->SetForceDecay(kSemiElectronic);
135 break;
136 default:
137 decayer->SetForceDecay(kAll);
138 break;
139 }
140 decayer->Init();
3390182c 141 vmc->SetExternalDecayer(decayer);
3928b038 142 //
143 //
144 //=======================================================================
145 //
146 //=======================================================================
147 // ************* STEERING parameters FOR ALICE SIMULATION **************
148 // --- Specify event type to be tracked through the ALICE setup
149 // --- All positions are in cm, angles in degrees, and P and E in GeV
150
3390182c 151 vmc->SetProcess("DCAY",1);
152 vmc->SetProcess("PAIR",1);
153 vmc->SetProcess("COMP",1);
154 vmc->SetProcess("PHOT",1);
155 vmc->SetProcess("PFIS",0);
156 vmc->SetProcess("DRAY",0);
157 vmc->SetProcess("ANNI",1);
158 vmc->SetProcess("BREM",1);
159 vmc->SetProcess("MUNU",1);
160 vmc->SetProcess("CKOV",1);
161 vmc->SetProcess("HADR",1);
162 vmc->SetProcess("LOSS",2);
163 vmc->SetProcess("MULS",1);
164 vmc->SetProcess("RAYL",1);
3928b038 165
166 Float_t cut = 1.e-3; // 1MeV cut by default
167 Float_t tofmax = 1.e10;
168
3390182c 169 vmc->SetCut("CUTGAM", cut);
170 vmc->SetCut("CUTELE", cut);
171 vmc->SetCut("CUTNEU", cut);
172 vmc->SetCut("CUTHAD", cut);
173 vmc->SetCut("CUTMUO", cut);
174 vmc->SetCut("BCUTE", cut);
175 vmc->SetCut("BCUTM", cut);
176 vmc->SetCut("DCUTE", cut);
177 vmc->SetCut("DCUTM", cut);
178 vmc->SetCut("PPCUTM", cut);
179 vmc->SetCut("TOFMAX", tofmax);
3928b038 180
3928b038 181 // Generator Configuration
182 AliGenerator* gener = GeneratorFactory(srun);
183 gener->SetOrigin(0, 0, 0); // vertex position
184 gener->SetSigma(0, 0, 5.3); // Sigma in (X,Y,Z) (cm) on IP position
185 gener->SetCutVertexZ(1.); // Truncate at 1 sigma
186 gener->SetVertexSmear(kPerEvent);
187 gener->SetTrackingFlag(1);
188 gener->Init();
189
f7a1cc68 190 if (smag == AliMagF::k2kG) {
3928b038 191 comment = comment.Append(" | L3 field 0.2 T");
f7a1cc68 192 } else if (smag == AliMagF::k5kG) {
3928b038 193 comment = comment.Append(" | L3 field 0.5 T");
57222fcd 194 }
3928b038 195
196
197 if (srad == kGluonRadiation)
198 {
199 comment = comment.Append(" | Gluon Radiation On");
200
201 } else {
202 comment = comment.Append(" | Gluon Radiation Off");
203 }
204
205 printf("\n \n Comment: %s \n \n", comment.Data());
206
207
57222fcd 208// Field
209 TGeoGlobalMagField::Instance()->SetField
210 (new AliMagF("Maps","Maps", -1., -1., smag,beamType,beamEnergy));
3928b038 211 rl->CdGAFile();
3928b038 212//
213 Int_t iABSO = 1;
214 Int_t iDIPO = 1;
215 Int_t iFMD = 1;
216 Int_t iFRAME = 1;
217 Int_t iHALL = 1;
218 Int_t iITS = 1;
219 Int_t iMAG = 1;
220 Int_t iMUON = 1;
221 Int_t iPHOS = 1;
222 Int_t iPIPE = 1;
223 Int_t iPMD = 1;
57222fcd 224 Int_t iHMPID = 1;
3928b038 225 Int_t iSHIL = 1;
57222fcd 226 Int_t iT0 = 1;
3928b038 227 Int_t iTOF = 1;
228 Int_t iTPC = 1;
229 Int_t iTRD = 1;
230 Int_t iZDC = 1;
231 Int_t iEMCAL = 1;
232 Int_t iVZERO = 1;
233 Int_t iACORDE = 0;
234
235 //=================== Alice BODY parameters =============================
236 AliBODY *BODY = new AliBODY("BODY", "Alice envelop");
237
238
239 if (iMAG)
240 {
241 //=================== MAG parameters ============================
242 // --- Start with Magnet since detector layouts may be depending ---
243 // --- on the selected Magnet dimensions ---
244 AliMAG *MAG = new AliMAG("MAG", "Magnet");
245 }
246
247
248 if (iABSO)
249 {
250 //=================== ABSO parameters ============================
96fb3353 251 AliABSO *ABSO = new AliABSOv3("ABSO", "Muon Absorber");
3928b038 252 }
253
254 if (iDIPO)
255 {
256 //=================== DIPO parameters ============================
257
96fb3353 258 AliDIPO *DIPO = new AliDIPOv3("DIPO", "Dipole version 3");
3928b038 259 }
260
261 if (iHALL)
262 {
263 //=================== HALL parameters ============================
264
96fb3353 265 AliHALL *HALL = new AliHALLv3("HALL", "Alice Hall");
3928b038 266 }
267
268
269 if (iFRAME)
270 {
271 //=================== FRAME parameters ============================
272
273 AliFRAMEv2 *FRAME = new AliFRAMEv2("FRAME", "Space Frame");
bab433b3 274 FRAME->SetHoles(1);
3928b038 275 }
276
277 if (iSHIL)
278 {
279 //=================== SHIL parameters ============================
280
96fb3353 281 AliSHIL *SHIL = new AliSHILv3("SHIL", "Shielding Version 3");
3928b038 282 }
283
284
285 if (iPIPE)
286 {
287 //=================== PIPE parameters ============================
288
96fb3353 289 AliPIPE *PIPE = new AliPIPEv3("PIPE", "Beam Pipe");
3928b038 290 }
291
e89fa83b 292 if (iITS)
293 {
294 //=================== ITS parameters ============================
3928b038 295
07787d1d 296 AliITS *ITS = new AliITSv11("ITS","ITS v11");
3928b038 297 }
298
299 if (iTPC)
300 {
301 //============================ TPC parameters =====================
302 AliTPC *TPC = new AliTPCv2("TPC", "Default");
303 }
304
305
306 if (iTOF) {
307 //=================== TOF parameters ============================
0d7ef405 308 AliTOF *TOF = new AliTOFv6T0("TOF", "normal TOF");
3928b038 309 }
310
311
312 if (iHMPID)
313 {
314 //=================== HMPID parameters ===========================
99887042 315 AliHMPID *HMPID = new AliHMPIDv3("HMPID", "normal HMPID");
3928b038 316
317 }
318
319
320 if (iZDC)
321 {
322 //=================== ZDC parameters ============================
323
047922b1 324 AliZDC *ZDC = new AliZDCv4("ZDC", "normal ZDC");
3928b038 325 }
326
327 if (iTRD)
328 {
329 //=================== TRD parameters ============================
330
331 AliTRD *TRD = new AliTRDv1("TRD", "TRD slow simulator");
332 }
333
334 if (iFMD)
335 {
336 //=================== FMD parameters ============================
337 AliFMD *FMD = new AliFMDv1("FMD", "normal FMD");
338 }
339
340 if (iMUON)
341 {
342 //=================== MUON parameters ===========================
343 // New MUONv1 version (geometry defined via builders)
344 AliMUON *MUON = new AliMUONv1("MUON", "default");
345 }
346 //=================== PHOS parameters ===========================
347
348 if (iPHOS)
349 {
5889a25e 350 AliPHOS *PHOS = new AliPHOSv1("PHOS", "Run1");
3928b038 351 }
352
353
354 if (iPMD)
355 {
356 //=================== PMD parameters ============================
357 AliPMD *PMD = new AliPMDv1("PMD", "normal PMD");
358 }
359
360 if (iT0)
361 {
362 //=================== T0 parameters ============================
363 AliT0 *T0 = new AliT0v1("T0", "T0 Detector");
364 }
365
366 if (iEMCAL)
367 {
368 //=================== EMCAL parameters ============================
c76b9217 369 AliEMCAL *EMCAL = new AliEMCALv2("EMCAL", "EMCAL_COMPLETEV1");
3928b038 370 }
371
372 if (iACORDE)
373 {
374 //=================== ACORDE parameters ============================
f7882672 375 AliACORDE *ACORDE = new AliACORDEv1("ACORDE", "normal ACORDE");
3928b038 376 }
377
378 if (iVZERO)
379 {
57222fcd 380 //=================== VZERO parameters ============================
3928b038 381 AliVZERO *VZERO = new AliVZEROv7("VZERO", "normal VZERO");
382 }
383
384
385}
386
387Float_t EtaToTheta(Float_t arg){
388 return (180./TMath::Pi())*2.*atan(exp(-arg));
389}
390
391
392
393AliGenerator* GeneratorFactory(PprRun_t srun) {
57222fcd 394 Int_t isw = 3;
395 if (srad == kNoGluonRadiation) isw = 0;
396
397
398 AliGenerator * gGener = 0x0;
399 switch (srun) {
3928b038 400 case test50:
57222fcd 401 {
402 comment = comment.Append(":HIJINGparam test 50 particles");
403 AliGenHIJINGpara *gener = new AliGenHIJINGpara(50);
404 gener->SetMomentumRange(0, 999999.);
405 gener->SetPhiRange(0., 360.);
406 // Set pseudorapidity range from -8 to 8.
407 Float_t thmin = EtaToTheta(8); // theta min. <---> eta max
408 Float_t thmax = EtaToTheta(-8); // theta max. <---> eta min
409 gener->SetThetaRange(thmin,thmax);
410 gGener=gener;
411 }
3928b038 412 break;
413 case kParam_8000:
57222fcd 414 {
415 comment = comment.Append(":HIJINGparam N=8000");
416 AliGenHIJINGpara *gener = new AliGenHIJINGpara(86030);
417 gener->SetMomentumRange(0, 999999.);
418 gener->SetPhiRange(0., 360.);
419 // Set pseudorapidity range from -8 to 8.
420 Float_t thmin = EtaToTheta(8); // theta min. <---> eta max
421 Float_t thmax = EtaToTheta(-8); // theta max. <---> eta min
422 gener->SetThetaRange(thmin,thmax);
423 gGener=gener;
424 }
3928b038 425 break;
426 case kParam_4000:
57222fcd 427 {
428 comment = comment.Append("HIJINGparam N=4000");
429 AliGenHIJINGpara *gener = new AliGenHIJINGpara(43015);
430 gener->SetMomentumRange(0, 999999.);
431 gener->SetPhiRange(0., 360.);
432 // Set pseudorapidity range from -8 to 8.
433 Float_t thmin = EtaToTheta(8); // theta min. <---> eta max
434 Float_t thmax = EtaToTheta(-8); // theta max. <---> eta min
435 gener->SetThetaRange(thmin,thmax);
436 gGener=gener;
437 }
438 break;
3928b038 439 case kParam_2000:
57222fcd 440 {
441 comment = comment.Append("HIJINGparam N=2000");
442 AliGenHIJINGpara *gener = new AliGenHIJINGpara(21507);
443 gener->SetMomentumRange(0, 999999.);
444 gener->SetPhiRange(0., 360.);
445 // Set pseudorapidity range from -8 to 8.
446 Float_t thmin = EtaToTheta(8); // theta min. <---> eta max
447 Float_t thmax = EtaToTheta(-8); // theta max. <---> eta min
448 gener->SetThetaRange(thmin,thmax);
449 gGener=gener;
450 }
3928b038 451 break;
57222fcd 452 //
453 // Hijing Central
454 //
3928b038 455 case kHijing_cent1:
57222fcd 456 {
457 comment = comment.Append("HIJING cent1");
458 AliGenHijing *gener = (AliGenHijing*)HijingStandard();
459 // impact parameter range
460 gener->SetImpactParameterRange(0., 5.);
461 gGener=gener;
462 }
3928b038 463 break;
464 case kHijing_cent2:
57222fcd 465 {
466 comment = comment.Append("HIJING cent2");
467 AliGenHijing *gener = (AliGenHijing*)HijingStandard();
468 // impact parameter range
469 gener->SetImpactParameterRange(0., 2.);
470 gGener=gener;
471 }
3928b038 472 break;
57222fcd 473 //
474 // Hijing Peripheral
475 //
3928b038 476 case kHijing_per1:
57222fcd 477 {
478 comment = comment.Append("HIJING per1");
479 AliGenHijing *gener = (AliGenHijing*)HijingStandard();
480 // impact parameter range
481 gener->SetImpactParameterRange(5., 8.6);
482 gGener=gener;
483 }
3928b038 484 break;
485 case kHijing_per2:
57222fcd 486 {
487 comment = comment.Append("HIJING per2");
488 AliGenHijing *gener = (AliGenHijing*)HijingStandard();
489 // impact parameter range
490 gener->SetImpactParameterRange(8.6, 11.2);
491 gGener=gener;
492 }
3928b038 493 break;
494 case kHijing_per3:
57222fcd 495 {
496 comment = comment.Append("HIJING per3");
497 AliGenHijing *gener = (AliGenHijing*)HijingStandard();
498 // impact parameter range
499 gener->SetImpactParameterRange(11.2, 13.2);
500 gGener=gener;
501 }
3928b038 502 break;
503 case kHijing_per4:
57222fcd 504 {
505 comment = comment.Append("HIJING per4");
506 AliGenHijing *gener = (AliGenHijing*)HijingStandard();
507 // impact parameter range
508 gener->SetImpactParameterRange(13.2, 15.);
509 gGener=gener;
510 }
3928b038 511 break;
512 case kHijing_per5:
57222fcd 513 {
514 comment = comment.Append("HIJING per5");
515 AliGenHijing *gener = (AliGenHijing*)HijingStandard();
516 // impact parameter range
517 gener->SetImpactParameterRange(15., 100.);
518 gGener=gener;
519 }
3928b038 520 break;
57222fcd 521 //
522 // Jet-Jet
523 //
3928b038 524 case kHijing_jj25:
57222fcd 525 {
526 comment = comment.Append("HIJING Jet 25 GeV");
527 AliGenHijing *gener = (AliGenHijing*)HijingStandard();
528 // impact parameter range
529 gener->SetImpactParameterRange(0., 5.);
530 // trigger
531 gener->SetTrigger(1);
532 gener->SetPtJet(25.);
533 gener->SetRadiation(isw);
534 gener->SetSimpleJets(!isw);
535 gener->SetJetEtaRange(-0.3,0.3);
536 gener->SetJetPhiRange(75., 165.);
537 gGener=gener;
538 }
3928b038 539 break;
57222fcd 540
3928b038 541 case kHijing_jj50:
57222fcd 542 {
543 comment = comment.Append("HIJING Jet 50 GeV");
544 AliGenHijing *gener = (AliGenHijing*)HijingStandard();
545 // impact parameter range
546 gener->SetImpactParameterRange(0., 5.);
547 // trigger
548 gener->SetTrigger(1);
549 gener->SetPtJet(50.);
550 gener->SetRadiation(isw);
551 gener->SetSimpleJets(!isw);
552 gener->SetJetEtaRange(-0.3,0.3);
553 gener->SetJetPhiRange(75., 165.);
554 gGener=gener;
555 }
556 break;
557
3928b038 558 case kHijing_jj75:
57222fcd 559 {
560 comment = comment.Append("HIJING Jet 75 GeV");
561 AliGenHijing *gener = (AliGenHijing*)HijingStandard();
562 // impact parameter range
563 gener->SetImpactParameterRange(0., 5.);
564 // trigger
565 gener->SetTrigger(1);
566 gener->SetPtJet(75.);
567 gener->SetRadiation(isw);
568 gener->SetSimpleJets(!isw);
569 gener->SetJetEtaRange(-0.3,0.3);
570 gener->SetJetPhiRange(75., 165.);
571 gGener=gener;
572 }
3928b038 573 break;
57222fcd 574
3928b038 575 case kHijing_jj100:
57222fcd 576 {
577 comment = comment.Append("HIJING Jet 100 GeV");
578 AliGenHijing *gener = (AliGenHijing*)HijingStandard();
579 // impact parameter range
580 gener->SetImpactParameterRange(0., 5.);
581 // trigger
582 gener->SetTrigger(1);
583 gener->SetPtJet(100.);
584 gener->SetRadiation(isw);
585 gener->SetSimpleJets(!isw);
586 gener->SetJetEtaRange(-0.3,0.3);
587 gener->SetJetPhiRange(75., 165.);
588 gGener=gener;
589 }
3928b038 590 break;
57222fcd 591
3928b038 592 case kHijing_jj200:
57222fcd 593 {
594 comment = comment.Append("HIJING Jet 200 GeV");
595 AliGenHijing *gener = (AliGenHijing*)HijingStandard();
596 // impact parameter range
597 gener->SetImpactParameterRange(0., 5.);
598 // trigger
599 gener->SetTrigger(1);
600 gener->SetPtJet(200.);
601 gener->SetRadiation(isw);
602 gener->SetSimpleJets(!isw);
603 gener->SetJetEtaRange(-0.3,0.3);
604 gener->SetJetPhiRange(75., 165.);
605 gGener=gener;
606 }
3928b038 607 break;
57222fcd 608 //
609 // Gamma-Jet
610 //
3928b038 611 case kHijing_gj25:
57222fcd 612 {
613 comment = comment.Append("HIJING Gamma 25 GeV");
614 AliGenHijing *gener = (AliGenHijing*)HijingStandard();
615 // impact parameter range
616 gener->SetImpactParameterRange(0., 5.);
617 // trigger
618 gener->SetTrigger(2);
619 gener->SetPtJet(25.);
620 gener->SetRadiation(isw);
621 gener->SetSimpleJets(!isw);
622 gener->SetJetEtaRange(-0.12, 0.12);
623 gener->SetJetPhiRange(220., 320.);
624 gGener=gener;
625 }
3928b038 626 break;
57222fcd 627
3928b038 628 case kHijing_gj50:
57222fcd 629 {
630 comment = comment.Append("HIJING Gamma 50 GeV");
631 AliGenHijing *gener = (AliGenHijing*)HijingStandard();
632 // impact parameter range
633 gener->SetImpactParameterRange(0., 5.);
634 // trigger
635 gener->SetTrigger(2);
636 gener->SetPtJet(50.);
637 gener->SetRadiation(isw);
638 gener->SetSimpleJets(!isw);
639 gener->SetJetEtaRange(-0.12, 0.12);
640 gener->SetJetPhiRange(220., 320.);
641 gGener=gener;
642 }
3928b038 643 break;
57222fcd 644
3928b038 645 case kHijing_gj75:
57222fcd 646 {
647 comment = comment.Append("HIJING Gamma 75 GeV");
648 AliGenHijing *gener = (AliGenHijing*)HijingStandard();
649 // impact parameter range
650 gener->SetImpactParameterRange(0., 5.);
651 // trigger
652 gener->SetTrigger(2);
653 gener->SetPtJet(75.);
654 gener->SetRadiation(isw);
655 gener->SetSimpleJets(!isw);
656 gener->SetJetEtaRange(-0.12, 0.12);
657 gener->SetJetPhiRange(220., 320.);
658 gGener=gener;
659 }
3928b038 660 break;
57222fcd 661
3928b038 662 case kHijing_gj100:
57222fcd 663 {
664 comment = comment.Append("HIJING Gamma 100 GeV");
665 AliGenHijing *gener = (AliGenHijing*)HijingStandard();
666 // impact parameter range
667 gener->SetImpactParameterRange(0., 5.);
668 // trigger
669 gener->SetTrigger(2);
670 gener->SetPtJet(100.);
671 gener->SetRadiation(isw);
672 gener->SetSimpleJets(!isw);
673 gener->SetJetEtaRange(-0.12, 0.12);
674 gener->SetJetPhiRange(220., 320.);
675 gGener=gener;
676 }
3928b038 677 break;
57222fcd 678
3928b038 679 case kHijing_gj200:
57222fcd 680 {
681 comment = comment.Append("HIJING Gamma 200 GeV");
682 AliGenHijing *gener = (AliGenHijing*)HijingStandard();
683 // impact parameter range
684 gener->SetImpactParameterRange(0., 5.);
685 // trigger
686 gener->SetTrigger(2);
687 gener->SetPtJet(200.);
688 gener->SetRadiation(isw);
689 gener->SetSimpleJets(!isw);
690 gener->SetJetEtaRange(-0.12, 0.12);
691 gener->SetJetPhiRange(220., 320.);
692 gGener=gener;
693 }
3928b038 694 break;
695 case kHijing_pA:
57222fcd 696 {
697 comment = comment.Append("HIJING pA");
698
699 AliGenCocktail *gener = new AliGenCocktail();
700
701 AliGenHijing *hijing = new AliGenHijing(-1);
702 // centre of mass energy
703 hijing->SetEnergyCMS(TMath::Sqrt(82./208.) * 14000.);
704 // impact parameter range
705 hijing->SetImpactParameterRange(0., 15.);
706 // reference frame
707 hijing->SetReferenceFrame("CMS");
708 hijing->SetBoostLHC(1);
709 // projectile
710 hijing->SetProjectile("P", 1, 1);
711 hijing->SetTarget ("A", 208, 82);
712 // tell hijing to keep the full parent child chain
713 hijing->KeepFullEvent();
714 // enable jet quenching
715 hijing->SetJetQuenching(0);
716 // enable shadowing
717 hijing->SetShadowing(1);
718 // Don't track spectators
719 hijing->SetSpectators(0);
720 // kinematic selection
721 hijing->SetSelectAll(0);
722 //
723 AliGenSlowNucleons* gray = new AliGenSlowNucleons(1);
724 AliSlowNucleonModel* model = new AliSlowNucleonModelExp();
725 gray->SetSlowNucleonModel(model);
726 gray->SetDebug(1);
727 gener->AddGenerator(hijing,"Hijing pPb", 1);
728 gener->AddGenerator(gray, "Gray Particles",1);
729 gGener=gener;
730 }
3928b038 731 break;
732 case kPythia6:
57222fcd 733 {
734 comment = comment.Append(":Pythia p-p @ 14 TeV");
735 AliGenPythia *gener = new AliGenPythia(-1);
736 gener->SetMomentumRange(0,999999);
737 gener->SetThetaRange(0., 180.);
738 gener->SetYRange(-12,12);
739 gener->SetPtRange(0,1000);
740 gener->SetProcess(kPyMb);
741 gener->SetEnergyCMS(14000.);
742 gener->SetProjectile("p", 1, 1) ;
743 gener->SetTarget("p", 1, 1) ;
744 gGener=gener;
745 }
3928b038 746 break;
747 case kPythia6Jets20_24:
57222fcd 748 {
749 comment = comment.Append(":Pythia jets 20-24 GeV @ 5.5 TeV");
750 AliGenPythia * gener = new AliGenPythia(-1);
751 gener->SetEnergyCMS(5500.);// Centre of mass energy
752 gener->SetProcess(kPyJets);// Process type
753 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
754 gener->SetJetPhiRange(0., 360.);
755 gener->SetJetEtRange(10., 1000.);
756 gener->SetGluonRadiation(1,1);
757 // gener->SetPtKick(0.);
758 // Structure function
759 gener->SetStrucFunc(kCTEQ4L);
760 gener->SetPtHard(20., 24.);// Pt transfer of the hard scattering
761 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
762 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
763 gener->SetProjectile("p", 1, 1) ;
764 gener->SetTarget("p", 1, 1) ;
765 gGener=gener;
766 }
3928b038 767 break;
768 case kPythia6Jets24_29:
57222fcd 769 {
770 comment = comment.Append(":Pythia jets 24-29 GeV @ 5.5 TeV");
771 AliGenPythia * gener = new AliGenPythia(-1);
772 gener->SetEnergyCMS(5500.);// Centre of mass energy
773 gener->SetProcess(kPyJets);// Process type
774 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
775 gener->SetJetPhiRange(0., 360.);
776 gener->SetJetEtRange(10., 1000.);
777 gener->SetGluonRadiation(1,1);
778 // gener->SetPtKick(0.);
779 // Structure function
780 gener->SetStrucFunc(kCTEQ4L);
781 gener->SetPtHard(24., 29.);// Pt transfer of the hard scattering
782 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
783 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
784 gener->SetProjectile("p", 1, 1) ;
785 gener->SetTarget("p", 1, 1) ;
786 gGener=gener;
787 }
3928b038 788 break;
789 case kPythia6Jets29_35:
57222fcd 790 {
791 comment = comment.Append(":Pythia jets 29-35 GeV @ 5.5 TeV");
792 AliGenPythia * gener = new AliGenPythia(-1);
793 gener->SetEnergyCMS(5500.);// Centre of mass energy
794 gener->SetProcess(kPyJets);// Process type
795 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
796 gener->SetJetPhiRange(0., 360.);
797 gener->SetJetEtRange(10., 1000.);
798 gener->SetGluonRadiation(1,1);
799 // gener->SetPtKick(0.);
800 // Structure function
801 gener->SetStrucFunc(kCTEQ4L);
802 gener->SetPtHard(29., 35.);// Pt transfer of the hard scattering
803 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
804 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
805 gener->SetProjectile("p", 1, 1) ;
806 gener->SetTarget("p", 1, 1) ;
807 gGener=gener;
808 }
3928b038 809 break;
810 case kPythia6Jets35_42:
57222fcd 811 {
812 comment = comment.Append(":Pythia jets 35-42 GeV @ 5.5 TeV");
813 AliGenPythia * gener = new AliGenPythia(-1);
814 gener->SetEnergyCMS(5500.);// Centre of mass energy
815 gener->SetProcess(kPyJets);// Process type
816 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
817 gener->SetJetPhiRange(0., 360.);
818 gener->SetJetEtRange(10., 1000.);
819 gener->SetGluonRadiation(1,1);
820 // gener->SetPtKick(0.);
821 // Structure function
822 gener->SetStrucFunc(kCTEQ4L);
823 gener->SetPtHard(35., 42.);// Pt transfer of the hard scattering
824 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
825 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
826 gener->SetProjectile("p", 1, 1) ;
827 gener->SetTarget("p", 1, 1) ;
828 gGener=gener;
829 }
3928b038 830 break;
831 case kPythia6Jets42_50:
57222fcd 832 {
833 comment = comment.Append(":Pythia jets 42-50 GeV @ 5.5 TeV");
834 AliGenPythia * gener = new AliGenPythia(-1);
835 gener->SetEnergyCMS(5500.);// Centre of mass energy
836 gener->SetProcess(kPyJets);// Process type
837 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
838 gener->SetJetPhiRange(0., 360.);
839 gener->SetJetEtRange(10., 1000.);
840 gener->SetGluonRadiation(1,1);
841 // gener->SetPtKick(0.);
842 // Structure function
843 gener->SetStrucFunc(kCTEQ4L);
844 gener->SetPtHard(42., 50.);// Pt transfer of the hard scattering
845 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
846 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
847 gener->SetProjectile("p", 1, 1) ;
848 gener->SetTarget("p", 1, 1) ;
849 gGener=gener;
850 }
3928b038 851 break;
852 case kPythia6Jets50_60:
57222fcd 853 {
854 comment = comment.Append(":Pythia jets 50-60 GeV @ 5.5 TeV");
855 AliGenPythia * gener = new AliGenPythia(-1);
856 gener->SetEnergyCMS(5500.);// Centre of mass energy
857 gener->SetProcess(kPyJets);// Process type
858 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
859 gener->SetJetPhiRange(0., 360.);
860 gener->SetJetEtRange(10., 1000.);
861 gener->SetGluonRadiation(1,1);
862 // gener->SetPtKick(0.);
863 // Structure function
864 gener->SetStrucFunc(kCTEQ4L);
865 gener->SetPtHard(50., 60.);// Pt transfer of the hard scattering
866 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
867 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
868 gGener=gener;
869 }
3928b038 870 break;
871 case kPythia6Jets60_72:
57222fcd 872 {
873 comment = comment.Append(":Pythia jets 60-72 GeV @ 5.5 TeV");
874 AliGenPythia * gener = new AliGenPythia(-1);
875 gener->SetEnergyCMS(5500.);// Centre of mass energy
876 gener->SetProcess(kPyJets);// Process type
877 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
878 gener->SetJetPhiRange(0., 360.);
879 gener->SetJetEtRange(10., 1000.);
880 gener->SetGluonRadiation(1,1);
881 // gener->SetPtKick(0.);
882 // Structure function
883 gener->SetStrucFunc(kCTEQ4L);
884 gener->SetPtHard(60., 72.);// Pt transfer of the hard scattering
885 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
886 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
887 gener->SetProjectile("p", 1, 1) ;
888 gener->SetTarget("p", 1, 1) ;
889 gGener=gener;
890 }
3928b038 891 break;
892 case kPythia6Jets72_86:
57222fcd 893 {
894 comment = comment.Append(":Pythia jets 72-86 GeV @ 5.5 TeV");
895 AliGenPythia * gener = new AliGenPythia(-1);
896 gener->SetEnergyCMS(5500.);// Centre of mass energy
897 gener->SetProcess(kPyJets);// Process type
898 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
899 gener->SetJetPhiRange(0., 360.);
900 gener->SetJetEtRange(10., 1000.);
901 gener->SetGluonRadiation(1,1);
902 // gener->SetPtKick(0.);
903 // Structure function
904 gener->SetStrucFunc(kCTEQ4L);
905 gener->SetPtHard(72., 86.);// Pt transfer of the hard scattering
906 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
907 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
908 gener->SetProjectile("p", 1, 1) ;
909 gener->SetTarget("p", 1, 1) ;
910 gGener=gener;
911 }
3928b038 912 break;
913 case kPythia6Jets86_104:
57222fcd 914 {
915 comment = comment.Append(":Pythia jets 86-104 GeV @ 5.5 TeV");
916 AliGenPythia * gener = new AliGenPythia(-1);
917 gener->SetEnergyCMS(5500.);// Centre of mass energy
918 gener->SetProcess(kPyJets);// Process type
919 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
920 gener->SetJetPhiRange(0., 360.);
921 gener->SetJetEtRange(10., 1000.);
922 gener->SetGluonRadiation(1,1);
923 // gener->SetPtKick(0.);
924 // Structure function
925 gener->SetStrucFunc(kCTEQ4L);
926 gener->SetPtHard(86., 104.);// Pt transfer of the hard scattering
927 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
928 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
929 gener->SetProjectile("p", 1, 1) ;
930 gener->SetTarget("p", 1, 1) ;
931 gGener=gener;
932 }
3928b038 933 break;
934 case kPythia6Jets104_125:
57222fcd 935 {
936 comment = comment.Append(":Pythia jets 105-125 GeV @ 5.5 TeV");
937 AliGenPythia * gener = new AliGenPythia(-1);
938 gener->SetEnergyCMS(5500.);// Centre of mass energy
939 gener->SetProcess(kPyJets);// Process type
940 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
941 gener->SetJetPhiRange(0., 360.);
942 gener->SetJetEtRange(10., 1000.);
943 gener->SetGluonRadiation(1,1);
944 // gener->SetPtKick(0.);
945 // Structure function
946 gener->SetStrucFunc(kCTEQ4L);
947 gener->SetPtHard(104., 125.);// Pt transfer of the hard scattering
948 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
949 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
950 gener->SetProjectile("p", 1, 1) ;
951 gener->SetTarget("p", 1, 1) ;
952 gGener=gener;
953 }
3928b038 954 break;
955 case kPythia6Jets125_150:
57222fcd 956 {
957 comment = comment.Append(":Pythia jets 125-150 GeV @ 5.5 TeV");
958 AliGenPythia * gener = new AliGenPythia(-1);
959 gener->SetEnergyCMS(5500.);// Centre of mass energy
960 gener->SetProcess(kPyJets);// Process type
961 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
962 gener->SetJetPhiRange(0., 360.);
963 gener->SetJetEtRange(10., 1000.);
964 gener->SetGluonRadiation(1,1);
965 // gener->SetPtKick(0.);
966 // Structure function
967 gener->SetStrucFunc(kCTEQ4L);
968 gener->SetPtHard(125., 150.);// Pt transfer of the hard scattering
969 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
970 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
971 gGener=gener;
972 }
3928b038 973 break;
974 case kPythia6Jets150_180:
57222fcd 975 {
976 comment = comment.Append(":Pythia jets 150-180 GeV @ 5.5 TeV");
977 AliGenPythia * gener = new AliGenPythia(-1);
978 gener->SetEnergyCMS(5500.);// Centre of mass energy
979 gener->SetProcess(kPyJets);// Process type
980 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
981 gener->SetJetPhiRange(0., 360.);
982 gener->SetJetEtRange(10., 1000.);
983 gener->SetGluonRadiation(1,1);
984 // gener->SetPtKick(0.);
985 // Structure function
986 gener->SetStrucFunc(kCTEQ4L);
987 gener->SetPtHard(150., 180.);// Pt transfer of the hard scattering
988 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
989 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
990 gener->SetProjectile("p", 1, 1) ;
991 gener->SetTarget("p", 1, 1) ;
992 gGener=gener;
993 }
3928b038 994 break;
995 case kD0PbPb5500:
57222fcd 996 {
997 comment = comment.Append(" D0 in Pb-Pb at 5.5 TeV");
998 AliGenPythia * gener = new AliGenPythia(10);
999 gener->SetProcess(kPyD0PbPbMNR);
1000 gener->SetStrucFunc(kCTEQ4L);
1001 gener->SetPtHard(2.1,-1.0);
1002 gener->SetEnergyCMS(5500.);
1003 gener->SetNuclei(208,208);
1004 gener->SetForceDecay(kHadronicD);
1005 gener->SetYRange(-2,2);
1006 gener->SetFeedDownHigherFamily(kFALSE);
1007 gener->SetStackFillOpt(AliGenPythia::kParentSelection);
1008 gener->SetCountMode(AliGenPythia::kCountParents);
1009 gener->SetProjectile("A", 208, 82) ;
1010 gener->SetTarget("A", 208, 82) ;
1011 gGener=gener;
1012 }
3928b038 1013 break;
1014 case kCharmSemiElPbPb5500:
57222fcd 1015 {
1016 comment = comment.Append(" Charm in Pb-Pb at 5.5 TeV");
1017 AliGenPythia * gener = new AliGenPythia(10);
1018 gener->SetProcess(kPyCharmPbPbMNR);
1019 gener->SetStrucFunc(kCTEQ4L);
1020 gener->SetPtHard(2.1,-1.0);
1021 gener->SetEnergyCMS(5500.);
1022 gener->SetNuclei(208,208);
1023 gener->SetForceDecay(kSemiElectronic);
1024 gener->SetYRange(-2,2);
1025 gener->SetFeedDownHigherFamily(kFALSE);
1026 gener->SetCountMode(AliGenPythia::kCountParents);
1027 gener->SetProjectile("A", 208, 82) ;
1028 gener->SetTarget("A", 208, 82) ;
1029 gGener=gener;
1030 }
3928b038 1031 break;
1032 case kBeautySemiElPbPb5500:
57222fcd 1033 {
1034 comment = comment.Append(" Beauty in Pb-Pb at 5.5 TeV");
1035 AliGenPythia *gener = new AliGenPythia(10);
1036 gener->SetProcess(kPyBeautyPbPbMNR);
1037 gener->SetStrucFunc(kCTEQ4L);
1038 gener->SetPtHard(2.75,-1.0);
1039 gener->SetEnergyCMS(5500.);
1040 gener->SetNuclei(208,208);
1041 gener->SetForceDecay(kSemiElectronic);
1042 gener->SetYRange(-2,2);
1043 gener->SetFeedDownHigherFamily(kFALSE);
1044 gener->SetCountMode(AliGenPythia::kCountParents);
1045 gener->SetProjectile("A", 208, 82) ;
1046 gener->SetTarget("A", 208, 82) ;
1047 gGener=gener;
1048 }
3928b038 1049 break;
1050 case kCocktailTRD:
57222fcd 1051 {
1052 comment = comment.Append(" Cocktail for TRD at 5.5 TeV");
1053 AliGenCocktail *gener = new AliGenCocktail();
1054
1055 AliGenParam *phi = new AliGenParam(10,
1056 new AliGenMUONlib(),
1057 AliGenMUONlib::kPhi,
1058 "Vogt PbPb");
1059
1060 phi->SetPtRange(0, 100);
1061 phi->SetYRange(-1., +1.);
1062 phi->SetForceDecay(kDiElectron);
1063
1064 AliGenParam *omega = new AliGenParam(10,
3928b038 1065 new AliGenMUONlib(),
57222fcd 1066 AliGenMUONlib::kOmega,
3928b038 1067 "Vogt PbPb");
57222fcd 1068
1069 omega->SetPtRange(0, 100);
1070 omega->SetYRange(-1., +1.);
1071 omega->SetForceDecay(kDiElectron);
1072
1073 AliGenParam *jpsi = new AliGenParam(10,
1074 new AliGenMUONlib(),
1075 AliGenMUONlib::kJpsiFamily,
1076 "Vogt PbPb");
1077
1078 jpsi->SetPtRange(0, 100);
1079 jpsi->SetYRange(-1., +1.);
1080 jpsi->SetForceDecay(kDiElectron);
1081
1082 AliGenParam *ups = new AliGenParam(10,
1083 new AliGenMUONlib(),
1084 AliGenMUONlib::kUpsilonFamily,
1085 "Vogt PbPb");
1086 ups->SetPtRange(0, 100);
1087 ups->SetYRange(-1., +1.);
1088 ups->SetForceDecay(kDiElectron);
1089
1090 AliGenParam *charm = new AliGenParam(10,
1091 new AliGenMUONlib(),
1092 AliGenMUONlib::kCharm,
1093 "central");
1094 charm->SetPtRange(0, 100);
1095 charm->SetYRange(-1.5, +1.5);
1096 charm->SetForceDecay(kSemiElectronic);
1097
1098
1099 AliGenParam *beauty = new AliGenParam(10,
1100 new AliGenMUONlib(),
1101 AliGenMUONlib::kBeauty,
1102 "central");
1103 beauty->SetPtRange(0, 100);
1104 beauty->SetYRange(-1.5, +1.5);
1105 beauty->SetForceDecay(kSemiElectronic);
1106
1107 AliGenParam *beautyJ = new AliGenParam(10,
1108 new AliGenMUONlib(),
1109 AliGenMUONlib::kBeauty,
1110 "central");
1111 beautyJ->SetPtRange(0, 100);
1112 beautyJ->SetYRange(-1.5, +1.5);
1113 beautyJ->SetForceDecay(kBJpsiDiElectron);
1114
1115 gener->AddGenerator(phi,"Phi",1);
1116 gener->AddGenerator(omega,"Omega",1);
1117 gener->AddGenerator(jpsi,"J/psi",1);
1118 gener->AddGenerator(ups,"Upsilon",1);
1119 gener->AddGenerator(charm,"Charm",1);
1120 gener->AddGenerator(beauty,"Beauty",1);
1121 gener->AddGenerator(beautyJ,"J/Psi from Beauty",1);
1122 gener->SetProjectile("A", 208, 82) ;
1123 gener->SetTarget("A", 208, 82) ;
1124 gGener=gener;
1125 }
3928b038 1126 break;
1127 case kPyJJ:
57222fcd 1128 {
1129 comment = comment.Append(" Jet-jet at 5.5 TeV");
1130 AliGenPythia *gener = new AliGenPythia(-1);
1131 gener->SetEnergyCMS(5500.);
1132 gener->SetProcess(kPyJets);
1133 Double_t ptHardMin=10.0, ptHardMax=-1.0;
1134 gener->SetPtHard(ptHardMin,ptHardMax);
1135 gener->SetYHard(-0.7,0.7);
1136 gener->SetJetEtaRange(-0.2,0.2);
1137 gener->SetEventListRange(0,1);
1138 gener->SetProjectile("p", 1, 1) ;
1139 gener->SetTarget("p", 1, 1) ;
1140 gGener=gener;
1141 }
3928b038 1142 break;
1143 case kPyGJ:
57222fcd 1144 {
1145 comment = comment.Append(" Gamma-jet at 5.5 TeV");
1146 AliGenPythia *gener = new AliGenPythia(-1);
1147 gener->SetEnergyCMS(5500.);
1148 gener->SetProcess(kPyDirectGamma);
1149 Double_t ptHardMin=10.0, ptHardMax=-1.0;
1150 gener->SetPtHard(ptHardMin,ptHardMax);
1151 gener->SetYHard(-1.0,1.0);
1152 gener->SetGammaEtaRange(-0.13,0.13);
1153 gener->SetGammaPhiRange(210.,330.);
1154 gener->SetEventListRange(0,1);
1155 gener->SetProjectile("p", 1, 1) ;
1156 gener->SetTarget("p", 1, 1) ;
1157 gGener=gener;
1158 }
3928b038 1159 break;
1160 case kMuonCocktailCent1:
57222fcd 1161 {
1162 comment = comment.Append(" Muon Cocktail Cent1");
1163 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1164 gener->SetPtRange(0.4,100.); // Transverse momentum range
1165 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1166 gener->SetYRange(-4.0,-2.4);
1167 gener->SetMuonPtCut(0.8);
1168 gener->SetMuonThetaCut(171.,178.);
1169 gener->SetMuonMultiplicity(2);
1170 gener->SetImpactParameterRange(0.,5.); //Centrality class Cent1 for PDC04
1171 gGener=gener;
1172 gener->SetProjectile("A", 208, 82) ;
1173 gener->SetTarget("A", 208, 82) ;
1174 }
3928b038 1175 break;
1176 case kMuonCocktailPer1:
57222fcd 1177 {
1178 comment = comment.Append(" Muon Cocktail Per1");
1179 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1180 gener->SetPtRange(0.0,100.); // Transverse momentum range
1181 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1182 gener->SetYRange(-4.0,-2.4);
1183 gener->SetMuonPtCut(0.8);
1184 gener->SetMuonThetaCut(171.,178.);
1185 gener->SetMuonMultiplicity(2);
1186 gener->SetImpactParameterRange(5.,8.6);//Centrality class Per1 for PDC04
1187 gener->SetProjectile("A", 208, 82) ;
1188 gener->SetTarget("A", 208, 82) ;
1189 gGener=gener;
1190 }
3928b038 1191 break;
1192 case kMuonCocktailPer4:
57222fcd 1193 {
1194 comment = comment.Append(" Muon Cocktail Per4");
1195 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1196 gener->SetPtRange(0.0,100.); // Transverse momentum range
1197 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1198 gener->SetYRange(-4.0,-2.4);
1199 gener->SetMuonPtCut(0.8);
1200 gener->SetMuonThetaCut(171.,178.);
1201 gener->SetMuonMultiplicity(2);
1202 gener->SetImpactParameterRange(13.2,15.0);//Centrality class Per4 for PDC04
1203 gener->SetProjectile("A", 208, 82) ;
1204 gener->SetTarget("A", 208, 82) ;
1205 gGener=gener;
1206 }
3928b038 1207 break;
1208 case kMuonCocktailCent1HighPt:
57222fcd 1209 {
1210 comment = comment.Append(" Muon Cocktail HighPt Cent1");
1211 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1212 gener->SetPtRange(0.0,100.); // Transverse momentum range
1213 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1214 gener->SetYRange(-4.0,-2.4);
1215 gener->SetMuonPtCut(2.5);
1216 gener->SetMuonThetaCut(171.,178.);
1217 gener->SetMuonMultiplicity(2);
1218 gener->SetImpactParameterRange(0.,5.); //Centrality class Cent1 for PDC04
1219 gener->SetProjectile("A", 208, 82) ;
1220 gener->SetTarget("A", 208, 82) ;
1221 gGener=gener;
1222 }
3928b038 1223 break;
1224 case kMuonCocktailPer1HighPt :
57222fcd 1225 {
1226 comment = comment.Append(" Muon Cocktail HighPt Per1");
1227 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1228 gener->SetPtRange(0.0,100.); // Transverse momentum range
1229 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1230 gener->SetYRange(-4.0,-2.4);
1231 gener->SetMuonPtCut(2.5);
1232 gener->SetMuonThetaCut(171.,178.);
1233 gener->SetMuonMultiplicity(2);
1234 gener->SetImpactParameterRange(5.,8.6);//Centrality class Per1 for PDC04
1235 gener->SetProjectile("A", 208, 82) ;
1236 gener->SetTarget("A", 208, 82) ;
1237 gGener=gener;
1238 }
3928b038 1239 break;
1240 case kMuonCocktailPer4HighPt:
57222fcd 1241 {
1242 comment = comment.Append(" Muon Cocktail HighPt Per4");
1243 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1244 gener->SetPtRange(0.0,100.); // Transverse momentum range
1245 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1246 gener->SetYRange(-4.0,-2.4);
1247 gener->SetMuonPtCut(2.5);
1248 gener->SetMuonThetaCut(171.,178.);
1249 gener->SetMuonMultiplicity(2);
1250 gener->SetImpactParameterRange(13.2,15.0);//Centrality class Per4 for PDC04
1251 gener->SetProjectile("A", 208, 82) ;
1252 gener->SetTarget("A", 208, 82) ;
1253 gGener=gener;
1254 }
3928b038 1255 break;
1256 case kMuonCocktailCent1Single:
57222fcd 1257 {
1258 comment = comment.Append(" Muon Cocktail Single Cent1");
1259 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1260 gener->SetPtRange(0.0,100.); // Transverse momentum range
1261 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1262 gener->SetYRange(-4.0,-2.4);
1263 gener->SetMuonPtCut(0.8);
1264 gener->SetMuonThetaCut(171.,178.);
1265 gener->SetMuonMultiplicity(1);
1266 gener->SetImpactParameterRange(0.,5.); //Centrality class Cent1 for PDC04
1267 gener->SetProjectile("A", 208, 82) ;
1268 gener->SetTarget("A", 208, 82) ;
1269 gGener=gener;
1270 }
3928b038 1271 break;
1272 case kMuonCocktailPer1Single :
57222fcd 1273 {
1274 comment = comment.Append(" Muon Cocktail Single Per1");
1275 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1276 gener->SetPtRange(0.0,100.); // Transverse momentum range
1277 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1278 gener->SetYRange(-4.0,-2.4);
1279 gener->SetMuonPtCut(0.8);
1280 gener->SetMuonThetaCut(171.,178.);
1281 gener->SetMuonMultiplicity(1);
1282 gener->SetImpactParameterRange(5.,8.6);//Centrality class Per1 for PDC04
1283 gener->SetNumberOfParticipants(229.3);//Centrality class Per1 for PDC04
1284 gener->SetProjectile("A", 208, 82) ;
1285 gener->SetTarget("A", 208, 82) ;
1286 gGener=gener;
1287 }
3928b038 1288 break;
1289 case kMuonCocktailPer4Single:
57222fcd 1290 {
1291 comment = comment.Append(" Muon Cocktail Single Per4");
1292 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1293 gener->SetPtRange(0.0,100.); // Transverse momentum range
1294 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1295 gener->SetYRange(-4.0,-2.4);
1296 gener->SetMuonPtCut(0.8);
1297 gener->SetMuonThetaCut(171.,178.);
1298 gener->SetMuonMultiplicity(1);
1299 gener->SetImpactParameterRange(13.2,15.0);//Centrality class Per4 for PDC04
1300 gener->SetProjectile("A", 208, 82) ;
1301 gener->SetTarget("A", 208, 82) ;
1302 gGener=gener;
1303 }
3928b038 1304 break;
1305 case kFlow_2_2000:
1306 {
57222fcd 1307 comment = comment.Append(" Flow with dN/deta = 2000, vn = 2%");
1308 gGener = GeVSimStandard(2000., 2.);
3928b038 1309 }
57222fcd 1310 break;
1311
3928b038 1312 case kFlow_10_2000:
1313 {
57222fcd 1314 comment = comment.Append(" Flow with dN/deta = 2000, vn = 10%");
1315 gGener = GeVSimStandard(2000., 10.);
3928b038 1316 }
57222fcd 1317 break;
1318
3928b038 1319 case kFlow_6_2000:
1320 {
57222fcd 1321 comment = comment.Append(" Flow with dN/deta = 2000, vn = 6%");
1322 gGener = GeVSimStandard(2000., 6.);
3928b038 1323 }
57222fcd 1324 break;
1325
3928b038 1326 case kFlow_6_5000:
1327 {
57222fcd 1328 comment = comment.Append(" Flow with dN/deta = 5000, vn = 6%");
1329 gGener = GeVSimStandard(5000., 6.);
3928b038 1330 }
57222fcd 1331 break;
3928b038 1332 case kHIJINGplus:
1333 {
57222fcd 1334 //
1335 // The cocktail
1336 AliGenCocktail *gener = new AliGenCocktail();
1337
1338 //
1339 // Charm production by Pythia
1340 AliGenPythia * genpyc = new AliGenPythia(230);
1341 genpyc->SetProcess(kPyCharmPbPbMNR);
1342 genpyc->SetStrucFunc(kCTEQ4L);
1343 genpyc->SetPtHard(2.1,-1.0);
1344 genpyc->SetEnergyCMS(5500.);
1345 genpyc->SetNuclei(208,208);
1346 genpyc->SetYRange(-999,999);
1347 genpyc->SetForceDecay(kAll);
1348 genpyc->SetFeedDownHigherFamily(kFALSE);
1349 genpyc->SetCountMode(AliGenPythia::kCountParents);
1350 //
1351 // Beauty production by Pythia
1352 AliGenPythia * genpyb = new AliGenPythia(9);
1353 genpyb->SetProcess(kPyBeautyPbPbMNR);
1354 genpyb->SetStrucFunc(kCTEQ4L);
1355 genpyb->SetPtHard(2.75,-1.0);
1356 genpyb->SetEnergyCMS(5500.);
1357 genpyb->SetNuclei(208,208);
1358 genpyb->SetYRange(-999,999);
1359 genpyb->SetForceDecay(kAll);
1360 genpyb->SetFeedDownHigherFamily(kFALSE);
1361 genpyb->SetCountMode(AliGenPythia::kCountParents);
1362 //
1363 // Hyperons
1364 //
1365 AliGenSTRANGElib *lib = new AliGenSTRANGElib();
1366 Int_t particle;
1367 // Xi
1368 particle = kXiMinus;
3390182c 1369 AliGenParam *genXi = new AliGenParam(16,lib,particle);
57222fcd 1370 genXi->SetPtRange(0., 12.);
1371 genXi->SetYRange(-1.1, 1.1);
1372 genXi->SetForceDecay(kNoDecay);
1373
1374 //
1375 // Omega
1376 particle = kOmegaMinus;
3390182c 1377 AliGenParam *genOmega = new AliGenParam(10,lib,particle);
57222fcd 1378 genOmega->SetPtRange(0, 12.);
1379 genOmega->SetYRange(-1.1, 1.1);
1380 genOmega->SetForceDecay(kNoDecay);
1381
1382 //
1383 // Central Hijing
1384 AliGenHijing *genHi = (AliGenHijing*)HijingStandard();
1385 genHi->SwitchOffHeavyQuarks(kTRUE);
1386 genHi->SetImpactParameterRange(0.,5.);
1387 //
1388 // Add everything to the cocktail and shake ...
1389 gener->AddGenerator(genHi, "Hijing cent1", 1);
1390 gener->AddGenerator(genpyc, "Extra charm", 1);
1391 gener->AddGenerator(genpyb, "Extra beauty", 1);
1392 gener->AddGenerator(genXi, "Xi" , 1);
1393 gener->AddGenerator(genOmega, "Omega", 1);
1394 gener->SetProjectile("A", 208, 82) ;
1395 gener->SetTarget("A", 208, 82) ;
1396 gGener = gener;
3928b038 1397 }
57222fcd 1398 break;
1399 default: break;
1400 }
1401
1402 return gGener;
3928b038 1403}
1404
57222fcd 1405AliGenerator* HijingStandard()
3928b038 1406{
57222fcd 1407
3928b038 1408 AliGenHijing *gener = new AliGenHijing(-1);
1409// centre of mass energy
1410 gener->SetEnergyCMS(5500.);
1411// reference frame
1412 gener->SetReferenceFrame("CMS");
1413// projectile
1414 gener->SetProjectile("A", 208, 82);
1415 gener->SetTarget ("A", 208, 82);
1416// tell hijing to keep the full parent child chain
1417 gener->KeepFullEvent();
1418// enable jet quenching
1419 gener->SetJetQuenching(1);
1420// enable shadowing
1421 gener->SetShadowing(1);
1422// neutral pion and heavy particle decays switched off
1423 gener->SetDecaysOff(1);
1424// Don't track spectators
1425 gener->SetSpectators(0);
1426// kinematic selection
1427 gener->SetSelectAll(0);
1428 return gener;
1429}
1430
1431AliGenGeVSim* GeVSimStandard(Float_t mult, Float_t vn)
1432{
1433 AliGenGeVSim* gener = new AliGenGeVSim(0);
1434//
1435// Mult is the number of charged particles in |eta| < 0.5
1436// Vn is in (%)
1437//
1438// Sigma of the Gaussian dN/deta
1439 Float_t sigma_eta = 2.75;
1440//
1441// Maximum eta
1442 Float_t etamax = 7.00;
1443//
1444//
1445// Scale from multiplicity in |eta| < 0.5 to |eta| < |etamax|
1446 Float_t mm = mult * (TMath::Erf(etamax/sigma_eta/sqrt(2.)) / TMath::Erf(0.5/sigma_eta/sqrt(2.)));
1447//
1448// Scale from charged to total multiplicity
1449//
1450 mm *= 1.587;
1451//
1452// Vn
1453 vn /= 100.;
1454//
1455// Define particles
1456//
1457//
1458// 78% Pions (26% pi+, 26% pi-, 26% p0) T = 250 MeV
1459 AliGeVSimParticle *pp = new AliGeVSimParticle(kPiPlus, 1, 0.26 * mm, 0.25, sigma_eta) ;
1460 AliGeVSimParticle *pm = new AliGeVSimParticle(kPiMinus, 1, 0.26 * mm, 0.25, sigma_eta) ;
1461 AliGeVSimParticle *p0 = new AliGeVSimParticle(kPi0, 1, 0.26 * mm, 0.25, sigma_eta) ;
1462//
1463// 12% Kaons (3% K0short, 3% K0long, 3% K+, 3% K-) T = 300 MeV
1464 AliGeVSimParticle *ks = new AliGeVSimParticle(kK0Short, 1, 0.03 * mm, 0.30, sigma_eta) ;
1465 AliGeVSimParticle *kl = new AliGeVSimParticle(kK0Long, 1, 0.03 * mm, 0.30, sigma_eta) ;
1466 AliGeVSimParticle *kp = new AliGeVSimParticle(kKPlus, 1, 0.03 * mm, 0.30, sigma_eta) ;
1467 AliGeVSimParticle *km = new AliGeVSimParticle(kKMinus, 1, 0.03 * mm, 0.30, sigma_eta) ;
1468//
1469// 10% Protons / Neutrons (5% Protons, 5% Neutrons) T = 250 MeV
1470 AliGeVSimParticle *pr = new AliGeVSimParticle(kProton, 1, 0.05 * mm, 0.25, sigma_eta) ;
1471 AliGeVSimParticle *ne = new AliGeVSimParticle(kNeutron, 1, 0.05 * mm, 0.25, sigma_eta) ;
1472//
1473// Set Elliptic Flow properties
1474
1475 Float_t pTsaturation = 2. ;
1476
1477 pp->SetEllipticParam(vn,pTsaturation,0.) ;
1478 pm->SetEllipticParam(vn,pTsaturation,0.) ;
1479 p0->SetEllipticParam(vn,pTsaturation,0.) ;
1480 pr->SetEllipticParam(vn,pTsaturation,0.) ;
1481 ne->SetEllipticParam(vn,pTsaturation,0.) ;
1482 ks->SetEllipticParam(vn,pTsaturation,0.) ;
1483 kl->SetEllipticParam(vn,pTsaturation,0.) ;
1484 kp->SetEllipticParam(vn,pTsaturation,0.) ;
1485 km->SetEllipticParam(vn,pTsaturation,0.) ;
1486//
1487// Set Direct Flow properties
1488 pp->SetDirectedParam(vn,1.0,0.) ;
1489 pm->SetDirectedParam(vn,1.0,0.) ;
1490 p0->SetDirectedParam(vn,1.0,0.) ;
1491 pr->SetDirectedParam(vn,1.0,0.) ;
1492 ne->SetDirectedParam(vn,1.0,0.) ;
1493 ks->SetDirectedParam(vn,1.0,0.) ;
1494 kl->SetDirectedParam(vn,1.0,0.) ;
1495 kp->SetDirectedParam(vn,1.0,0.) ;
1496 km->SetDirectedParam(vn,1.0,0.) ;
1497//
1498// Add particles to the list
1499 gener->AddParticleType(pp) ;
1500 gener->AddParticleType(pm) ;
1501 gener->AddParticleType(p0) ;
1502 gener->AddParticleType(pr) ;
1503 gener->AddParticleType(ne) ;
1504 gener->AddParticleType(ks) ;
1505 gener->AddParticleType(kl) ;
1506 gener->AddParticleType(kp) ;
1507 gener->AddParticleType(km) ;
1508//
1509// Random Ev.Plane ----------------------------------
1510 TF1 *rpa = new TF1("gevsimPsiRndm","1", 0, 360);
1511// --------------------------------------------------
1512 gener->SetPtRange(0., 9.) ; // Use a resonable range! (used for bin size in numerical integration)
1513 gener->SetPhiRange(0, 360);
1514 //
1515 // Set pseudorapidity range
1516 Float_t thmin = EtaToTheta(+etamax);
1517 Float_t thmax = EtaToTheta(-etamax);
1518 gener->SetThetaRange(thmin,thmax);
1519 return gener;
1520}
1521
1522
1523
1524void ProcessEnvironmentVars()
1525{
1526 // Run type
1527 if (gSystem->Getenv("CONFIG_RUN_TYPE")) {
1528 for (Int_t iRun = 0; iRun < kRunMax; iRun++) {
1529 if (strcmp(gSystem->Getenv("CONFIG_RUN_TYPE"), pprRunName[iRun])==0) {
1530 srun = (PprRun_t)iRun;
1531 cout<<"Run type set to "<<pprRunName[iRun]<<endl;
1532 }
1533 }
1534 }
1535
1536 // Random Number seed
1537 if (gSystem->Getenv("CONFIG_SEED")) {
1538 sseed = atoi(gSystem->Getenv("CONFIG_SEED"));
1539 }
1540}