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