]>
Commit | Line | Data |
---|---|---|
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 --- | |
50 | enum 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 --- | |
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 | }; | |
de78d77f | 73 | //--- Functions --- |
74 | AliGenPythia *PythiaHVQ(ProcessHvFl_t proc); | |
75 | ||
6ccd5a72 | 76 | |
77 | // This part for configuration | |
78 | static ProcessHvFl_t procHvFl = kCharmPbPb5500; | |
79 | static DecayHvFl_t decHvFl = kNature; | |
80 | static YCut_t ycut = kFull; | |
09977179 | 81 | static 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 | |
85 | Int_t nEvts = -1; | |
86 | // stars = kTRUE : all heavy resonances and their decay stored | |
87 | // = kFALSE: only final heavy hadrons and their decays stored | |
88 | Bool_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% | |
106 | Float_t ptHardMin = 2.76; | |
107 | Float_t ptHardMax = -1.; | |
108 | ||
6ccd5a72 | 109 | |
110 | // Comment line | |
111 | static TString comment; | |
112 | ||
113 | void 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 | ||
6ccd5a72 | 471 | // Switch on TR |
472 | AliTRDsim *TRDsim = TRD->CreateTR(); | |
473 | } | |
474 | ||
475 | if(iFMD) { | |
476 | //=================== FMD parameters ============================ | |
477 | ||
478 | AliFMD *FMD = new AliFMDv0("FMD","normal FMD"); | |
479 | } | |
480 | ||
481 | if(iMUON) { | |
482 | //=================== MUON parameters =========================== | |
483 | AliMUON *MUON = new AliMUONv1("MUON","default"); | |
484 | } | |
485 | ||
486 | //=================== PHOS parameters =========================== | |
487 | ||
488 | if(iPHOS) { | |
489 | AliPHOS *PHOS = new AliPHOSv1("PHOS","GPS2"); | |
490 | } | |
491 | ||
492 | ||
493 | //=================== CRT parameters =========================== | |
494 | ||
495 | if(iCRT) { | |
496 | AliCRT *CRT = new AliCRTv1("CRT","Normal CRTGPS2"); | |
497 | } | |
498 | ||
499 | ||
500 | if(iPMD) { | |
501 | //=================== PMD parameters ============================ | |
502 | ||
503 | AliPMD *PMD = new AliPMDv1("PMD","normal PMD"); | |
504 | PMD->SetPAR(1., 1., 0.8, 0.02); | |
505 | PMD->SetIN(6., 18., -580., 27., 27.); | |
506 | PMD->SetGEO(0.0, 0.2, 4.); | |
507 | PMD->SetPadSize(0.8, 1.0, 1.0, 1.5); | |
508 | ||
509 | } | |
510 | ||
511 | if(iSTART) { | |
512 | //=================== START parameters ============================ | |
513 | AliSTART *START = new AliSTARTv1("START","START Detector"); | |
514 | } | |
515 | ||
516 | ||
517 | } | |
518 | // | |
519 | // PYTHIA | |
520 | // | |
521 | AliGenPythia *PythiaHVQ(ProcessHvFl_t proc) { | |
522 | ||
de78d77f | 523 | AliGenPythia * gener = 0x0; |
524 | ||
6ccd5a72 | 525 | switch(proc) { |
526 | case kCharmPbPb5500: | |
527 | comment = comment.Append(" Charm in Pb-Pb at 5.5 TeV"); | |
de78d77f | 528 | gener = new AliGenPythia(nEvts); |
6ccd5a72 | 529 | gener->SetProcess(kPyCharmPbPbMNR); |
530 | gener->SetStrucFunc(kCTEQ4L); | |
531 | gener->SetPtHard(2.1,-1.0); | |
532 | gener->SetEnergyCMS(5500.); | |
533 | gener->SetNuclei(208,208); | |
534 | break; | |
535 | case kCharmpPb8800: | |
536 | comment = comment.Append(" Charm in p-Pb at 8.8 TeV"); | |
de78d77f | 537 | gener = new AliGenPythia(nEvts); |
6ccd5a72 | 538 | gener->SetProcess(kPyCharmpPbMNR); |
539 | gener->SetStrucFunc(kCTEQ4L); | |
540 | gener->SetPtHard(2.1,-1.0); | |
541 | gener->SetEnergyCMS(8800.); | |
542 | gener->SetProjectile("P",1,1); | |
543 | gener->SetTarget("Pb",208,82); | |
544 | break; | |
545 | case kCharmpp14000: | |
546 | comment = comment.Append(" Charm in pp at 14 TeV"); | |
de78d77f | 547 | gener = new AliGenPythia(nEvts); |
6ccd5a72 | 548 | gener->SetProcess(kPyCharmppMNR); |
549 | gener->SetStrucFunc(kCTEQ4L); | |
550 | gener->SetPtHard(2.1,-1.0); | |
551 | gener->SetEnergyCMS(14000.); | |
552 | break; | |
09977179 | 553 | case kCharmpp14000wmi: |
554 | comment = comment.Append(" Charm in pp at 14 TeV with mult. interactions"); | |
555 | gener = new AliGenPythia(-1); | |
556 | gener->SetProcess(kPyCharmppMNRwmi); | |
557 | gener->SetStrucFunc(kCTEQ5L); | |
558 | gener->SetPtHard(ptHardMin,ptHardMax); | |
559 | gener->SetEnergyCMS(14000.); | |
560 | break; | |
6ccd5a72 | 561 | case kD0PbPb5500: |
562 | comment = comment.Append(" D0 in Pb-Pb at 5.5 TeV"); | |
de78d77f | 563 | gener = new AliGenPythia(nEvts); |
6ccd5a72 | 564 | gener->SetProcess(kPyD0PbPbMNR); |
565 | gener->SetStrucFunc(kCTEQ4L); | |
566 | gener->SetPtHard(2.1,-1.0); | |
567 | gener->SetEnergyCMS(5500.); | |
568 | gener->SetNuclei(208,208); | |
569 | break; | |
570 | case kD0pPb8800: | |
571 | comment = comment.Append(" D0 in p-Pb at 8.8 TeV"); | |
de78d77f | 572 | gener = new AliGenPythia(nEvts); |
6ccd5a72 | 573 | gener->SetProcess(kPyD0pPbMNR); |
574 | gener->SetStrucFunc(kCTEQ4L); | |
575 | gener->SetPtHard(2.1,-1.0); | |
576 | gener->SetEnergyCMS(8800.); | |
577 | gener->SetProjectile("P",1,1); | |
578 | gener->SetTarget("Pb",208,82); | |
579 | break; | |
580 | case kD0pp14000: | |
581 | comment = comment.Append(" D0 in pp at 14 TeV"); | |
de78d77f | 582 | gener = new AliGenPythia(nEvts); |
6ccd5a72 | 583 | gener->SetProcess(kPyD0ppMNR); |
584 | gener->SetStrucFunc(kCTEQ4L); | |
72fc043d | 585 | gener->SetPtHard(2.1,-1.0); |
586 | gener->SetEnergyCMS(14000.); | |
587 | break; | |
588 | case kDPlusPbPb5500: | |
589 | comment = comment.Append(" DPlus in Pb-Pb at 5.5 TeV"); | |
590 | gener = new AliGenPythia(nEvts); | |
591 | gener->SetProcess(kPyDPlusPbPbMNR); | |
592 | gener->SetStrucFunc(kCTEQ4L); | |
593 | gener->SetPtHard(2.1,-1.0); | |
594 | gener->SetEnergyCMS(5500.); | |
595 | gener->SetNuclei(208,208); | |
596 | break; | |
597 | case kDPluspPb8800: | |
598 | comment = comment.Append(" DPlus in p-Pb at 8.8 TeV"); | |
599 | gener = new AliGenPythia(nEvts); | |
600 | gener->SetProcess(kPyDPluspPbMNR); | |
601 | gener->SetStrucFunc(kCTEQ4L); | |
602 | gener->SetPtHard(2.1,-1.0); | |
603 | gener->SetEnergyCMS(8800.); | |
604 | gener->SetProjectile("P",1,1); | |
605 | gener->SetTarget("Pb",208,82); | |
606 | break; | |
607 | case kDPluspp14000: | |
608 | comment = comment.Append(" DPlus in pp at 14 TeV"); | |
609 | gener = new AliGenPythia(nEvts); | |
610 | gener->SetProcess(kPyDPlusppMNR); | |
611 | gener->SetStrucFunc(kCTEQ4L); | |
6ccd5a72 | 612 | gener->SetPtHard(2.1,-1.0); |
613 | gener->SetEnergyCMS(14000.); | |
614 | break; | |
84388d23 | 615 | case kDPlusStrangePbPb5500: |
616 | comment = comment.Append(" DPlusStrange in Pb-Pb at 5.5 TeV"); | |
617 | gener = new AliGenPythia(nEvts); | |
618 | gener->SetProcess(kPyDPlusStrangePbPbMNR); | |
619 | gener->SetStrucFunc(kCTEQ4L); | |
620 | gener->SetPtHard(2.1,-1.0); | |
621 | gener->SetEnergyCMS(5500.); | |
622 | gener->SetNuclei(208,208); | |
623 | break; | |
624 | case kDPlusStrangepPb8800: | |
625 | comment = comment.Append(" DPlusStrange in p-Pb at 8.8 TeV"); | |
626 | gener = new AliGenPythia(nEvts); | |
627 | gener->SetProcess(kPyDPlusStrangepPbMNR); | |
628 | gener->SetStrucFunc(kCTEQ4L); | |
629 | gener->SetPtHard(2.1,-1.0); | |
630 | gener->SetEnergyCMS(8800.); | |
631 | gener->SetProjectile("P",1,1); | |
632 | gener->SetTarget("Pb",208,82); | |
633 | break; | |
634 | case kDPlusStrangepp14000: | |
635 | comment = comment.Append(" DPlusStrange in pp at 14 TeV"); | |
636 | gener = new AliGenPythia(nEvts); | |
637 | gener->SetProcess(kPyDPlusStrangeppMNR); | |
638 | gener->SetStrucFunc(kCTEQ4L); | |
639 | gener->SetPtHard(2.1,-1.0); | |
640 | gener->SetEnergyCMS(14000.); | |
641 | break; | |
6ccd5a72 | 642 | case kBeautyPbPb5500: |
643 | comment = comment.Append(" Beauty in Pb-Pb at 5.5 TeV"); | |
7005f584 | 644 | gener = new AliGenPythia(nEvts); |
6ccd5a72 | 645 | gener->SetProcess(kPyBeautyPbPbMNR); |
646 | gener->SetStrucFunc(kCTEQ4L); | |
647 | gener->SetPtHard(2.75,-1.0); | |
648 | gener->SetEnergyCMS(5500.); | |
649 | gener->SetNuclei(208,208); | |
650 | break; | |
651 | case kBeautypPb8800: | |
652 | comment = comment.Append(" Beauty in p-Pb at 8.8 TeV"); | |
de78d77f | 653 | gener = new AliGenPythia(nEvts); |
6ccd5a72 | 654 | gener->SetProcess(kPyBeautypPbMNR); |
655 | gener->SetStrucFunc(kCTEQ4L); | |
656 | gener->SetPtHard(2.75,-1.0); | |
657 | gener->SetEnergyCMS(8800.); | |
658 | gener->SetProjectile("P",1,1); | |
659 | gener->SetTarget("Pb",208,82); | |
660 | break; | |
661 | case kBeautypp14000: | |
662 | comment = comment.Append(" Beauty in pp at 14 TeV"); | |
de78d77f | 663 | gener = new AliGenPythia(nEvts); |
6ccd5a72 | 664 | gener->SetProcess(kPyBeautyppMNR); |
665 | gener->SetStrucFunc(kCTEQ4L); | |
666 | gener->SetPtHard(2.75,-1.0); | |
667 | gener->SetEnergyCMS(14000.); | |
668 | break; | |
09977179 | 669 | case kBeautypp14000wmi: |
670 | comment = comment.Append(" Beauty in pp at 14 TeV with mult. interactions"); | |
671 | gener = new AliGenPythia(-1); | |
672 | gener->SetProcess(kPyBeautyppMNRwmi); | |
673 | gener->SetStrucFunc(kCTEQ5L); | |
674 | gener->SetPtHard(ptHardMin,ptHardMax); | |
675 | gener->SetEnergyCMS(14000.); | |
676 | break; | |
6ccd5a72 | 677 | } |
678 | ||
679 | return gener; | |
680 | } | |
681 | ||
682 | ||
683 | ||
684 | ||
685 |