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