Coding violations...
[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"
24#include "EVGEN/AliGenGSIlib.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,
70 kD_TRD, kB_TRD, kJpsi_TRD,
b984b0e1 71 kU_TRD, kPyJJ, kPyGJ,
72 kMuonCocktailCent1, kMuonCocktailPer1, kMuonCocktailPer4,
73 kMuonCocktailCent1HighPt, kMuonCocktailPer1HighPt, kMuonCocktailPer4HighPt,
74 kMuonCocktailCent1Single, kMuonCocktailPer1Single, kMuonCocktailPer4Single,
75 kRunMax
3f7a17bb 76};
77
78const char* pprRunName[kRunMax] = {
79 "test50",
80 "kParam_8000", "kParam_4000", "kParam_2000",
81 "kHijing_cent1", "kHijing_cent2",
82 "kHijing_per1", "kHijing_per2", "kHijing_per3", "kHijing_per4",
83 "kHijing_per5",
84 "kHijing_jj25", "kHijing_jj50", "kHijing_jj75", "kHijing_jj100",
85 "kHijing_jj200",
86 "kHijing_gj25", "kHijing_gj50", "kHijing_gj75", "kHijing_gj100",
13051068 87 "kHijing_gj200", "kHijing_pA", "kPythia6",
88 "kPythia6Jets20_24", "kPythia6Jets24_29", "kPythia6Jets29_35",
89 "kPythia6Jets35_42", "kPythia6Jets42_50", "kPythia6Jets50_60",
90 "kPythia6Jets60_72", "kPythia6Jets72_86", "kPythia6Jets86_104",
91 "kPythia6Jets104_125", "kPythia6Jets125_150", "kPythia6Jets150_180",
5d185da5 92 "kD0PbPb5500", "kCharmSemiElPbPb5500", "kBeautySemiElPbPb5500",
93 "kD_TRD", "kB_TRD", "kJpsi_TRD",
b984b0e1 94 "kU_TRD", "kPyJJ", "kPyGJ",
95 "kMuonCocktailCent1", "kMuonCocktailPer1", "kMuonCocktailPer4",
96 "kMuonCocktailCent1HighPt", "kMuonCocktailPer1HighPt", "kMuonCocktailPer4HighPt",
97 "kMuonCocktailCent1Single", "kMuonCocktailPer1Single", "kMuonCocktailPer4Single"
36d4cb82 98};
99
100enum PprGeo_t
101{
102 kHoles, kNoHoles
103};
104
105enum PprRad_t
106{
107 kGluonRadiation, kNoGluonRadiation
108};
109
cf3f928d 110enum PprMag_t
111{
112 k2kG, k4kG, k5kG
113};
114
115
36d4cb82 116// This part for configuration
de78d77f 117//static PprRun_t srun = test50;
b984b0e1 118static PprRun_t srun = kMuonCocktailCent1HighPt;
de78d77f 119static PprGeo_t sgeo = kHoles;
120static PprRad_t srad = kGluonRadiation;
b8cec322 121static PprMag_t smag = k5kG;
3f7a17bb 122static Int_t sseed = 12345; //Set 0 to use the current time
cf3f928d 123
36d4cb82 124// Comment line
125static TString comment;
126
de78d77f 127// Functions
128Float_t EtaToTheta(Float_t arg);
129AliGenerator* GeneratorFactory(PprRun_t srun);
130AliGenHijing* HijingStandard();
3f7a17bb 131void ProcessEnvironmentVars();
36d4cb82 132
133void Config()
134{
36d4cb82 135 // ThetaRange is (0., 180.). It was (0.28,179.72) 7/12/00 09:00
136 // Theta range given through pseudorapidity limits 22/6/2001
137
3f7a17bb 138 // Get settings from environment variables
139 ProcessEnvironmentVars();
140
36d4cb82 141 // Set Random Number seed
3f7a17bb 142 gRandom->SetSeed(sseed);
de78d77f 143 cout<<"Seed for random number generation= "<<gRandom->GetSeed()<<endl;
36d4cb82 144
de78d77f 145
146 // libraries required by geant321
147#if defined(__CINT__)
c8921088 148 gSystem->Load("libgeant321");
de78d77f 149#endif
c8921088 150
de78d77f 151 new TGeant3("C++ Interface to Geant3");
36d4cb82 152
de78d77f 153 AliRunLoader* rl=0x0;
36d4cb82 154
de78d77f 155 cout<<"Config.C: Creating Run Loader ..."<<endl;
156 rl = AliRunLoader::Open("galice.root",
5295b11b 157 AliConfig::GetDefaultEventFolderName(),
de78d77f 158 "recreate");
159 if (rl == 0x0)
160 {
161 gAlice->Fatal("Config.C","Can not instatiate the Run Loader");
162 return;
163 }
164 rl->SetCompressionLevel(2);
165 rl->SetNumberOfEventsPerFile(3);
166 gAlice->SetRunLoader(rl);
36d4cb82 167
36d4cb82 168 //
169 // Set External decayer
170 AliDecayer *decayer = new AliDecayerPythia();
171
5d185da5 172
173 switch (srun) {
174 case kD0PbPb5500:
175 decayer->SetForceDecay(kHadronicD);
176 break;
177 case kCharmSemiElPbPb5500:
178 decayer->SetForceDecay(kSemiElectronic);
179 break;
180 case kBeautySemiElPbPb5500:
181 decayer->SetForceDecay(kSemiElectronic);
182 break;
183 default:
184 decayer->SetForceDecay(kAll);
185 break;
186 }
36d4cb82 187 decayer->Init();
188 gMC->SetExternalDecayer(decayer);
189 //
190 //
191 //=======================================================================
36d4cb82 192 //
193 //=======================================================================
194 // ************* STEERING parameters FOR ALICE SIMULATION **************
195 // --- Specify event type to be tracked through the ALICE setup
196 // --- All positions are in cm, angles in degrees, and P and E in GeV
197
6a3df6c9 198 gMC->SetProcess("DCAY",1);
199 gMC->SetProcess("PAIR",1);
200 gMC->SetProcess("COMP",1);
201 gMC->SetProcess("PHOT",1);
202 gMC->SetProcess("PFIS",0);
203 gMC->SetProcess("DRAY",0);
204 gMC->SetProcess("ANNI",1);
205 gMC->SetProcess("BREM",1);
206 gMC->SetProcess("MUNU",1);
207 gMC->SetProcess("CKOV",1);
208 gMC->SetProcess("HADR",1);
209 gMC->SetProcess("LOSS",2);
210 gMC->SetProcess("MULS",1);
211 gMC->SetProcess("RAYL",1);
212
213 Float_t cut = 1.e-3; // 1MeV cut by default
214 Float_t tofmax = 1.e10;
215
216 gMC->SetCut("CUTGAM", cut);
217 gMC->SetCut("CUTELE", cut);
218 gMC->SetCut("CUTNEU", cut);
219 gMC->SetCut("CUTHAD", cut);
220 gMC->SetCut("CUTMUO", cut);
221 gMC->SetCut("BCUTE", cut);
222 gMC->SetCut("BCUTM", cut);
223 gMC->SetCut("DCUTE", cut);
224 gMC->SetCut("DCUTM", cut);
225 gMC->SetCut("PPCUTM", cut);
226 gMC->SetCut("TOFMAX", tofmax);
227
36d4cb82 228
229// Generator Configuration
5f86d7e6 230 gAlice->SetDebug(0);
de78d77f 231 AliGenerator* gener = GeneratorFactory(srun);
36d4cb82 232 gener->SetOrigin(0, 0, 0); // vertex position
233 gener->SetSigma(0, 0, 5.3); // Sigma in (X,Y,Z) (cm) on IP position
234 gener->SetCutVertexZ(1.); // Truncate at 1 sigma
235 gener->SetVertexSmear(kPerEvent);
236 gener->SetTrackingFlag(1);
237 gener->Init();
cf3f928d 238
de78d77f 239 if (smag == k2kG) {
cf3f928d 240 comment = comment.Append(" | L3 field 0.2 T");
de78d77f 241 } else if (smag == k4kG) {
cf3f928d 242 comment = comment.Append(" | L3 field 0.4 T");
de78d77f 243 } else if (smag == k5kG) {
cf3f928d 244 comment = comment.Append(" | L3 field 0.5 T");
245 }
246
247
de78d77f 248 if (srad == kGluonRadiation)
36d4cb82 249 {
250 comment = comment.Append(" | Gluon Radiation On");
251
252 } else {
253 comment = comment.Append(" | Gluon Radiation Off");
254 }
255
de78d77f 256 if (sgeo == kHoles)
36d4cb82 257 {
258 comment = comment.Append(" | Holes for PHOS/RICH");
259
260 } else {
261 comment = comment.Append(" | No holes for PHOS/RICH");
262 }
263
de78d77f 264 printf("\n \n Comment: %s \n \n", comment.Data());
36d4cb82 265
266
267// Field (L3 0.4 T)
de78d77f 268 AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., smag);
b8cec322 269 field->SetL3ConstField(0); //Using const. field in the barrel
de78d77f 270 rl->CdGAFile();
c9397ade 271 gAlice->SetField(field);
36d4cb82 272//
273 Int_t iABSO = 1;
36d4cb82 274 Int_t iDIPO = 1;
275 Int_t iFMD = 1;
276 Int_t iFRAME = 1;
277 Int_t iHALL = 1;
278 Int_t iITS = 1;
279 Int_t iMAG = 1;
280 Int_t iMUON = 1;
281 Int_t iPHOS = 1;
282 Int_t iPIPE = 1;
283 Int_t iPMD = 1;
284 Int_t iRICH = 1;
285 Int_t iSHIL = 1;
286 Int_t iSTART = 1;
287 Int_t iTOF = 1;
288 Int_t iTPC = 1;
289 Int_t iTRD = 1;
290 Int_t iZDC = 1;
7d0b3b31 291 Int_t iEMCAL = 1;
cf3f928d 292 Int_t iVZERO = 1;
21e394f9 293 Int_t iCRT = 0;
36d4cb82 294
295 //=================== Alice BODY parameters =============================
296 AliBODY *BODY = new AliBODY("BODY", "Alice envelop");
297
298
299 if (iMAG)
300 {
301 //=================== MAG parameters ============================
302 // --- Start with Magnet since detector layouts may be depending ---
303 // --- on the selected Magnet dimensions ---
304 AliMAG *MAG = new AliMAG("MAG", "Magnet");
305 }
306
307
308 if (iABSO)
309 {
310 //=================== ABSO parameters ============================
311 AliABSO *ABSO = new AliABSOv0("ABSO", "Muon Absorber");
312 }
313
314 if (iDIPO)
315 {
316 //=================== DIPO parameters ============================
317
318 AliDIPO *DIPO = new AliDIPOv2("DIPO", "Dipole version 2");
319 }
320
321 if (iHALL)
322 {
323 //=================== HALL parameters ============================
324
325 AliHALL *HALL = new AliHALL("HALL", "Alice Hall");
326 }
327
328
329 if (iFRAME)
330 {
331 //=================== FRAME parameters ============================
332
333 AliFRAMEv2 *FRAME = new AliFRAMEv2("FRAME", "Space Frame");
de78d77f 334 if (sgeo == kHoles) {
36d4cb82 335 FRAME->SetHoles(1);
336 } else {
337 FRAME->SetHoles(0);
338 }
339 }
340
341 if (iSHIL)
342 {
343 //=================== SHIL parameters ============================
344
21e394f9 345 AliSHIL *SHIL = new AliSHILv2("SHIL", "Shielding Version 2");
36d4cb82 346 }
347
348
349 if (iPIPE)
350 {
351 //=================== PIPE parameters ============================
352
353 AliPIPE *PIPE = new AliPIPEv0("PIPE", "Beam Pipe");
354 }
355
21e394f9 356 if(iITS) {
36d4cb82 357
e810b5b5 358 //=================== ITS parameters ============================
36d4cb82 359 //
360 // As the innermost detector in ALICE, the Inner Tracking System "impacts" on
361 // almost all other detectors. This involves the fact that the ITS geometry
362 // still has several options to be followed in parallel in order to determine
363 // the best set-up which minimizes the induced background. All the geometries
364 // available to date are described in the following. Read carefully the comments
365 // and use the default version (the only one uncommented) unless you are making
366 // comparisons and you know what you are doing. In this case just uncomment the
367 // ITS geometry you want to use and run Aliroot.
368 //
369 // Detailed geometries:
370 //
371 //
372 //AliITS *ITS = new AliITSv5symm("ITS","Updated ITS TDR detailed version with symmetric services");
373 //
374 //AliITS *ITS = new AliITSv5asymm("ITS","Updates ITS TDR detailed version with asymmetric services");
375 //
e1cd8da1 376 AliITSvPPRasymmFMD *ITS = new AliITSvPPRasymmFMD("ITS","New ITS PPR detailed version with asymmetric services");
377 ITS->SetMinorVersion(2); // don't touch this parameter if you're not an ITS developer
378 ITS->SetReadDet(kTRUE); // don't touch this parameter if you're not an ITS developer
36d4cb82 379 // ITS->SetWriteDet("$ALICE_ROOT/ITS/ITSgeometry_vPPRasymm2.det"); // don't touch this parameter if you're not an ITS developer
e810b5b5 380 ITS->SetThicknessDet1(200.); // detector thickness on layer 1 must be in the range [100,300]
381 ITS->SetThicknessDet2(200.); // detector thickness on layer 2 must be in the range [100,300]
382 ITS->SetThicknessChip1(200.); // chip thickness on layer 1 must be in the range [150,300]
383 ITS->SetThicknessChip2(200.); // chip thickness on layer 2 must be in the range [150,300]
384 ITS->SetRails(0); // 1 --> rails in ; 0 --> rails out
385 ITS->SetCoolingFluid(1); // 1 --> water ; 0 --> freon
e1cd8da1 386
36d4cb82 387 // Coarse geometries (warning: no hits are produced with these coarse geometries and they unuseful
388 // for reconstruction !):
389 //
390 //
391 //AliITSvPPRcoarseasymm *ITS = new AliITSvPPRcoarseasymm("ITS","New ITS PPR coarse version with asymmetric services");
e810b5b5 392 //ITS->SetRails(0); // 1 --> rails in ; 0 --> rails out
36d4cb82 393 //ITS->SetSupportMaterial(0); // 0 --> Copper ; 1 --> Aluminum ; 2 --> Carbon
394 //
395 //AliITS *ITS = new AliITSvPPRcoarsesymm("ITS","New ITS PPR coarse version with symmetric services");
e810b5b5 396 //ITS->SetRails(0); // 1 --> rails in ; 0 --> rails out
36d4cb82 397 //ITS->SetSupportMaterial(0); // 0 --> Copper ; 1 --> Aluminum ; 2 --> Carbon
398 //
399 //
400 //
401 // Geant3 <-> EUCLID conversion
402 // ============================
403 //
404 // SetEUCLID is a flag to output (=1) or not to output (=0) both geometry and
405 // media to two ASCII files (called by default ITSgeometry.euc and
406 // ITSgeometry.tme) in a format understandable to the CAD system EUCLID.
407 // The default (=0) means that you dont want to use this facility.
408 //
e810b5b5 409 ITS->SetEUCLID(0);
410 }
36d4cb82 411
412 if (iTPC)
413 {
414 //============================ TPC parameters ================================
415 // --- This allows the user to specify sectors for the SLOW (TPC geometry 2)
416 // --- Simulator. SecAL (SecAU) <0 means that ALL lower (upper)
417 // --- sectors are specified, any value other than that requires at least one
418 // --- sector (lower or upper)to be specified!
419 // --- Reminder: sectors 1-24 are lower sectors (1-12 -> z>0, 13-24 -> z<0)
420 // --- sectors 25-72 are the upper ones (25-48 -> z>0, 49-72 -> z<0)
421 // --- SecLows - number of lower sectors specified (up to 6)
422 // --- SecUps - number of upper sectors specified (up to 12)
423 // --- Sens - sensitive strips for the Slow Simulator !!!
424 // --- This does NOT work if all S or L-sectors are specified, i.e.
425 // --- if SecAL or SecAU < 0
426 //
427 //
428 //-----------------------------------------------------------------------------
429
430 // gROOT->LoadMacro("SetTPCParam.C");
431 // AliTPCParam *param = SetTPCParam();
432 AliTPC *TPC = new AliTPCv2("TPC", "Default");
433
434 // All sectors included
435 TPC->SetSecAL(-1);
436 TPC->SetSecAU(-1);
437
438 }
439
e810b5b5 440
36d4cb82 441 if (iTOF) {
36d4cb82 442 //=================== TOF parameters ============================
2253ef47 443 AliTOF *TOF = new AliTOFv4T0("TOF", "normal TOF");
36d4cb82 444 }
445
e810b5b5 446
36d4cb82 447 if (iRICH)
448 {
449 //=================== RICH parameters ===========================
b4f90c20 450 AliRICH *RICH = new AliRICHv1("RICH", "normal RICH");
36d4cb82 451
452 }
453
454
455 if (iZDC)
456 {
457 //=================== ZDC parameters ============================
458
459 AliZDC *ZDC = new AliZDCv2("ZDC", "normal ZDC");
460 }
461
36d4cb82 462 if (iTRD)
463 {
464 //=================== TRD parameters ============================
465
466 AliTRD *TRD = new AliTRDv1("TRD", "TRD slow simulator");
467
468 // Select the gas mixture (0: 97% Xe + 3% isobutane, 1: 90% Xe + 10% CO2)
469 TRD->SetGasMix(1);
de78d77f 470 if (sgeo == kHoles) {
36d4cb82 471 // With hole in front of PHOS
472 TRD->SetPHOShole();
473 // With hole in front of RICH
474 TRD->SetRICHhole();
475 }
476 // Switch on TR
477 AliTRDsim *TRDsim = TRD->CreateTR();
478 }
479
480 if (iFMD)
481 {
482 //=================== FMD parameters ============================
657f2294 483 AliFMD *FMD = new AliFMDv1("FMD", "normal FMD");
36d4cb82 484 }
485
486 if (iMUON)
487 {
488 //=================== MUON parameters ===========================
489
490 AliMUON *MUON = new AliMUONv1("MUON", "default");
b984b0e1 491 MUON->AddGeometryBuilder(new AliMUONSt1GeometryBuilderV2(MUON));
d13ed8f3 492 MUON->AddGeometryBuilder(new AliMUONSt2GeometryBuilder(MUON));
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;
78e738e5 1172 case kD_TRD:
1173 {
5d185da5 1174 comment = comment.Append(" Charm for TRD at 5.5 TeV");
78e738e5 1175 AliGenPythia *gener = new AliGenPythia(1);
1176 gener->SetCutOnChild(0);
1177 gener->SetStrucFunc(kCTEQ4L);
1178 gener->SetProcess(kPyCharm);
1179 gener->SetPtHard(0.,-1);
1180 gener->SetEnergyCMS(5500.);
5d185da5 1181 gener->SetNuclei(208,208);
78e738e5 1182 gGener=gener;
1183 }
1184 break;
1185 case kB_TRD:
1186 {
5d185da5 1187 comment = comment.Append(" Beauty for TRD at 5.5 TeV");
78e738e5 1188 AliGenPythia *gener = new AliGenPythia(1);
1189 gener->SetCutOnChild(0);
1190 gener->SetStrucFunc(kCTEQ4L);
1191 gener->SetProcess(kPyBeauty);
1192 gener->SetPtHard(0.,-1);
1193 gener->SetEnergyCMS(5500.);
5d185da5 1194 gener->SetNuclei(208,208);
78e738e5 1195 gGener=gener;
1196 }
1197 break;
1198 case kJpsi_TRD:
1199 {
1200 comment = comment.Append(" J/psi for TRD at 5.5 TeV");
1201 AliGenParam *gener = new AliGenParam(1,new AliGenGSIlib(),
1202 AliGenGSIlib::kJPsi,"MUON");
1203 gener->SetMomentumRange(0,999);
1204 gener->SetPtRange(0,30.);
1205 gener->SetPhiRange(0., 360.);
1206 gener->SetYRange(-0.9,+0.9);
1207 gener->SetForceDecay(kDiElectron);
1208 gGener=gener;
1209 }
1210 break;
1211 case kU_TRD:
1212 {
1213 comment = comment.Append(" Upsilon for TRD at 5.5 TeV");
1214 AliGenParam *gener = new AliGenParam(1,new AliGenGSIlib(),
1215 AliGenGSIlib::kUpsilon,"RITMAN");
1216 gener->SetMomentumRange(0,999);
1217 gener->SetPtRange(0,30.);
1218 gener->SetPhiRange(0., 360.);
1219 gener->SetYRange(-0.9,0.9);
1220 gener->SetForceDecay(kDiElectron);
1221 gGener=gener;
1222 }
1223 break;
1224 case kPyJJ:
1225 {
1226 comment = comment.Append(" Jet-jet at 5.5 TeV");
1227 AliGenPythia *gener = new AliGenPythia(-1);
1228 gener->SetEnergyCMS(5500.);
1229 gener->SetProcess(kPyJets);
1230 Double_t ptHardMin=10.0, ptHardMax=-1.0;
1231 gener->SetPtHard(ptHardMin,ptHardMax);
1232 gener->SetYHard(-0.7,0.7);
1233 gener->SetJetEtaRange(-0.2,0.2);
1234 gener->SetEventListRange(0,1);
1235 gGener=gener;
1236 }
1237 break;
1238 case kPyGJ:
1239 {
1240 comment = comment.Append(" Gamma-jet at 5.5 TeV");
1241 AliGenPythia *gener = new AliGenPythia(-1);
1242 gener->SetEnergyCMS(5500.);
1243 gener->SetProcess(kPyDirectGamma);
1244 Double_t ptHardMin=10.0, ptHardMax=-1.0;
1245 gener->SetPtHard(ptHardMin,ptHardMax);
1246 gener->SetYHard(-1.0,1.0);
1247 gener->SetGammaEtaRange(-0.13,0.13);
1248 gener->SetGammaPhiRange(210.,330.);
1249 gener->SetEventListRange(0,1);
1250 gGener=gener;
1251 }
1252 break;
b984b0e1 1253 case kMuonCocktailCent1:
1254 {
1255 comment = comment.Append(" Muon Cocktail Cent1");
1256 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1257 gener->SetPtRange(1.0,100.); // Transverse momentum range
1258 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1259 gener->SetYRange(-4.0,-2.4);
1260 gener->SetMuonPtCut(0.8);
1261 gener->SetMuonThetaCut(171.,178.);
1262 gener->SetMuonMultiplicity(2);
1263 gener->SetNumberOfCollisions(1626.); //Centrality class Cent1 for PDC04
1264 gener->SetNumberOfParticipants(359.4);//Centrality class Cent1 for PDC04
1265 gGener=gener;
1266 }
1267 break;
1268 case kMuonCocktailPer1:
1269 {
1270 comment = comment.Append(" Muon Cocktail Per1");
1271 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1272 gener->SetPtRange(1.0,100.); // Transverse momentum range
1273 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1274 gener->SetYRange(-4.0,-2.4);
1275 gener->SetMuonPtCut(0.8);
1276 gener->SetMuonThetaCut(171.,178.);
1277 gener->SetMuonMultiplicity(2);
1278 gener->SetNumberOfCollisions(820.0);//Centrality class Per1 for PDC04
1279 gener->SetNumberOfParticipants(229.3);//Centrality class Per1 for PDC04
1280 gGener=gener;
1281 }
1282 break;
1283 case kMuonCocktailPer4:
1284 {
1285 comment = comment.Append(" Muon Cocktail Per4");
1286 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1287 gener->SetPtRange(1.0,100.); // Transverse momentum range
1288 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1289 gener->SetYRange(-4.0,-2.4);
1290 gener->SetMuonPtCut(0.8);
1291 gener->SetMuonThetaCut(171.,178.);
1292 gener->SetMuonMultiplicity(2);
1293 gener->SetNumberOfCollisions(13.6);//Centrality class Per4 for PDC04
1294 gener->SetNumberOfParticipants(13.3);//Centrality class Per4 for PDC04
1295 gGener=gener;
1296 }
1297 break;
1298 case kMuonCocktailCent1HighPt:
1299 {
1300 comment = comment.Append(" Muon Cocktail HighPt Cent1");
1301 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1302 gener->SetPtRange(1.0,100.); // Transverse momentum range
1303 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1304 gener->SetYRange(-4.0,-2.4);
1305 gener->SetMuonPtCut(2.5);
1306 gener->SetMuonThetaCut(171.,178.);
1307 gener->SetMuonMultiplicity(2);
1308 gener->SetNumberOfCollisions(1626.); //Centrality class Cent1 for PDC04
1309 gener->SetNumberOfParticipants(359.4);//Centrality class Cent1 for PDC04
1310 gGener=gener;
1311 }
1312 break;
1313 case kMuonCocktailPer1HighPt :
1314 {
1315 comment = comment.Append(" Muon Cocktail HighPt Per1");
1316 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1317 gener->SetPtRange(1.0,100.); // Transverse momentum range
1318 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1319 gener->SetYRange(-4.0,-2.4);
1320 gener->SetMuonPtCut(2.5);
1321 gener->SetMuonThetaCut(171.,178.);
1322 gener->SetMuonMultiplicity(2);
1323 gener->SetNumberOfCollisions(820.0);//Centrality class Per1 for PDC04
1324 gener->SetNumberOfParticipants(229.3);//Centrality class Per1 for PDC04
1325 gGener=gener;
1326 }
1327 break;
1328 case kMuonCocktailPer4HighPt:
1329 {
1330 comment = comment.Append(" Muon Cocktail HighPt Per4");
1331 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1332 gener->SetPtRange(1.0,100.); // Transverse momentum range
1333 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1334 gener->SetYRange(-4.0,-2.4);
1335 gener->SetMuonPtCut(2.5);
1336 gener->SetMuonThetaCut(171.,178.);
1337 gener->SetMuonMultiplicity(2);
1338 gener->SetNumberOfCollisions(13.6);//Centrality class Per4 for PDC04
1339 gener->SetNumberOfParticipants(13.3);//Centrality class Per4 for PDC04
1340 gGener=gener;
1341 }
1342 break;
1343 case kMuonCocktailCent1Single:
1344 {
1345 comment = comment.Append(" Muon Cocktail Single Cent1");
1346 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1347 gener->SetPtRange(1.0,100.); // Transverse momentum range
1348 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1349 gener->SetYRange(-4.0,-2.4);
1350 gener->SetMuonPtCut(0.8);
1351 gener->SetMuonThetaCut(171.,178.);
1352 gener->SetMuonMultiplicity(1);
1353 gener->SetNumberOfCollisions(1626.); //Centrality class Cent1 for PDC04
1354 gener->SetNumberOfParticipants(359.4);//Centrality class Cent1 for PDC04
1355 gGener=gener;
1356 }
1357 break;
1358 case kMuonCocktailPer1Single :
1359 {
1360 comment = comment.Append(" Muon Cocktail Single Per1");
1361 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1362 gener->SetPtRange(1.0,100.); // Transverse momentum range
1363 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1364 gener->SetYRange(-4.0,-2.4);
1365 gener->SetMuonPtCut(0.8);
1366 gener->SetMuonThetaCut(171.,178.);
1367 gener->SetMuonMultiplicity(1);
1368 gener->SetNumberOfCollisions(820.0);//Centrality class Per1 for PDC04
1369 gener->SetNumberOfParticipants(229.3);//Centrality class Per1 for PDC04
1370 gGener=gener;
1371 }
1372 break;
1373 case kMuonCocktailPer4Single:
1374 {
1375 comment = comment.Append(" Muon Cocktail Single Per4");
1376 AliGenMUONCocktail * gener = new AliGenMUONCocktail();
1377 gener->SetPtRange(1.0,100.); // Transverse momentum range
1378 gener->SetPhiRange(0.,360.); // Azimuthal angle range
1379 gener->SetYRange(-4.0,-2.4);
1380 gener->SetMuonPtCut(0.8);
1381 gener->SetMuonThetaCut(171.,178.);
1382 gener->SetMuonMultiplicity(1);
1383 gener->SetNumberOfCollisions(13.6);//Centrality class Per4 for PDC04
1384 gener->SetNumberOfParticipants(13.3);//Centrality class Per4 for PDC04
1385 gGener=gener;
1386 }
1387 break;
3f7a17bb 1388 default: break;
36d4cb82 1389 }
de78d77f 1390 return gGener;
36d4cb82 1391}
1392
1393AliGenHijing* HijingStandard()
1394{
1395 AliGenHijing *gener = new AliGenHijing(-1);
1396// centre of mass energy
1397 gener->SetEnergyCMS(5500.);
1398// reference frame
1399 gener->SetReferenceFrame("CMS");
1400// projectile
1401 gener->SetProjectile("A", 208, 82);
1402 gener->SetTarget ("A", 208, 82);
1403// tell hijing to keep the full parent child chain
1404 gener->KeepFullEvent();
1405// enable jet quenching
dbed4b8c 1406 gener->SetJetQuenching(1);
36d4cb82 1407// enable shadowing
1408 gener->SetShadowing(1);
1409// neutral pion and heavy particle decays switched off
1410 gener->SetDecaysOff(1);
1411// Don't track spectators
1412 gener->SetSpectators(0);
1413// kinematic selection
1414 gener->SetSelectAll(0);
1415 return gener;
1416}
1417
1418
3f7a17bb 1419void ProcessEnvironmentVars()
1420{
1421 // Run type
1422 if (gSystem->Getenv("CONFIG_RUN_TYPE")) {
1423 for (Int_t iRun = 0; iRun < kRunMax; iRun++) {
1424 if (strcmp(gSystem->Getenv("CONFIG_RUN_TYPE"), pprRunName[iRun])==0) {
1425 srun = (PprRun_t)iRun;
1426 cout<<"Run type set to "<<pprRunName[iRun]<<endl;
1427 }
1428 }
1429 }
36d4cb82 1430
3f7a17bb 1431 // Random Number seed
1432 if (gSystem->Getenv("CONFIG_SEED")) {
1433 sseed = atoi(gSystem->Getenv("CONFIG_SEED"));
1434 }
1435}