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