Fixed a few problems
[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>
12#include <TGeant3.h>
13#include "STEER/AliRunLoader.h"
14#include "STEER/AliRun.h"
15#include "STEER/AliConfig.h"
16#include "STEER/AliGenerator.h"
17#include "PYTHIA6/AliDecayerPythia.h"
18#include "EVGEN/AliGenHIJINGpara.h"
19#include "THijing/AliGenHijing.h"
20#include "EVGEN/AliGenCocktail.h"
21#include "EVGEN/AliGenSlowNucleons.h"
22#include "EVGEN/AliSlowNucleonModelExp.h"
78e738e5 23#include "EVGEN/AliGenParam.h"
e860c7ea 24#include "EVGEN/AliGenMUONlib.h"
b984b0e1 25#include "EVGEN/AliGenMUONCocktail.h"
de78d77f 26#include "PYTHIA6/AliGenPythia.h"
27#include "STEER/AliMagFMaps.h"
28#include "STRUCT/AliBODY.h"
29#include "STRUCT/AliMAG.h"
30#include "STRUCT/AliABSOv0.h"
31#include "STRUCT/AliDIPOv2.h"
32#include "STRUCT/AliHALL.h"
33#include "STRUCT/AliFRAMEv2.h"
34#include "STRUCT/AliSHILv2.h"
35#include "STRUCT/AliPIPEv0.h"
e1cd8da1 36#include "ITS/AliITSvPPRasymmFMD.h"
de78d77f 37#include "TPC/AliTPCv2.h"
de78d77f 38#include "TOF/AliTOFv4T0.h"
b4f90c20 39#include "RICH/AliRICHv1.h"
de78d77f 40#include "ZDC/AliZDCv2.h"
41#include "TRD/AliTRDv1.h"
42#include "FMD/AliFMDv1.h"
43#include "MUON/AliMUONv1.h"
b984b0e1 44#include "MUON/AliMUONSt1GeometryBuilderV2.h"
d13ed8f3 45#include "MUON/AliMUONSt2GeometryBuilder.h"
46#include "MUON/AliMUONSlatGeometryBuilder.h"
47#include "MUON/AliMUONTriggerGeometryBuilder.h"
de78d77f 48#include "PHOS/AliPHOSv1.h"
49#include "PMD/AliPMDv1.h"
50#include "START/AliSTARTv1.h"
51#include "EMCAL/AliEMCALv1.h"
52#include "CRT/AliCRTv0.h"
13051068 53#include "VZERO/AliVZEROv2.h"
de78d77f 54#endif
55
36d4cb82 56enum PprRun_t
57{
58 test50,
59 kParam_8000, kParam_4000, kParam_2000,
60 kHijing_cent1, kHijing_cent2,
61 kHijing_per1, kHijing_per2, kHijing_per3, kHijing_per4, kHijing_per5,
433185a9 62 kHijing_jj25, kHijing_jj50, kHijing_jj75, kHijing_jj100, kHijing_jj200,
bc3e0a09 63 kHijing_gj25, kHijing_gj50, kHijing_gj75, kHijing_gj100, kHijing_gj200,
13051068 64 kHijing_pA, kPythia6,
65 kPythia6Jets20_24, kPythia6Jets24_29, kPythia6Jets29_35,
66 kPythia6Jets35_42, kPythia6Jets42_50, kPythia6Jets50_60,
67 kPythia6Jets60_72, kPythia6Jets72_86, kPythia6Jets86_104,
68 kPythia6Jets104_125, kPythia6Jets125_150, kPythia6Jets150_180,
5d185da5 69 kD0PbPb5500, kCharmSemiElPbPb5500, kBeautySemiElPbPb5500,
e860c7ea 70 kCocktailTRD, kPyJJ, kPyGJ,
b984b0e1 71 kMuonCocktailCent1, kMuonCocktailPer1, kMuonCocktailPer4,
72 kMuonCocktailCent1HighPt, kMuonCocktailPer1HighPt, kMuonCocktailPer4HighPt,
73 kMuonCocktailCent1Single, kMuonCocktailPer1Single, kMuonCocktailPer4Single,
74 kRunMax
3f7a17bb 75};
76
77const char* pprRunName[kRunMax] = {
78 "test50",
79 "kParam_8000", "kParam_4000", "kParam_2000",
80 "kHijing_cent1", "kHijing_cent2",
81 "kHijing_per1", "kHijing_per2", "kHijing_per3", "kHijing_per4",
82 "kHijing_per5",
83 "kHijing_jj25", "kHijing_jj50", "kHijing_jj75", "kHijing_jj100",
84 "kHijing_jj200",
85 "kHijing_gj25", "kHijing_gj50", "kHijing_gj75", "kHijing_gj100",
13051068 86 "kHijing_gj200", "kHijing_pA", "kPythia6",
87 "kPythia6Jets20_24", "kPythia6Jets24_29", "kPythia6Jets29_35",
88 "kPythia6Jets35_42", "kPythia6Jets42_50", "kPythia6Jets50_60",
89 "kPythia6Jets60_72", "kPythia6Jets72_86", "kPythia6Jets86_104",
90 "kPythia6Jets104_125", "kPythia6Jets125_150", "kPythia6Jets150_180",
5d185da5 91 "kD0PbPb5500", "kCharmSemiElPbPb5500", "kBeautySemiElPbPb5500",
e860c7ea 92 "kCocktailTRD", "kPyJJ", "kPyGJ",
b984b0e1 93 "kMuonCocktailCent1", "kMuonCocktailPer1", "kMuonCocktailPer4",
94 "kMuonCocktailCent1HighPt", "kMuonCocktailPer1HighPt", "kMuonCocktailPer4HighPt",
95 "kMuonCocktailCent1Single", "kMuonCocktailPer1Single", "kMuonCocktailPer4Single"
36d4cb82 96};
97
98enum PprGeo_t
99{
100 kHoles, kNoHoles
101};
102
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;
e860c7ea 116static PprRun_t srun = kCocktailTRD;
117static PprGeo_t sgeo = kNoHoles;
de78d77f 118static PprRad_t srad = kGluonRadiation;
b8cec322 119static PprMag_t smag = k5kG;
3f7a17bb 120static Int_t sseed = 12345; //Set 0 to use the current time
cf3f928d 121
36d4cb82 122// Comment line
123static TString comment;
124
de78d77f 125// Functions
126Float_t EtaToTheta(Float_t arg);
127AliGenerator* GeneratorFactory(PprRun_t srun);
128AliGenHijing* HijingStandard();
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
de78d77f 149 new TGeant3("C++ Interface to Geant3");
36d4cb82 150
de78d77f 151 AliRunLoader* rl=0x0;
36d4cb82 152
de78d77f 153 cout<<"Config.C: Creating Run Loader ..."<<endl;
154 rl = AliRunLoader::Open("galice.root",
5295b11b 155 AliConfig::GetDefaultEventFolderName(),
de78d77f 156 "recreate");
157 if (rl == 0x0)
158 {
159 gAlice->Fatal("Config.C","Can not instatiate the Run Loader");
160 return;
161 }
162 rl->SetCompressionLevel(2);
163 rl->SetNumberOfEventsPerFile(3);
164 gAlice->SetRunLoader(rl);
36d4cb82 165
36d4cb82 166 //
167 // Set External decayer
168 AliDecayer *decayer = new AliDecayerPythia();
169
5d185da5 170
171 switch (srun) {
172 case kD0PbPb5500:
173 decayer->SetForceDecay(kHadronicD);
174 break;
175 case kCharmSemiElPbPb5500:
176 decayer->SetForceDecay(kSemiElectronic);
177 break;
178 case kBeautySemiElPbPb5500:
179 decayer->SetForceDecay(kSemiElectronic);
180 break;
181 default:
182 decayer->SetForceDecay(kAll);
183 break;
184 }
36d4cb82 185 decayer->Init();
186 gMC->SetExternalDecayer(decayer);
187 //
188 //
189 //=======================================================================
36d4cb82 190 //
191 //=======================================================================
192 // ************* STEERING parameters FOR ALICE SIMULATION **************
193 // --- Specify event type to be tracked through the ALICE setup
194 // --- All positions are in cm, angles in degrees, and P and E in GeV
195
6a3df6c9 196 gMC->SetProcess("DCAY",1);
197 gMC->SetProcess("PAIR",1);
198 gMC->SetProcess("COMP",1);
199 gMC->SetProcess("PHOT",1);
200 gMC->SetProcess("PFIS",0);
201 gMC->SetProcess("DRAY",0);
202 gMC->SetProcess("ANNI",1);
203 gMC->SetProcess("BREM",1);
204 gMC->SetProcess("MUNU",1);
205 gMC->SetProcess("CKOV",1);
206 gMC->SetProcess("HADR",1);
207 gMC->SetProcess("LOSS",2);
208 gMC->SetProcess("MULS",1);
209 gMC->SetProcess("RAYL",1);
210
211 Float_t cut = 1.e-3; // 1MeV cut by default
212 Float_t tofmax = 1.e10;
213
214 gMC->SetCut("CUTGAM", cut);
215 gMC->SetCut("CUTELE", cut);
216 gMC->SetCut("CUTNEU", cut);
217 gMC->SetCut("CUTHAD", cut);
218 gMC->SetCut("CUTMUO", cut);
219 gMC->SetCut("BCUTE", cut);
220 gMC->SetCut("BCUTM", cut);
221 gMC->SetCut("DCUTE", cut);
222 gMC->SetCut("DCUTM", cut);
223 gMC->SetCut("PPCUTM", cut);
224 gMC->SetCut("TOFMAX", tofmax);
225
36d4cb82 226
227// Generator Configuration
5f86d7e6 228 gAlice->SetDebug(0);
de78d77f 229 AliGenerator* gener = GeneratorFactory(srun);
36d4cb82 230 gener->SetOrigin(0, 0, 0); // vertex position
231 gener->SetSigma(0, 0, 5.3); // Sigma in (X,Y,Z) (cm) on IP position
232 gener->SetCutVertexZ(1.); // Truncate at 1 sigma
233 gener->SetVertexSmear(kPerEvent);
234 gener->SetTrackingFlag(1);
235 gener->Init();
cf3f928d 236
de78d77f 237 if (smag == k2kG) {
cf3f928d 238 comment = comment.Append(" | L3 field 0.2 T");
de78d77f 239 } else if (smag == k4kG) {
cf3f928d 240 comment = comment.Append(" | L3 field 0.4 T");
de78d77f 241 } else if (smag == k5kG) {
cf3f928d 242 comment = comment.Append(" | L3 field 0.5 T");
243 }
244
245
de78d77f 246 if (srad == kGluonRadiation)
36d4cb82 247 {
248 comment = comment.Append(" | Gluon Radiation On");
249
250 } else {
251 comment = comment.Append(" | Gluon Radiation Off");
252 }
253
de78d77f 254 if (sgeo == kHoles)
36d4cb82 255 {
256 comment = comment.Append(" | Holes for PHOS/RICH");
257
258 } else {
259 comment = comment.Append(" | No holes for PHOS/RICH");
260 }
261
de78d77f 262 printf("\n \n Comment: %s \n \n", comment.Data());
36d4cb82 263
264
265// Field (L3 0.4 T)
de78d77f 266 AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., smag);
b8cec322 267 field->SetL3ConstField(0); //Using const. field in the barrel
de78d77f 268 rl->CdGAFile();
c9397ade 269 gAlice->SetField(field);
36d4cb82 270//
271 Int_t iABSO = 1;
36d4cb82 272 Int_t iDIPO = 1;
273 Int_t iFMD = 1;
274 Int_t iFRAME = 1;
275 Int_t iHALL = 1;
276 Int_t iITS = 1;
277 Int_t iMAG = 1;
278 Int_t iMUON = 1;
279 Int_t iPHOS = 1;
280 Int_t iPIPE = 1;
281 Int_t iPMD = 1;
282 Int_t iRICH = 1;
283 Int_t iSHIL = 1;
284 Int_t iSTART = 1;
285 Int_t iTOF = 1;
286 Int_t iTPC = 1;
287 Int_t iTRD = 1;
288 Int_t iZDC = 1;
7d0b3b31 289 Int_t iEMCAL = 1;
cf3f928d 290 Int_t iVZERO = 1;
21e394f9 291 Int_t iCRT = 0;
36d4cb82 292
293 //=================== Alice BODY parameters =============================
294 AliBODY *BODY = new AliBODY("BODY", "Alice envelop");
295
296
297 if (iMAG)
298 {
299 //=================== MAG parameters ============================
300 // --- Start with Magnet since detector layouts may be depending ---
301 // --- on the selected Magnet dimensions ---
302 AliMAG *MAG = new AliMAG("MAG", "Magnet");
303 }
304
305
306 if (iABSO)
307 {
308 //=================== ABSO parameters ============================
309 AliABSO *ABSO = new AliABSOv0("ABSO", "Muon Absorber");
310 }
311
312 if (iDIPO)
313 {
314 //=================== DIPO parameters ============================
315
316 AliDIPO *DIPO = new AliDIPOv2("DIPO", "Dipole version 2");
317 }
318
319 if (iHALL)
320 {
321 //=================== HALL parameters ============================
322
323 AliHALL *HALL = new AliHALL("HALL", "Alice Hall");
324 }
325
326
327 if (iFRAME)
328 {
329 //=================== FRAME parameters ============================
330
331 AliFRAMEv2 *FRAME = new AliFRAMEv2("FRAME", "Space Frame");
de78d77f 332 if (sgeo == kHoles) {
36d4cb82 333 FRAME->SetHoles(1);
334 } else {
335 FRAME->SetHoles(0);
336 }
337 }
338
339 if (iSHIL)
340 {
341 //=================== SHIL parameters ============================
342
21e394f9 343 AliSHIL *SHIL = new AliSHILv2("SHIL", "Shielding Version 2");
36d4cb82 344 }
345
346
347 if (iPIPE)
348 {
349 //=================== PIPE parameters ============================
350
351 AliPIPE *PIPE = new AliPIPEv0("PIPE", "Beam Pipe");
352 }
353
21e394f9 354 if(iITS) {
36d4cb82 355
e810b5b5 356 //=================== ITS parameters ============================
36d4cb82 357 //
358 // As the innermost detector in ALICE, the Inner Tracking System "impacts" on
359 // almost all other detectors. This involves the fact that the ITS geometry
360 // still has several options to be followed in parallel in order to determine
361 // the best set-up which minimizes the induced background. All the geometries
362 // available to date are described in the following. Read carefully the comments
363 // and use the default version (the only one uncommented) unless you are making
364 // comparisons and you know what you are doing. In this case just uncomment the
365 // ITS geometry you want to use and run Aliroot.
366 //
367 // Detailed geometries:
368 //
369 //
370 //AliITS *ITS = new AliITSv5symm("ITS","Updated ITS TDR detailed version with symmetric services");
371 //
372 //AliITS *ITS = new AliITSv5asymm("ITS","Updates ITS TDR detailed version with asymmetric services");
373 //
e1cd8da1 374 AliITSvPPRasymmFMD *ITS = new AliITSvPPRasymmFMD("ITS","New ITS PPR detailed version with asymmetric services");
375 ITS->SetMinorVersion(2); // don't touch this parameter if you're not an ITS developer
376 ITS->SetReadDet(kTRUE); // don't touch this parameter if you're not an ITS developer
36d4cb82 377 // ITS->SetWriteDet("$ALICE_ROOT/ITS/ITSgeometry_vPPRasymm2.det"); // don't touch this parameter if you're not an ITS developer
e810b5b5 378 ITS->SetThicknessDet1(200.); // detector thickness on layer 1 must be in the range [100,300]
379 ITS->SetThicknessDet2(200.); // detector thickness on layer 2 must be in the range [100,300]
380 ITS->SetThicknessChip1(200.); // chip thickness on layer 1 must be in the range [150,300]
381 ITS->SetThicknessChip2(200.); // chip thickness on layer 2 must be in the range [150,300]
382 ITS->SetRails(0); // 1 --> rails in ; 0 --> rails out
383 ITS->SetCoolingFluid(1); // 1 --> water ; 0 --> freon
e1cd8da1 384
36d4cb82 385 // Coarse geometries (warning: no hits are produced with these coarse geometries and they unuseful
386 // for reconstruction !):
387 //
388 //
389 //AliITSvPPRcoarseasymm *ITS = new AliITSvPPRcoarseasymm("ITS","New ITS PPR coarse version with asymmetric services");
e810b5b5 390 //ITS->SetRails(0); // 1 --> rails in ; 0 --> rails out
36d4cb82 391 //ITS->SetSupportMaterial(0); // 0 --> Copper ; 1 --> Aluminum ; 2 --> Carbon
392 //
393 //AliITS *ITS = new AliITSvPPRcoarsesymm("ITS","New ITS PPR coarse version with symmetric 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 //
398 //
399 // Geant3 <-> EUCLID conversion
400 // ============================
401 //
402 // SetEUCLID is a flag to output (=1) or not to output (=0) both geometry and
403 // media to two ASCII files (called by default ITSgeometry.euc and
404 // ITSgeometry.tme) in a format understandable to the CAD system EUCLID.
405 // The default (=0) means that you dont want to use this facility.
406 //
e810b5b5 407 ITS->SetEUCLID(0);
408 }
36d4cb82 409
410 if (iTPC)
411 {
412 //============================ TPC parameters ================================
413 // --- This allows the user to specify sectors for the SLOW (TPC geometry 2)
414 // --- Simulator. SecAL (SecAU) <0 means that ALL lower (upper)
415 // --- sectors are specified, any value other than that requires at least one
416 // --- sector (lower or upper)to be specified!
417 // --- Reminder: sectors 1-24 are lower sectors (1-12 -> z>0, 13-24 -> z<0)
418 // --- sectors 25-72 are the upper ones (25-48 -> z>0, 49-72 -> z<0)
419 // --- SecLows - number of lower sectors specified (up to 6)
420 // --- SecUps - number of upper sectors specified (up to 12)
421 // --- Sens - sensitive strips for the Slow Simulator !!!
422 // --- This does NOT work if all S or L-sectors are specified, i.e.
423 // --- if SecAL or SecAU < 0
424 //
425 //
426 //-----------------------------------------------------------------------------
427
428 // gROOT->LoadMacro("SetTPCParam.C");
429 // AliTPCParam *param = SetTPCParam();
430 AliTPC *TPC = new AliTPCv2("TPC", "Default");
431
432 // All sectors included
433 TPC->SetSecAL(-1);
434 TPC->SetSecAU(-1);
435
436 }
437
e810b5b5 438
36d4cb82 439 if (iTOF) {
36d4cb82 440 //=================== TOF parameters ============================
2253ef47 441 AliTOF *TOF = new AliTOFv4T0("TOF", "normal TOF");
36d4cb82 442 }
443
e810b5b5 444
36d4cb82 445 if (iRICH)
446 {
447 //=================== RICH parameters ===========================
b4f90c20 448 AliRICH *RICH = new AliRICHv1("RICH", "normal RICH");
36d4cb82 449
450 }
451
452
453 if (iZDC)
454 {
455 //=================== ZDC parameters ============================
456
457 AliZDC *ZDC = new AliZDCv2("ZDC", "normal ZDC");
458 }
459
36d4cb82 460 if (iTRD)
461 {
462 //=================== TRD parameters ============================
463
464 AliTRD *TRD = new AliTRDv1("TRD", "TRD slow simulator");
465
466 // Select the gas mixture (0: 97% Xe + 3% isobutane, 1: 90% Xe + 10% CO2)
467 TRD->SetGasMix(1);
de78d77f 468 if (sgeo == kHoles) {
36d4cb82 469 // With hole in front of PHOS
470 TRD->SetPHOShole();
471 // With hole in front of RICH
472 TRD->SetRICHhole();
473 }
474 // Switch on TR
475 AliTRDsim *TRDsim = TRD->CreateTR();
476 }
477
478 if (iFMD)
479 {
480 //=================== FMD parameters ============================
657f2294 481 AliFMD *FMD = new AliFMDv1("FMD", "normal FMD");
36d4cb82 482 }
483
484 if (iMUON)
485 {
486 //=================== MUON parameters ===========================
487
488 AliMUON *MUON = new AliMUONv1("MUON", "default");
b984b0e1 489 MUON->AddGeometryBuilder(new AliMUONSt1GeometryBuilderV2(MUON));
d13ed8f3 490 MUON->AddGeometryBuilder(new AliMUONSt2GeometryBuilder(MUON));
491 MUON->AddGeometryBuilder(new AliMUONSlatGeometryBuilder(MUON));
492 MUON->AddGeometryBuilder(new AliMUONTriggerGeometryBuilder(MUON));
36d4cb82 493 }
494 //=================== PHOS parameters ===========================
495
496 if (iPHOS)
497 {
498 AliPHOS *PHOS = new AliPHOSv1("PHOS", "IHEP");
499 }
500
501
502 if (iPMD)
503 {
504 //=================== PMD parameters ============================
505 AliPMD *PMD = new AliPMDv1("PMD", "normal PMD");
36d4cb82 506 }
507
508 if (iSTART)
509 {
510 //=================== START parameters ============================
511 AliSTART *START = new AliSTARTv1("START", "START Detector");
512 }
513
21e394f9 514 if (iEMCAL)
36d4cb82 515 {
516 //=================== EMCAL parameters ============================
5f86d7e6 517 AliEMCAL *EMCAL = new AliEMCALv1("EMCAL", "EMCAL_55_25");
36d4cb82 518 }
21e394f9 519
520 if (iCRT)
521 {
522 //=================== CRT parameters ============================
523 AliCRT *CRT = new AliCRTv0("CRT", "normal ACORDE");
524 }
cf3f928d 525
526 if (iVZERO)
527 {
528 //=================== CRT parameters ============================
13051068 529 AliVZERO *VZERO = new AliVZEROv2("VZERO", "normal VZERO");
cf3f928d 530 }
21e394f9 531
532
36d4cb82 533}
534
535Float_t EtaToTheta(Float_t arg){
536 return (180./TMath::Pi())*2.*atan(exp(-arg));
537}
538
539
540
de78d77f 541AliGenerator* GeneratorFactory(PprRun_t srun) {
36d4cb82 542 Int_t isw = 3;
de78d77f 543 if (srad == kNoGluonRadiation) isw = 0;
36d4cb82 544
545
de78d77f 546 AliGenerator * gGener = 0x0;
547 switch (srun) {
36d4cb82 548 case test50:
de78d77f 549 {
36d4cb82 550 comment = comment.Append(":HIJINGparam test 50 particles");
551 AliGenHIJINGpara *gener = new AliGenHIJINGpara(50);
552 gener->SetMomentumRange(0, 999999.);
0ac28de4 553 gener->SetPhiRange(0., 360.);
36d4cb82 554 // Set pseudorapidity range from -8 to 8.
555 Float_t thmin = EtaToTheta(8); // theta min. <---> eta max
556 Float_t thmax = EtaToTheta(-8); // theta max. <---> eta min
557 gener->SetThetaRange(thmin,thmax);
de78d77f 558 gGener=gener;
559 }
bd3a65b4 560 break;
36d4cb82 561 case kParam_8000:
de78d77f 562 {
36d4cb82 563 comment = comment.Append(":HIJINGparam N=8000");
564 AliGenHIJINGpara *gener = new AliGenHIJINGpara(86030);
565 gener->SetMomentumRange(0, 999999.);
0ac28de4 566 gener->SetPhiRange(0., 360.);
36d4cb82 567 // Set pseudorapidity range from -8 to 8.
568 Float_t thmin = EtaToTheta(8); // theta min. <---> eta max
569 Float_t thmax = EtaToTheta(-8); // theta max. <---> eta min
570 gener->SetThetaRange(thmin,thmax);
de78d77f 571 gGener=gener;
572 }
bd3a65b4 573 break;
36d4cb82 574 case kParam_4000:
de78d77f 575 {
36d4cb82 576 comment = comment.Append("HIJINGparam N=4000");
577 AliGenHIJINGpara *gener = new AliGenHIJINGpara(43015);
578 gener->SetMomentumRange(0, 999999.);
0ac28de4 579 gener->SetPhiRange(0., 360.);
36d4cb82 580 // Set pseudorapidity range from -8 to 8.
581 Float_t thmin = EtaToTheta(8); // theta min. <---> eta max
582 Float_t thmax = EtaToTheta(-8); // theta max. <---> eta min
583 gener->SetThetaRange(thmin,thmax);
de78d77f 584 gGener=gener;
585 }
36d4cb82 586 break;
587 case kParam_2000:
de78d77f 588 {
36d4cb82 589 comment = comment.Append("HIJINGparam N=2000");
590 AliGenHIJINGpara *gener = new AliGenHIJINGpara(21507);
591 gener->SetMomentumRange(0, 999999.);
0ac28de4 592 gener->SetPhiRange(0., 360.);
36d4cb82 593 // Set pseudorapidity range from -8 to 8.
594 Float_t thmin = EtaToTheta(8); // theta min. <---> eta max
595 Float_t thmax = EtaToTheta(-8); // theta max. <---> eta min
596 gener->SetThetaRange(thmin,thmax);
de78d77f 597 gGener=gener;
598 }
bd3a65b4 599 break;
36d4cb82 600//
601// Hijing Central
602//
603 case kHijing_cent1:
de78d77f 604 {
36d4cb82 605 comment = comment.Append("HIJING cent1");
606 AliGenHijing *gener = HijingStandard();
607// impact parameter range
608 gener->SetImpactParameterRange(0., 5.);
de78d77f 609 gGener=gener;
610 }
bd3a65b4 611 break;
36d4cb82 612 case kHijing_cent2:
de78d77f 613 {
36d4cb82 614 comment = comment.Append("HIJING cent2");
615 AliGenHijing *gener = HijingStandard();
616// impact parameter range
617 gener->SetImpactParameterRange(0., 2.);
de78d77f 618 gGener=gener;
de78d77f 619 }
bd3a65b4 620 break;
36d4cb82 621//
622// Hijing Peripheral
623//
624 case kHijing_per1:
de78d77f 625 {
36d4cb82 626 comment = comment.Append("HIJING per1");
627 AliGenHijing *gener = HijingStandard();
628// impact parameter range
629 gener->SetImpactParameterRange(5., 8.6);
de78d77f 630 gGener=gener;
631 }
bd3a65b4 632 break;
36d4cb82 633 case kHijing_per2:
de78d77f 634 {
36d4cb82 635 comment = comment.Append("HIJING per2");
636 AliGenHijing *gener = HijingStandard();
637// impact parameter range
638 gener->SetImpactParameterRange(8.6, 11.2);
de78d77f 639 gGener=gener;
640 }
bd3a65b4 641 break;
36d4cb82 642 case kHijing_per3:
de78d77f 643 {
36d4cb82 644 comment = comment.Append("HIJING per3");
645 AliGenHijing *gener = HijingStandard();
646// impact parameter range
647 gener->SetImpactParameterRange(11.2, 13.2);
de78d77f 648 gGener=gener;
649 }
bd3a65b4 650 break;
36d4cb82 651 case kHijing_per4:
de78d77f 652 {
36d4cb82 653 comment = comment.Append("HIJING per4");
654 AliGenHijing *gener = HijingStandard();
655// impact parameter range
656 gener->SetImpactParameterRange(13.2, 15.);
de78d77f 657 gGener=gener;
658 }
bd3a65b4 659 break;
36d4cb82 660 case kHijing_per5:
de78d77f 661 {
36d4cb82 662 comment = comment.Append("HIJING per5");
663 AliGenHijing *gener = HijingStandard();
664// impact parameter range
665 gener->SetImpactParameterRange(15., 100.);
de78d77f 666 gGener=gener;
667 }
bd3a65b4 668 break;
36d4cb82 669//
670// Jet-Jet
671//
672 case kHijing_jj25:
de78d77f 673 {
36d4cb82 674 comment = comment.Append("HIJING Jet 25 GeV");
675 AliGenHijing *gener = HijingStandard();
676// impact parameter range
677 gener->SetImpactParameterRange(0., 5.);
678 // trigger
679 gener->SetTrigger(1);
433185a9 680 gener->SetPtJet(25.);
36d4cb82 681 gener->SetRadiation(isw);
433185a9 682 gener->SetSimpleJets(!isw);
683 gener->SetJetEtaRange(-0.3,0.3);
684 gener->SetJetPhiRange(75., 165.);
de78d77f 685 gGener=gener;
686 }
bd3a65b4 687 break;
36d4cb82 688
689 case kHijing_jj50:
de78d77f 690 {
36d4cb82 691 comment = comment.Append("HIJING Jet 50 GeV");
692 AliGenHijing *gener = HijingStandard();
693// impact parameter range
694 gener->SetImpactParameterRange(0., 5.);
695 // trigger
696 gener->SetTrigger(1);
433185a9 697 gener->SetPtJet(50.);
36d4cb82 698 gener->SetRadiation(isw);
433185a9 699 gener->SetSimpleJets(!isw);
700 gener->SetJetEtaRange(-0.3,0.3);
701 gener->SetJetPhiRange(75., 165.);
de78d77f 702 gGener=gener;
703 }
36d4cb82 704 break;
705
706 case kHijing_jj75:
de78d77f 707 {
36d4cb82 708 comment = comment.Append("HIJING Jet 75 GeV");
709 AliGenHijing *gener = HijingStandard();
710// impact parameter range
711 gener->SetImpactParameterRange(0., 5.);
712 // trigger
713 gener->SetTrigger(1);
433185a9 714 gener->SetPtJet(75.);
36d4cb82 715 gener->SetRadiation(isw);
433185a9 716 gener->SetSimpleJets(!isw);
717 gener->SetJetEtaRange(-0.3,0.3);
718 gener->SetJetPhiRange(75., 165.);
de78d77f 719 gGener=gener;
720 }
bd3a65b4 721 break;
36d4cb82 722
723 case kHijing_jj100:
de78d77f 724 {
36d4cb82 725 comment = comment.Append("HIJING Jet 100 GeV");
726 AliGenHijing *gener = HijingStandard();
727// impact parameter range
728 gener->SetImpactParameterRange(0., 5.);
729 // trigger
730 gener->SetTrigger(1);
433185a9 731 gener->SetPtJet(100.);
36d4cb82 732 gener->SetRadiation(isw);
433185a9 733 gener->SetSimpleJets(!isw);
734 gener->SetJetEtaRange(-0.3,0.3);
735 gener->SetJetPhiRange(75., 165.);
de78d77f 736 gGener=gener;
737 }
bd3a65b4 738 break;
36d4cb82 739
433185a9 740 case kHijing_jj200:
de78d77f 741 {
433185a9 742 comment = comment.Append("HIJING Jet 200 GeV");
36d4cb82 743 AliGenHijing *gener = HijingStandard();
744// impact parameter range
745 gener->SetImpactParameterRange(0., 5.);
746 // trigger
747 gener->SetTrigger(1);
433185a9 748 gener->SetPtJet(200.);
36d4cb82 749 gener->SetRadiation(isw);
433185a9 750 gener->SetSimpleJets(!isw);
751 gener->SetJetEtaRange(-0.3,0.3);
752 gener->SetJetPhiRange(75., 165.);
de78d77f 753 gGener=gener;
754 }
bd3a65b4 755 break;
36d4cb82 756//
757// Gamma-Jet
758//
759 case kHijing_gj25:
de78d77f 760 {
36d4cb82 761 comment = comment.Append("HIJING Gamma 25 GeV");
762 AliGenHijing *gener = HijingStandard();
763// impact parameter range
764 gener->SetImpactParameterRange(0., 5.);
765 // trigger
766 gener->SetTrigger(2);
433185a9 767 gener->SetPtJet(25.);
36d4cb82 768 gener->SetRadiation(isw);
433185a9 769 gener->SetSimpleJets(!isw);
770 gener->SetJetEtaRange(-0.12, 0.12);
771 gener->SetJetPhiRange(220., 320.);
de78d77f 772 gGener=gener;
773 }
bd3a65b4 774 break;
36d4cb82 775
776 case kHijing_gj50:
de78d77f 777 {
36d4cb82 778 comment = comment.Append("HIJING Gamma 50 GeV");
779 AliGenHijing *gener = HijingStandard();
780// impact parameter range
781 gener->SetImpactParameterRange(0., 5.);
782 // trigger
783 gener->SetTrigger(2);
433185a9 784 gener->SetPtJet(50.);
36d4cb82 785 gener->SetRadiation(isw);
433185a9 786 gener->SetSimpleJets(!isw);
787 gener->SetJetEtaRange(-0.12, 0.12);
788 gener->SetJetPhiRange(220., 320.);
de78d77f 789 gGener=gener;
790 }
bd3a65b4 791 break;
36d4cb82 792
793 case kHijing_gj75:
de78d77f 794 {
36d4cb82 795 comment = comment.Append("HIJING Gamma 75 GeV");
796 AliGenHijing *gener = HijingStandard();
797// impact parameter range
798 gener->SetImpactParameterRange(0., 5.);
799 // trigger
800 gener->SetTrigger(2);
433185a9 801 gener->SetPtJet(75.);
36d4cb82 802 gener->SetRadiation(isw);
433185a9 803 gener->SetSimpleJets(!isw);
804 gener->SetJetEtaRange(-0.12, 0.12);
805 gener->SetJetPhiRange(220., 320.);
de78d77f 806 gGener=gener;
807 }
bd3a65b4 808 break;
36d4cb82 809
810 case kHijing_gj100:
de78d77f 811 {
36d4cb82 812 comment = comment.Append("HIJING Gamma 100 GeV");
813 AliGenHijing *gener = HijingStandard();
814// impact parameter range
815 gener->SetImpactParameterRange(0., 5.);
816 // trigger
817 gener->SetTrigger(2);
433185a9 818 gener->SetPtJet(100.);
36d4cb82 819 gener->SetRadiation(isw);
433185a9 820 gener->SetSimpleJets(!isw);
821 gener->SetJetEtaRange(-0.12, 0.12);
822 gener->SetJetPhiRange(220., 320.);
de78d77f 823 gGener=gener;
824 }
bd3a65b4 825 break;
36d4cb82 826
433185a9 827 case kHijing_gj200:
de78d77f 828 {
433185a9 829 comment = comment.Append("HIJING Gamma 200 GeV");
36d4cb82 830 AliGenHijing *gener = HijingStandard();
831// impact parameter range
832 gener->SetImpactParameterRange(0., 5.);
833 // trigger
834 gener->SetTrigger(2);
433185a9 835 gener->SetPtJet(200.);
36d4cb82 836 gener->SetRadiation(isw);
433185a9 837 gener->SetSimpleJets(!isw);
838 gener->SetJetEtaRange(-0.12, 0.12);
839 gener->SetJetPhiRange(220., 320.);
de78d77f 840 gGener=gener;
841 }
bd3a65b4 842 break;
bc3e0a09 843 case kHijing_pA:
de78d77f 844 {
bc3e0a09 845 comment = comment.Append("HIJING pA");
846
847 AliGenCocktail *gener = new AliGenCocktail();
78e738e5 848
bc3e0a09 849 AliGenHijing *hijing = new AliGenHijing(-1);
850// centre of mass energy
851 hijing->SetEnergyCMS(TMath::Sqrt(82./208.) * 14000.);
852// impact parameter range
853 hijing->SetImpactParameterRange(0., 15.);
854// reference frame
855 hijing->SetReferenceFrame("CMS");
856 hijing->SetBoostLHC(1);
857// projectile
858 hijing->SetProjectile("P", 1, 1);
859 hijing->SetTarget ("A", 208, 82);
860// tell hijing to keep the full parent child chain
861 hijing->KeepFullEvent();
862// enable jet quenching
863 hijing->SetJetQuenching(0);
864// enable shadowing
865 hijing->SetShadowing(1);
866// Don't track spectators
867 hijing->SetSpectators(0);
868// kinematic selection
869 hijing->SetSelectAll(0);
870//
871 AliGenSlowNucleons* gray = new AliGenSlowNucleons(1);
872 AliSlowNucleonModel* model = new AliSlowNucleonModelExp();
873 gray->SetSlowNucleonModel(model);
874 gray->SetDebug(1);
875 gener->AddGenerator(hijing,"Hijing pPb", 1);
876 gener->AddGenerator(gray, "Gray Particles",1);
de78d77f 877 gGener=gener;
878 }
bd3a65b4 879 break;
1458d037 880 case kPythia6:
de78d77f 881 {
882 comment = comment.Append(":Pythia p-p @ 14 TeV");
883 AliGenPythia *gener = new AliGenPythia(-1);
884 gener->SetMomentumRange(0,999999);
de78d77f 885 gener->SetThetaRange(0., 180.);
886 gener->SetYRange(-12,12);
887 gener->SetPtRange(0,1000);
de78d77f 888 gener->SetProcess(kPyMb);
889 gener->SetEnergyCMS(14000.);
890 gGener=gener;
891 }
bd3a65b4 892 break;
13051068 893 case kPythia6Jets20_24:
b8cec322 894 {
13051068 895 comment = comment.Append(":Pythia jets 20-24 GeV @ 5.5 TeV");
896 AliGenPythia * gener = new AliGenPythia(-1);
897 gener->SetEnergyCMS(5500.);// Centre of mass energy
898 gener->SetProcess(kPyJets);// Process type
899 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
900 gener->SetJetPhiRange(0., 360.);
901 gener->SetJetEtRange(10., 1000.);
902 gener->SetGluonRadiation(1,1);
903 // gener->SetPtKick(0.);
904 // Structure function
905 gener->SetStrucFunc(kCTEQ4L);
906 gener->SetPtHard(20., 24.);// Pt transfer of the hard scattering
907 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
908 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
909 gGener=gener;
910 }
911 break;
912 case kPythia6Jets24_29:
913 {
914 comment = comment.Append(":Pythia jets 24-29 GeV @ 5.5 TeV");
915 AliGenPythia * gener = new AliGenPythia(-1);
916 gener->SetEnergyCMS(5500.);// Centre of mass energy
917 gener->SetProcess(kPyJets);// Process type
918 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
919 gener->SetJetPhiRange(0., 360.);
920 gener->SetJetEtRange(10., 1000.);
921 gener->SetGluonRadiation(1,1);
922 // gener->SetPtKick(0.);
923 // Structure function
924 gener->SetStrucFunc(kCTEQ4L);
925 gener->SetPtHard(24., 29.);// Pt transfer of the hard scattering
926 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
927 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
928 gGener=gener;
929 }
930 break;
931 case kPythia6Jets29_35:
932 {
933 comment = comment.Append(":Pythia jets 29-35 GeV @ 5.5 TeV");
934 AliGenPythia * gener = new AliGenPythia(-1);
935 gener->SetEnergyCMS(5500.);// Centre of mass energy
936 gener->SetProcess(kPyJets);// Process type
937 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
938 gener->SetJetPhiRange(0., 360.);
939 gener->SetJetEtRange(10., 1000.);
940 gener->SetGluonRadiation(1,1);
941 // gener->SetPtKick(0.);
942 // Structure function
943 gener->SetStrucFunc(kCTEQ4L);
944 gener->SetPtHard(29., 35.);// Pt transfer of the hard scattering
945 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
946 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
947 gGener=gener;
948 }
949 break;
950 case kPythia6Jets35_42:
951 {
952 comment = comment.Append(":Pythia jets 35-42 GeV @ 5.5 TeV");
953 AliGenPythia * gener = new AliGenPythia(-1);
954 gener->SetEnergyCMS(5500.);// Centre of mass energy
955 gener->SetProcess(kPyJets);// Process type
956 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
957 gener->SetJetPhiRange(0., 360.);
958 gener->SetJetEtRange(10., 1000.);
959 gener->SetGluonRadiation(1,1);
960 // gener->SetPtKick(0.);
961 // Structure function
962 gener->SetStrucFunc(kCTEQ4L);
963 gener->SetPtHard(35., 42.);// Pt transfer of the hard scattering
964 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
965 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
966 gGener=gener;
967 }
968 break;
969 case kPythia6Jets42_50:
970 {
971 comment = comment.Append(":Pythia jets 42-50 GeV @ 5.5 TeV");
972 AliGenPythia * gener = new AliGenPythia(-1);
973 gener->SetEnergyCMS(5500.);// Centre of mass energy
974 gener->SetProcess(kPyJets);// Process type
975 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
976 gener->SetJetPhiRange(0., 360.);
977 gener->SetJetEtRange(10., 1000.);
978 gener->SetGluonRadiation(1,1);
979 // gener->SetPtKick(0.);
980 // Structure function
981 gener->SetStrucFunc(kCTEQ4L);
982 gener->SetPtHard(42., 50.);// Pt transfer of the hard scattering
983 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
984 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
985 gGener=gener;
986 }
987 break;
988 case kPythia6Jets50_60:
989 {
990 comment = comment.Append(":Pythia jets 50-60 GeV @ 5.5 TeV");
991 AliGenPythia * gener = new AliGenPythia(-1);
992 gener->SetEnergyCMS(5500.);// Centre of mass energy
993 gener->SetProcess(kPyJets);// Process type
994 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
995 gener->SetJetPhiRange(0., 360.);
996 gener->SetJetEtRange(10., 1000.);
997 gener->SetGluonRadiation(1,1);
998 // gener->SetPtKick(0.);
999 // Structure function
1000 gener->SetStrucFunc(kCTEQ4L);
1001 gener->SetPtHard(50., 60.);// Pt transfer of the hard scattering
1002 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
1003 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
1004 gGener=gener;
1005 }
1006 break;
1007 case kPythia6Jets60_72:
1008 {
1009 comment = comment.Append(":Pythia jets 60-72 GeV @ 5.5 TeV");
1010 AliGenPythia * gener = new AliGenPythia(-1);
1011 gener->SetEnergyCMS(5500.);// Centre of mass energy
1012 gener->SetProcess(kPyJets);// Process type
1013 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
1014 gener->SetJetPhiRange(0., 360.);
1015 gener->SetJetEtRange(10., 1000.);
1016 gener->SetGluonRadiation(1,1);
1017 // gener->SetPtKick(0.);
1018 // Structure function
1019 gener->SetStrucFunc(kCTEQ4L);
1020 gener->SetPtHard(60., 72.);// Pt transfer of the hard scattering
1021 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
1022 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
1023 gGener=gener;
1024 }
1025 break;
1026 case kPythia6Jets72_86:
1027 {
1028 comment = comment.Append(":Pythia jets 72-86 GeV @ 5.5 TeV");
1029 AliGenPythia * gener = new AliGenPythia(-1);
1030 gener->SetEnergyCMS(5500.);// Centre of mass energy
1031 gener->SetProcess(kPyJets);// Process type
1032 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
1033 gener->SetJetPhiRange(0., 360.);
1034 gener->SetJetEtRange(10., 1000.);
1035 gener->SetGluonRadiation(1,1);
1036 // gener->SetPtKick(0.);
1037 // Structure function
1038 gener->SetStrucFunc(kCTEQ4L);
1039 gener->SetPtHard(72., 86.);// Pt transfer of the hard scattering
1040 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
1041 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
1042 gGener=gener;
1043 }
1044 break;
1045 case kPythia6Jets86_104:
1046 {
1047 comment = comment.Append(":Pythia jets 86-104 GeV @ 5.5 TeV");
bd3a65b4 1048 AliGenPythia * gener = new AliGenPythia(-1);
b8cec322 1049 gener->SetEnergyCMS(5500.);// Centre of mass energy
1050 gener->SetProcess(kPyJets);// Process type
1051 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
1052 gener->SetJetPhiRange(0., 360.);
1053 gener->SetJetEtRange(10., 1000.);
1054 gener->SetGluonRadiation(1,1);
1055 // gener->SetPtKick(0.);
1056 // Structure function
1057 gener->SetStrucFunc(kCTEQ4L);
1058 gener->SetPtHard(86., 104.);// Pt transfer of the hard scattering
1059 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
1060 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
1061 gGener=gener;
1062 }
bd3a65b4 1063 break;
13051068 1064 case kPythia6Jets104_125:
1065 {
1066 comment = comment.Append(":Pythia jets 105-125 GeV @ 5.5 TeV");
1067 AliGenPythia * gener = new AliGenPythia(-1);
1068 gener->SetEnergyCMS(5500.);// Centre of mass energy
1069 gener->SetProcess(kPyJets);// Process type
1070 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
1071 gener->SetJetPhiRange(0., 360.);
1072 gener->SetJetEtRange(10., 1000.);
1073 gener->SetGluonRadiation(1,1);
1074 // gener->SetPtKick(0.);
1075 // Structure function
1076 gener->SetStrucFunc(kCTEQ4L);
1077 gener->SetPtHard(104., 125.);// Pt transfer of the hard scattering
1078 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
1079 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
1080 gGener=gener;
1081 }
1082 break;
1083 case kPythia6Jets125_150:
1084 {
1085 comment = comment.Append(":Pythia jets 125-150 GeV @ 5.5 TeV");
1086 AliGenPythia * gener = new AliGenPythia(-1);
1087 gener->SetEnergyCMS(5500.);// Centre of mass energy
1088 gener->SetProcess(kPyJets);// Process type
1089 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
1090 gener->SetJetPhiRange(0., 360.);
1091 gener->SetJetEtRange(10., 1000.);
1092 gener->SetGluonRadiation(1,1);
1093 // gener->SetPtKick(0.);
1094 // Structure function
1095 gener->SetStrucFunc(kCTEQ4L);
1096 gener->SetPtHard(125., 150.);// Pt transfer of the hard scattering
1097 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
1098 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
1099 gGener=gener;
1100 }
1101 break;
1102 case kPythia6Jets150_180:
1103 {
1104 comment = comment.Append(":Pythia jets 150-180 GeV @ 5.5 TeV");
1105 AliGenPythia * gener = new AliGenPythia(-1);
1106 gener->SetEnergyCMS(5500.);// Centre of mass energy
1107 gener->SetProcess(kPyJets);// Process type
1108 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
1109 gener->SetJetPhiRange(0., 360.);
1110 gener->SetJetEtRange(10., 1000.);
1111 gener->SetGluonRadiation(1,1);
1112 // gener->SetPtKick(0.);
1113 // Structure function
1114 gener->SetStrucFunc(kCTEQ4L);
1115 gener->SetPtHard(150., 180.);// Pt transfer of the hard scattering
1116 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
1117 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
1118 gGener=gener;
1119 }
1120 break;
bd3a65b4 1121 case kD0PbPb5500:
1122 {
1123 comment = comment.Append(" D0 in Pb-Pb at 5.5 TeV");
1124 AliGenPythia * gener = new AliGenPythia(10);
1125 gener->SetProcess(kPyD0PbPbMNR);
1126 gener->SetStrucFunc(kCTEQ4L);
1127 gener->SetPtHard(2.1,-1.0);
1128 gener->SetEnergyCMS(5500.);
1129 gener->SetNuclei(208,208);
5d185da5 1130 gener->SetForceDecay(kHadronicD);
1131 gener->SetYRange(-2,2);
1132 gener->SetFeedDownHigherFamily(kFALSE);
1133 gener->SetStackFillOpt(AliGenPythia::kParentSelection);
1134 gener->SetCountMode(AliGenPythia::kCountParents);
1135 gGener=gener;
1136 }
1137 break;
1138 case kCharmSemiElPbPb5500:
1139 {
1140 comment = comment.Append(" Charm in Pb-Pb at 5.5 TeV");
1141 AliGenPythia * gener = new AliGenPythia(10);
1142 gener->SetProcess(kPyCharmPbPbMNR);
1143 gener->SetStrucFunc(kCTEQ4L);
1144 gener->SetPtHard(2.1,-1.0);
1145 gener->SetEnergyCMS(5500.);
1146 gener->SetNuclei(208,208);
1147 gener->SetForceDecay(kSemiElectronic);
1148 gener->SetYRange(-2,2);
1149 gener->SetFeedDownHigherFamily(kFALSE);
1150 gener->SetCountMode(AliGenPythia::kCountParents);
1151 gGener=gener;
1152 }
1153 break;
1154 case kBeautySemiElPbPb5500:
1155 {
1156 comment = comment.Append(" Beauty in Pb-Pb at 5.5 TeV");
1157 AliGenPythia *gener = new AliGenPythia(10);
1158 gener->SetProcess(kPyBeautyPbPbMNR);
1159 gener->SetStrucFunc(kCTEQ4L);
1160 gener->SetPtHard(2.75,-1.0);
1161 gener->SetEnergyCMS(5500.);
1162 gener->SetNuclei(208,208);
1163 gener->SetForceDecay(kSemiElectronic);
1164 gener->SetYRange(-2,2);
1165 gener->SetFeedDownHigherFamily(kFALSE);
1166 gener->SetCountMode(AliGenPythia::kCountParents);
bd3a65b4 1167 gGener=gener;
1168 }
1169 break;
e860c7ea 1170 case kCocktailTRD:
78e738e5 1171 {
e860c7ea 1172 comment = comment.Append(" Cocktail for TRD at 5.5 TeV");
1173 AliGenCocktail *gener = new AliGenCocktail();
836ef9e4 1174
e860c7ea 1175 AliGenParam *jpsi = new AliGenParam(10,
1176 new AliGenMUONlib(),
1177 AliGenMUONlib::kJpsiFamily,
1178 "Vogt PbPb");
1179
1180 jpsi->SetPtRange(0, 100);
1181 jpsi->SetYRange(-1., +1.);
1182 jpsi->SetForceDecay(kDiElectron);
1183
1184 AliGenParam *ups = new AliGenParam(10,
1185 new AliGenMUONlib(),
1186 AliGenMUONlib::kUpsilonFamily,
1187 "Vogt PbPb");
1188 ups->SetPtRange(0, 100);
1189 ups->SetYRange(-1., +1.);
1190 ups->SetForceDecay(kDiElectron);
1191
1192 AliGenParam *charm = new AliGenParam(10,
1193 new AliGenMUONlib(),
1194 AliGenMUONlib::kCharm,
1195 "central");
1196 charm->SetPtRange(0, 100);
1197 charm->SetYRange(-1.5, +1.5);
1198 charm->SetForceDecay(kSemiElectronic);
1199
1200
1201 AliGenParam *beauty = new AliGenParam(10,
1202 new AliGenMUONlib(),
1203 AliGenMUONlib::kBeauty,
1204 "central");
1205 beauty->SetPtRange(0, 100);
1206 beauty->SetYRange(-1.5, +1.5);
1207 beauty->SetForceDecay(kSemiElectronic);
1208
836ef9e4 1209 AliGenParam *beautyJ = new AliGenParam(10,
1210 new AliGenMUONlib(),
1211 AliGenMUONlib::kBeauty,
1212 "central");
1213 beautyJ->SetPtRange(0, 100);
1214 beautyJ->SetYRange(-1.5, +1.5);
1215 beautyJ->SetForceDecay(kBJpsiDiElectron);
1216
e860c7ea 1217 gener->AddGenerator(jpsi,"J/psi",1);
1218 gener->AddGenerator(ups,"Upsilon",1);
1219 gener->AddGenerator(charm,"Charm",1);
1220 gener->AddGenerator(beauty,"Beauty",1);
836ef9e4 1221 gener->AddGenerator(beautyJ,"J/Psi from Beauty",1);
78e738e5 1222 gGener=gener;
1223 }
1224 break;
1225 case kPyJJ:
1226 {
1227 comment = comment.Append(" Jet-jet at 5.5 TeV");
1228 AliGenPythia *gener = new AliGenPythia(-1);
1229 gener->SetEnergyCMS(5500.);
1230 gener->SetProcess(kPyJets);
1231 Double_t ptHardMin=10.0, ptHardMax=-1.0;
1232 gener->SetPtHard(ptHardMin,ptHardMax);
1233 gener->SetYHard(-0.7,0.7);
1234 gener->SetJetEtaRange(-0.2,0.2);
1235 gener->SetEventListRange(0,1);
1236 gGener=gener;
1237 }
1238 break;
1239 case kPyGJ:
1240 {
1241 comment = comment.Append(" Gamma-jet at 5.5 TeV");
1242 AliGenPythia *gener = new AliGenPythia(-1);
1243 gener->SetEnergyCMS(5500.);
1244 gener->SetProcess(kPyDirectGamma);
1245 Double_t ptHardMin=10.0, ptHardMax=-1.0;
1246 gener->SetPtHard(ptHardMin,ptHardMax);
1247 gener->SetYHard(-1.0,1.0);
1248 gener->SetGammaEtaRange(-0.13,0.13);
1249 gener->SetGammaPhiRange(210.,330.);
1250 gener->SetEventListRange(0,1);
1251 gGener=gener;
1252 }
1253 break;
b984b0e1 1254 case kMuonCocktailCent1:
1255 {
1256 comment = comment.Append(" Muon Cocktail Cent1");
1257 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1258 gener->SetPtRange(1.0,100.); // Transverse momentum range
1259 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1260 gener->SetYRange(-4.0,-2.4);
1261 gener->SetMuonPtCut(0.8);
1262 gener->SetMuonThetaCut(171.,178.);
1263 gener->SetMuonMultiplicity(2);
1264 gener->SetNumberOfCollisions(1626.); //Centrality class Cent1 for PDC04
1265 gener->SetNumberOfParticipants(359.4);//Centrality class Cent1 for PDC04
1266 gGener=gener;
1267 }
1268 break;
1269 case kMuonCocktailPer1:
1270 {
1271 comment = comment.Append(" Muon Cocktail Per1");
1272 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1273 gener->SetPtRange(1.0,100.); // Transverse momentum range
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);
1279 gener->SetNumberOfCollisions(820.0);//Centrality class Per1 for PDC04
1280 gener->SetNumberOfParticipants(229.3);//Centrality class Per1 for PDC04
1281 gGener=gener;
1282 }
1283 break;
1284 case kMuonCocktailPer4:
1285 {
1286 comment = comment.Append(" Muon Cocktail Per4");
1287 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1288 gener->SetPtRange(1.0,100.); // Transverse momentum range
1289 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1290 gener->SetYRange(-4.0,-2.4);
1291 gener->SetMuonPtCut(0.8);
1292 gener->SetMuonThetaCut(171.,178.);
1293 gener->SetMuonMultiplicity(2);
1294 gener->SetNumberOfCollisions(13.6);//Centrality class Per4 for PDC04
1295 gener->SetNumberOfParticipants(13.3);//Centrality class Per4 for PDC04
1296 gGener=gener;
1297 }
1298 break;
1299 case kMuonCocktailCent1HighPt:
1300 {
1301 comment = comment.Append(" Muon Cocktail HighPt Cent1");
1302 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1303 gener->SetPtRange(1.0,100.); // Transverse momentum range
1304 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1305 gener->SetYRange(-4.0,-2.4);
1306 gener->SetMuonPtCut(2.5);
1307 gener->SetMuonThetaCut(171.,178.);
1308 gener->SetMuonMultiplicity(2);
1309 gener->SetNumberOfCollisions(1626.); //Centrality class Cent1 for PDC04
1310 gener->SetNumberOfParticipants(359.4);//Centrality class Cent1 for PDC04
1311 gGener=gener;
1312 }
1313 break;
1314 case kMuonCocktailPer1HighPt :
1315 {
1316 comment = comment.Append(" Muon Cocktail HighPt Per1");
1317 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1318 gener->SetPtRange(1.0,100.); // Transverse momentum range
1319 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1320 gener->SetYRange(-4.0,-2.4);
1321 gener->SetMuonPtCut(2.5);
1322 gener->SetMuonThetaCut(171.,178.);
1323 gener->SetMuonMultiplicity(2);
1324 gener->SetNumberOfCollisions(820.0);//Centrality class Per1 for PDC04
1325 gener->SetNumberOfParticipants(229.3);//Centrality class Per1 for PDC04
1326 gGener=gener;
1327 }
1328 break;
1329 case kMuonCocktailPer4HighPt:
1330 {
1331 comment = comment.Append(" Muon Cocktail HighPt Per4");
1332 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1333 gener->SetPtRange(1.0,100.); // Transverse momentum range
1334 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1335 gener->SetYRange(-4.0,-2.4);
1336 gener->SetMuonPtCut(2.5);
1337 gener->SetMuonThetaCut(171.,178.);
1338 gener->SetMuonMultiplicity(2);
1339 gener->SetNumberOfCollisions(13.6);//Centrality class Per4 for PDC04
1340 gener->SetNumberOfParticipants(13.3);//Centrality class Per4 for PDC04
1341 gGener=gener;
1342 }
1343 break;
1344 case kMuonCocktailCent1Single:
1345 {
1346 comment = comment.Append(" Muon Cocktail Single Cent1");
1347 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1348 gener->SetPtRange(1.0,100.); // Transverse momentum range
1349 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1350 gener->SetYRange(-4.0,-2.4);
1351 gener->SetMuonPtCut(0.8);
1352 gener->SetMuonThetaCut(171.,178.);
1353 gener->SetMuonMultiplicity(1);
1354 gener->SetNumberOfCollisions(1626.); //Centrality class Cent1 for PDC04
1355 gener->SetNumberOfParticipants(359.4);//Centrality class Cent1 for PDC04
1356 gGener=gener;
1357 }
1358 break;
1359 case kMuonCocktailPer1Single :
1360 {
1361 comment = comment.Append(" Muon Cocktail Single Per1");
1362 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1363 gener->SetPtRange(1.0,100.); // Transverse momentum range
1364 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1365 gener->SetYRange(-4.0,-2.4);
1366 gener->SetMuonPtCut(0.8);
1367 gener->SetMuonThetaCut(171.,178.);
1368 gener->SetMuonMultiplicity(1);
1369 gener->SetNumberOfCollisions(820.0);//Centrality class Per1 for PDC04
1370 gener->SetNumberOfParticipants(229.3);//Centrality class Per1 for PDC04
1371 gGener=gener;
1372 }
1373 break;
1374 case kMuonCocktailPer4Single:
1375 {
1376 comment = comment.Append(" Muon Cocktail Single Per4");
1377 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1378 gener->SetPtRange(1.0,100.); // Transverse momentum range
1379 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1380 gener->SetYRange(-4.0,-2.4);
1381 gener->SetMuonPtCut(0.8);
1382 gener->SetMuonThetaCut(171.,178.);
1383 gener->SetMuonMultiplicity(1);
1384 gener->SetNumberOfCollisions(13.6);//Centrality class Per4 for PDC04
1385 gener->SetNumberOfParticipants(13.3);//Centrality class Per4 for PDC04
1386 gGener=gener;
1387 }
1388 break;
3f7a17bb 1389 default: break;
36d4cb82 1390 }
de78d77f 1391 return gGener;
36d4cb82 1392}
1393
1394AliGenHijing* HijingStandard()
1395{
1396 AliGenHijing *gener = new AliGenHijing(-1);
1397// centre of mass energy
1398 gener->SetEnergyCMS(5500.);
1399// reference frame
1400 gener->SetReferenceFrame("CMS");
1401// projectile
1402 gener->SetProjectile("A", 208, 82);
1403 gener->SetTarget ("A", 208, 82);
1404// tell hijing to keep the full parent child chain
1405 gener->KeepFullEvent();
1406// enable jet quenching
dbed4b8c 1407 gener->SetJetQuenching(1);
36d4cb82 1408// enable shadowing
1409 gener->SetShadowing(1);
1410// neutral pion and heavy particle decays switched off
1411 gener->SetDecaysOff(1);
1412// Don't track spectators
1413 gener->SetSpectators(0);
1414// kinematic selection
1415 gener->SetSelectAll(0);
1416 return gener;
1417}
1418
1419
3f7a17bb 1420void ProcessEnvironmentVars()
1421{
1422 // Run type
1423 if (gSystem->Getenv("CONFIG_RUN_TYPE")) {
1424 for (Int_t iRun = 0; iRun < kRunMax; iRun++) {
1425 if (strcmp(gSystem->Getenv("CONFIG_RUN_TYPE"), pprRunName[iRun])==0) {
1426 srun = (PprRun_t)iRun;
1427 cout<<"Run type set to "<<pprRunName[iRun]<<endl;
1428 }
1429 }
1430 }
36d4cb82 1431
3f7a17bb 1432 // Random Number seed
1433 if (gSystem->Getenv("CONFIG_SEED")) {
1434 sseed = atoi(gSystem->Getenv("CONFIG_SEED"));
1435 }
1436}