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++")
7 #if !defined(__CINT__) || defined(__MAKECINT__)
11 #include <TVirtualMC.h>
12 #include <TGeant3TGeo.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/AliMagF.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/AliITSv11.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"
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,
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,
81 const char* pprRunName[] = {
83 "kParam_8000", "kParam_4000", "kParam_2000",
84 "kHijing_cent1", "kHijing_cent2",
85 "kHijing_per1", "kHijing_per2", "kHijing_per3", "kHijing_per4",
87 "kHijing_jj25", "kHijing_jj50", "kHijing_jj75", "kHijing_jj100",
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"
105 kGluonRadiation, kNoGluonRadiation
115 kDefaultPPTrig, kDefaultPbPbTrig
118 const char * pprTrigConfName[] = {
122 // This part for configuration
124 static PprRun_t srun = test50;
125 static PprRad_t srad = kGluonRadiation;
126 static PprMag_t smag = k5kG;
127 static Int_t sseed = 0; //Set 0 to use the current time
128 static PprTrigConf_t strig = kDefaultPPTrig; // default pp trigger configuration
131 static TString comment;
134 Float_t EtaToTheta(Float_t arg);
135 AliGenerator* GeneratorFactory(PprRun_t srun);
136 AliGenHijing* HijingStandard();
137 AliGenGeVSim* GeVSimStandard(Float_t, Float_t);
138 void ProcessEnvironmentVars();
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
145 // Get settings from environment variables
146 ProcessEnvironmentVars();
148 // Set Random Number seed
149 gRandom->SetSeed(sseed);
150 cout<<"Seed for random number generation= "<<gRandom->GetSeed()<<endl;
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");
162 new TGeant3TGeo("C++ Interface to Geant3");
164 // Output every 100 tracks
165 ((TGeant3*)gMC)->SetSWIT(4,100);
167 AliRunLoader* rl=0x0;
169 AliLog::Message(AliLog::kInfo, "Creating Run Loader", "", "", "Config()"," ConfigPPR.C", __LINE__);
171 rl = AliRunLoader::Open("galice.root",
172 AliConfig::GetDefaultEventFolderName(),
176 gAlice->Fatal("Config.C","Can not instatiate the Run Loader");
179 rl->SetCompressionLevel(2);
180 rl->SetNumberOfEventsPerFile(100);
181 gAlice->SetRunLoader(rl);
183 // Set the trigger configuration
184 AliSimulation::Instance()->SetTriggerConfig(pprTrigConfName[strig]);
185 cout<<"Trigger configuration is set to "<<pprTrigConfName[strig]<<endl;
188 // Set External decayer
189 AliDecayer *decayer = new AliDecayerPythia();
194 decayer->SetForceDecay(kHadronicD);
196 case kCharmSemiElPbPb5500:
197 decayer->SetForceDecay(kSemiElectronic);
199 case kBeautySemiElPbPb5500:
200 decayer->SetForceDecay(kSemiElectronic);
203 decayer->SetForceDecay(kAll);
207 gMC->SetExternalDecayer(decayer);
210 //=======================================================================
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
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);
232 Float_t cut = 1.e-3; // 1MeV cut by default
233 Float_t tofmax = 1.e10;
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);
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);
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");
265 if (srad == kGluonRadiation)
267 comment = comment.Append(" | Gluon Radiation On");
270 comment = comment.Append(" | Gluon Radiation Off");
273 printf("\n \n Comment: %s \n \n", comment.Data());
277 TGeoGlobalMagField::Instance()->SetField(new AliMagF("Maps","Maps", 1., 1., AliMagF::k5kG));
303 //=================== Alice BODY parameters =============================
304 AliBODY *BODY = new AliBODY("BODY", "Alice envelop");
309 //=================== MAG parameters ============================
310 // --- Start with Magnet since detector layouts may be depending ---
311 // --- on the selected Magnet dimensions ---
312 AliMAG *MAG = new AliMAG("MAG", "Magnet");
318 //=================== ABSO parameters ============================
319 AliABSO *ABSO = new AliABSOv3("ABSO", "Muon Absorber");
324 //=================== DIPO parameters ============================
326 AliDIPO *DIPO = new AliDIPOv3("DIPO", "Dipole version 3");
331 //=================== HALL parameters ============================
333 AliHALL *HALL = new AliHALLv3("HALL", "Alice Hall");
339 //=================== FRAME parameters ============================
341 AliFRAMEv2 *FRAME = new AliFRAMEv2("FRAME", "Space Frame");
347 //=================== SHIL parameters ============================
349 AliSHIL *SHIL = new AliSHILv3("SHIL", "Shielding Version 3");
355 //=================== PIPE parameters ============================
357 AliPIPE *PIPE = new AliPIPEv3("PIPE", "Beam Pipe");
362 //=================== ITS parameters ============================
364 AliITS *ITS = new AliITSv11("ITS","ITS v11");
369 //============================ TPC parameters =====================
370 AliTPC *TPC = new AliTPCv2("TPC", "Default");
375 //=================== TOF parameters ============================
376 AliTOF *TOF = new AliTOFv6T0("TOF", "normal TOF");
382 //=================== HMPID parameters ===========================
383 AliHMPID *HMPID = new AliHMPIDv3("HMPID", "normal HMPID");
390 //=================== ZDC parameters ============================
392 AliZDC *ZDC = new AliZDCv3("ZDC", "normal ZDC");
397 //=================== TRD parameters ============================
399 AliTRD *TRD = new AliTRDv1("TRD", "TRD slow simulator");
404 //=================== FMD parameters ============================
405 AliFMD *FMD = new AliFMDv1("FMD", "normal FMD");
410 //=================== MUON parameters ===========================
411 // New MUONv1 version (geometry defined via builders)
412 AliMUON *MUON = new AliMUONv1("MUON", "default");
414 //=================== PHOS parameters ===========================
418 AliPHOS *PHOS = new AliPHOSv1("PHOS", "IHEP");
424 //=================== PMD parameters ============================
425 AliPMD *PMD = new AliPMDv1("PMD", "normal PMD");
430 //=================== T0 parameters ============================
431 AliT0 *T0 = new AliT0v1("T0", "T0 Detector");
436 //=================== EMCAL parameters ============================
437 AliEMCAL *EMCAL = new AliEMCALv2("EMCAL", "EMCAL_COMPLETE");
442 //=================== ACORDE parameters ============================
443 AliACORDE *ACORDE = new AliACORDEv1("ACORDE", "normal ACORDE");
448 //=================== VZERO parameters ============================
449 AliVZERO *VZERO = new AliVZEROv7("VZERO", "normal VZERO");
455 Float_t EtaToTheta(Float_t arg){
456 return (180./TMath::Pi())*2.*atan(exp(-arg));
461 AliGenerator* GeneratorFactory(PprRun_t srun) {
463 if (srad == kNoGluonRadiation) isw = 0;
466 AliGenerator * gGener = 0x0;
470 // comment = comment.Append(":HIJINGparam test 50 particles");
471 // AliGenHIJINGpara *gener = new AliGenHIJINGpara(50);
472 // gener->SetMomentumRange(0, 999999.);
473 // gener->SetPhiRange(0., 360.);
474 // // Set pseudorapidity range from -8 to 8.
475 // Float_t thmin = EtaToTheta(1.4); // theta min. <---> eta max
476 // Float_t thmax = EtaToTheta(-1.4); // theta max. <---> eta min
477 // gener->SetThetaRange(thmin,thmax);
479 Int_t nParticles = 100;
480 AliGenCocktail *gener = new AliGenCocktail();
481 gener->SetPhiRange(0, 360);
482 // Set pseudorapidity range from -8 to 8.
483 Float_t thmin = EtaToTheta(1.4); // theta min. <---> eta max
484 Float_t thmax = EtaToTheta(-1.4); // theta max. <---> eta min
485 gener->SetThetaRange(thmin,thmax);
486 gener->SetOrigin(0, 0, 0); //vertex position
487 gener->SetSigma(0, 0, 3); //Sigma in (X,Y,Z) (cm) on IP position
489 AliGenHIJINGpara *hijingparam = new AliGenHIJINGpara(nParticles);
490 hijingparam->SetMomentumRange(0.2, 999);
491 gener->AddGenerator(hijingparam,"HIJING PARAM",1);
493 for (Float_t imom=0;imom<5;imom+=5){
494 Float_t pmom = imom*20;
495 Int_t nParticles2 =(imom+1);
498 AliGenBox *genboxPIP = new AliGenBox(nParticles2);
499 genboxPIP->SetPart(211);
500 genboxPIP->SetPtRange(0.2, pmom);
501 AliGenBox *genboxPIM = new AliGenBox(nParticles2);
502 genboxPIM->SetPart(-211);
503 genboxPIM->SetPtRange(0.2, pmom);
505 AliGenBox *genboxEP = new AliGenBox(nParticles2);
506 genboxEP->SetPart(11);
507 genboxEP->SetPtRange(0.1, pmom);
508 AliGenBox *genboxEM = new AliGenBox(nParticles2);
509 genboxEM->SetPart(-11);
510 genboxEM->SetPtRange(0.1, pmom);
512 AliGenBox *genboxKP = new AliGenBox(nParticles2);
513 genboxKP->SetPart(321);
514 genboxKP->SetPtRange(0.2, pmom);
515 AliGenBox *genboxKM = new AliGenBox(nParticles2);
516 genboxKM->SetPart(-321);
517 genboxKM->SetPtRange(0.2, pmom);
519 AliGenBox *genboxMP = new AliGenBox(nParticles2);
520 genboxMP->SetPart(13);
521 genboxMP->SetPtRange(0.2, pmom);
522 AliGenBox *genboxMM = new AliGenBox(nParticles2);
523 genboxMM->SetPart(-13);
524 genboxMM->SetPtRange(0.2, pmom);
526 AliGenBox *genboxPP = new AliGenBox(nParticles2);
527 genboxPP->SetPart(2212);
528 genboxPP->SetPtRange(0.2, pmom);
529 AliGenBox *genboxPM = new AliGenBox(nParticles2);
530 genboxPM->SetPart(-2212);
531 genboxPM->SetPtRange(0.2, pmom);
532 gener->AddGenerator(genboxPIP,"GENBOX",1);
533 gener->AddGenerator(genboxPIM,"GENBOX",1);
534 gener->AddGenerator(genboxEM,"GENBOX",1);
535 gener->AddGenerator(genboxEP,"GENBOX",1);
536 gener->AddGenerator(genboxKM,"GENBOX",1);
537 gener->AddGenerator(genboxKP,"GENBOX",1);
538 gener->AddGenerator(genboxMM,"GENBOX",1);
539 gener->AddGenerator(genboxMP,"GENBOX",1);
540 gener->AddGenerator(genboxPM,"GENBOX",1);
541 gener->AddGenerator(genboxPP,"GENBOX",1);
551 comment = comment.Append(":HIJINGparam N=8000");
552 AliGenHIJINGpara *gener = new AliGenHIJINGpara(86030);
553 gener->SetMomentumRange(0, 999999.);
554 gener->SetPhiRange(0., 360.);
555 // Set pseudorapidity range from -8 to 8.
556 Float_t thmin = EtaToTheta(8); // theta min. <---> eta max
557 Float_t thmax = EtaToTheta(-8); // theta max. <---> eta min
558 gener->SetThetaRange(thmin,thmax);
564 comment = comment.Append("HIJINGparam N=4000");
565 AliGenHIJINGpara *gener = new AliGenHIJINGpara(43015);
566 gener->SetMomentumRange(0, 999999.);
567 gener->SetPhiRange(0., 360.);
568 // Set pseudorapidity range from -8 to 8.
569 Float_t thmin = EtaToTheta(8); // theta min. <---> eta max
570 Float_t thmax = EtaToTheta(-8); // theta max. <---> eta min
571 gener->SetThetaRange(thmin,thmax);
577 comment = comment.Append("HIJINGparam N=2000");
578 AliGenHIJINGpara *gener = new AliGenHIJINGpara(21507);
579 gener->SetMomentumRange(0, 999999.);
580 gener->SetPhiRange(0., 360.);
581 // Set pseudorapidity range from -8 to 8.
582 Float_t thmin = EtaToTheta(8); // theta min. <---> eta max
583 Float_t thmax = EtaToTheta(-8); // theta max. <---> eta min
584 gener->SetThetaRange(thmin,thmax);
593 comment = comment.Append("HIJING cent1");
594 AliGenHijing *gener = HijingStandard();
595 // impact parameter range
596 gener->SetImpactParameterRange(0., 5.);
602 comment = comment.Append("HIJING cent2");
603 AliGenHijing *gener = HijingStandard();
604 // impact parameter range
605 gener->SetImpactParameterRange(0., 2.);
614 comment = comment.Append("HIJING per1");
615 AliGenHijing *gener = HijingStandard();
616 // impact parameter range
617 gener->SetImpactParameterRange(5., 8.6);
623 comment = comment.Append("HIJING per2");
624 AliGenHijing *gener = HijingStandard();
625 // impact parameter range
626 gener->SetImpactParameterRange(8.6, 11.2);
632 comment = comment.Append("HIJING per3");
633 AliGenHijing *gener = HijingStandard();
634 // impact parameter range
635 gener->SetImpactParameterRange(11.2, 13.2);
641 comment = comment.Append("HIJING per4");
642 AliGenHijing *gener = HijingStandard();
643 // impact parameter range
644 gener->SetImpactParameterRange(13.2, 15.);
650 comment = comment.Append("HIJING per5");
651 AliGenHijing *gener = HijingStandard();
652 // impact parameter range
653 gener->SetImpactParameterRange(15., 100.);
662 comment = comment.Append("HIJING Jet 25 GeV");
663 AliGenHijing *gener = HijingStandard();
664 // impact parameter range
665 gener->SetImpactParameterRange(0., 5.);
667 gener->SetTrigger(1);
668 gener->SetPtJet(25.);
669 gener->SetRadiation(isw);
670 gener->SetSimpleJets(!isw);
671 gener->SetJetEtaRange(-0.3,0.3);
672 gener->SetJetPhiRange(75., 165.);
679 comment = comment.Append("HIJING Jet 50 GeV");
680 AliGenHijing *gener = HijingStandard();
681 // impact parameter range
682 gener->SetImpactParameterRange(0., 5.);
684 gener->SetTrigger(1);
685 gener->SetPtJet(50.);
686 gener->SetRadiation(isw);
687 gener->SetSimpleJets(!isw);
688 gener->SetJetEtaRange(-0.3,0.3);
689 gener->SetJetPhiRange(75., 165.);
696 comment = comment.Append("HIJING Jet 75 GeV");
697 AliGenHijing *gener = HijingStandard();
698 // impact parameter range
699 gener->SetImpactParameterRange(0., 5.);
701 gener->SetTrigger(1);
702 gener->SetPtJet(75.);
703 gener->SetRadiation(isw);
704 gener->SetSimpleJets(!isw);
705 gener->SetJetEtaRange(-0.3,0.3);
706 gener->SetJetPhiRange(75., 165.);
713 comment = comment.Append("HIJING Jet 100 GeV");
714 AliGenHijing *gener = HijingStandard();
715 // impact parameter range
716 gener->SetImpactParameterRange(0., 5.);
718 gener->SetTrigger(1);
719 gener->SetPtJet(100.);
720 gener->SetRadiation(isw);
721 gener->SetSimpleJets(!isw);
722 gener->SetJetEtaRange(-0.3,0.3);
723 gener->SetJetPhiRange(75., 165.);
730 comment = comment.Append("HIJING Jet 200 GeV");
731 AliGenHijing *gener = HijingStandard();
732 // impact parameter range
733 gener->SetImpactParameterRange(0., 5.);
735 gener->SetTrigger(1);
736 gener->SetPtJet(200.);
737 gener->SetRadiation(isw);
738 gener->SetSimpleJets(!isw);
739 gener->SetJetEtaRange(-0.3,0.3);
740 gener->SetJetPhiRange(75., 165.);
749 comment = comment.Append("HIJING Gamma 25 GeV");
750 AliGenHijing *gener = HijingStandard();
751 // impact parameter range
752 gener->SetImpactParameterRange(0., 5.);
754 gener->SetTrigger(2);
755 gener->SetPtJet(25.);
756 gener->SetRadiation(isw);
757 gener->SetSimpleJets(!isw);
758 gener->SetJetEtaRange(-0.12, 0.12);
759 gener->SetJetPhiRange(220., 320.);
766 comment = comment.Append("HIJING Gamma 50 GeV");
767 AliGenHijing *gener = HijingStandard();
768 // impact parameter range
769 gener->SetImpactParameterRange(0., 5.);
771 gener->SetTrigger(2);
772 gener->SetPtJet(50.);
773 gener->SetRadiation(isw);
774 gener->SetSimpleJets(!isw);
775 gener->SetJetEtaRange(-0.12, 0.12);
776 gener->SetJetPhiRange(220., 320.);
783 comment = comment.Append("HIJING Gamma 75 GeV");
784 AliGenHijing *gener = HijingStandard();
785 // impact parameter range
786 gener->SetImpactParameterRange(0., 5.);
788 gener->SetTrigger(2);
789 gener->SetPtJet(75.);
790 gener->SetRadiation(isw);
791 gener->SetSimpleJets(!isw);
792 gener->SetJetEtaRange(-0.12, 0.12);
793 gener->SetJetPhiRange(220., 320.);
800 comment = comment.Append("HIJING Gamma 100 GeV");
801 AliGenHijing *gener = HijingStandard();
802 // impact parameter range
803 gener->SetImpactParameterRange(0., 5.);
805 gener->SetTrigger(2);
806 gener->SetPtJet(100.);
807 gener->SetRadiation(isw);
808 gener->SetSimpleJets(!isw);
809 gener->SetJetEtaRange(-0.12, 0.12);
810 gener->SetJetPhiRange(220., 320.);
817 comment = comment.Append("HIJING Gamma 200 GeV");
818 AliGenHijing *gener = HijingStandard();
819 // impact parameter range
820 gener->SetImpactParameterRange(0., 5.);
822 gener->SetTrigger(2);
823 gener->SetPtJet(200.);
824 gener->SetRadiation(isw);
825 gener->SetSimpleJets(!isw);
826 gener->SetJetEtaRange(-0.12, 0.12);
827 gener->SetJetPhiRange(220., 320.);
833 comment = comment.Append("HIJING pA");
835 AliGenCocktail *gener = new AliGenCocktail();
837 AliGenHijing *hijing = new AliGenHijing(-1);
838 // centre of mass energy
839 hijing->SetEnergyCMS(TMath::Sqrt(82./208.) * 14000.);
840 // impact parameter range
841 hijing->SetImpactParameterRange(0., 15.);
843 hijing->SetReferenceFrame("CMS");
844 hijing->SetBoostLHC(1);
846 hijing->SetProjectile("P", 1, 1);
847 hijing->SetTarget ("A", 208, 82);
848 // tell hijing to keep the full parent child chain
849 hijing->KeepFullEvent();
850 // enable jet quenching
851 hijing->SetJetQuenching(0);
853 hijing->SetShadowing(1);
854 // Don't track spectators
855 hijing->SetSpectators(0);
856 // kinematic selection
857 hijing->SetSelectAll(0);
859 AliGenSlowNucleons* gray = new AliGenSlowNucleons(1);
860 AliSlowNucleonModel* model = new AliSlowNucleonModelExp();
861 gray->SetSlowNucleonModel(model);
863 gener->AddGenerator(hijing,"Hijing pPb", 1);
864 gener->AddGenerator(gray, "Gray Particles",1);
870 comment = comment.Append(":Pythia p-p @ 14 TeV");
871 AliGenPythia *gener = new AliGenPythia(-1);
872 gener->SetMomentumRange(0,999999);
873 gener->SetThetaRange(0., 180.);
874 gener->SetYRange(-12,12);
875 gener->SetPtRange(0,1000);
876 gener->SetProcess(kPyMb);
877 gener->SetEnergyCMS(14000.);
881 case kPythia6Jets20_24:
883 comment = comment.Append(":Pythia jets 20-24 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(20., 24.);// 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.)
900 case kPythia6Jets24_29:
902 comment = comment.Append(":Pythia jets 24-29 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(24., 29.);// 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.)
919 case kPythia6Jets29_35:
921 comment = comment.Append(":Pythia jets 29-35 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(29., 35.);// 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.)
938 case kPythia6Jets35_42:
940 comment = comment.Append(":Pythia jets 35-42 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(35., 42.);// 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.)
957 case kPythia6Jets42_50:
959 comment = comment.Append(":Pythia jets 42-50 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(42., 50.);// 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.)
976 case kPythia6Jets50_60:
978 comment = comment.Append(":Pythia jets 50-60 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(50., 60.);// 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.)
995 case kPythia6Jets60_72:
997 comment = comment.Append(":Pythia jets 60-72 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(60., 72.);// 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.)
1014 case kPythia6Jets72_86:
1016 comment = comment.Append(":Pythia jets 72-86 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(72., 86.);// 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.)
1033 case kPythia6Jets86_104:
1035 comment = comment.Append(":Pythia jets 86-104 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(86., 104.);// 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.)
1052 case kPythia6Jets104_125:
1054 comment = comment.Append(":Pythia jets 105-125 GeV @ 5.5 TeV");
1055 AliGenPythia * gener = new AliGenPythia(-1);
1056 gener->SetEnergyCMS(5500.);// Centre of mass energy
1057 gener->SetProcess(kPyJets);// Process type
1058 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
1059 gener->SetJetPhiRange(0., 360.);
1060 gener->SetJetEtRange(10., 1000.);
1061 gener->SetGluonRadiation(1,1);
1062 // gener->SetPtKick(0.);
1063 // Structure function
1064 gener->SetStrucFunc(kCTEQ4L);
1065 gener->SetPtHard(104., 125.);// Pt transfer of the hard scattering
1066 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
1067 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
1071 case kPythia6Jets125_150:
1073 comment = comment.Append(":Pythia jets 125-150 GeV @ 5.5 TeV");
1074 AliGenPythia * gener = new AliGenPythia(-1);
1075 gener->SetEnergyCMS(5500.);// Centre of mass energy
1076 gener->SetProcess(kPyJets);// Process type
1077 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
1078 gener->SetJetPhiRange(0., 360.);
1079 gener->SetJetEtRange(10., 1000.);
1080 gener->SetGluonRadiation(1,1);
1081 // gener->SetPtKick(0.);
1082 // Structure function
1083 gener->SetStrucFunc(kCTEQ4L);
1084 gener->SetPtHard(125., 150.);// Pt transfer of the hard scattering
1085 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
1086 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
1090 case kPythia6Jets150_180:
1092 comment = comment.Append(":Pythia jets 150-180 GeV @ 5.5 TeV");
1093 AliGenPythia * gener = new AliGenPythia(-1);
1094 gener->SetEnergyCMS(5500.);// Centre of mass energy
1095 gener->SetProcess(kPyJets);// Process type
1096 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
1097 gener->SetJetPhiRange(0., 360.);
1098 gener->SetJetEtRange(10., 1000.);
1099 gener->SetGluonRadiation(1,1);
1100 // gener->SetPtKick(0.);
1101 // Structure function
1102 gener->SetStrucFunc(kCTEQ4L);
1103 gener->SetPtHard(150., 180.);// Pt transfer of the hard scattering
1104 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
1105 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
1111 comment = comment.Append(" D0 in Pb-Pb at 5.5 TeV");
1112 AliGenPythia * gener = new AliGenPythia(10);
1113 gener->SetProcess(kPyD0PbPbMNR);
1114 gener->SetStrucFunc(kCTEQ4L);
1115 gener->SetPtHard(2.1,-1.0);
1116 gener->SetEnergyCMS(5500.);
1117 gener->SetNuclei(208,208);
1118 gener->SetForceDecay(kHadronicD);
1119 gener->SetYRange(-2,2);
1120 gener->SetFeedDownHigherFamily(kFALSE);
1121 gener->SetStackFillOpt(AliGenPythia::kParentSelection);
1122 gener->SetCountMode(AliGenPythia::kCountParents);
1126 case kCharmSemiElPbPb5500:
1128 comment = comment.Append(" Charm in Pb-Pb at 5.5 TeV");
1129 AliGenPythia * gener = new AliGenPythia(10);
1130 gener->SetProcess(kPyCharmPbPbMNR);
1131 gener->SetStrucFunc(kCTEQ4L);
1132 gener->SetPtHard(2.1,-1.0);
1133 gener->SetEnergyCMS(5500.);
1134 gener->SetNuclei(208,208);
1135 gener->SetForceDecay(kSemiElectronic);
1136 gener->SetYRange(-2,2);
1137 gener->SetFeedDownHigherFamily(kFALSE);
1138 gener->SetCountMode(AliGenPythia::kCountParents);
1142 case kBeautySemiElPbPb5500:
1144 comment = comment.Append(" Beauty in Pb-Pb at 5.5 TeV");
1145 AliGenPythia *gener = new AliGenPythia(10);
1146 gener->SetProcess(kPyBeautyPbPbMNR);
1147 gener->SetStrucFunc(kCTEQ4L);
1148 gener->SetPtHard(2.75,-1.0);
1149 gener->SetEnergyCMS(5500.);
1150 gener->SetNuclei(208,208);
1151 gener->SetForceDecay(kSemiElectronic);
1152 gener->SetYRange(-2,2);
1153 gener->SetFeedDownHigherFamily(kFALSE);
1154 gener->SetCountMode(AliGenPythia::kCountParents);
1160 comment = comment.Append(" Cocktail for TRD at 5.5 TeV");
1161 AliGenCocktail *gener = new AliGenCocktail();
1163 AliGenParam *phi = new AliGenParam(10,
1164 new AliGenMUONlib(),
1165 AliGenMUONlib::kPhi,
1168 phi->SetPtRange(0, 100);
1169 phi->SetYRange(-1., +1.);
1170 phi->SetForceDecay(kDiElectron);
1172 AliGenParam *omega = new AliGenParam(10,
1173 new AliGenMUONlib(),
1174 AliGenMUONlib::kOmega,
1177 omega->SetPtRange(0, 100);
1178 omega->SetYRange(-1., +1.);
1179 omega->SetForceDecay(kDiElectron);
1181 AliGenParam *jpsi = new AliGenParam(10,
1182 new AliGenMUONlib(),
1183 AliGenMUONlib::kJpsiFamily,
1186 jpsi->SetPtRange(0, 100);
1187 jpsi->SetYRange(-1., +1.);
1188 jpsi->SetForceDecay(kDiElectron);
1190 AliGenParam *ups = new AliGenParam(10,
1191 new AliGenMUONlib(),
1192 AliGenMUONlib::kUpsilonFamily,
1194 ups->SetPtRange(0, 100);
1195 ups->SetYRange(-1., +1.);
1196 ups->SetForceDecay(kDiElectron);
1198 AliGenParam *charm = new AliGenParam(10,
1199 new AliGenMUONlib(),
1200 AliGenMUONlib::kCharm,
1202 charm->SetPtRange(0, 100);
1203 charm->SetYRange(-1.5, +1.5);
1204 charm->SetForceDecay(kSemiElectronic);
1207 AliGenParam *beauty = new AliGenParam(10,
1208 new AliGenMUONlib(),
1209 AliGenMUONlib::kBeauty,
1211 beauty->SetPtRange(0, 100);
1212 beauty->SetYRange(-1.5, +1.5);
1213 beauty->SetForceDecay(kSemiElectronic);
1215 AliGenParam *beautyJ = new AliGenParam(10,
1216 new AliGenMUONlib(),
1217 AliGenMUONlib::kBeauty,
1219 beautyJ->SetPtRange(0, 100);
1220 beautyJ->SetYRange(-1.5, +1.5);
1221 beautyJ->SetForceDecay(kBJpsiDiElectron);
1223 gener->AddGenerator(phi,"Phi",1);
1224 gener->AddGenerator(omega,"Omega",1);
1225 gener->AddGenerator(jpsi,"J/psi",1);
1226 gener->AddGenerator(ups,"Upsilon",1);
1227 gener->AddGenerator(charm,"Charm",1);
1228 gener->AddGenerator(beauty,"Beauty",1);
1229 gener->AddGenerator(beautyJ,"J/Psi from Beauty",1);
1235 comment = comment.Append(" Jet-jet at 5.5 TeV");
1236 AliGenPythia *gener = new AliGenPythia(-1);
1237 gener->SetEnergyCMS(5500.);
1238 gener->SetProcess(kPyJets);
1239 Double_t ptHardMin=10.0, ptHardMax=-1.0;
1240 gener->SetPtHard(ptHardMin,ptHardMax);
1241 gener->SetYHard(-0.7,0.7);
1242 gener->SetJetEtaRange(-0.2,0.2);
1243 gener->SetEventListRange(0,1);
1249 comment = comment.Append(" Gamma-jet at 5.5 TeV");
1250 AliGenPythia *gener = new AliGenPythia(-1);
1251 gener->SetEnergyCMS(5500.);
1252 gener->SetProcess(kPyDirectGamma);
1253 Double_t ptHardMin=10.0, ptHardMax=-1.0;
1254 gener->SetPtHard(ptHardMin,ptHardMax);
1255 gener->SetYHard(-1.0,1.0);
1256 gener->SetGammaEtaRange(-0.13,0.13);
1257 gener->SetGammaPhiRange(210.,330.);
1258 gener->SetEventListRange(0,1);
1262 case kMuonCocktailCent1:
1264 comment = comment.Append(" Muon Cocktail Cent1");
1265 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1266 gener->SetPtRange(0.4,100.); // Transverse momentum range
1267 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1268 gener->SetYRange(-4.0,-2.4);
1269 gener->SetMuonPtCut(0.8);
1270 gener->SetMuonThetaCut(171.,178.);
1271 gener->SetMuonMultiplicity(2);
1272 gener->SetImpactParameterRange(0.,5.); //Centrality class Cent1 for PDC04
1276 case kMuonCocktailPer1:
1278 comment = comment.Append(" Muon Cocktail Per1");
1279 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1280 gener->SetPtRange(0.0,100.); // Transverse momentum range
1281 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1282 gener->SetYRange(-4.0,-2.4);
1283 gener->SetMuonPtCut(0.8);
1284 gener->SetMuonThetaCut(171.,178.);
1285 gener->SetMuonMultiplicity(2);
1286 gener->SetImpactParameterRange(5.,8.6);//Centrality class Per1 for PDC04
1290 case kMuonCocktailPer4:
1292 comment = comment.Append(" Muon Cocktail Per4");
1293 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1294 gener->SetPtRange(0.0,100.); // Transverse momentum range
1295 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1296 gener->SetYRange(-4.0,-2.4);
1297 gener->SetMuonPtCut(0.8);
1298 gener->SetMuonThetaCut(171.,178.);
1299 gener->SetMuonMultiplicity(2);
1300 gener->SetImpactParameterRange(13.2,15.0);//Centrality class Per4 for PDC04
1304 case kMuonCocktailCent1HighPt:
1306 comment = comment.Append(" Muon Cocktail HighPt Cent1");
1307 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1308 gener->SetPtRange(0.0,100.); // Transverse momentum range
1309 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1310 gener->SetYRange(-4.0,-2.4);
1311 gener->SetMuonPtCut(2.5);
1312 gener->SetMuonThetaCut(171.,178.);
1313 gener->SetMuonMultiplicity(2);
1314 gener->SetImpactParameterRange(0.,5.); //Centrality class Cent1 for PDC04
1318 case kMuonCocktailPer1HighPt :
1320 comment = comment.Append(" Muon Cocktail HighPt Per1");
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(2.5);
1326 gener->SetMuonThetaCut(171.,178.);
1327 gener->SetMuonMultiplicity(2);
1328 gener->SetImpactParameterRange(5.,8.6);//Centrality class Per1 for PDC04
1332 case kMuonCocktailPer4HighPt:
1334 comment = comment.Append(" Muon Cocktail HighPt Per4");
1335 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1336 gener->SetPtRange(0.0,100.); // Transverse momentum range
1337 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1338 gener->SetYRange(-4.0,-2.4);
1339 gener->SetMuonPtCut(2.5);
1340 gener->SetMuonThetaCut(171.,178.);
1341 gener->SetMuonMultiplicity(2);
1342 gener->SetImpactParameterRange(13.2,15.0);//Centrality class Per4 for PDC04
1346 case kMuonCocktailCent1Single:
1348 comment = comment.Append(" Muon Cocktail Single Cent1");
1349 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1350 gener->SetPtRange(0.0,100.); // Transverse momentum range
1351 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1352 gener->SetYRange(-4.0,-2.4);
1353 gener->SetMuonPtCut(0.8);
1354 gener->SetMuonThetaCut(171.,178.);
1355 gener->SetMuonMultiplicity(1);
1356 gener->SetImpactParameterRange(0.,5.); //Centrality class Cent1 for PDC04
1360 case kMuonCocktailPer1Single :
1362 comment = comment.Append(" Muon Cocktail Single Per1");
1363 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1364 gener->SetPtRange(0.0,100.); // Transverse momentum range
1365 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1366 gener->SetYRange(-4.0,-2.4);
1367 gener->SetMuonPtCut(0.8);
1368 gener->SetMuonThetaCut(171.,178.);
1369 gener->SetMuonMultiplicity(1);
1370 gener->SetImpactParameterRange(5.,8.6);//Centrality class Per1 for PDC04
1371 gener->SetNumberOfParticipants(229.3);//Centrality class Per1 for PDC04
1375 case kMuonCocktailPer4Single:
1377 comment = comment.Append(" Muon Cocktail Single Per4");
1378 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1379 gener->SetPtRange(0.0,100.); // Transverse momentum range
1380 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1381 gener->SetYRange(-4.0,-2.4);
1382 gener->SetMuonPtCut(0.8);
1383 gener->SetMuonThetaCut(171.,178.);
1384 gener->SetMuonMultiplicity(1);
1385 gener->SetImpactParameterRange(13.2,15.0);//Centrality class Per4 for PDC04
1391 comment = comment.Append(" Flow with dN/deta = 2000, vn = 2%");
1392 gGener = GeVSimStandard(2000., 2.);
1398 comment = comment.Append(" Flow with dN/deta = 2000, vn = 10%");
1399 gGener = GeVSimStandard(2000., 10.);
1405 comment = comment.Append(" Flow with dN/deta = 2000, vn = 6%");
1406 gGener = GeVSimStandard(2000., 6.);
1412 comment = comment.Append(" Flow with dN/deta = 5000, vn = 6%");
1413 gGener = GeVSimStandard(5000., 6.);
1420 AliGenCocktail *gener = new AliGenCocktail();
1423 // Charm production by Pythia
1424 AliGenPythia * genpyc = new AliGenPythia(230);
1425 genpyc->SetProcess(kPyCharmPbPbMNR);
1426 genpyc->SetStrucFunc(kCTEQ4L);
1427 genpyc->SetPtHard(2.1,-1.0);
1428 genpyc->SetEnergyCMS(5500.);
1429 genpyc->SetNuclei(208,208);
1430 genpyc->SetYRange(-999,999);
1431 genpyc->SetForceDecay(kAll);
1432 genpyc->SetFeedDownHigherFamily(kFALSE);
1433 genpyc->SetCountMode(AliGenPythia::kCountParents);
1435 // Beauty production by Pythia
1436 AliGenPythia * genpyb = new AliGenPythia(9);
1437 genpyb->SetProcess(kPyBeautyPbPbMNR);
1438 genpyb->SetStrucFunc(kCTEQ4L);
1439 genpyb->SetPtHard(2.75,-1.0);
1440 genpyb->SetEnergyCMS(5500.);
1441 genpyb->SetNuclei(208,208);
1442 genpyb->SetYRange(-999,999);
1443 genpyb->SetForceDecay(kAll);
1444 genpyb->SetFeedDownHigherFamily(kFALSE);
1445 genpyb->SetCountMode(AliGenPythia::kCountParents);
1449 AliGenSTRANGElib *lib = new AliGenSTRANGElib();
1452 particle = kXiMinus;
1453 AliGenParam *genXi = new AliGenParam(16,particle,lib->GetPt(particle),lib->GetY(particle),lib->GetIp(particle));
1454 genXi->SetPtRange(0., 12.);
1455 genXi->SetYRange(-1.1, 1.1);
1456 genXi->SetForceDecay(kNoDecay);
1460 particle = kOmegaMinus;
1461 AliGenParam *genOmega = new AliGenParam(10,particle,lib->GetPt(particle),lib->GetY(particle),lib->GetIp(particle));
1462 genOmega->SetPtRange(0, 12.);
1463 genOmega->SetYRange(-1.1, 1.1);
1464 genOmega->SetForceDecay(kNoDecay);
1468 AliGenHijing *genHi = HijingStandard();
1469 genHi->SwitchOffHeavyQuarks(kTRUE);
1470 genHi->SetImpactParameterRange(0.,5.);
1472 // Add everything to the cocktail and shake ...
1473 gener->AddGenerator(genHi, "Hijing cent1", 1);
1474 gener->AddGenerator(genpyc, "Extra charm", 1);
1475 gener->AddGenerator(genpyb, "Extra beauty", 1);
1476 gener->AddGenerator(genXi, "Xi" , 1);
1477 gener->AddGenerator(genOmega, "Omega", 1);
1487 AliGenHijing* HijingStandard()
1489 AliGenHijing *gener = new AliGenHijing(-1);
1490 // centre of mass energy
1491 gener->SetEnergyCMS(5500.);
1493 gener->SetReferenceFrame("CMS");
1495 gener->SetProjectile("A", 208, 82);
1496 gener->SetTarget ("A", 208, 82);
1497 // tell hijing to keep the full parent child chain
1498 gener->KeepFullEvent();
1499 // enable jet quenching
1500 gener->SetJetQuenching(1);
1502 gener->SetShadowing(1);
1503 // neutral pion and heavy particle decays switched off
1504 gener->SetDecaysOff(1);
1505 // Don't track spectators
1506 gener->SetSpectators(0);
1507 // kinematic selection
1508 gener->SetSelectAll(0);
1512 AliGenGeVSim* GeVSimStandard(Float_t mult, Float_t vn)
1514 AliGenGeVSim* gener = new AliGenGeVSim(0);
1516 // Mult is the number of charged particles in |eta| < 0.5
1519 // Sigma of the Gaussian dN/deta
1520 Float_t sigma_eta = 2.75;
1523 Float_t etamax = 7.00;
1526 // Scale from multiplicity in |eta| < 0.5 to |eta| < |etamax|
1527 Float_t mm = mult * (TMath::Erf(etamax/sigma_eta/sqrt(2.)) / TMath::Erf(0.5/sigma_eta/sqrt(2.)));
1529 // Scale from charged to total multiplicity
1539 // 78% Pions (26% pi+, 26% pi-, 26% p0) T = 250 MeV
1540 AliGeVSimParticle *pp = new AliGeVSimParticle(kPiPlus, 1, 0.26 * mm, 0.25, sigma_eta) ;
1541 AliGeVSimParticle *pm = new AliGeVSimParticle(kPiMinus, 1, 0.26 * mm, 0.25, sigma_eta) ;
1542 AliGeVSimParticle *p0 = new AliGeVSimParticle(kPi0, 1, 0.26 * mm, 0.25, sigma_eta) ;
1544 // 12% Kaons (3% K0short, 3% K0long, 3% K+, 3% K-) T = 300 MeV
1545 AliGeVSimParticle *ks = new AliGeVSimParticle(kK0Short, 1, 0.03 * mm, 0.30, sigma_eta) ;
1546 AliGeVSimParticle *kl = new AliGeVSimParticle(kK0Long, 1, 0.03 * mm, 0.30, sigma_eta) ;
1547 AliGeVSimParticle *kp = new AliGeVSimParticle(kKPlus, 1, 0.03 * mm, 0.30, sigma_eta) ;
1548 AliGeVSimParticle *km = new AliGeVSimParticle(kKMinus, 1, 0.03 * mm, 0.30, sigma_eta) ;
1550 // 10% Protons / Neutrons (5% Protons, 5% Neutrons) T = 250 MeV
1551 AliGeVSimParticle *pr = new AliGeVSimParticle(kProton, 1, 0.05 * mm, 0.25, sigma_eta) ;
1552 AliGeVSimParticle *ne = new AliGeVSimParticle(kNeutron, 1, 0.05 * mm, 0.25, sigma_eta) ;
1554 // Set Elliptic Flow properties
1556 Float_t pTsaturation = 2. ;
1558 pp->SetEllipticParam(vn,pTsaturation,0.) ;
1559 pm->SetEllipticParam(vn,pTsaturation,0.) ;
1560 p0->SetEllipticParam(vn,pTsaturation,0.) ;
1561 pr->SetEllipticParam(vn,pTsaturation,0.) ;
1562 ne->SetEllipticParam(vn,pTsaturation,0.) ;
1563 ks->SetEllipticParam(vn,pTsaturation,0.) ;
1564 kl->SetEllipticParam(vn,pTsaturation,0.) ;
1565 kp->SetEllipticParam(vn,pTsaturation,0.) ;
1566 km->SetEllipticParam(vn,pTsaturation,0.) ;
1568 // Set Direct Flow properties
1569 pp->SetDirectedParam(vn,1.0,0.) ;
1570 pm->SetDirectedParam(vn,1.0,0.) ;
1571 p0->SetDirectedParam(vn,1.0,0.) ;
1572 pr->SetDirectedParam(vn,1.0,0.) ;
1573 ne->SetDirectedParam(vn,1.0,0.) ;
1574 ks->SetDirectedParam(vn,1.0,0.) ;
1575 kl->SetDirectedParam(vn,1.0,0.) ;
1576 kp->SetDirectedParam(vn,1.0,0.) ;
1577 km->SetDirectedParam(vn,1.0,0.) ;
1579 // Add particles to the list
1580 gener->AddParticleType(pp) ;
1581 gener->AddParticleType(pm) ;
1582 gener->AddParticleType(p0) ;
1583 gener->AddParticleType(pr) ;
1584 gener->AddParticleType(ne) ;
1585 gener->AddParticleType(ks) ;
1586 gener->AddParticleType(kl) ;
1587 gener->AddParticleType(kp) ;
1588 gener->AddParticleType(km) ;
1590 // Random Ev.Plane ----------------------------------
1591 TF1 *rpa = new TF1("gevsimPsiRndm","1", 0, 360);
1592 // --------------------------------------------------
1593 gener->SetPtRange(0., 9.) ; // Use a resonable range! (used for bin size in numerical integration)
1594 gener->SetPhiRange(0, 360);
1596 // Set pseudorapidity range
1597 Float_t thmin = EtaToTheta(+etamax);
1598 Float_t thmax = EtaToTheta(-etamax);
1599 gener->SetThetaRange(thmin,thmax);
1605 void ProcessEnvironmentVars()
1608 if (gSystem->Getenv("CONFIG_RUN_TYPE")) {
1609 for (Int_t iRun = 0; iRun < kRunMax; iRun++) {
1610 if (strcmp(gSystem->Getenv("CONFIG_RUN_TYPE"), pprRunName[iRun])==0) {
1611 srun = (PprRun_t)iRun;
1612 cout<<"Run type set to "<<pprRunName[iRun]<<endl;
1617 // Random Number seed
1618 if (gSystem->Getenv("CONFIG_SEED")) {
1619 sseed = atoi(gSystem->Getenv("CONFIG_SEED"));