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