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