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