Larger string for ALICE_ROOT
[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
22ad5c43 77const char* pprRunName[] = {
3f7a17bb 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 ===========================
d85afa9b 487 // New MUONv1 version (geometry defined via builders)
36d4cb82 488 AliMUON *MUON = new AliMUONv1("MUON", "default");
d85afa9b 489 ((AliMUONv1*)MUON)->SetStepManagerVersionDE(true);
490 MUON->SetSegmentationType(2);// default wise to old (1), new (2)
b984b0e1 491 MUON->AddGeometryBuilder(new AliMUONSt1GeometryBuilderV2(MUON));
d85afa9b 492 MUON->AddGeometryBuilder(new AliMUONSt2GeometryBuilderV2(MUON));
d13ed8f3 493 MUON->AddGeometryBuilder(new AliMUONSlatGeometryBuilder(MUON));
494 MUON->AddGeometryBuilder(new AliMUONTriggerGeometryBuilder(MUON));
36d4cb82 495 }
496 //=================== PHOS parameters ===========================
497
498 if (iPHOS)
499 {
500 AliPHOS *PHOS = new AliPHOSv1("PHOS", "IHEP");
501 }
502
503
504 if (iPMD)
505 {
506 //=================== PMD parameters ============================
507 AliPMD *PMD = new AliPMDv1("PMD", "normal PMD");
36d4cb82 508 }
509
510 if (iSTART)
511 {
512 //=================== START parameters ============================
513 AliSTART *START = new AliSTARTv1("START", "START Detector");
514 }
515
21e394f9 516 if (iEMCAL)
36d4cb82 517 {
518 //=================== EMCAL parameters ============================
5f86d7e6 519 AliEMCAL *EMCAL = new AliEMCALv1("EMCAL", "EMCAL_55_25");
36d4cb82 520 }
21e394f9 521
522 if (iCRT)
523 {
524 //=================== CRT parameters ============================
525 AliCRT *CRT = new AliCRTv0("CRT", "normal ACORDE");
526 }
cf3f928d 527
528 if (iVZERO)
529 {
530 //=================== CRT parameters ============================
13051068 531 AliVZERO *VZERO = new AliVZEROv2("VZERO", "normal VZERO");
cf3f928d 532 }
21e394f9 533
534
36d4cb82 535}
536
537Float_t EtaToTheta(Float_t arg){
538 return (180./TMath::Pi())*2.*atan(exp(-arg));
539}
540
541
542
de78d77f 543AliGenerator* GeneratorFactory(PprRun_t srun) {
36d4cb82 544 Int_t isw = 3;
de78d77f 545 if (srad == kNoGluonRadiation) isw = 0;
36d4cb82 546
547
de78d77f 548 AliGenerator * gGener = 0x0;
549 switch (srun) {
36d4cb82 550 case test50:
de78d77f 551 {
36d4cb82 552 comment = comment.Append(":HIJINGparam test 50 particles");
553 AliGenHIJINGpara *gener = new AliGenHIJINGpara(50);
554 gener->SetMomentumRange(0, 999999.);
0ac28de4 555 gener->SetPhiRange(0., 360.);
36d4cb82 556 // Set pseudorapidity range from -8 to 8.
557 Float_t thmin = EtaToTheta(8); // theta min. <---> eta max
558 Float_t thmax = EtaToTheta(-8); // theta max. <---> eta min
559 gener->SetThetaRange(thmin,thmax);
de78d77f 560 gGener=gener;
561 }
bd3a65b4 562 break;
36d4cb82 563 case kParam_8000:
de78d77f 564 {
36d4cb82 565 comment = comment.Append(":HIJINGparam N=8000");
566 AliGenHIJINGpara *gener = new AliGenHIJINGpara(86030);
567 gener->SetMomentumRange(0, 999999.);
0ac28de4 568 gener->SetPhiRange(0., 360.);
36d4cb82 569 // Set pseudorapidity range from -8 to 8.
570 Float_t thmin = EtaToTheta(8); // theta min. <---> eta max
571 Float_t thmax = EtaToTheta(-8); // theta max. <---> eta min
572 gener->SetThetaRange(thmin,thmax);
de78d77f 573 gGener=gener;
574 }
bd3a65b4 575 break;
36d4cb82 576 case kParam_4000:
de78d77f 577 {
36d4cb82 578 comment = comment.Append("HIJINGparam N=4000");
579 AliGenHIJINGpara *gener = new AliGenHIJINGpara(43015);
580 gener->SetMomentumRange(0, 999999.);
0ac28de4 581 gener->SetPhiRange(0., 360.);
36d4cb82 582 // Set pseudorapidity range from -8 to 8.
583 Float_t thmin = EtaToTheta(8); // theta min. <---> eta max
584 Float_t thmax = EtaToTheta(-8); // theta max. <---> eta min
585 gener->SetThetaRange(thmin,thmax);
de78d77f 586 gGener=gener;
587 }
36d4cb82 588 break;
589 case kParam_2000:
de78d77f 590 {
36d4cb82 591 comment = comment.Append("HIJINGparam N=2000");
592 AliGenHIJINGpara *gener = new AliGenHIJINGpara(21507);
593 gener->SetMomentumRange(0, 999999.);
0ac28de4 594 gener->SetPhiRange(0., 360.);
36d4cb82 595 // Set pseudorapidity range from -8 to 8.
596 Float_t thmin = EtaToTheta(8); // theta min. <---> eta max
597 Float_t thmax = EtaToTheta(-8); // theta max. <---> eta min
598 gener->SetThetaRange(thmin,thmax);
de78d77f 599 gGener=gener;
600 }
bd3a65b4 601 break;
36d4cb82 602//
603// Hijing Central
604//
605 case kHijing_cent1:
de78d77f 606 {
36d4cb82 607 comment = comment.Append("HIJING cent1");
608 AliGenHijing *gener = HijingStandard();
609// impact parameter range
610 gener->SetImpactParameterRange(0., 5.);
de78d77f 611 gGener=gener;
612 }
bd3a65b4 613 break;
36d4cb82 614 case kHijing_cent2:
de78d77f 615 {
36d4cb82 616 comment = comment.Append("HIJING cent2");
617 AliGenHijing *gener = HijingStandard();
618// impact parameter range
619 gener->SetImpactParameterRange(0., 2.);
de78d77f 620 gGener=gener;
de78d77f 621 }
bd3a65b4 622 break;
36d4cb82 623//
624// Hijing Peripheral
625//
626 case kHijing_per1:
de78d77f 627 {
36d4cb82 628 comment = comment.Append("HIJING per1");
629 AliGenHijing *gener = HijingStandard();
630// impact parameter range
631 gener->SetImpactParameterRange(5., 8.6);
de78d77f 632 gGener=gener;
633 }
bd3a65b4 634 break;
36d4cb82 635 case kHijing_per2:
de78d77f 636 {
36d4cb82 637 comment = comment.Append("HIJING per2");
638 AliGenHijing *gener = HijingStandard();
639// impact parameter range
640 gener->SetImpactParameterRange(8.6, 11.2);
de78d77f 641 gGener=gener;
642 }
bd3a65b4 643 break;
36d4cb82 644 case kHijing_per3:
de78d77f 645 {
36d4cb82 646 comment = comment.Append("HIJING per3");
647 AliGenHijing *gener = HijingStandard();
648// impact parameter range
649 gener->SetImpactParameterRange(11.2, 13.2);
de78d77f 650 gGener=gener;
651 }
bd3a65b4 652 break;
36d4cb82 653 case kHijing_per4:
de78d77f 654 {
36d4cb82 655 comment = comment.Append("HIJING per4");
656 AliGenHijing *gener = HijingStandard();
657// impact parameter range
658 gener->SetImpactParameterRange(13.2, 15.);
de78d77f 659 gGener=gener;
660 }
bd3a65b4 661 break;
36d4cb82 662 case kHijing_per5:
de78d77f 663 {
36d4cb82 664 comment = comment.Append("HIJING per5");
665 AliGenHijing *gener = HijingStandard();
666// impact parameter range
667 gener->SetImpactParameterRange(15., 100.);
de78d77f 668 gGener=gener;
669 }
bd3a65b4 670 break;
36d4cb82 671//
672// Jet-Jet
673//
674 case kHijing_jj25:
de78d77f 675 {
36d4cb82 676 comment = comment.Append("HIJING Jet 25 GeV");
677 AliGenHijing *gener = HijingStandard();
678// impact parameter range
679 gener->SetImpactParameterRange(0., 5.);
680 // trigger
681 gener->SetTrigger(1);
433185a9 682 gener->SetPtJet(25.);
36d4cb82 683 gener->SetRadiation(isw);
433185a9 684 gener->SetSimpleJets(!isw);
685 gener->SetJetEtaRange(-0.3,0.3);
686 gener->SetJetPhiRange(75., 165.);
de78d77f 687 gGener=gener;
688 }
bd3a65b4 689 break;
36d4cb82 690
691 case kHijing_jj50:
de78d77f 692 {
36d4cb82 693 comment = comment.Append("HIJING Jet 50 GeV");
694 AliGenHijing *gener = HijingStandard();
695// impact parameter range
696 gener->SetImpactParameterRange(0., 5.);
697 // trigger
698 gener->SetTrigger(1);
433185a9 699 gener->SetPtJet(50.);
36d4cb82 700 gener->SetRadiation(isw);
433185a9 701 gener->SetSimpleJets(!isw);
702 gener->SetJetEtaRange(-0.3,0.3);
703 gener->SetJetPhiRange(75., 165.);
de78d77f 704 gGener=gener;
705 }
36d4cb82 706 break;
707
708 case kHijing_jj75:
de78d77f 709 {
36d4cb82 710 comment = comment.Append("HIJING Jet 75 GeV");
711 AliGenHijing *gener = HijingStandard();
712// impact parameter range
713 gener->SetImpactParameterRange(0., 5.);
714 // trigger
715 gener->SetTrigger(1);
433185a9 716 gener->SetPtJet(75.);
36d4cb82 717 gener->SetRadiation(isw);
433185a9 718 gener->SetSimpleJets(!isw);
719 gener->SetJetEtaRange(-0.3,0.3);
720 gener->SetJetPhiRange(75., 165.);
de78d77f 721 gGener=gener;
722 }
bd3a65b4 723 break;
36d4cb82 724
725 case kHijing_jj100:
de78d77f 726 {
36d4cb82 727 comment = comment.Append("HIJING Jet 100 GeV");
728 AliGenHijing *gener = HijingStandard();
729// impact parameter range
730 gener->SetImpactParameterRange(0., 5.);
731 // trigger
732 gener->SetTrigger(1);
433185a9 733 gener->SetPtJet(100.);
36d4cb82 734 gener->SetRadiation(isw);
433185a9 735 gener->SetSimpleJets(!isw);
736 gener->SetJetEtaRange(-0.3,0.3);
737 gener->SetJetPhiRange(75., 165.);
de78d77f 738 gGener=gener;
739 }
bd3a65b4 740 break;
36d4cb82 741
433185a9 742 case kHijing_jj200:
de78d77f 743 {
433185a9 744 comment = comment.Append("HIJING Jet 200 GeV");
36d4cb82 745 AliGenHijing *gener = HijingStandard();
746// impact parameter range
747 gener->SetImpactParameterRange(0., 5.);
748 // trigger
749 gener->SetTrigger(1);
433185a9 750 gener->SetPtJet(200.);
36d4cb82 751 gener->SetRadiation(isw);
433185a9 752 gener->SetSimpleJets(!isw);
753 gener->SetJetEtaRange(-0.3,0.3);
754 gener->SetJetPhiRange(75., 165.);
de78d77f 755 gGener=gener;
756 }
bd3a65b4 757 break;
36d4cb82 758//
759// Gamma-Jet
760//
761 case kHijing_gj25:
de78d77f 762 {
36d4cb82 763 comment = comment.Append("HIJING Gamma 25 GeV");
764 AliGenHijing *gener = HijingStandard();
765// impact parameter range
766 gener->SetImpactParameterRange(0., 5.);
767 // trigger
768 gener->SetTrigger(2);
433185a9 769 gener->SetPtJet(25.);
36d4cb82 770 gener->SetRadiation(isw);
433185a9 771 gener->SetSimpleJets(!isw);
772 gener->SetJetEtaRange(-0.12, 0.12);
773 gener->SetJetPhiRange(220., 320.);
de78d77f 774 gGener=gener;
775 }
bd3a65b4 776 break;
36d4cb82 777
778 case kHijing_gj50:
de78d77f 779 {
36d4cb82 780 comment = comment.Append("HIJING Gamma 50 GeV");
781 AliGenHijing *gener = HijingStandard();
782// impact parameter range
783 gener->SetImpactParameterRange(0., 5.);
784 // trigger
785 gener->SetTrigger(2);
433185a9 786 gener->SetPtJet(50.);
36d4cb82 787 gener->SetRadiation(isw);
433185a9 788 gener->SetSimpleJets(!isw);
789 gener->SetJetEtaRange(-0.12, 0.12);
790 gener->SetJetPhiRange(220., 320.);
de78d77f 791 gGener=gener;
792 }
bd3a65b4 793 break;
36d4cb82 794
795 case kHijing_gj75:
de78d77f 796 {
36d4cb82 797 comment = comment.Append("HIJING Gamma 75 GeV");
798 AliGenHijing *gener = HijingStandard();
799// impact parameter range
800 gener->SetImpactParameterRange(0., 5.);
801 // trigger
802 gener->SetTrigger(2);
433185a9 803 gener->SetPtJet(75.);
36d4cb82 804 gener->SetRadiation(isw);
433185a9 805 gener->SetSimpleJets(!isw);
806 gener->SetJetEtaRange(-0.12, 0.12);
807 gener->SetJetPhiRange(220., 320.);
de78d77f 808 gGener=gener;
809 }
bd3a65b4 810 break;
36d4cb82 811
812 case kHijing_gj100:
de78d77f 813 {
36d4cb82 814 comment = comment.Append("HIJING Gamma 100 GeV");
815 AliGenHijing *gener = HijingStandard();
816// impact parameter range
817 gener->SetImpactParameterRange(0., 5.);
818 // trigger
819 gener->SetTrigger(2);
433185a9 820 gener->SetPtJet(100.);
36d4cb82 821 gener->SetRadiation(isw);
433185a9 822 gener->SetSimpleJets(!isw);
823 gener->SetJetEtaRange(-0.12, 0.12);
824 gener->SetJetPhiRange(220., 320.);
de78d77f 825 gGener=gener;
826 }
bd3a65b4 827 break;
36d4cb82 828
433185a9 829 case kHijing_gj200:
de78d77f 830 {
433185a9 831 comment = comment.Append("HIJING Gamma 200 GeV");
36d4cb82 832 AliGenHijing *gener = HijingStandard();
833// impact parameter range
834 gener->SetImpactParameterRange(0., 5.);
835 // trigger
836 gener->SetTrigger(2);
433185a9 837 gener->SetPtJet(200.);
36d4cb82 838 gener->SetRadiation(isw);
433185a9 839 gener->SetSimpleJets(!isw);
840 gener->SetJetEtaRange(-0.12, 0.12);
841 gener->SetJetPhiRange(220., 320.);
de78d77f 842 gGener=gener;
843 }
bd3a65b4 844 break;
bc3e0a09 845 case kHijing_pA:
de78d77f 846 {
bc3e0a09 847 comment = comment.Append("HIJING pA");
848
849 AliGenCocktail *gener = new AliGenCocktail();
78e738e5 850
bc3e0a09 851 AliGenHijing *hijing = new AliGenHijing(-1);
852// centre of mass energy
853 hijing->SetEnergyCMS(TMath::Sqrt(82./208.) * 14000.);
854// impact parameter range
855 hijing->SetImpactParameterRange(0., 15.);
856// reference frame
857 hijing->SetReferenceFrame("CMS");
858 hijing->SetBoostLHC(1);
859// projectile
860 hijing->SetProjectile("P", 1, 1);
861 hijing->SetTarget ("A", 208, 82);
862// tell hijing to keep the full parent child chain
863 hijing->KeepFullEvent();
864// enable jet quenching
865 hijing->SetJetQuenching(0);
866// enable shadowing
867 hijing->SetShadowing(1);
868// Don't track spectators
869 hijing->SetSpectators(0);
870// kinematic selection
871 hijing->SetSelectAll(0);
872//
873 AliGenSlowNucleons* gray = new AliGenSlowNucleons(1);
874 AliSlowNucleonModel* model = new AliSlowNucleonModelExp();
875 gray->SetSlowNucleonModel(model);
876 gray->SetDebug(1);
877 gener->AddGenerator(hijing,"Hijing pPb", 1);
878 gener->AddGenerator(gray, "Gray Particles",1);
de78d77f 879 gGener=gener;
880 }
bd3a65b4 881 break;
1458d037 882 case kPythia6:
de78d77f 883 {
884 comment = comment.Append(":Pythia p-p @ 14 TeV");
885 AliGenPythia *gener = new AliGenPythia(-1);
886 gener->SetMomentumRange(0,999999);
de78d77f 887 gener->SetThetaRange(0., 180.);
888 gener->SetYRange(-12,12);
889 gener->SetPtRange(0,1000);
de78d77f 890 gener->SetProcess(kPyMb);
891 gener->SetEnergyCMS(14000.);
892 gGener=gener;
893 }
bd3a65b4 894 break;
13051068 895 case kPythia6Jets20_24:
b8cec322 896 {
13051068 897 comment = comment.Append(":Pythia jets 20-24 GeV @ 5.5 TeV");
898 AliGenPythia * gener = new AliGenPythia(-1);
899 gener->SetEnergyCMS(5500.);// Centre of mass energy
900 gener->SetProcess(kPyJets);// Process type
901 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
902 gener->SetJetPhiRange(0., 360.);
903 gener->SetJetEtRange(10., 1000.);
904 gener->SetGluonRadiation(1,1);
905 // gener->SetPtKick(0.);
906 // Structure function
907 gener->SetStrucFunc(kCTEQ4L);
908 gener->SetPtHard(20., 24.);// Pt transfer of the hard scattering
909 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
910 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
911 gGener=gener;
912 }
913 break;
914 case kPythia6Jets24_29:
915 {
916 comment = comment.Append(":Pythia jets 24-29 GeV @ 5.5 TeV");
917 AliGenPythia * gener = new AliGenPythia(-1);
918 gener->SetEnergyCMS(5500.);// Centre of mass energy
919 gener->SetProcess(kPyJets);// Process type
920 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
921 gener->SetJetPhiRange(0., 360.);
922 gener->SetJetEtRange(10., 1000.);
923 gener->SetGluonRadiation(1,1);
924 // gener->SetPtKick(0.);
925 // Structure function
926 gener->SetStrucFunc(kCTEQ4L);
927 gener->SetPtHard(24., 29.);// Pt transfer of the hard scattering
928 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
929 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
930 gGener=gener;
931 }
932 break;
933 case kPythia6Jets29_35:
934 {
935 comment = comment.Append(":Pythia jets 29-35 GeV @ 5.5 TeV");
936 AliGenPythia * gener = new AliGenPythia(-1);
937 gener->SetEnergyCMS(5500.);// Centre of mass energy
938 gener->SetProcess(kPyJets);// Process type
939 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
940 gener->SetJetPhiRange(0., 360.);
941 gener->SetJetEtRange(10., 1000.);
942 gener->SetGluonRadiation(1,1);
943 // gener->SetPtKick(0.);
944 // Structure function
945 gener->SetStrucFunc(kCTEQ4L);
946 gener->SetPtHard(29., 35.);// Pt transfer of the hard scattering
947 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
948 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
949 gGener=gener;
950 }
951 break;
952 case kPythia6Jets35_42:
953 {
954 comment = comment.Append(":Pythia jets 35-42 GeV @ 5.5 TeV");
955 AliGenPythia * gener = new AliGenPythia(-1);
956 gener->SetEnergyCMS(5500.);// Centre of mass energy
957 gener->SetProcess(kPyJets);// Process type
958 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
959 gener->SetJetPhiRange(0., 360.);
960 gener->SetJetEtRange(10., 1000.);
961 gener->SetGluonRadiation(1,1);
962 // gener->SetPtKick(0.);
963 // Structure function
964 gener->SetStrucFunc(kCTEQ4L);
965 gener->SetPtHard(35., 42.);// Pt transfer of the hard scattering
966 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
967 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
968 gGener=gener;
969 }
970 break;
971 case kPythia6Jets42_50:
972 {
973 comment = comment.Append(":Pythia jets 42-50 GeV @ 5.5 TeV");
974 AliGenPythia * gener = new AliGenPythia(-1);
975 gener->SetEnergyCMS(5500.);// Centre of mass energy
976 gener->SetProcess(kPyJets);// Process type
977 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
978 gener->SetJetPhiRange(0., 360.);
979 gener->SetJetEtRange(10., 1000.);
980 gener->SetGluonRadiation(1,1);
981 // gener->SetPtKick(0.);
982 // Structure function
983 gener->SetStrucFunc(kCTEQ4L);
984 gener->SetPtHard(42., 50.);// Pt transfer of the hard scattering
985 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
986 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
987 gGener=gener;
988 }
989 break;
990 case kPythia6Jets50_60:
991 {
992 comment = comment.Append(":Pythia jets 50-60 GeV @ 5.5 TeV");
993 AliGenPythia * gener = new AliGenPythia(-1);
994 gener->SetEnergyCMS(5500.);// Centre of mass energy
995 gener->SetProcess(kPyJets);// Process type
996 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
997 gener->SetJetPhiRange(0., 360.);
998 gener->SetJetEtRange(10., 1000.);
999 gener->SetGluonRadiation(1,1);
1000 // gener->SetPtKick(0.);
1001 // Structure function
1002 gener->SetStrucFunc(kCTEQ4L);
1003 gener->SetPtHard(50., 60.);// Pt transfer of the hard scattering
1004 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
1005 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
1006 gGener=gener;
1007 }
1008 break;
1009 case kPythia6Jets60_72:
1010 {
1011 comment = comment.Append(":Pythia jets 60-72 GeV @ 5.5 TeV");
1012 AliGenPythia * gener = new AliGenPythia(-1);
1013 gener->SetEnergyCMS(5500.);// Centre of mass energy
1014 gener->SetProcess(kPyJets);// Process type
1015 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
1016 gener->SetJetPhiRange(0., 360.);
1017 gener->SetJetEtRange(10., 1000.);
1018 gener->SetGluonRadiation(1,1);
1019 // gener->SetPtKick(0.);
1020 // Structure function
1021 gener->SetStrucFunc(kCTEQ4L);
1022 gener->SetPtHard(60., 72.);// Pt transfer of the hard scattering
1023 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
1024 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
1025 gGener=gener;
1026 }
1027 break;
1028 case kPythia6Jets72_86:
1029 {
1030 comment = comment.Append(":Pythia jets 72-86 GeV @ 5.5 TeV");
1031 AliGenPythia * gener = new AliGenPythia(-1);
1032 gener->SetEnergyCMS(5500.);// Centre of mass energy
1033 gener->SetProcess(kPyJets);// Process type
1034 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
1035 gener->SetJetPhiRange(0., 360.);
1036 gener->SetJetEtRange(10., 1000.);
1037 gener->SetGluonRadiation(1,1);
1038 // gener->SetPtKick(0.);
1039 // Structure function
1040 gener->SetStrucFunc(kCTEQ4L);
1041 gener->SetPtHard(72., 86.);// Pt transfer of the hard scattering
1042 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
1043 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
1044 gGener=gener;
1045 }
1046 break;
1047 case kPythia6Jets86_104:
1048 {
1049 comment = comment.Append(":Pythia jets 86-104 GeV @ 5.5 TeV");
bd3a65b4 1050 AliGenPythia * gener = new AliGenPythia(-1);
b8cec322 1051 gener->SetEnergyCMS(5500.);// Centre of mass energy
1052 gener->SetProcess(kPyJets);// Process type
1053 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
1054 gener->SetJetPhiRange(0., 360.);
1055 gener->SetJetEtRange(10., 1000.);
1056 gener->SetGluonRadiation(1,1);
1057 // gener->SetPtKick(0.);
1058 // Structure function
1059 gener->SetStrucFunc(kCTEQ4L);
1060 gener->SetPtHard(86., 104.);// Pt transfer of the hard scattering
1061 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
1062 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
1063 gGener=gener;
1064 }
bd3a65b4 1065 break;
13051068 1066 case kPythia6Jets104_125:
1067 {
1068 comment = comment.Append(":Pythia jets 105-125 GeV @ 5.5 TeV");
1069 AliGenPythia * gener = new AliGenPythia(-1);
1070 gener->SetEnergyCMS(5500.);// Centre of mass energy
1071 gener->SetProcess(kPyJets);// Process type
1072 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
1073 gener->SetJetPhiRange(0., 360.);
1074 gener->SetJetEtRange(10., 1000.);
1075 gener->SetGluonRadiation(1,1);
1076 // gener->SetPtKick(0.);
1077 // Structure function
1078 gener->SetStrucFunc(kCTEQ4L);
1079 gener->SetPtHard(104., 125.);// Pt transfer of the hard scattering
1080 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
1081 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
1082 gGener=gener;
1083 }
1084 break;
1085 case kPythia6Jets125_150:
1086 {
1087 comment = comment.Append(":Pythia jets 125-150 GeV @ 5.5 TeV");
1088 AliGenPythia * gener = new AliGenPythia(-1);
1089 gener->SetEnergyCMS(5500.);// Centre of mass energy
1090 gener->SetProcess(kPyJets);// Process type
1091 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
1092 gener->SetJetPhiRange(0., 360.);
1093 gener->SetJetEtRange(10., 1000.);
1094 gener->SetGluonRadiation(1,1);
1095 // gener->SetPtKick(0.);
1096 // Structure function
1097 gener->SetStrucFunc(kCTEQ4L);
1098 gener->SetPtHard(125., 150.);// Pt transfer of the hard scattering
1099 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
1100 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
1101 gGener=gener;
1102 }
1103 break;
1104 case kPythia6Jets150_180:
1105 {
1106 comment = comment.Append(":Pythia jets 150-180 GeV @ 5.5 TeV");
1107 AliGenPythia * gener = new AliGenPythia(-1);
1108 gener->SetEnergyCMS(5500.);// Centre of mass energy
1109 gener->SetProcess(kPyJets);// Process type
1110 gener->SetJetEtaRange(-0.5, 0.5);// Final state kinematic cuts
1111 gener->SetJetPhiRange(0., 360.);
1112 gener->SetJetEtRange(10., 1000.);
1113 gener->SetGluonRadiation(1,1);
1114 // gener->SetPtKick(0.);
1115 // Structure function
1116 gener->SetStrucFunc(kCTEQ4L);
1117 gener->SetPtHard(150., 180.);// Pt transfer of the hard scattering
1118 gener->SetPycellParameters(2., 274, 432, 0., 4., 5., 1.0);
1119 gener->SetForceDecay(kAll);// Decay type (semielectronic, etc.)
1120 gGener=gener;
1121 }
1122 break;
bd3a65b4 1123 case kD0PbPb5500:
1124 {
1125 comment = comment.Append(" D0 in Pb-Pb at 5.5 TeV");
1126 AliGenPythia * gener = new AliGenPythia(10);
1127 gener->SetProcess(kPyD0PbPbMNR);
1128 gener->SetStrucFunc(kCTEQ4L);
1129 gener->SetPtHard(2.1,-1.0);
1130 gener->SetEnergyCMS(5500.);
1131 gener->SetNuclei(208,208);
5d185da5 1132 gener->SetForceDecay(kHadronicD);
1133 gener->SetYRange(-2,2);
1134 gener->SetFeedDownHigherFamily(kFALSE);
1135 gener->SetStackFillOpt(AliGenPythia::kParentSelection);
1136 gener->SetCountMode(AliGenPythia::kCountParents);
1137 gGener=gener;
1138 }
1139 break;
1140 case kCharmSemiElPbPb5500:
1141 {
1142 comment = comment.Append(" Charm in Pb-Pb at 5.5 TeV");
1143 AliGenPythia * gener = new AliGenPythia(10);
1144 gener->SetProcess(kPyCharmPbPbMNR);
1145 gener->SetStrucFunc(kCTEQ4L);
1146 gener->SetPtHard(2.1,-1.0);
1147 gener->SetEnergyCMS(5500.);
1148 gener->SetNuclei(208,208);
1149 gener->SetForceDecay(kSemiElectronic);
1150 gener->SetYRange(-2,2);
1151 gener->SetFeedDownHigherFamily(kFALSE);
1152 gener->SetCountMode(AliGenPythia::kCountParents);
1153 gGener=gener;
1154 }
1155 break;
1156 case kBeautySemiElPbPb5500:
1157 {
1158 comment = comment.Append(" Beauty in Pb-Pb at 5.5 TeV");
1159 AliGenPythia *gener = new AliGenPythia(10);
1160 gener->SetProcess(kPyBeautyPbPbMNR);
1161 gener->SetStrucFunc(kCTEQ4L);
1162 gener->SetPtHard(2.75,-1.0);
1163 gener->SetEnergyCMS(5500.);
1164 gener->SetNuclei(208,208);
1165 gener->SetForceDecay(kSemiElectronic);
1166 gener->SetYRange(-2,2);
1167 gener->SetFeedDownHigherFamily(kFALSE);
1168 gener->SetCountMode(AliGenPythia::kCountParents);
bd3a65b4 1169 gGener=gener;
1170 }
1171 break;
e860c7ea 1172 case kCocktailTRD:
78e738e5 1173 {
e860c7ea 1174 comment = comment.Append(" Cocktail for TRD at 5.5 TeV");
1175 AliGenCocktail *gener = new AliGenCocktail();
836ef9e4 1176
d3d5165e 1177 AliGenParam *phi = new AliGenParam(10,
1178 new AliGenMUONlib(),
1179 AliGenMUONlib::kPhi,
1180 "Vogt PbPb");
1181
1182 phi->SetPtRange(0, 100);
1183 phi->SetYRange(-1., +1.);
1184 phi->SetForceDecay(kDiElectron);
1185
1186 AliGenParam *omega = new AliGenParam(10,
1187 new AliGenMUONlib(),
1188 AliGenMUONlib::kOmega,
1189 "Vogt PbPb");
1190
1191 omega->SetPtRange(0, 100);
1192 omega->SetYRange(-1., +1.);
1193 omega->SetForceDecay(kDiElectron);
1194
e860c7ea 1195 AliGenParam *jpsi = new AliGenParam(10,
1196 new AliGenMUONlib(),
1197 AliGenMUONlib::kJpsiFamily,
1198 "Vogt PbPb");
1199
1200 jpsi->SetPtRange(0, 100);
1201 jpsi->SetYRange(-1., +1.);
1202 jpsi->SetForceDecay(kDiElectron);
1203
1204 AliGenParam *ups = new AliGenParam(10,
1205 new AliGenMUONlib(),
1206 AliGenMUONlib::kUpsilonFamily,
1207 "Vogt PbPb");
1208 ups->SetPtRange(0, 100);
1209 ups->SetYRange(-1., +1.);
1210 ups->SetForceDecay(kDiElectron);
1211
1212 AliGenParam *charm = new AliGenParam(10,
1213 new AliGenMUONlib(),
1214 AliGenMUONlib::kCharm,
1215 "central");
1216 charm->SetPtRange(0, 100);
1217 charm->SetYRange(-1.5, +1.5);
1218 charm->SetForceDecay(kSemiElectronic);
1219
1220
1221 AliGenParam *beauty = new AliGenParam(10,
1222 new AliGenMUONlib(),
1223 AliGenMUONlib::kBeauty,
1224 "central");
1225 beauty->SetPtRange(0, 100);
1226 beauty->SetYRange(-1.5, +1.5);
1227 beauty->SetForceDecay(kSemiElectronic);
1228
836ef9e4 1229 AliGenParam *beautyJ = new AliGenParam(10,
1230 new AliGenMUONlib(),
1231 AliGenMUONlib::kBeauty,
1232 "central");
1233 beautyJ->SetPtRange(0, 100);
1234 beautyJ->SetYRange(-1.5, +1.5);
1235 beautyJ->SetForceDecay(kBJpsiDiElectron);
1236
d3d5165e 1237 gener->AddGenerator(phi,"Phi",1);
1238 gener->AddGenerator(omega,"Omega",1);
e860c7ea 1239 gener->AddGenerator(jpsi,"J/psi",1);
1240 gener->AddGenerator(ups,"Upsilon",1);
1241 gener->AddGenerator(charm,"Charm",1);
1242 gener->AddGenerator(beauty,"Beauty",1);
836ef9e4 1243 gener->AddGenerator(beautyJ,"J/Psi from Beauty",1);
78e738e5 1244 gGener=gener;
1245 }
1246 break;
1247 case kPyJJ:
1248 {
1249 comment = comment.Append(" Jet-jet at 5.5 TeV");
1250 AliGenPythia *gener = new AliGenPythia(-1);
1251 gener->SetEnergyCMS(5500.);
1252 gener->SetProcess(kPyJets);
1253 Double_t ptHardMin=10.0, ptHardMax=-1.0;
1254 gener->SetPtHard(ptHardMin,ptHardMax);
1255 gener->SetYHard(-0.7,0.7);
1256 gener->SetJetEtaRange(-0.2,0.2);
1257 gener->SetEventListRange(0,1);
1258 gGener=gener;
1259 }
1260 break;
1261 case kPyGJ:
1262 {
1263 comment = comment.Append(" Gamma-jet at 5.5 TeV");
1264 AliGenPythia *gener = new AliGenPythia(-1);
1265 gener->SetEnergyCMS(5500.);
1266 gener->SetProcess(kPyDirectGamma);
1267 Double_t ptHardMin=10.0, ptHardMax=-1.0;
1268 gener->SetPtHard(ptHardMin,ptHardMax);
1269 gener->SetYHard(-1.0,1.0);
1270 gener->SetGammaEtaRange(-0.13,0.13);
1271 gener->SetGammaPhiRange(210.,330.);
1272 gener->SetEventListRange(0,1);
1273 gGener=gener;
1274 }
1275 break;
b984b0e1 1276 case kMuonCocktailCent1:
1277 {
1278 comment = comment.Append(" Muon Cocktail Cent1");
1279 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
9c4fff20 1280 gener->SetPtRange(0.4,100.); // Transverse momentum range
b984b0e1 1281 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1282 gener->SetYRange(-4.0,-2.4);
1283 gener->SetMuonPtCut(0.8);
1284 gener->SetMuonThetaCut(171.,178.);
1285 gener->SetMuonMultiplicity(2);
9c4fff20 1286 gener->SetImpactParameterRange(12.,16.); //Centrality class Cent1 for PDC04
b984b0e1 1287 gGener=gener;
1288 }
1289 break;
1290 case kMuonCocktailPer1:
1291 {
1292 comment = comment.Append(" Muon Cocktail Per1");
1293 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
9c4fff20 1294 gener->SetPtRange(0.0,100.); // Transverse momentum range
b984b0e1 1295 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1296 gener->SetYRange(-4.0,-2.4);
1297 gener->SetMuonPtCut(0.8);
1298 gener->SetMuonThetaCut(171.,178.);
1299 gener->SetMuonMultiplicity(2);
9c4fff20 1300 gener->SetImpactParameterRange(5.,8.6);//Centrality class Per1 for PDC04
b984b0e1 1301 gGener=gener;
1302 }
1303 break;
1304 case kMuonCocktailPer4:
1305 {
1306 comment = comment.Append(" Muon Cocktail Per4");
1307 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
9c4fff20 1308 gener->SetPtRange(0.0,100.); // Transverse momentum range
b984b0e1 1309 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1310 gener->SetYRange(-4.0,-2.4);
1311 gener->SetMuonPtCut(0.8);
1312 gener->SetMuonThetaCut(171.,178.);
1313 gener->SetMuonMultiplicity(2);
9c4fff20 1314 gener->SetImpactParameterRange(13.2,15.0);//Centrality class Per4 for PDC04
b984b0e1 1315 gGener=gener;
1316 }
1317 break;
1318 case kMuonCocktailCent1HighPt:
1319 {
1320 comment = comment.Append(" Muon Cocktail HighPt Cent1");
1321 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
9c4fff20 1322 gener->SetPtRange(0.0,100.); // Transverse momentum range
b984b0e1 1323 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1324 gener->SetYRange(-4.0,-2.4);
1325 gener->SetMuonPtCut(2.5);
1326 gener->SetMuonThetaCut(171.,178.);
1327 gener->SetMuonMultiplicity(2);
9c4fff20 1328 gener->SetImpactParameterRange(0.,5.); //Centrality class Cent1 for PDC04
b984b0e1 1329 gGener=gener;
1330 }
1331 break;
1332 case kMuonCocktailPer1HighPt :
1333 {
1334 comment = comment.Append(" Muon Cocktail HighPt Per1");
1335 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
9c4fff20 1336 gener->SetPtRange(0.0,100.); // Transverse momentum range
b984b0e1 1337 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1338 gener->SetYRange(-4.0,-2.4);
1339 gener->SetMuonPtCut(2.5);
1340 gener->SetMuonThetaCut(171.,178.);
1341 gener->SetMuonMultiplicity(2);
9c4fff20 1342 gener->SetImpactParameterRange(5.,8.6);//Centrality class Per1 for PDC04
b984b0e1 1343 gGener=gener;
1344 }
1345 break;
1346 case kMuonCocktailPer4HighPt:
1347 {
1348 comment = comment.Append(" Muon Cocktail HighPt Per4");
1349 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
9c4fff20 1350 gener->SetPtRange(0.0,100.); // Transverse momentum range
b984b0e1 1351 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1352 gener->SetYRange(-4.0,-2.4);
1353 gener->SetMuonPtCut(2.5);
1354 gener->SetMuonThetaCut(171.,178.);
1355 gener->SetMuonMultiplicity(2);
9c4fff20 1356 gener->SetImpactParameterRange(13.2,15.0);//Centrality class Per4 for PDC04
b984b0e1 1357 gGener=gener;
1358 }
1359 break;
1360 case kMuonCocktailCent1Single:
1361 {
1362 comment = comment.Append(" Muon Cocktail Single Cent1");
1363 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
9c4fff20 1364 gener->SetPtRange(0.0,100.); // Transverse momentum range
b984b0e1 1365 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1366 gener->SetYRange(-4.0,-2.4);
1367 gener->SetMuonPtCut(0.8);
1368 gener->SetMuonThetaCut(171.,178.);
1369 gener->SetMuonMultiplicity(1);
9c4fff20 1370 gener->SetImpactParameterRange(0.,5.); //Centrality class Cent1 for PDC04
b984b0e1 1371 gGener=gener;
1372 }
1373 break;
1374 case kMuonCocktailPer1Single :
1375 {
1376 comment = comment.Append(" Muon Cocktail Single Per1");
1377 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
9c4fff20 1378 gener->SetPtRange(0.0,100.); // Transverse momentum range
b984b0e1 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);
9c4fff20 1384 gener->SetImpactParameterRange(5.,8.6);//Centrality class Per1 for PDC04
b984b0e1 1385 gener->SetNumberOfParticipants(229.3);//Centrality class Per1 for PDC04
1386 gGener=gener;
1387 }
1388 break;
1389 case kMuonCocktailPer4Single:
1390 {
1391 comment = comment.Append(" Muon Cocktail Single Per4");
1392 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
9c4fff20 1393 gener->SetPtRange(0.0,100.); // Transverse momentum range
b984b0e1 1394 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1395 gener->SetYRange(-4.0,-2.4);
1396 gener->SetMuonPtCut(0.8);
1397 gener->SetMuonThetaCut(171.,178.);
1398 gener->SetMuonMultiplicity(1);
9c4fff20 1399 gener->SetImpactParameterRange(13.2,15.0);//Centrality class Per4 for PDC04
b984b0e1 1400 gGener=gener;
1401 }
1402 break;
3f7a17bb 1403 default: break;
36d4cb82 1404 }
de78d77f 1405 return gGener;
36d4cb82 1406}
1407
1408AliGenHijing* HijingStandard()
1409{
1410 AliGenHijing *gener = new AliGenHijing(-1);
1411// centre of mass energy
1412 gener->SetEnergyCMS(5500.);
1413// reference frame
1414 gener->SetReferenceFrame("CMS");
1415// projectile
1416 gener->SetProjectile("A", 208, 82);
1417 gener->SetTarget ("A", 208, 82);
1418// tell hijing to keep the full parent child chain
1419 gener->KeepFullEvent();
1420// enable jet quenching
dbed4b8c 1421 gener->SetJetQuenching(1);
36d4cb82 1422// enable shadowing
1423 gener->SetShadowing(1);
1424// neutral pion and heavy particle decays switched off
1425 gener->SetDecaysOff(1);
1426// Don't track spectators
1427 gener->SetSpectators(0);
1428// kinematic selection
1429 gener->SetSelectAll(0);
1430 return gener;
1431}
1432
1433
3f7a17bb 1434void ProcessEnvironmentVars()
1435{
1436 // Run type
1437 if (gSystem->Getenv("CONFIG_RUN_TYPE")) {
1438 for (Int_t iRun = 0; iRun < kRunMax; iRun++) {
1439 if (strcmp(gSystem->Getenv("CONFIG_RUN_TYPE"), pprRunName[iRun])==0) {
1440 srun = (PprRun_t)iRun;
1441 cout<<"Run type set to "<<pprRunName[iRun]<<endl;
1442 }
1443 }
1444 }
36d4cb82 1445
3f7a17bb 1446 // Random Number seed
1447 if (gSystem->Getenv("CONFIG_SEED")) {
1448 sseed = atoi(gSystem->Getenv("CONFIG_SEED"));
1449 }
1450}