]> git.uio.no Git - u/mrichter/AliRoot.git/blob - macros/Config_PythiaHeavyFlavours.C
conversion of raw data DDL files to a DATE and a root file
[u/mrichter/AliRoot.git] / macros / Config_PythiaHeavyFlavours.C
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:          //
9 //   N.Carrer and A.Dainese,                                         //
10 //   "Charm and beauty production at the LHC",                       //
11 //   ALICE-INT-2003-019, [arXiv:hep-ph/0312255].                     //
12 //*******************************************************************//
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"
34 #include "ITS/AliITSvPPRasymmFMD.h"
35 #include "TPC/AliTPCv2.h"
36 #include "TOF/AliTOFv4T0.h"
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
47
48 //--- Heavy Flavour Production ---
49 enum ProcessHvFl_t 
50 {
51   kCharmPbPb5500,  kCharmpPb8800,  kCharmpp14000,
52   kD0PbPb5500,     kD0pPb8800,     kD0pp14000,
53   kDPlusPbPb5500,     kDPluspPb8800,     kDPluspp14000,
54   kBeautyPbPb5500, kBeautypPb8800, kBeautypp14000
55 };
56 //--- Decay Mode ---
57 enum DecayHvFl_t 
58 {
59   kNature,  kHadr, kSemiEl, kSemiMu
60 };
61 //--- Rapidity Cut ---
62 enum YCut_t
63 {
64   kFull, kBarrel, kMuonArm
65 };
66 //--- Magnetic Field ---
67 enum Mag_t
68 {
69     k2kG, k4kG, k5kG
70 };
71 //--- Functions ---
72 AliGenPythia *PythiaHVQ(ProcessHvFl_t proc);
73
74
75 // This part for configuration
76 static ProcessHvFl_t procHvFl = kCharmPbPb5500;
77 static DecayHvFl_t   decHvFl  = kNature; 
78 static YCut_t        ycut     = kFull;
79 static 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 
83 Int_t nEvts = -1; 
84 // stars = kTRUE : all heavy resonances and their decay stored
85 //       = kFALSE: only final heavy hadrons and their decays stored
86 Bool_t stars = kTRUE;
87
88
89 // Comment line
90 static TString comment;
91
92 void 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
103   //  gRandom->SetSeed(seed);
104   //  cerr<<"Seed for random number generation= "<<seed<<endl; 
105   gRandom->SetSeed(12345);
106   
107
108   // libraries required by geant321
109 #if defined(__CINT__)
110   gSystem->Load("libgeant321");
111 #endif
112
113   new TGeant3("C++ Interface to Geant3");
114
115   //=======================================================================
116   //  Create the output file
117
118    
119   AliRunLoader* rl=0x0;
120
121   cout<<"Config.C: Creating Run Loader ..."<<endl;
122   rl = AliRunLoader::Open("galice.root",
123                           AliConfig::GetDefaultEventFolderName(),
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
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
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
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);
225   pythia->SetPhiRange(0., 360.);
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)
250   //gAlice->TrackingLimits(90.,1.0e10);
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   }
264   printf("\n \n Comment: %s \n \n", comment.Data());
265     
266   AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., mag);
267   rl->CdGAFile();
268   gAlice->SetField(field);    
269
270
271   // By default all ALICE is switched off
272   Int_t iABSO=0;
273   Int_t iCRT=0;
274   Int_t iDIPO=0;
275   Int_t iFMD=0;
276   Int_t iFRAME=0;
277   Int_t iHALL=0;
278   Int_t iITS=0;
279   Int_t iMAG=0;
280   Int_t iMUON=0;
281   Int_t iPHOS=0;
282   Int_t iPIPE=0;
283   Int_t iPMD=0;
284   Int_t iRICH=0;
285   Int_t iSHIL=0;
286   Int_t iSTART=0;
287   Int_t iTOF=0;
288   Int_t iTPC=0;
289   Int_t iTRD=0;
290   Int_t iZDC=0;
291
292   //=================== Alice BODY parameters =============================
293   AliBODY *BODY = new AliBODY("BODY","Alice envelop");
294
295   if(iMAG) {
296     //=================== MAG parameters ============================
297     // --- Start with Magnet since detector layouts may be depending ---
298     // --- on the selected Magnet dimensions ---
299     AliMAG *MAG  = new AliMAG("MAG","Magnet");
300   }
301
302
303   if(iABSO) {
304     //=================== ABSO parameters ============================
305     AliABSO *ABSO  = new AliABSOv0("ABSO","Muon Absorber");
306   }
307
308   if(iDIPO) {
309     //=================== DIPO parameters ============================
310
311     AliDIPO *DIPO  = new AliDIPOv2("DIPO","Dipole version 2");
312   }
313
314   if(iHALL) {
315     //=================== HALL parameters ============================
316
317     AliHALL *HALL  = new AliHALL("HALL","Alice Hall");
318   }
319
320
321   if(iFRAME) {
322     //=================== FRAME parameters ============================
323
324     AliFRAME *FRAME  = new AliFRAMEv2("FRAME","Space Frame");
325
326   }
327
328   if(iSHIL) {
329     //=================== SHIL parameters ============================
330
331     AliSHIL *SHIL  = new AliSHILv2("SHIL","Shielding");
332   }
333
334
335   if(iPIPE) {
336     //=================== PIPE parameters ============================
337
338     AliPIPE *PIPE  = new AliPIPEv0("PIPE","Beam Pipe");
339   }
340
341
342   if(iITS) {
343
344 //=================== ITS parameters ============================
345     //
346     // As the innermost detector in ALICE, the Inner Tracking System "impacts" on
347     // almost all other detectors. This involves the fact that the ITS geometry
348     // still has several options to be followed in parallel in order to determine
349     // the best set-up which minimizes the induced background. All the geometries
350     // available to date are described in the following. Read carefully the comments
351     // and use the default version (the only one uncommented) unless you are making
352     // comparisons and you know what you are doing. In this case just uncomment the
353     // ITS geometry you want to use and run Aliroot.
354     //
355     // Detailed geometries:         
356     //
357     //
358     //AliITS *ITS  = new AliITSv5symm("ITS","Updated ITS TDR detailed version with symmetric services");
359     //
360     //AliITS *ITS  = new AliITSv5asymm("ITS","Updates ITS TDR detailed version with asymmetric services");
361     //
362     AliITSvPPRasymmFMD *ITS  = new AliITSvPPRasymmFMD("ITS","New ITS PPR detailed version with asymmetric services");
363     ITS->SetMinorVersion(2);                                         // don't touch this parameter if you're not an ITS developer
364     ITS->SetReadDet(kFALSE);                                         // don't touch this parameter if you're not an ITS developer
365     ITS->SetWriteDet("$ALICE_ROOT/ITS/ITSgeometry_vPPRasymm2.det");  // don't touch this parameter if you're not an ITS developer
366     ITS->SetThicknessDet1(200.);   // detector thickness on layer 1 must be in the range [150,300]
367     ITS->SetThicknessDet2(200.);   // detector thickness on layer 2 must be in the range [150,300]
368     ITS->SetThicknessChip1(200.);  // chip thickness on layer 1 must be in the range [100,300]
369     ITS->SetThicknessChip2(200.);  // chip thickness on layer 2 must be in the range [100,300]
370     ITS->SetRails(1);              // 1 --> rails in ; 0 --> rails out
371     ITS->SetCoolingFluid(1);       // 1 --> water ; 0 --> freon
372     //
373     //AliITSvPPRsymm *ITS  = new AliITSvPPRsymm("ITS","New ITS PPR detailed version with symmetric services");
374     //ITS->SetMinorVersion(2);                                       // don't touch this parameter if you're not an ITS developer
375     //ITS->SetReadDet(kFALSE);                                       // don't touch this parameter if you're not an ITS developer
376     //ITS->SetWriteDet("$ALICE_ROOT/ITS/ITSgeometry_vPPRsymm2.det"); // don't touch this parameter if you're not an ITS developer
377     //ITS->SetThicknessDet1(300.);   // detector thickness on layer 1 must be in the range [150,300]
378     //ITS->SetThicknessDet2(300.);   // detector thickness on layer 2 must be in the range [150,300]
379     //ITS->SetThicknessChip1(300.);  // chip thickness on layer 1 must be in the range [100,300]
380     //ITS->SetThicknessChip2(300.);  // chip thickness on layer 2 must be in the range [100,300]
381     //ITS->SetRails(1);              // 1 --> rails in ; 0 --> rails out
382     //ITS->SetCoolingFluid(1);       // 1 --> water ; 0 --> freon
383     //
384     //
385     // Coarse geometries (warning: no hits are produced with these coarse geometries and they unuseful 
386     // for reconstruction !):
387     //                                                     
388     //
389     //AliITSvPPRcoarseasymm *ITS  = new AliITSvPPRcoarseasymm("ITS","New ITS PPR coarse version with asymmetric services");
390     //ITS->SetRails(1);                // 1 --> rails in ; 0 --> rails out
391     //ITS->SetSupportMaterial(0);      // 0 --> Copper ; 1 --> Aluminum ; 2 --> Carbon
392     //
393     //AliITS *ITS  = new AliITSvPPRcoarsesymm("ITS","New ITS PPR coarse version with symmetric services");
394     //ITS->SetRails(1);                // 1 --> rails in ; 0 --> rails out
395     //ITS->SetSupportMaterial(0);      // 0 --> Copper ; 1 --> Aluminum ; 2 --> Carbon
396     //                      
397     //
398     //
399     // Geant3 <-> EUCLID conversion
400     // ============================
401     //
402     // SetEUCLID is a flag to output (=1) or not to output (=0) both geometry and
403     // media to two ASCII files (called by default ITSgeometry.euc and
404     // ITSgeometry.tme) in a format understandable to the CAD system EUCLID.
405     // The default (=0) means that you dont want to use this facility.
406     //
407     ITS->SetEUCLID(0);  
408   }
409   
410
411   if(iTPC) {
412     //============================ TPC parameters ================================
413     // --- This allows the user to specify sectors for the SLOW (TPC geometry 2)
414     // --- Simulator. SecAL (SecAU) <0 means that ALL lower (upper)
415     // --- sectors are specified, any value other than that requires at least one 
416     // --- sector (lower or upper)to be specified!
417     // --- Reminder: sectors 1-24 are lower sectors (1-12 -> z>0, 13-24 -> z<0)
418     // ---           sectors 25-72 are the upper ones (25-48 -> z>0, 49-72 -> z<0)
419     // --- SecLows - number of lower sectors specified (up to 6)
420     // --- SecUps - number of upper sectors specified (up to 12)
421     // --- Sens - sensitive strips for the Slow Simulator !!!
422     // --- This does NOT work if all S or L-sectors are specified, i.e.
423     // --- if SecAL or SecAU < 0
424     //
425     //
426     //-----------------------------------------------------------------------------
427
428     //  gROOT->LoadMacro("SetTPCParam.C");
429     //  AliTPCParam *param = SetTPCParam();
430     AliTPC *TPC  = new AliTPCv2("TPC","Default");
431     // All sectors included 
432     TPC->SetSecAL(-1);
433     TPC->SetSecAU(-1);
434
435   }
436
437
438   if(iTOF) {
439     //=================== TOF parameters ============================
440     AliTOF *TOF  = new AliTOFv4T0("TOF","normal TOF");
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 //
524 AliGenPythia *PythiaHVQ(ProcessHvFl_t proc) {
525
526   AliGenPythia * gener = 0x0;
527
528   switch(proc) {
529   case kCharmPbPb5500:
530     comment = comment.Append(" Charm in Pb-Pb at 5.5 TeV");
531     gener = new AliGenPythia(nEvts);
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");
540     gener = new AliGenPythia(nEvts);
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");
550     gener = new AliGenPythia(nEvts);
551     gener->SetProcess(kPyCharmppMNR);
552     gener->SetStrucFunc(kCTEQ4L);
553     gener->SetPtHard(2.1,-1.0);
554     gener->SetEnergyCMS(14000.);
555     break;
556   case kD0PbPb5500:
557     comment = comment.Append(" D0 in Pb-Pb at 5.5 TeV");
558     gener = new AliGenPythia(nEvts);
559     gener->SetProcess(kPyD0PbPbMNR);
560     gener->SetStrucFunc(kCTEQ4L);
561     gener->SetPtHard(2.1,-1.0);
562     gener->SetEnergyCMS(5500.);
563     gener->SetNuclei(208,208);
564     break;
565   case kD0pPb8800:
566     comment = comment.Append(" D0 in p-Pb at 8.8 TeV");
567     gener = new AliGenPythia(nEvts);
568     gener->SetProcess(kPyD0pPbMNR);
569     gener->SetStrucFunc(kCTEQ4L);
570     gener->SetPtHard(2.1,-1.0);
571     gener->SetEnergyCMS(8800.);
572     gener->SetProjectile("P",1,1);
573     gener->SetTarget("Pb",208,82);
574     break;
575   case kD0pp14000:
576     comment = comment.Append(" D0 in pp at 14 TeV");
577     gener = new AliGenPythia(nEvts);
578     gener->SetProcess(kPyD0ppMNR);
579     gener->SetStrucFunc(kCTEQ4L);
580     gener->SetPtHard(2.1,-1.0);
581     gener->SetEnergyCMS(14000.);
582     break;
583   case kDPlusPbPb5500:
584     comment = comment.Append(" DPlus in Pb-Pb at 5.5 TeV");
585     gener = new AliGenPythia(nEvts);
586     gener->SetProcess(kPyDPlusPbPbMNR);
587     gener->SetStrucFunc(kCTEQ4L);
588     gener->SetPtHard(2.1,-1.0);
589     gener->SetEnergyCMS(5500.);
590     gener->SetNuclei(208,208);
591     break;
592   case kDPluspPb8800:
593     comment = comment.Append(" DPlus in p-Pb at 8.8 TeV");
594     gener = new AliGenPythia(nEvts);
595     gener->SetProcess(kPyDPluspPbMNR);
596     gener->SetStrucFunc(kCTEQ4L);
597     gener->SetPtHard(2.1,-1.0);
598     gener->SetEnergyCMS(8800.);
599     gener->SetProjectile("P",1,1);
600     gener->SetTarget("Pb",208,82);
601     break;
602   case kDPluspp14000:
603     comment = comment.Append(" DPlus in pp at 14 TeV");
604     gener = new AliGenPythia(nEvts);
605     gener->SetProcess(kPyDPlusppMNR);
606     gener->SetStrucFunc(kCTEQ4L);
607     gener->SetPtHard(2.1,-1.0);
608     gener->SetEnergyCMS(14000.);
609     break;
610   case kBeautyPbPb5500:
611     comment = comment.Append(" Beauty in Pb-Pb at 5.5 TeV");
612     gener = new AliGenPythia(nEvts);
613     gener->SetProcess(kPyBeautyPbPbMNR);
614     gener->SetStrucFunc(kCTEQ4L);
615     gener->SetPtHard(2.75,-1.0);
616     gener->SetEnergyCMS(5500.);
617     gener->SetNuclei(208,208);
618     break;
619   case kBeautypPb8800:
620     comment = comment.Append(" Beauty in p-Pb at 8.8 TeV");
621     gener = new AliGenPythia(nEvts);
622     gener->SetProcess(kPyBeautypPbMNR);
623     gener->SetStrucFunc(kCTEQ4L);
624     gener->SetPtHard(2.75,-1.0);
625     gener->SetEnergyCMS(8800.);
626     gener->SetProjectile("P",1,1);
627     gener->SetTarget("Pb",208,82);
628     break;
629   case kBeautypp14000:
630     comment = comment.Append(" Beauty in pp at 14 TeV");
631     gener = new AliGenPythia(nEvts);
632     gener->SetProcess(kPyBeautyppMNR);
633     gener->SetStrucFunc(kCTEQ4L);
634     gener->SetPtHard(2.75,-1.0);
635     gener->SetEnergyCMS(14000.);
636     break;
637   }
638
639   return gener;
640 }
641
642
643
644
645