Second ZDC module. More ZDC information included in the ESD and AOD classes (Chiara)
[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>
dcec124d 20#include <TGeant3TGeo.h>
de78d77f 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"
96fb3353 29#include "STRUCT/AliABSOv3.h"
30#include "STRUCT/AliDIPOv3.h"
31#include "STRUCT/AliHALLv3.h"
de78d77f 32#include "STRUCT/AliFRAMEv2.h"
96fb3353 33#include "STRUCT/AliSHILv3.h"
34#include "STRUCT/AliPIPEv3.h"
7005f584 35#include "ITS/AliITSvPPRasymmFMD.h"
de78d77f 36#include "TPC/AliTPCv2.h"
0d7ef405 37#include "TOF/AliTOFv6T0.h"
55eb2b56 38#include "HMPID/AliHMPIDv2.h"
de78d77f 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"
ababa197 45#include "T0/AliT0v1.h"
b384f8a4 46#include "ACORDE/AliACORDEv1.h"
de78d77f 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};
dcec124d 73//--- Trigger config ---
74enum TrigConf_t
75{
76 kDefaultPPTrig, kDefaultPbPbTrig
77};
78const char * TrigConfName[] = {
79 "p-p","Pb-Pb"
80};
6b612c2d 81enum PprGeo_t
82 {
83 kHoles, kNoHoles
84 };
85
de78d77f 86//--- Functions ---
87AliGenPythia *PythiaHVQ(ProcessHvFl_t proc);
88
6ccd5a72 89
90// This part for configuration
91static ProcessHvFl_t procHvFl = kCharmPbPb5500;
92static DecayHvFl_t decHvFl = kNature;
93static YCut_t ycut = kFull;
09977179 94static Mag_t mag = k5kG;
dcec124d 95static TrigConf_t trig = kDefaultPbPbTrig; // default PbPb trigger configuration
6b612c2d 96static PprGeo_t geo = kHoles;
6ccd5a72 97// nEvts = -1 : you get 1 QQbar pair and all the fragmentation and
98// decay chain
99// nEvts = N>0 : you get N charm / beauty Hadrons
100Int_t nEvts = -1;
101// stars = kTRUE : all heavy resonances and their decay stored
102// = kFALSE: only final heavy hadrons and their decays stored
103Bool_t stars = kTRUE;
104
09977179 105// To be used only with kCharmppMNRwmi and kBeautyppMNRwmi
106// To get a "reasonable" agreement with MNR results, events have to be
107// generated with the minimum ptHard set to 2.76 GeV.
108// To get a "perfect" agreement with MNR results, events have to be
109// generated in four ptHard bins with the following relative
110// normalizations:
111// CHARM
112// 2.76-3 GeV: 25%
113// 3-4 GeV: 40%
114// 4-8 GeV: 29%
115// >8 GeV: 6%
116// BEAUTY
117// 2.76-4 GeV: 5%
118// 4-6 GeV: 31%
119// 6-8 GeV: 28%
120// >8 GeV: 36%
121Float_t ptHardMin = 2.76;
122Float_t ptHardMax = -1.;
123
6ccd5a72 124
125// Comment line
126static TString comment;
127
128void Config()
129{
130
131 //========================//
132 // Set Random Number seed //
133 //========================//
134 TDatime dt;
135 UInt_t curtime=dt.Get();
136 UInt_t procid=gSystem->GetPid();
137 UInt_t seed=curtime-procid;
138
de78d77f 139 // gRandom->SetSeed(seed);
72fc043d 140 // cerr<<"Seed for random number generation= "<<seed<<endl;
6ccd5a72 141 gRandom->SetSeed(12345);
72fc043d 142
6ccd5a72 143
144 // libraries required by geant321
de78d77f 145#if defined(__CINT__)
6ccd5a72 146 gSystem->Load("libgeant321");
de78d77f 147#endif
6ccd5a72 148
b0470150 149 new TGeant3TGeo("C++ Interface to Geant3");
6ccd5a72 150
458041af 151 if(!AliCDBManager::Instance()->IsDefaultStorageSet()){
152 AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT");
153 AliCDBManager::Instance()->SetRun(0);
154 }
155
6ccd5a72 156 //=======================================================================
157 // Create the output file
de78d77f 158
159
160 AliRunLoader* rl=0x0;
161
162 cout<<"Config.C: Creating Run Loader ..."<<endl;
163 rl = AliRunLoader::Open("galice.root",
f5a857b2 164 AliConfig::GetDefaultEventFolderName(),
de78d77f 165 "recreate");
166 if (rl == 0x0)
167 {
168 gAlice->Fatal("Config.C","Can not instatiate the Run Loader");
169 return;
170 }
171 rl->SetCompressionLevel(2);
172 rl->SetNumberOfEventsPerFile(3);
173 gAlice->SetRunLoader(rl);
458041af 174 // gAlice->SetGeometryFromFile("geometry.root");
175 // gAlice->SetGeometryFromCDB();
de78d77f 176
dcec124d 177 // Set the trigger configuration
178 gAlice->SetTriggerDescriptor(TrigConfName[trig]);
179 cout<<"Trigger configuration is set to "<<TrigConfName[trig]<<endl;
180
6ccd5a72 181 //
182 //=======================================================================
183 // ************* STEERING parameters FOR ALICE SIMULATION **************
184 // --- Specify event type to be tracked through the ALICE setup
185 // --- All positions are in cm, angles in degrees, and P and E in GeV
6a3df6c9 186
187
188 gMC->SetProcess("DCAY",1);
189 gMC->SetProcess("PAIR",1);
190 gMC->SetProcess("COMP",1);
191 gMC->SetProcess("PHOT",1);
192 gMC->SetProcess("PFIS",0);
193 gMC->SetProcess("DRAY",0);
194 gMC->SetProcess("ANNI",1);
195 gMC->SetProcess("BREM",1);
196 gMC->SetProcess("MUNU",1);
197 gMC->SetProcess("CKOV",1);
198 gMC->SetProcess("HADR",1);
199 gMC->SetProcess("LOSS",2);
200 gMC->SetProcess("MULS",1);
201 gMC->SetProcess("RAYL",1);
202
203 Float_t cut = 1.e-3; // 1MeV cut by default
204 Float_t tofmax = 1.e10;
205
206 gMC->SetCut("CUTGAM", cut);
207 gMC->SetCut("CUTELE", cut);
208 gMC->SetCut("CUTNEU", cut);
209 gMC->SetCut("CUTHAD", cut);
210 gMC->SetCut("CUTMUO", cut);
211 gMC->SetCut("BCUTE", cut);
212 gMC->SetCut("BCUTM", cut);
213 gMC->SetCut("DCUTE", cut);
214 gMC->SetCut("DCUTM", cut);
215 gMC->SetCut("PPCUTM", cut);
216 gMC->SetCut("TOFMAX", tofmax);
217
218
219
220
6ccd5a72 221 // Set External decayer //
222 //======================//
223 TVirtualMCDecayer* decayer = new AliDecayerPythia();
224 // DECAYS
225 //
226 switch(decHvFl) {
227 case kNature:
228 decayer->SetForceDecay(kAll);
229 break;
230 case kHadr:
231 decayer->SetForceDecay(kHadronicD);
232 break;
233 case kSemiEl:
234 decayer->SetForceDecay(kSemiElectronic);
235 break;
236 case kSemiMu:
237 decayer->SetForceDecay(kSemiMuonic);
238 break;
239 }
240 decayer->Init();
241 gMC->SetExternalDecayer(decayer);
242
243 //=========================//
244 // Generator Configuration //
245 //=========================//
246 AliGenPythia *pythia = PythiaHVQ(procHvFl);
247 // FeedDown option
248 pythia->SetFeedDownHigherFamily(kFALSE);
249 // Stack filling option
250 if(!stars) pythia->SetStackFillOpt(AliGenPythia::kParentSelection);
251 // Set Count mode
252 if(nEvts>0) pythia->SetCountMode(AliGenPythia::kCountParents);
253 // DECAYS
254 //
255 switch(decHvFl) {
256 case kNature:
257 pythia->SetForceDecay(kAll);
258 break;
259 case kHadr:
260 pythia->SetForceDecay(kHadronicD);
261 break;
262 case kSemiEl:
263 pythia->SetForceDecay(kSemiElectronic);
264 break;
265 case kSemiMu:
266 pythia->SetForceDecay(kSemiMuonic);
267 break;
268 }
269 // GEOM & KINE CUTS
270 //
271 pythia->SetMomentumRange(0,99999999);
0ac28de4 272 pythia->SetPhiRange(0., 360.);
6ccd5a72 273 pythia->SetThetaRange(0,180);
274 switch(ycut) {
275 case kFull:
276 pythia->SetYRange(-999,999);
277 break;
278 case kBarrel:
279 pythia->SetYRange(-2,2);
280 break;
281 case kMuonArm:
282 pythia->SetYRange(1,6);
283 break;
284 }
285
286 // PRIMARY VERTEX
287 //
288 pythia->SetOrigin(0, 0, 0); // vertex position
289 pythia->SetSigma(0, 0, 5.3); // Sigma in (X,Y,Z) (cm) on IP position
290 pythia->SetCutVertexZ(1.); // Truncate at 1 sigma
291 pythia->SetVertexSmear(kPerEvent);
292
293
294
295 pythia->SetTrackingFlag(0);
296 // Specify GEANT tracking limits (Rmax, Zmax)
e196c4dc 297 //gAlice->GetMCApp()->TrackingLimits(90.,1.0e10);
6ccd5a72 298
299
300 pythia->Init();
301
302 // FIELD
303 //
304 if (mag == k2kG) {
305 comment = comment.Append(" | L3 field 0.2 T");
306 } else if (mag == k4kG) {
307 comment = comment.Append(" | L3 field 0.4 T");
308 } else if (mag == k5kG) {
309 comment = comment.Append(" | L3 field 0.5 T");
310 }
de78d77f 311 printf("\n \n Comment: %s \n \n", comment.Data());
6ccd5a72 312
313 AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., mag);
e196c4dc 314 field->SetL3ConstField(0); //Using const. field in the barrel
de78d77f 315 rl->CdGAFile();
6ccd5a72 316 gAlice->SetField(field);
317
318
319 // By default all ALICE is switched off
320 Int_t iABSO=0;
b384f8a4 321 Int_t iACORDE=0;
6ccd5a72 322 Int_t iDIPO=0;
323 Int_t iFMD=0;
324 Int_t iFRAME=0;
325 Int_t iHALL=0;
326 Int_t iITS=0;
327 Int_t iMAG=0;
328 Int_t iMUON=0;
329 Int_t iPHOS=0;
330 Int_t iPIPE=0;
331 Int_t iPMD=0;
de1857bb 332 Int_t iHMPID=0;
6ccd5a72 333 Int_t iSHIL=0;
ababa197 334 Int_t iT0=0;
6ccd5a72 335 Int_t iTOF=0;
336 Int_t iTPC=0;
337 Int_t iTRD=0;
338 Int_t iZDC=0;
339
340 //=================== Alice BODY parameters =============================
341 AliBODY *BODY = new AliBODY("BODY","Alice envelop");
342
343 if(iMAG) {
344 //=================== MAG parameters ============================
345 // --- Start with Magnet since detector layouts may be depending ---
346 // --- on the selected Magnet dimensions ---
347 AliMAG *MAG = new AliMAG("MAG","Magnet");
348 }
349
350
351 if(iABSO) {
352 //=================== ABSO parameters ============================
96fb3353 353 AliABSO *ABSO = new AliABSOv3("ABSO","Muon Absorber");
6ccd5a72 354 }
355
356 if(iDIPO) {
357 //=================== DIPO parameters ============================
358
96fb3353 359 AliDIPO *DIPO = new AliDIPOv3("DIPO","Dipole version 3");
6ccd5a72 360 }
361
362 if(iHALL) {
363 //=================== HALL parameters ============================
364
96fb3353 365 AliHALL *HALL = new AliHALLv3("HALL","Alice Hall");
6ccd5a72 366 }
367
368
369 if(iFRAME) {
370 //=================== FRAME parameters ============================
371
372 AliFRAME *FRAME = new AliFRAMEv2("FRAME","Space Frame");
6b612c2d 373 if (geo == kHoles) {
374 FRAME->SetHoles(1);
375 } else {
376 FRAME->SetHoles(0);
377 }
6ccd5a72 378
379 }
380
381 if(iSHIL) {
382 //=================== SHIL parameters ============================
383
96fb3353 384 AliSHIL *SHIL = new AliSHILv3("SHIL","Shielding");
6ccd5a72 385 }
386
387
388 if(iPIPE) {
389 //=================== PIPE parameters ============================
390
96fb3353 391 AliPIPE *PIPE = new AliPIPEv3("PIPE","Beam Pipe");
6ccd5a72 392 }
393
394
395 if(iITS) {
e89fa83b 396 //=================== ITS parameters ============================
6ccd5a72 397
7005f584 398 AliITSvPPRasymmFMD *ITS = new AliITSvPPRasymmFMD("ITS","New ITS PPR detailed version with asymmetric services");
6ccd5a72 399 }
400
401
402 if(iTPC) {
26ca4b4a 403 //============================ TPC parameters ===================
6ccd5a72 404 AliTPC *TPC = new AliTPCv2("TPC","Default");
6ccd5a72 405 }
406
407
408 if(iTOF) {
409 //=================== TOF parameters ============================
0d7ef405 410 AliTOF *TOF = new AliTOFv6T0("TOF","normal TOF");
6ccd5a72 411 }
412
de1857bb 413 if(iHMPID) {
414 //=================== HMPID parameters ===========================
55eb2b56 415 AliHMPID *HMPID = new AliHMPIDv2("HMPID","normal HMPID");
6ccd5a72 416
417 }
418
419
420 if(iZDC) {
421 //=================== ZDC parameters ============================
422
423 AliZDC *ZDC = new AliZDCv1("ZDC","normal ZDC");
424 }
425
b384f8a4 426 if(iACORDE) {
427 //=================== ACORDE parameters ============================
6ccd5a72 428
b384f8a4 429 AliACORDE *ACORDE = new AliACORDEv1("ACORDE","normal ACORDE");
6ccd5a72 430 }
431
432 if(iTRD) {
433 //=================== TRD parameters ============================
434
435 AliTRD *TRD = new AliTRDv1("TRD","TRD slow simulator");
6ccd5a72 436 }
437
438 if(iFMD) {
439 //=================== FMD parameters ============================
440
441 AliFMD *FMD = new AliFMDv0("FMD","normal FMD");
442 }
443
444 if(iMUON) {
445 //=================== MUON parameters ===========================
446 AliMUON *MUON = new AliMUONv1("MUON","default");
447 }
448
449 //=================== PHOS parameters ===========================
450
451 if(iPHOS) {
452 AliPHOS *PHOS = new AliPHOSv1("PHOS","GPS2");
453 }
454
455
b384f8a4 456 //=================== ACORDE parameters ===========================
6ccd5a72 457
b384f8a4 458 if(iACORDE) {
459 AliACORDE *ACORDE = new AliACORDEv1("ACORDE","Normal ACORDEGPS2");
6ccd5a72 460 }
461
462
463 if(iPMD) {
464 //=================== PMD parameters ============================
465
466 AliPMD *PMD = new AliPMDv1("PMD","normal PMD");
467 PMD->SetPAR(1., 1., 0.8, 0.02);
468 PMD->SetIN(6., 18., -580., 27., 27.);
469 PMD->SetGEO(0.0, 0.2, 4.);
470 PMD->SetPadSize(0.8, 1.0, 1.0, 1.5);
471
472 }
473
ababa197 474 if(iT0) {
475 //=================== T0 parameters ============================
476 AliT0 *T0 = new AliT0v1("T0","T0 Detector");
6ccd5a72 477 }
478
479
480}
481//
482// PYTHIA
483//
484AliGenPythia *PythiaHVQ(ProcessHvFl_t proc) {
485
de78d77f 486 AliGenPythia * gener = 0x0;
487
6ccd5a72 488 switch(proc) {
489 case kCharmPbPb5500:
490 comment = comment.Append(" Charm in Pb-Pb at 5.5 TeV");
de78d77f 491 gener = new AliGenPythia(nEvts);
6ccd5a72 492 gener->SetProcess(kPyCharmPbPbMNR);
493 gener->SetStrucFunc(kCTEQ4L);
494 gener->SetPtHard(2.1,-1.0);
495 gener->SetEnergyCMS(5500.);
496 gener->SetNuclei(208,208);
497 break;
498 case kCharmpPb8800:
499 comment = comment.Append(" Charm in p-Pb at 8.8 TeV");
de78d77f 500 gener = new AliGenPythia(nEvts);
6ccd5a72 501 gener->SetProcess(kPyCharmpPbMNR);
502 gener->SetStrucFunc(kCTEQ4L);
503 gener->SetPtHard(2.1,-1.0);
504 gener->SetEnergyCMS(8800.);
505 gener->SetProjectile("P",1,1);
506 gener->SetTarget("Pb",208,82);
507 break;
508 case kCharmpp14000:
509 comment = comment.Append(" Charm in pp at 14 TeV");
de78d77f 510 gener = new AliGenPythia(nEvts);
6ccd5a72 511 gener->SetProcess(kPyCharmppMNR);
512 gener->SetStrucFunc(kCTEQ4L);
513 gener->SetPtHard(2.1,-1.0);
514 gener->SetEnergyCMS(14000.);
515 break;
09977179 516 case kCharmpp14000wmi:
517 comment = comment.Append(" Charm in pp at 14 TeV with mult. interactions");
518 gener = new AliGenPythia(-1);
519 gener->SetProcess(kPyCharmppMNRwmi);
520 gener->SetStrucFunc(kCTEQ5L);
521 gener->SetPtHard(ptHardMin,ptHardMax);
522 gener->SetEnergyCMS(14000.);
523 break;
6ccd5a72 524 case kD0PbPb5500:
525 comment = comment.Append(" D0 in Pb-Pb at 5.5 TeV");
de78d77f 526 gener = new AliGenPythia(nEvts);
6ccd5a72 527 gener->SetProcess(kPyD0PbPbMNR);
528 gener->SetStrucFunc(kCTEQ4L);
529 gener->SetPtHard(2.1,-1.0);
530 gener->SetEnergyCMS(5500.);
531 gener->SetNuclei(208,208);
532 break;
533 case kD0pPb8800:
534 comment = comment.Append(" D0 in p-Pb at 8.8 TeV");
de78d77f 535 gener = new AliGenPythia(nEvts);
6ccd5a72 536 gener->SetProcess(kPyD0pPbMNR);
537 gener->SetStrucFunc(kCTEQ4L);
538 gener->SetPtHard(2.1,-1.0);
539 gener->SetEnergyCMS(8800.);
540 gener->SetProjectile("P",1,1);
541 gener->SetTarget("Pb",208,82);
542 break;
543 case kD0pp14000:
544 comment = comment.Append(" D0 in pp at 14 TeV");
de78d77f 545 gener = new AliGenPythia(nEvts);
6ccd5a72 546 gener->SetProcess(kPyD0ppMNR);
547 gener->SetStrucFunc(kCTEQ4L);
72fc043d 548 gener->SetPtHard(2.1,-1.0);
549 gener->SetEnergyCMS(14000.);
550 break;
551 case kDPlusPbPb5500:
552 comment = comment.Append(" DPlus in Pb-Pb at 5.5 TeV");
553 gener = new AliGenPythia(nEvts);
554 gener->SetProcess(kPyDPlusPbPbMNR);
555 gener->SetStrucFunc(kCTEQ4L);
556 gener->SetPtHard(2.1,-1.0);
557 gener->SetEnergyCMS(5500.);
558 gener->SetNuclei(208,208);
559 break;
560 case kDPluspPb8800:
561 comment = comment.Append(" DPlus in p-Pb at 8.8 TeV");
562 gener = new AliGenPythia(nEvts);
563 gener->SetProcess(kPyDPluspPbMNR);
564 gener->SetStrucFunc(kCTEQ4L);
565 gener->SetPtHard(2.1,-1.0);
566 gener->SetEnergyCMS(8800.);
567 gener->SetProjectile("P",1,1);
568 gener->SetTarget("Pb",208,82);
569 break;
570 case kDPluspp14000:
571 comment = comment.Append(" DPlus in pp at 14 TeV");
572 gener = new AliGenPythia(nEvts);
573 gener->SetProcess(kPyDPlusppMNR);
574 gener->SetStrucFunc(kCTEQ4L);
6ccd5a72 575 gener->SetPtHard(2.1,-1.0);
576 gener->SetEnergyCMS(14000.);
577 break;
84388d23 578 case kDPlusStrangePbPb5500:
579 comment = comment.Append(" DPlusStrange in Pb-Pb at 5.5 TeV");
580 gener = new AliGenPythia(nEvts);
581 gener->SetProcess(kPyDPlusStrangePbPbMNR);
582 gener->SetStrucFunc(kCTEQ4L);
583 gener->SetPtHard(2.1,-1.0);
584 gener->SetEnergyCMS(5500.);
585 gener->SetNuclei(208,208);
586 break;
587 case kDPlusStrangepPb8800:
588 comment = comment.Append(" DPlusStrange in p-Pb at 8.8 TeV");
589 gener = new AliGenPythia(nEvts);
590 gener->SetProcess(kPyDPlusStrangepPbMNR);
591 gener->SetStrucFunc(kCTEQ4L);
592 gener->SetPtHard(2.1,-1.0);
593 gener->SetEnergyCMS(8800.);
594 gener->SetProjectile("P",1,1);
595 gener->SetTarget("Pb",208,82);
596 break;
597 case kDPlusStrangepp14000:
598 comment = comment.Append(" DPlusStrange in pp at 14 TeV");
599 gener = new AliGenPythia(nEvts);
600 gener->SetProcess(kPyDPlusStrangeppMNR);
601 gener->SetStrucFunc(kCTEQ4L);
602 gener->SetPtHard(2.1,-1.0);
603 gener->SetEnergyCMS(14000.);
604 break;
6ccd5a72 605 case kBeautyPbPb5500:
606 comment = comment.Append(" Beauty in Pb-Pb at 5.5 TeV");
7005f584 607 gener = new AliGenPythia(nEvts);
6ccd5a72 608 gener->SetProcess(kPyBeautyPbPbMNR);
609 gener->SetStrucFunc(kCTEQ4L);
610 gener->SetPtHard(2.75,-1.0);
611 gener->SetEnergyCMS(5500.);
612 gener->SetNuclei(208,208);
613 break;
614 case kBeautypPb8800:
615 comment = comment.Append(" Beauty in p-Pb at 8.8 TeV");
de78d77f 616 gener = new AliGenPythia(nEvts);
6ccd5a72 617 gener->SetProcess(kPyBeautypPbMNR);
618 gener->SetStrucFunc(kCTEQ4L);
619 gener->SetPtHard(2.75,-1.0);
620 gener->SetEnergyCMS(8800.);
621 gener->SetProjectile("P",1,1);
622 gener->SetTarget("Pb",208,82);
623 break;
624 case kBeautypp14000:
625 comment = comment.Append(" Beauty in pp at 14 TeV");
de78d77f 626 gener = new AliGenPythia(nEvts);
6ccd5a72 627 gener->SetProcess(kPyBeautyppMNR);
628 gener->SetStrucFunc(kCTEQ4L);
629 gener->SetPtHard(2.75,-1.0);
630 gener->SetEnergyCMS(14000.);
631 break;
09977179 632 case kBeautypp14000wmi:
633 comment = comment.Append(" Beauty in pp at 14 TeV with mult. interactions");
634 gener = new AliGenPythia(-1);
635 gener->SetProcess(kPyBeautyppMNRwmi);
636 gener->SetStrucFunc(kCTEQ5L);
637 gener->SetPtHard(ptHardMin,ptHardMax);
638 gener->SetEnergyCMS(14000.);
639 break;
6ccd5a72 640 }
641
642 return gener;
643}
644
645
646
647
648