Using VZERO v6
[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,
84388d23 55 kDPlusStrangePbPb5500, kDPlusStrangepPb8800, kDPlusStrangepp14000,
09977179 56 kBeautyPbPb5500, kBeautypPb8800, kBeautypp14000, kBeautypp14000wmi
6ccd5a72 57};
58//--- Decay Mode ---
59enum DecayHvFl_t
60{
61 kNature, kHadr, kSemiEl, kSemiMu
62};
63//--- Rapidity Cut ---
64enum YCut_t
65{
66 kFull, kBarrel, kMuonArm
67};
68//--- Magnetic Field ---
69enum Mag_t
70{
71 k2kG, k4kG, k5kG
72};
de78d77f 73//--- Functions ---
74AliGenPythia *PythiaHVQ(ProcessHvFl_t proc);
75
6ccd5a72 76
77// This part for configuration
78static ProcessHvFl_t procHvFl = kCharmPbPb5500;
79static DecayHvFl_t decHvFl = kNature;
80static YCut_t ycut = kFull;
09977179 81static Mag_t mag = k5kG;
6ccd5a72 82// nEvts = -1 : you get 1 QQbar pair and all the fragmentation and
83// decay chain
84// nEvts = N>0 : you get N charm / beauty Hadrons
85Int_t nEvts = -1;
86// stars = kTRUE : all heavy resonances and their decay stored
87// = kFALSE: only final heavy hadrons and their decays stored
88Bool_t stars = kTRUE;
89
09977179 90// To be used only with kCharmppMNRwmi and kBeautyppMNRwmi
91// To get a "reasonable" agreement with MNR results, events have to be
92// generated with the minimum ptHard set to 2.76 GeV.
93// To get a "perfect" agreement with MNR results, events have to be
94// generated in four ptHard bins with the following relative
95// normalizations:
96// CHARM
97// 2.76-3 GeV: 25%
98// 3-4 GeV: 40%
99// 4-8 GeV: 29%
100// >8 GeV: 6%
101// BEAUTY
102// 2.76-4 GeV: 5%
103// 4-6 GeV: 31%
104// 6-8 GeV: 28%
105// >8 GeV: 36%
106Float_t ptHardMin = 2.76;
107Float_t ptHardMax = -1.;
108
6ccd5a72 109
110// Comment line
111static TString comment;
112
113void Config()
114{
115
116 //========================//
117 // Set Random Number seed //
118 //========================//
119 TDatime dt;
120 UInt_t curtime=dt.Get();
121 UInt_t procid=gSystem->GetPid();
122 UInt_t seed=curtime-procid;
123
de78d77f 124 // gRandom->SetSeed(seed);
72fc043d 125 // cerr<<"Seed for random number generation= "<<seed<<endl;
6ccd5a72 126 gRandom->SetSeed(12345);
72fc043d 127
6ccd5a72 128
129 // libraries required by geant321
de78d77f 130#if defined(__CINT__)
6ccd5a72 131 gSystem->Load("libgeant321");
de78d77f 132#endif
6ccd5a72 133
b0470150 134 new TGeant3TGeo("C++ Interface to Geant3");
6ccd5a72 135
136 //=======================================================================
137 // Create the output file
de78d77f 138
139
140 AliRunLoader* rl=0x0;
141
142 cout<<"Config.C: Creating Run Loader ..."<<endl;
143 rl = AliRunLoader::Open("galice.root",
f5a857b2 144 AliConfig::GetDefaultEventFolderName(),
de78d77f 145 "recreate");
146 if (rl == 0x0)
147 {
148 gAlice->Fatal("Config.C","Can not instatiate the Run Loader");
149 return;
150 }
151 rl->SetCompressionLevel(2);
152 rl->SetNumberOfEventsPerFile(3);
153 gAlice->SetRunLoader(rl);
154
6ccd5a72 155 //
156 //=======================================================================
157 // ************* STEERING parameters FOR ALICE SIMULATION **************
158 // --- Specify event type to be tracked through the ALICE setup
159 // --- All positions are in cm, angles in degrees, and P and E in GeV
6a3df6c9 160
161
162 gMC->SetProcess("DCAY",1);
163 gMC->SetProcess("PAIR",1);
164 gMC->SetProcess("COMP",1);
165 gMC->SetProcess("PHOT",1);
166 gMC->SetProcess("PFIS",0);
167 gMC->SetProcess("DRAY",0);
168 gMC->SetProcess("ANNI",1);
169 gMC->SetProcess("BREM",1);
170 gMC->SetProcess("MUNU",1);
171 gMC->SetProcess("CKOV",1);
172 gMC->SetProcess("HADR",1);
173 gMC->SetProcess("LOSS",2);
174 gMC->SetProcess("MULS",1);
175 gMC->SetProcess("RAYL",1);
176
177 Float_t cut = 1.e-3; // 1MeV cut by default
178 Float_t tofmax = 1.e10;
179
180 gMC->SetCut("CUTGAM", cut);
181 gMC->SetCut("CUTELE", cut);
182 gMC->SetCut("CUTNEU", cut);
183 gMC->SetCut("CUTHAD", cut);
184 gMC->SetCut("CUTMUO", cut);
185 gMC->SetCut("BCUTE", cut);
186 gMC->SetCut("BCUTM", cut);
187 gMC->SetCut("DCUTE", cut);
188 gMC->SetCut("DCUTM", cut);
189 gMC->SetCut("PPCUTM", cut);
190 gMC->SetCut("TOFMAX", tofmax);
191
192
193
194
6ccd5a72 195 // Set External decayer //
196 //======================//
197 TVirtualMCDecayer* decayer = new AliDecayerPythia();
198 // DECAYS
199 //
200 switch(decHvFl) {
201 case kNature:
202 decayer->SetForceDecay(kAll);
203 break;
204 case kHadr:
205 decayer->SetForceDecay(kHadronicD);
206 break;
207 case kSemiEl:
208 decayer->SetForceDecay(kSemiElectronic);
209 break;
210 case kSemiMu:
211 decayer->SetForceDecay(kSemiMuonic);
212 break;
213 }
214 decayer->Init();
215 gMC->SetExternalDecayer(decayer);
216
217 //=========================//
218 // Generator Configuration //
219 //=========================//
220 AliGenPythia *pythia = PythiaHVQ(procHvFl);
221 // FeedDown option
222 pythia->SetFeedDownHigherFamily(kFALSE);
223 // Stack filling option
224 if(!stars) pythia->SetStackFillOpt(AliGenPythia::kParentSelection);
225 // Set Count mode
226 if(nEvts>0) pythia->SetCountMode(AliGenPythia::kCountParents);
227 // DECAYS
228 //
229 switch(decHvFl) {
230 case kNature:
231 pythia->SetForceDecay(kAll);
232 break;
233 case kHadr:
234 pythia->SetForceDecay(kHadronicD);
235 break;
236 case kSemiEl:
237 pythia->SetForceDecay(kSemiElectronic);
238 break;
239 case kSemiMu:
240 pythia->SetForceDecay(kSemiMuonic);
241 break;
242 }
243 // GEOM & KINE CUTS
244 //
245 pythia->SetMomentumRange(0,99999999);
0ac28de4 246 pythia->SetPhiRange(0., 360.);
6ccd5a72 247 pythia->SetThetaRange(0,180);
248 switch(ycut) {
249 case kFull:
250 pythia->SetYRange(-999,999);
251 break;
252 case kBarrel:
253 pythia->SetYRange(-2,2);
254 break;
255 case kMuonArm:
256 pythia->SetYRange(1,6);
257 break;
258 }
259
260 // PRIMARY VERTEX
261 //
262 pythia->SetOrigin(0, 0, 0); // vertex position
263 pythia->SetSigma(0, 0, 5.3); // Sigma in (X,Y,Z) (cm) on IP position
264 pythia->SetCutVertexZ(1.); // Truncate at 1 sigma
265 pythia->SetVertexSmear(kPerEvent);
266
267
268
269 pythia->SetTrackingFlag(0);
270 // Specify GEANT tracking limits (Rmax, Zmax)
e196c4dc 271 //gAlice->GetMCApp()->TrackingLimits(90.,1.0e10);
6ccd5a72 272
273
274 pythia->Init();
275
276 // FIELD
277 //
278 if (mag == k2kG) {
279 comment = comment.Append(" | L3 field 0.2 T");
280 } else if (mag == k4kG) {
281 comment = comment.Append(" | L3 field 0.4 T");
282 } else if (mag == k5kG) {
283 comment = comment.Append(" | L3 field 0.5 T");
284 }
de78d77f 285 printf("\n \n Comment: %s \n \n", comment.Data());
6ccd5a72 286
287 AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., mag);
e196c4dc 288 field->SetL3ConstField(0); //Using const. field in the barrel
de78d77f 289 rl->CdGAFile();
6ccd5a72 290 gAlice->SetField(field);
291
292
293 // By default all ALICE is switched off
294 Int_t iABSO=0;
295 Int_t iCRT=0;
296 Int_t iDIPO=0;
297 Int_t iFMD=0;
298 Int_t iFRAME=0;
299 Int_t iHALL=0;
300 Int_t iITS=0;
301 Int_t iMAG=0;
302 Int_t iMUON=0;
303 Int_t iPHOS=0;
304 Int_t iPIPE=0;
305 Int_t iPMD=0;
306 Int_t iRICH=0;
307 Int_t iSHIL=0;
308 Int_t iSTART=0;
309 Int_t iTOF=0;
310 Int_t iTPC=0;
311 Int_t iTRD=0;
312 Int_t iZDC=0;
313
314 //=================== Alice BODY parameters =============================
315 AliBODY *BODY = new AliBODY("BODY","Alice envelop");
316
317 if(iMAG) {
318 //=================== MAG parameters ============================
319 // --- Start with Magnet since detector layouts may be depending ---
320 // --- on the selected Magnet dimensions ---
321 AliMAG *MAG = new AliMAG("MAG","Magnet");
322 }
323
324
325 if(iABSO) {
326 //=================== ABSO parameters ============================
327 AliABSO *ABSO = new AliABSOv0("ABSO","Muon Absorber");
328 }
329
330 if(iDIPO) {
331 //=================== DIPO parameters ============================
332
333 AliDIPO *DIPO = new AliDIPOv2("DIPO","Dipole version 2");
334 }
335
336 if(iHALL) {
337 //=================== HALL parameters ============================
338
339 AliHALL *HALL = new AliHALL("HALL","Alice Hall");
340 }
341
342
343 if(iFRAME) {
344 //=================== FRAME parameters ============================
345
346 AliFRAME *FRAME = new AliFRAMEv2("FRAME","Space Frame");
347
348 }
349
350 if(iSHIL) {
351 //=================== SHIL parameters ============================
352
353 AliSHIL *SHIL = new AliSHILv2("SHIL","Shielding");
354 }
355
356
357 if(iPIPE) {
358 //=================== PIPE parameters ============================
359
360 AliPIPE *PIPE = new AliPIPEv0("PIPE","Beam Pipe");
361 }
362
363
364 if(iITS) {
365
366//=================== ITS parameters ============================
367 //
368 // As the innermost detector in ALICE, the Inner Tracking System "impacts" on
369 // almost all other detectors. This involves the fact that the ITS geometry
370 // still has several options to be followed in parallel in order to determine
371 // the best set-up which minimizes the induced background. All the geometries
372 // available to date are described in the following. Read carefully the comments
373 // and use the default version (the only one uncommented) unless you are making
374 // comparisons and you know what you are doing. In this case just uncomment the
375 // ITS geometry you want to use and run Aliroot.
376 //
377 // Detailed geometries:
378 //
379 //
380 //AliITS *ITS = new AliITSv5symm("ITS","Updated ITS TDR detailed version with symmetric services");
381 //
382 //AliITS *ITS = new AliITSv5asymm("ITS","Updates ITS TDR detailed version with asymmetric services");
383 //
7005f584 384 AliITSvPPRasymmFMD *ITS = new AliITSvPPRasymmFMD("ITS","New ITS PPR detailed version with asymmetric services");
6ccd5a72 385 ITS->SetMinorVersion(2); // don't touch this parameter if you're not an ITS developer
386 ITS->SetReadDet(kFALSE); // don't touch this parameter if you're not an ITS developer
387 ITS->SetWriteDet("$ALICE_ROOT/ITS/ITSgeometry_vPPRasymm2.det"); // don't touch this parameter if you're not an ITS developer
388 ITS->SetThicknessDet1(200.); // detector thickness on layer 1 must be in the range [150,300]
389 ITS->SetThicknessDet2(200.); // detector thickness on layer 2 must be in the range [150,300]
390 ITS->SetThicknessChip1(200.); // chip thickness on layer 1 must be in the range [100,300]
391 ITS->SetThicknessChip2(200.); // chip thickness on layer 2 must be in the range [100,300]
392 ITS->SetRails(1); // 1 --> rails in ; 0 --> rails out
393 ITS->SetCoolingFluid(1); // 1 --> water ; 0 --> freon
394 //
395 //AliITSvPPRsymm *ITS = new AliITSvPPRsymm("ITS","New ITS PPR detailed version with symmetric services");
396 //ITS->SetMinorVersion(2); // don't touch this parameter if you're not an ITS developer
397 //ITS->SetReadDet(kFALSE); // don't touch this parameter if you're not an ITS developer
398 //ITS->SetWriteDet("$ALICE_ROOT/ITS/ITSgeometry_vPPRsymm2.det"); // don't touch this parameter if you're not an ITS developer
399 //ITS->SetThicknessDet1(300.); // detector thickness on layer 1 must be in the range [150,300]
400 //ITS->SetThicknessDet2(300.); // detector thickness on layer 2 must be in the range [150,300]
401 //ITS->SetThicknessChip1(300.); // chip thickness on layer 1 must be in the range [100,300]
402 //ITS->SetThicknessChip2(300.); // chip thickness on layer 2 must be in the range [100,300]
403 //ITS->SetRails(1); // 1 --> rails in ; 0 --> rails out
404 //ITS->SetCoolingFluid(1); // 1 --> water ; 0 --> freon
405 //
406 //
407 // Coarse geometries (warning: no hits are produced with these coarse geometries and they unuseful
408 // for reconstruction !):
409 //
410 //
411 //AliITSvPPRcoarseasymm *ITS = new AliITSvPPRcoarseasymm("ITS","New ITS PPR coarse version with asymmetric services");
412 //ITS->SetRails(1); // 1 --> rails in ; 0 --> rails out
413 //ITS->SetSupportMaterial(0); // 0 --> Copper ; 1 --> Aluminum ; 2 --> Carbon
414 //
415 //AliITS *ITS = new AliITSvPPRcoarsesymm("ITS","New ITS PPR coarse version with symmetric services");
416 //ITS->SetRails(1); // 1 --> rails in ; 0 --> rails out
417 //ITS->SetSupportMaterial(0); // 0 --> Copper ; 1 --> Aluminum ; 2 --> Carbon
418 //
419 //
420 //
421 // Geant3 <-> EUCLID conversion
422 // ============================
423 //
424 // SetEUCLID is a flag to output (=1) or not to output (=0) both geometry and
425 // media to two ASCII files (called by default ITSgeometry.euc and
426 // ITSgeometry.tme) in a format understandable to the CAD system EUCLID.
427 // The default (=0) means that you dont want to use this facility.
428 //
429 ITS->SetEUCLID(0);
430 }
431
432
433 if(iTPC) {
26ca4b4a 434 //============================ TPC parameters ===================
6ccd5a72 435 AliTPC *TPC = new AliTPCv2("TPC","Default");
6ccd5a72 436 }
437
438
439 if(iTOF) {
440 //=================== TOF parameters ============================
50655693 441 AliTOF *TOF = new AliTOFv5T0("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;
09977179 557 case kCharmpp14000wmi:
558 comment = comment.Append(" Charm in pp at 14 TeV with mult. interactions");
559 gener = new AliGenPythia(-1);
560 gener->SetProcess(kPyCharmppMNRwmi);
561 gener->SetStrucFunc(kCTEQ5L);
562 gener->SetPtHard(ptHardMin,ptHardMax);
563 gener->SetEnergyCMS(14000.);
564 break;
6ccd5a72 565 case kD0PbPb5500:
566 comment = comment.Append(" D0 in Pb-Pb at 5.5 TeV");
de78d77f 567 gener = new AliGenPythia(nEvts);
6ccd5a72 568 gener->SetProcess(kPyD0PbPbMNR);
569 gener->SetStrucFunc(kCTEQ4L);
570 gener->SetPtHard(2.1,-1.0);
571 gener->SetEnergyCMS(5500.);
572 gener->SetNuclei(208,208);
573 break;
574 case kD0pPb8800:
575 comment = comment.Append(" D0 in p-Pb at 8.8 TeV");
de78d77f 576 gener = new AliGenPythia(nEvts);
6ccd5a72 577 gener->SetProcess(kPyD0pPbMNR);
578 gener->SetStrucFunc(kCTEQ4L);
579 gener->SetPtHard(2.1,-1.0);
580 gener->SetEnergyCMS(8800.);
581 gener->SetProjectile("P",1,1);
582 gener->SetTarget("Pb",208,82);
583 break;
584 case kD0pp14000:
585 comment = comment.Append(" D0 in pp at 14 TeV");
de78d77f 586 gener = new AliGenPythia(nEvts);
6ccd5a72 587 gener->SetProcess(kPyD0ppMNR);
588 gener->SetStrucFunc(kCTEQ4L);
72fc043d 589 gener->SetPtHard(2.1,-1.0);
590 gener->SetEnergyCMS(14000.);
591 break;
592 case kDPlusPbPb5500:
593 comment = comment.Append(" DPlus in Pb-Pb at 5.5 TeV");
594 gener = new AliGenPythia(nEvts);
595 gener->SetProcess(kPyDPlusPbPbMNR);
596 gener->SetStrucFunc(kCTEQ4L);
597 gener->SetPtHard(2.1,-1.0);
598 gener->SetEnergyCMS(5500.);
599 gener->SetNuclei(208,208);
600 break;
601 case kDPluspPb8800:
602 comment = comment.Append(" DPlus in p-Pb at 8.8 TeV");
603 gener = new AliGenPythia(nEvts);
604 gener->SetProcess(kPyDPluspPbMNR);
605 gener->SetStrucFunc(kCTEQ4L);
606 gener->SetPtHard(2.1,-1.0);
607 gener->SetEnergyCMS(8800.);
608 gener->SetProjectile("P",1,1);
609 gener->SetTarget("Pb",208,82);
610 break;
611 case kDPluspp14000:
612 comment = comment.Append(" DPlus in pp at 14 TeV");
613 gener = new AliGenPythia(nEvts);
614 gener->SetProcess(kPyDPlusppMNR);
615 gener->SetStrucFunc(kCTEQ4L);
6ccd5a72 616 gener->SetPtHard(2.1,-1.0);
617 gener->SetEnergyCMS(14000.);
618 break;
84388d23 619 case kDPlusStrangePbPb5500:
620 comment = comment.Append(" DPlusStrange in Pb-Pb at 5.5 TeV");
621 gener = new AliGenPythia(nEvts);
622 gener->SetProcess(kPyDPlusStrangePbPbMNR);
623 gener->SetStrucFunc(kCTEQ4L);
624 gener->SetPtHard(2.1,-1.0);
625 gener->SetEnergyCMS(5500.);
626 gener->SetNuclei(208,208);
627 break;
628 case kDPlusStrangepPb8800:
629 comment = comment.Append(" DPlusStrange in p-Pb at 8.8 TeV");
630 gener = new AliGenPythia(nEvts);
631 gener->SetProcess(kPyDPlusStrangepPbMNR);
632 gener->SetStrucFunc(kCTEQ4L);
633 gener->SetPtHard(2.1,-1.0);
634 gener->SetEnergyCMS(8800.);
635 gener->SetProjectile("P",1,1);
636 gener->SetTarget("Pb",208,82);
637 break;
638 case kDPlusStrangepp14000:
639 comment = comment.Append(" DPlusStrange in pp at 14 TeV");
640 gener = new AliGenPythia(nEvts);
641 gener->SetProcess(kPyDPlusStrangeppMNR);
642 gener->SetStrucFunc(kCTEQ4L);
643 gener->SetPtHard(2.1,-1.0);
644 gener->SetEnergyCMS(14000.);
645 break;
6ccd5a72 646 case kBeautyPbPb5500:
647 comment = comment.Append(" Beauty in Pb-Pb at 5.5 TeV");
7005f584 648 gener = new AliGenPythia(nEvts);
6ccd5a72 649 gener->SetProcess(kPyBeautyPbPbMNR);
650 gener->SetStrucFunc(kCTEQ4L);
651 gener->SetPtHard(2.75,-1.0);
652 gener->SetEnergyCMS(5500.);
653 gener->SetNuclei(208,208);
654 break;
655 case kBeautypPb8800:
656 comment = comment.Append(" Beauty in p-Pb at 8.8 TeV");
de78d77f 657 gener = new AliGenPythia(nEvts);
6ccd5a72 658 gener->SetProcess(kPyBeautypPbMNR);
659 gener->SetStrucFunc(kCTEQ4L);
660 gener->SetPtHard(2.75,-1.0);
661 gener->SetEnergyCMS(8800.);
662 gener->SetProjectile("P",1,1);
663 gener->SetTarget("Pb",208,82);
664 break;
665 case kBeautypp14000:
666 comment = comment.Append(" Beauty in pp at 14 TeV");
de78d77f 667 gener = new AliGenPythia(nEvts);
6ccd5a72 668 gener->SetProcess(kPyBeautyppMNR);
669 gener->SetStrucFunc(kCTEQ4L);
670 gener->SetPtHard(2.75,-1.0);
671 gener->SetEnergyCMS(14000.);
672 break;
09977179 673 case kBeautypp14000wmi:
674 comment = comment.Append(" Beauty in pp at 14 TeV with mult. interactions");
675 gener = new AliGenPythia(-1);
676 gener->SetProcess(kPyBeautyppMNRwmi);
677 gener->SetStrucFunc(kCTEQ5L);
678 gener->SetPtHard(ptHardMin,ptHardMax);
679 gener->SetEnergyCMS(14000.);
680 break;
6ccd5a72 681 }
682
683 return gener;
684}
685
686
687
688
689