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