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