]> git.uio.no Git - u/mrichter/AliRoot.git/blame - macros/Config_PythiaHeavyFlavours.C
Corrections for gcc 4.0
[u/mrichter/AliRoot.git] / macros / Config_PythiaHeavyFlavours.C
CommitLineData
6ccd5a72 1//*******************************************************************//
2// Configuration file for charm / beauty generation with PYTHIA //
3// //
4// The parameters have been tuned in order to reproduce the inclusive//
5// heavy quark pt distribution given by the NLO pQCD calculation by //
6// Mangano, Nason and Ridolfi. //
7// //
8// For details and for the NORMALIZATION of the yields see: //
72fc043d 9// N.Carrer and A.Dainese, //
10// "Charm and beauty production at the LHC", //
e196c4dc 11// ALICE-INT-2003-019, [arXiv:hep-ph/0311225]. //
6ccd5a72 12//*******************************************************************//
de78d77f 13#if !defined(__CINT__) || defined(__MAKECINT__)
14#include <Riostream.h>
15#include <TRandom.h>
16#include <TDatime.h>
17#include <TSystem.h>
18#include <TVirtualMC.h>
19#include <TGeant3.h>
20#include "STEER/AliRunLoader.h"
21#include "STEER/AliRun.h"
22#include "STEER/AliConfig.h"
23#include "PYTHIA6/AliDecayerPythia.h"
24#include "PYTHIA6/AliGenPythia.h"
25#include "STEER/AliMagFMaps.h"
26#include "STRUCT/AliBODY.h"
27#include "STRUCT/AliMAG.h"
28#include "STRUCT/AliABSOv0.h"
29#include "STRUCT/AliDIPOv2.h"
30#include "STRUCT/AliHALL.h"
31#include "STRUCT/AliFRAMEv2.h"
32#include "STRUCT/AliSHILv2.h"
33#include "STRUCT/AliPIPEv0.h"
7005f584 34#include "ITS/AliITSvPPRasymmFMD.h"
de78d77f 35#include "TPC/AliTPCv2.h"
2253ef47 36#include "TOF/AliTOFv4T0.h"
de78d77f 37#include "RICH/AliRICHv1.h"
38#include "ZDC/AliZDCv1.h"
39#include "TRD/AliTRDv1.h"
40#include "FMD/AliFMDv0.h"
41#include "MUON/AliMUONv1.h"
42#include "PHOS/AliPHOSv1.h"
43#include "PMD/AliPMDv1.h"
44#include "START/AliSTARTv1.h"
45#include "CRT/AliCRTv1.h"
46#endif
6ccd5a72 47
48//--- Heavy Flavour Production ---
49enum ProcessHvFl_t
50{
51 kCharmPbPb5500, kCharmpPb8800, kCharmpp14000,
52 kD0PbPb5500, kD0pPb8800, kD0pp14000,
72fc043d 53 kDPlusPbPb5500, kDPluspPb8800, kDPluspp14000,
6ccd5a72 54 kBeautyPbPb5500, kBeautypPb8800, kBeautypp14000
55};
56//--- Decay Mode ---
57enum DecayHvFl_t
58{
59 kNature, kHadr, kSemiEl, kSemiMu
60};
61//--- Rapidity Cut ---
62enum YCut_t
63{
64 kFull, kBarrel, kMuonArm
65};
66//--- Magnetic Field ---
67enum Mag_t
68{
69 k2kG, k4kG, k5kG
70};
de78d77f 71//--- Functions ---
72AliGenPythia *PythiaHVQ(ProcessHvFl_t proc);
73
6ccd5a72 74
75// This part for configuration
76static ProcessHvFl_t procHvFl = kCharmPbPb5500;
77static DecayHvFl_t decHvFl = kNature;
78static YCut_t ycut = kFull;
79static Mag_t mag = k4kG;
80// nEvts = -1 : you get 1 QQbar pair and all the fragmentation and
81// decay chain
82// nEvts = N>0 : you get N charm / beauty Hadrons
83Int_t nEvts = -1;
84// stars = kTRUE : all heavy resonances and their decay stored
85// = kFALSE: only final heavy hadrons and their decays stored
86Bool_t stars = kTRUE;
87
88
89// Comment line
90static TString comment;
91
92void Config()
93{
94
95 //========================//
96 // Set Random Number seed //
97 //========================//
98 TDatime dt;
99 UInt_t curtime=dt.Get();
100 UInt_t procid=gSystem->GetPid();
101 UInt_t seed=curtime-procid;
102
de78d77f 103 // gRandom->SetSeed(seed);
72fc043d 104 // cerr<<"Seed for random number generation= "<<seed<<endl;
6ccd5a72 105 gRandom->SetSeed(12345);
72fc043d 106
6ccd5a72 107
108 // libraries required by geant321
de78d77f 109#if defined(__CINT__)
6ccd5a72 110 gSystem->Load("libgeant321");
de78d77f 111#endif
6ccd5a72 112
b0470150 113 new TGeant3TGeo("C++ Interface to Geant3");
6ccd5a72 114
115 //=======================================================================
116 // Create the output file
de78d77f 117
118
119 AliRunLoader* rl=0x0;
120
121 cout<<"Config.C: Creating Run Loader ..."<<endl;
122 rl = AliRunLoader::Open("galice.root",
f5a857b2 123 AliConfig::GetDefaultEventFolderName(),
de78d77f 124 "recreate");
125 if (rl == 0x0)
126 {
127 gAlice->Fatal("Config.C","Can not instatiate the Run Loader");
128 return;
129 }
130 rl->SetCompressionLevel(2);
131 rl->SetNumberOfEventsPerFile(3);
132 gAlice->SetRunLoader(rl);
133
6ccd5a72 134 //
135 //=======================================================================
136 // ************* STEERING parameters FOR ALICE SIMULATION **************
137 // --- Specify event type to be tracked through the ALICE setup
138 // --- All positions are in cm, angles in degrees, and P and E in GeV
6a3df6c9 139
140
141 gMC->SetProcess("DCAY",1);
142 gMC->SetProcess("PAIR",1);
143 gMC->SetProcess("COMP",1);
144 gMC->SetProcess("PHOT",1);
145 gMC->SetProcess("PFIS",0);
146 gMC->SetProcess("DRAY",0);
147 gMC->SetProcess("ANNI",1);
148 gMC->SetProcess("BREM",1);
149 gMC->SetProcess("MUNU",1);
150 gMC->SetProcess("CKOV",1);
151 gMC->SetProcess("HADR",1);
152 gMC->SetProcess("LOSS",2);
153 gMC->SetProcess("MULS",1);
154 gMC->SetProcess("RAYL",1);
155
156 Float_t cut = 1.e-3; // 1MeV cut by default
157 Float_t tofmax = 1.e10;
158
159 gMC->SetCut("CUTGAM", cut);
160 gMC->SetCut("CUTELE", cut);
161 gMC->SetCut("CUTNEU", cut);
162 gMC->SetCut("CUTHAD", cut);
163 gMC->SetCut("CUTMUO", cut);
164 gMC->SetCut("BCUTE", cut);
165 gMC->SetCut("BCUTM", cut);
166 gMC->SetCut("DCUTE", cut);
167 gMC->SetCut("DCUTM", cut);
168 gMC->SetCut("PPCUTM", cut);
169 gMC->SetCut("TOFMAX", tofmax);
170
171
172
173
6ccd5a72 174 // Set External decayer //
175 //======================//
176 TVirtualMCDecayer* decayer = new AliDecayerPythia();
177 // DECAYS
178 //
179 switch(decHvFl) {
180 case kNature:
181 decayer->SetForceDecay(kAll);
182 break;
183 case kHadr:
184 decayer->SetForceDecay(kHadronicD);
185 break;
186 case kSemiEl:
187 decayer->SetForceDecay(kSemiElectronic);
188 break;
189 case kSemiMu:
190 decayer->SetForceDecay(kSemiMuonic);
191 break;
192 }
193 decayer->Init();
194 gMC->SetExternalDecayer(decayer);
195
196 //=========================//
197 // Generator Configuration //
198 //=========================//
199 AliGenPythia *pythia = PythiaHVQ(procHvFl);
200 // FeedDown option
201 pythia->SetFeedDownHigherFamily(kFALSE);
202 // Stack filling option
203 if(!stars) pythia->SetStackFillOpt(AliGenPythia::kParentSelection);
204 // Set Count mode
205 if(nEvts>0) pythia->SetCountMode(AliGenPythia::kCountParents);
206 // DECAYS
207 //
208 switch(decHvFl) {
209 case kNature:
210 pythia->SetForceDecay(kAll);
211 break;
212 case kHadr:
213 pythia->SetForceDecay(kHadronicD);
214 break;
215 case kSemiEl:
216 pythia->SetForceDecay(kSemiElectronic);
217 break;
218 case kSemiMu:
219 pythia->SetForceDecay(kSemiMuonic);
220 break;
221 }
222 // GEOM & KINE CUTS
223 //
224 pythia->SetMomentumRange(0,99999999);
0ac28de4 225 pythia->SetPhiRange(0., 360.);
6ccd5a72 226 pythia->SetThetaRange(0,180);
227 switch(ycut) {
228 case kFull:
229 pythia->SetYRange(-999,999);
230 break;
231 case kBarrel:
232 pythia->SetYRange(-2,2);
233 break;
234 case kMuonArm:
235 pythia->SetYRange(1,6);
236 break;
237 }
238
239 // PRIMARY VERTEX
240 //
241 pythia->SetOrigin(0, 0, 0); // vertex position
242 pythia->SetSigma(0, 0, 5.3); // Sigma in (X,Y,Z) (cm) on IP position
243 pythia->SetCutVertexZ(1.); // Truncate at 1 sigma
244 pythia->SetVertexSmear(kPerEvent);
245
246
247
248 pythia->SetTrackingFlag(0);
249 // Specify GEANT tracking limits (Rmax, Zmax)
e196c4dc 250 //gAlice->GetMCApp()->TrackingLimits(90.,1.0e10);
6ccd5a72 251
252
253 pythia->Init();
254
255 // FIELD
256 //
257 if (mag == k2kG) {
258 comment = comment.Append(" | L3 field 0.2 T");
259 } else if (mag == k4kG) {
260 comment = comment.Append(" | L3 field 0.4 T");
261 } else if (mag == k5kG) {
262 comment = comment.Append(" | L3 field 0.5 T");
263 }
de78d77f 264 printf("\n \n Comment: %s \n \n", comment.Data());
6ccd5a72 265
266 AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., mag);
e196c4dc 267 field->SetL3ConstField(0); //Using const. field in the barrel
de78d77f 268 rl->CdGAFile();
6ccd5a72 269 gAlice->SetField(field);
270
271
272 // By default all ALICE is switched off
273 Int_t iABSO=0;
274 Int_t iCRT=0;
275 Int_t iDIPO=0;
276 Int_t iFMD=0;
277 Int_t iFRAME=0;
278 Int_t iHALL=0;
279 Int_t iITS=0;
280 Int_t iMAG=0;
281 Int_t iMUON=0;
282 Int_t iPHOS=0;
283 Int_t iPIPE=0;
284 Int_t iPMD=0;
285 Int_t iRICH=0;
286 Int_t iSHIL=0;
287 Int_t iSTART=0;
288 Int_t iTOF=0;
289 Int_t iTPC=0;
290 Int_t iTRD=0;
291 Int_t iZDC=0;
292
293 //=================== Alice BODY parameters =============================
294 AliBODY *BODY = new AliBODY("BODY","Alice envelop");
295
296 if(iMAG) {
297 //=================== MAG parameters ============================
298 // --- Start with Magnet since detector layouts may be depending ---
299 // --- on the selected Magnet dimensions ---
300 AliMAG *MAG = new AliMAG("MAG","Magnet");
301 }
302
303
304 if(iABSO) {
305 //=================== ABSO parameters ============================
306 AliABSO *ABSO = new AliABSOv0("ABSO","Muon Absorber");
307 }
308
309 if(iDIPO) {
310 //=================== DIPO parameters ============================
311
312 AliDIPO *DIPO = new AliDIPOv2("DIPO","Dipole version 2");
313 }
314
315 if(iHALL) {
316 //=================== HALL parameters ============================
317
318 AliHALL *HALL = new AliHALL("HALL","Alice Hall");
319 }
320
321
322 if(iFRAME) {
323 //=================== FRAME parameters ============================
324
325 AliFRAME *FRAME = new AliFRAMEv2("FRAME","Space Frame");
326
327 }
328
329 if(iSHIL) {
330 //=================== SHIL parameters ============================
331
332 AliSHIL *SHIL = new AliSHILv2("SHIL","Shielding");
333 }
334
335
336 if(iPIPE) {
337 //=================== PIPE parameters ============================
338
339 AliPIPE *PIPE = new AliPIPEv0("PIPE","Beam Pipe");
340 }
341
342
343 if(iITS) {
344
345//=================== ITS parameters ============================
346 //
347 // As the innermost detector in ALICE, the Inner Tracking System "impacts" on
348 // almost all other detectors. This involves the fact that the ITS geometry
349 // still has several options to be followed in parallel in order to determine
350 // the best set-up which minimizes the induced background. All the geometries
351 // available to date are described in the following. Read carefully the comments
352 // and use the default version (the only one uncommented) unless you are making
353 // comparisons and you know what you are doing. In this case just uncomment the
354 // ITS geometry you want to use and run Aliroot.
355 //
356 // Detailed geometries:
357 //
358 //
359 //AliITS *ITS = new AliITSv5symm("ITS","Updated ITS TDR detailed version with symmetric services");
360 //
361 //AliITS *ITS = new AliITSv5asymm("ITS","Updates ITS TDR detailed version with asymmetric services");
362 //
7005f584 363 AliITSvPPRasymmFMD *ITS = new AliITSvPPRasymmFMD("ITS","New ITS PPR detailed version with asymmetric services");
6ccd5a72 364 ITS->SetMinorVersion(2); // don't touch this parameter if you're not an ITS developer
365 ITS->SetReadDet(kFALSE); // don't touch this parameter if you're not an ITS developer
366 ITS->SetWriteDet("$ALICE_ROOT/ITS/ITSgeometry_vPPRasymm2.det"); // don't touch this parameter if you're not an ITS developer
367 ITS->SetThicknessDet1(200.); // detector thickness on layer 1 must be in the range [150,300]
368 ITS->SetThicknessDet2(200.); // detector thickness on layer 2 must be in the range [150,300]
369 ITS->SetThicknessChip1(200.); // chip thickness on layer 1 must be in the range [100,300]
370 ITS->SetThicknessChip2(200.); // chip thickness on layer 2 must be in the range [100,300]
371 ITS->SetRails(1); // 1 --> rails in ; 0 --> rails out
372 ITS->SetCoolingFluid(1); // 1 --> water ; 0 --> freon
373 //
374 //AliITSvPPRsymm *ITS = new AliITSvPPRsymm("ITS","New ITS PPR detailed version with symmetric services");
375 //ITS->SetMinorVersion(2); // don't touch this parameter if you're not an ITS developer
376 //ITS->SetReadDet(kFALSE); // don't touch this parameter if you're not an ITS developer
377 //ITS->SetWriteDet("$ALICE_ROOT/ITS/ITSgeometry_vPPRsymm2.det"); // don't touch this parameter if you're not an ITS developer
378 //ITS->SetThicknessDet1(300.); // detector thickness on layer 1 must be in the range [150,300]
379 //ITS->SetThicknessDet2(300.); // detector thickness on layer 2 must be in the range [150,300]
380 //ITS->SetThicknessChip1(300.); // chip thickness on layer 1 must be in the range [100,300]
381 //ITS->SetThicknessChip2(300.); // chip thickness on layer 2 must be in the range [100,300]
382 //ITS->SetRails(1); // 1 --> rails in ; 0 --> rails out
383 //ITS->SetCoolingFluid(1); // 1 --> water ; 0 --> freon
384 //
385 //
386 // Coarse geometries (warning: no hits are produced with these coarse geometries and they unuseful
387 // for reconstruction !):
388 //
389 //
390 //AliITSvPPRcoarseasymm *ITS = new AliITSvPPRcoarseasymm("ITS","New ITS PPR coarse version with asymmetric services");
391 //ITS->SetRails(1); // 1 --> rails in ; 0 --> rails out
392 //ITS->SetSupportMaterial(0); // 0 --> Copper ; 1 --> Aluminum ; 2 --> Carbon
393 //
394 //AliITS *ITS = new AliITSvPPRcoarsesymm("ITS","New ITS PPR coarse version with symmetric services");
395 //ITS->SetRails(1); // 1 --> rails in ; 0 --> rails out
396 //ITS->SetSupportMaterial(0); // 0 --> Copper ; 1 --> Aluminum ; 2 --> Carbon
397 //
398 //
399 //
400 // Geant3 <-> EUCLID conversion
401 // ============================
402 //
403 // SetEUCLID is a flag to output (=1) or not to output (=0) both geometry and
404 // media to two ASCII files (called by default ITSgeometry.euc and
405 // ITSgeometry.tme) in a format understandable to the CAD system EUCLID.
406 // The default (=0) means that you dont want to use this facility.
407 //
408 ITS->SetEUCLID(0);
409 }
410
411
412 if(iTPC) {
413 //============================ TPC parameters ================================
414 // --- This allows the user to specify sectors for the SLOW (TPC geometry 2)
415 // --- Simulator. SecAL (SecAU) <0 means that ALL lower (upper)
416 // --- sectors are specified, any value other than that requires at least one
417 // --- sector (lower or upper)to be specified!
418 // --- Reminder: sectors 1-24 are lower sectors (1-12 -> z>0, 13-24 -> z<0)
419 // --- sectors 25-72 are the upper ones (25-48 -> z>0, 49-72 -> z<0)
420 // --- SecLows - number of lower sectors specified (up to 6)
421 // --- SecUps - number of upper sectors specified (up to 12)
422 // --- Sens - sensitive strips for the Slow Simulator !!!
423 // --- This does NOT work if all S or L-sectors are specified, i.e.
424 // --- if SecAL or SecAU < 0
425 //
426 //
427 //-----------------------------------------------------------------------------
428
429 // gROOT->LoadMacro("SetTPCParam.C");
430 // AliTPCParam *param = SetTPCParam();
431 AliTPC *TPC = new AliTPCv2("TPC","Default");
432 // All sectors included
433 TPC->SetSecAL(-1);
434 TPC->SetSecAU(-1);
435
436 }
437
438
439 if(iTOF) {
440 //=================== TOF parameters ============================
2253ef47 441 AliTOF *TOF = new AliTOFv4T0("TOF","normal TOF");
6ccd5a72 442 }
443
444 if(iRICH) {
445 //=================== RICH parameters ===========================
446 AliRICH *RICH = new AliRICHv1("RICH","normal RICH");
447
448 }
449
450
451 if(iZDC) {
452 //=================== ZDC parameters ============================
453
454 AliZDC *ZDC = new AliZDCv1("ZDC","normal ZDC");
455 }
456
457 if(iCRT) {
458 //=================== CRT parameters ============================
459
460 AliCRT *CRT = new AliCRTv1("CRT","normal CRT");
461 }
462
463 if(iTRD) {
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);
470
471 // With hole in front of PHOS
472 TRD->SetPHOShole();
473 // With hole in front of RICH
474 TRD->SetRICHhole();
475 // Switch on TR
476 AliTRDsim *TRDsim = TRD->CreateTR();
477 }
478
479 if(iFMD) {
480 //=================== FMD parameters ============================
481
482 AliFMD *FMD = new AliFMDv0("FMD","normal FMD");
483 }
484
485 if(iMUON) {
486 //=================== MUON parameters ===========================
487 AliMUON *MUON = new AliMUONv1("MUON","default");
488 }
489
490 //=================== PHOS parameters ===========================
491
492 if(iPHOS) {
493 AliPHOS *PHOS = new AliPHOSv1("PHOS","GPS2");
494 }
495
496
497 //=================== CRT parameters ===========================
498
499 if(iCRT) {
500 AliCRT *CRT = new AliCRTv1("CRT","Normal CRTGPS2");
501 }
502
503
504 if(iPMD) {
505 //=================== PMD parameters ============================
506
507 AliPMD *PMD = new AliPMDv1("PMD","normal PMD");
508 PMD->SetPAR(1., 1., 0.8, 0.02);
509 PMD->SetIN(6., 18., -580., 27., 27.);
510 PMD->SetGEO(0.0, 0.2, 4.);
511 PMD->SetPadSize(0.8, 1.0, 1.0, 1.5);
512
513 }
514
515 if(iSTART) {
516 //=================== START parameters ============================
517 AliSTART *START = new AliSTARTv1("START","START Detector");
518 }
519
520
521}
522//
523// PYTHIA
524//
525AliGenPythia *PythiaHVQ(ProcessHvFl_t proc) {
526
de78d77f 527 AliGenPythia * gener = 0x0;
528
6ccd5a72 529 switch(proc) {
530 case kCharmPbPb5500:
531 comment = comment.Append(" Charm in Pb-Pb at 5.5 TeV");
de78d77f 532 gener = new AliGenPythia(nEvts);
6ccd5a72 533 gener->SetProcess(kPyCharmPbPbMNR);
534 gener->SetStrucFunc(kCTEQ4L);
535 gener->SetPtHard(2.1,-1.0);
536 gener->SetEnergyCMS(5500.);
537 gener->SetNuclei(208,208);
538 break;
539 case kCharmpPb8800:
540 comment = comment.Append(" Charm in p-Pb at 8.8 TeV");
de78d77f 541 gener = new AliGenPythia(nEvts);
6ccd5a72 542 gener->SetProcess(kPyCharmpPbMNR);
543 gener->SetStrucFunc(kCTEQ4L);
544 gener->SetPtHard(2.1,-1.0);
545 gener->SetEnergyCMS(8800.);
546 gener->SetProjectile("P",1,1);
547 gener->SetTarget("Pb",208,82);
548 break;
549 case kCharmpp14000:
550 comment = comment.Append(" Charm in pp at 14 TeV");
de78d77f 551 gener = new AliGenPythia(nEvts);
6ccd5a72 552 gener->SetProcess(kPyCharmppMNR);
553 gener->SetStrucFunc(kCTEQ4L);
554 gener->SetPtHard(2.1,-1.0);
555 gener->SetEnergyCMS(14000.);
556 break;
557 case kD0PbPb5500:
558 comment = comment.Append(" D0 in Pb-Pb at 5.5 TeV");
de78d77f 559 gener = new AliGenPythia(nEvts);
6ccd5a72 560 gener->SetProcess(kPyD0PbPbMNR);
561 gener->SetStrucFunc(kCTEQ4L);
562 gener->SetPtHard(2.1,-1.0);
563 gener->SetEnergyCMS(5500.);
564 gener->SetNuclei(208,208);
565 break;
566 case kD0pPb8800:
567 comment = comment.Append(" D0 in p-Pb at 8.8 TeV");
de78d77f 568 gener = new AliGenPythia(nEvts);
6ccd5a72 569 gener->SetProcess(kPyD0pPbMNR);
570 gener->SetStrucFunc(kCTEQ4L);
571 gener->SetPtHard(2.1,-1.0);
572 gener->SetEnergyCMS(8800.);
573 gener->SetProjectile("P",1,1);
574 gener->SetTarget("Pb",208,82);
575 break;
576 case kD0pp14000:
577 comment = comment.Append(" D0 in pp at 14 TeV");
de78d77f 578 gener = new AliGenPythia(nEvts);
6ccd5a72 579 gener->SetProcess(kPyD0ppMNR);
580 gener->SetStrucFunc(kCTEQ4L);
72fc043d 581 gener->SetPtHard(2.1,-1.0);
582 gener->SetEnergyCMS(14000.);
583 break;
584 case kDPlusPbPb5500:
585 comment = comment.Append(" DPlus in Pb-Pb at 5.5 TeV");
586 gener = new AliGenPythia(nEvts);
587 gener->SetProcess(kPyDPlusPbPbMNR);
588 gener->SetStrucFunc(kCTEQ4L);
589 gener->SetPtHard(2.1,-1.0);
590 gener->SetEnergyCMS(5500.);
591 gener->SetNuclei(208,208);
592 break;
593 case kDPluspPb8800:
594 comment = comment.Append(" DPlus in p-Pb at 8.8 TeV");
595 gener = new AliGenPythia(nEvts);
596 gener->SetProcess(kPyDPluspPbMNR);
597 gener->SetStrucFunc(kCTEQ4L);
598 gener->SetPtHard(2.1,-1.0);
599 gener->SetEnergyCMS(8800.);
600 gener->SetProjectile("P",1,1);
601 gener->SetTarget("Pb",208,82);
602 break;
603 case kDPluspp14000:
604 comment = comment.Append(" DPlus in pp at 14 TeV");
605 gener = new AliGenPythia(nEvts);
606 gener->SetProcess(kPyDPlusppMNR);
607 gener->SetStrucFunc(kCTEQ4L);
6ccd5a72 608 gener->SetPtHard(2.1,-1.0);
609 gener->SetEnergyCMS(14000.);
610 break;
611 case kBeautyPbPb5500:
612 comment = comment.Append(" Beauty in Pb-Pb at 5.5 TeV");
7005f584 613 gener = new AliGenPythia(nEvts);
6ccd5a72 614 gener->SetProcess(kPyBeautyPbPbMNR);
615 gener->SetStrucFunc(kCTEQ4L);
616 gener->SetPtHard(2.75,-1.0);
617 gener->SetEnergyCMS(5500.);
618 gener->SetNuclei(208,208);
619 break;
620 case kBeautypPb8800:
621 comment = comment.Append(" Beauty in p-Pb at 8.8 TeV");
de78d77f 622 gener = new AliGenPythia(nEvts);
6ccd5a72 623 gener->SetProcess(kPyBeautypPbMNR);
624 gener->SetStrucFunc(kCTEQ4L);
625 gener->SetPtHard(2.75,-1.0);
626 gener->SetEnergyCMS(8800.);
627 gener->SetProjectile("P",1,1);
628 gener->SetTarget("Pb",208,82);
629 break;
630 case kBeautypp14000:
631 comment = comment.Append(" Beauty in pp at 14 TeV");
de78d77f 632 gener = new AliGenPythia(nEvts);
6ccd5a72 633 gener->SetProcess(kPyBeautyppMNR);
634 gener->SetStrucFunc(kCTEQ4L);
635 gener->SetPtHard(2.75,-1.0);
636 gener->SetEnergyCMS(14000.);
637 break;
638 }
639
640 return gener;
641}
642
643
644
645
646