]>
Commit | Line | Data |
---|---|---|
3928b038 | 1 | // |
2 | // Configuration for the Physics Data Challenge 2006 | |
3 | // | |
4 | ||
5 | // One can use the configuration macro in compiled mode by | |
6 | // root [0] gSystem->Load("libgeant321"); | |
7 | // root [0] gSystem->SetIncludePath("-I$ROOTSYS/include -I$ALICE_ROOT/include\ | |
8 | // -I$ALICE_ROOT -I$ALICE/geant3/TGeant3"); | |
9 | // root [0] .x grun.C(1,"Config_PDC06.C++") | |
10 | ||
11 | #if !defined(__CINT__) || defined(__MAKECINT__) | |
12 | #include <Riostream.h> | |
13 | #include <TRandom.h> | |
14 | #include <TDatime.h> | |
15 | #include <TSystem.h> | |
16 | #include <TVirtualMC.h> | |
17 | #include <TGeant3TGeo.h> | |
18 | #include "EVGEN/AliGenCocktail.h" | |
19 | #include "EVGEN/AliGenParam.h" | |
20 | #include "EVGEN/AliGenMUONlib.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" | |
96fb3353 | 29 | #include "STRUCT/AliABSOv3.h" |
30 | #include "STRUCT/AliDIPOv3.h" | |
31 | #include "STRUCT/AliHALLv3.h" | |
3928b038 | 32 | #include "STRUCT/AliFRAMEv2.h" |
96fb3353 | 33 | #include "STRUCT/AliSHILv3.h" |
34 | #include "STRUCT/AliPIPEv3.h" | |
3928b038 | 35 | #include "ITS/AliITSgeom.h" |
36 | #include "ITS/AliITSvPPRasymmFMD.h" | |
37 | #include "TPC/AliTPCv2.h" | |
0d7ef405 | 38 | #include "TOF/AliTOFv6T0.h" |
55eb2b56 | 39 | #include "HMPID/AliHMPIDv2.h" |
cb14d625 | 40 | #include "ZDC/AliZDCv3.h" |
3928b038 | 41 | #include "TRD/AliTRDv1.h" |
42 | #include "FMD/AliFMDv1.h" | |
43 | #include "MUON/AliMUONv1.h" | |
44 | #include "PHOS/AliPHOSv1.h" | |
45 | #include "PMD/AliPMDv1.h" | |
46 | #include "T0/AliT0v1.h" | |
47 | #include "EMCAL/AliEMCALv2.h" | |
48 | #include "ACORDE/AliACORDEv0.h" | |
49 | #include "VZERO/AliVZEROv7.h" | |
50 | #endif | |
51 | ||
52 | ||
53 | enum PDC06Proc_t | |
54 | { | |
55 | //--- Heavy Flavour Production --- | |
56 | kCharmPbPb5500, kCharmpPb8800, kCharmpp14000, kCharmpp14000wmi, | |
57 | kD0PbPb5500, kD0pPb8800, kD0pp14000, | |
58 | kDPlusPbPb5500, kDPluspPb8800, kDPluspp14000, | |
59 | kBeautyPbPb5500, kBeautypPb8800, kBeautypp14000, kBeautypp14000wmi, | |
60 | // -- Pythia Mb | |
61 | kPyMbNoHvq, kPyOmegaPlus, kPyOmegaMinus, kRunMax | |
62 | }; | |
63 | ||
64 | const char * pprRunName[] = { | |
65 | "kCharmPbPb5500", "kCharmpPb8800", "kCharmpp14000", "kCharmpp14000wmi", | |
66 | "kD0PbPb5500", "kD0pPb8800", "kD0pp14000", | |
67 | "kDPlusPbPb5500", "kDPluspPb8800", "kDPluspp14000", | |
68 | "kBeautyPbPb5500", "kBeautypPb8800", "kBeautypp14000", "kBeautypp14000wmi", | |
69 | "kPyMbNoHvq", "kPyOmegaPlus", "kPyOmegaMinus" | |
70 | }; | |
71 | ||
72 | ||
73 | //--- Decay Mode --- | |
74 | enum DecayHvFl_t | |
75 | { | |
76 | kNature, kHadr, kSemiEl, kSemiMu | |
77 | }; | |
78 | //--- Rapidity Cut --- | |
79 | enum YCut_t | |
80 | { | |
81 | kFull, kBarrel, kMuonArm | |
82 | }; | |
83 | //--- Magnetic Field --- | |
84 | enum Mag_t | |
85 | { | |
86 | k2kG, k4kG, k5kG | |
87 | }; | |
88 | ||
89 | //--- Trigger config --- | |
90 | enum TrigConf_t | |
91 | { | |
92 | kDefaultPPTrig, kDefaultPbPbTrig | |
93 | }; | |
94 | ||
95 | const char * TrigConfName[] = { | |
96 | "p-p","Pb-Pb" | |
97 | }; | |
98 | ||
3b90f080 | 99 | enum PprGeo_t |
100 | { | |
101 | kHoles, kNoHoles | |
102 | }; | |
103 | ||
3928b038 | 104 | //--- Functions --- |
105 | AliGenPythia *PythiaHVQ(PDC06Proc_t proc); | |
106 | AliGenerator *MbCocktail(); | |
107 | AliGenerator *PyMbTriggered(Int_t pdg); | |
108 | void ProcessEnvironmentVars(); | |
109 | ||
110 | // This part for configuration | |
111 | static PDC06Proc_t proc = kPyMbNoHvq; | |
112 | static DecayHvFl_t decHvFl = kNature; | |
113 | static YCut_t ycut = kFull; | |
114 | static Mag_t mag = k5kG; | |
115 | static TrigConf_t trig = kDefaultPPTrig; // default pp trigger configuration | |
3b90f080 | 116 | static PprGeo_t geo = kHoles; |
3928b038 | 117 | //========================// |
118 | // Set Random Number seed // | |
119 | //========================// | |
120 | TDatime dt; | |
121 | static UInt_t seed = dt.Get(); | |
122 | ||
123 | // nEvts = -1 : you get 1 QQbar pair and all the fragmentation and | |
124 | // decay chain | |
125 | // nEvts = N>0 : you get N charm / beauty Hadrons | |
126 | Int_t nEvts = -1; | |
127 | // stars = kTRUE : all heavy resonances and their decay stored | |
128 | // = kFALSE: only final heavy hadrons and their decays stored | |
129 | Bool_t stars = kTRUE; | |
130 | ||
131 | // To be used only with kCharmppMNRwmi and kBeautyppMNRwmi | |
132 | // To get a "reasonable" agreement with MNR results, events have to be | |
133 | // generated with the minimum ptHard set to 2.76 GeV. | |
134 | // To get a "perfect" agreement with MNR results, events have to be | |
135 | // generated in four ptHard bins with the following relative | |
136 | // normalizations: | |
137 | // CHARM | |
138 | // 2.76-3 GeV: 25% | |
139 | // 3-4 GeV: 40% | |
140 | // 4-8 GeV: 29% | |
141 | // >8 GeV: 6% | |
142 | // BEAUTY | |
143 | // 2.76-4 GeV: 5% | |
144 | // 4-6 GeV: 31% | |
145 | // 6-8 GeV: 28% | |
146 | // >8 GeV: 36% | |
147 | Float_t ptHardMin = 2.76; | |
148 | Float_t ptHardMax = -1.; | |
149 | ||
150 | ||
151 | // Comment line | |
152 | static TString comment; | |
153 | ||
154 | void Config() | |
155 | { | |
156 | ||
157 | ||
158 | // Get settings from environment variables | |
159 | ProcessEnvironmentVars(); | |
160 | ||
161 | gRandom->SetSeed(seed); | |
162 | cerr<<"Seed for random number generation= "<<seed<<endl; | |
163 | ||
164 | // libraries required by geant321 | |
165 | #if defined(__CINT__) | |
f1e07bdc | 166 | gSystem->Load("liblhapdf"); |
167 | gSystem->Load("libEGPythia6"); | |
168 | gSystem->Load("libpythia6"); | |
169 | gSystem->Load("libAliPythia6"); | |
3928b038 | 170 | gSystem->Load("libgeant321"); |
171 | #endif | |
172 | ||
173 | new TGeant3TGeo("C++ Interface to Geant3"); | |
174 | ||
175 | //======================================================================= | |
176 | // Create the output file | |
177 | ||
178 | ||
179 | AliRunLoader* rl=0x0; | |
180 | ||
181 | cout<<"Config.C: Creating Run Loader ..."<<endl; | |
182 | rl = AliRunLoader::Open("galice.root", | |
183 | AliConfig::GetDefaultEventFolderName(), | |
184 | "recreate"); | |
185 | if (rl == 0x0) | |
186 | { | |
187 | gAlice->Fatal("Config.C","Can not instatiate the Run Loader"); | |
188 | return; | |
189 | } | |
190 | rl->SetCompressionLevel(2); | |
191 | rl->SetNumberOfEventsPerFile(1000); | |
192 | gAlice->SetRunLoader(rl); | |
193 | ||
194 | // Set the trigger configuration | |
195 | gAlice->SetTriggerDescriptor(TrigConfName[trig]); | |
196 | cout<<"Trigger configuration is set to "<<TrigConfName[trig]<<endl; | |
197 | ||
198 | // | |
199 | //======================================================================= | |
200 | // ************* STEERING parameters FOR ALICE SIMULATION ************** | |
201 | // --- Specify event type to be tracked through the ALICE setup | |
202 | // --- All positions are in cm, angles in degrees, and P and E in GeV | |
203 | ||
204 | ||
205 | gMC->SetProcess("DCAY",1); | |
206 | gMC->SetProcess("PAIR",1); | |
207 | gMC->SetProcess("COMP",1); | |
208 | gMC->SetProcess("PHOT",1); | |
209 | gMC->SetProcess("PFIS",0); | |
210 | gMC->SetProcess("DRAY",0); | |
211 | gMC->SetProcess("ANNI",1); | |
212 | gMC->SetProcess("BREM",1); | |
213 | gMC->SetProcess("MUNU",1); | |
214 | gMC->SetProcess("CKOV",1); | |
215 | gMC->SetProcess("HADR",1); | |
216 | gMC->SetProcess("LOSS",2); | |
217 | gMC->SetProcess("MULS",1); | |
218 | gMC->SetProcess("RAYL",1); | |
219 | ||
220 | Float_t cut = 1.e-3; // 1MeV cut by default | |
221 | Float_t tofmax = 1.e10; | |
222 | ||
223 | gMC->SetCut("CUTGAM", cut); | |
224 | gMC->SetCut("CUTELE", cut); | |
225 | gMC->SetCut("CUTNEU", cut); | |
226 | gMC->SetCut("CUTHAD", cut); | |
227 | gMC->SetCut("CUTMUO", cut); | |
228 | gMC->SetCut("BCUTE", cut); | |
229 | gMC->SetCut("BCUTM", cut); | |
230 | gMC->SetCut("DCUTE", cut); | |
231 | gMC->SetCut("DCUTM", cut); | |
232 | gMC->SetCut("PPCUTM", cut); | |
233 | gMC->SetCut("TOFMAX", tofmax); | |
234 | ||
235 | ||
236 | ||
237 | ||
238 | // Set External decayer // | |
239 | //======================// | |
240 | TVirtualMCDecayer* decayer = new AliDecayerPythia(); | |
241 | // DECAYS | |
242 | // | |
243 | switch(decHvFl) { | |
244 | case kNature: | |
245 | decayer->SetForceDecay(kAll); | |
246 | break; | |
247 | case kHadr: | |
248 | decayer->SetForceDecay(kHadronicD); | |
249 | break; | |
250 | case kSemiEl: | |
251 | decayer->SetForceDecay(kSemiElectronic); | |
252 | break; | |
253 | case kSemiMu: | |
254 | decayer->SetForceDecay(kSemiMuonic); | |
255 | break; | |
256 | } | |
257 | decayer->Init(); | |
258 | gMC->SetExternalDecayer(decayer); | |
259 | ||
260 | //=========================// | |
261 | // Generator Configuration // | |
262 | //=========================// | |
263 | AliGenerator* gener = 0x0; | |
264 | ||
265 | if (proc <= kBeautypp14000wmi) { | |
266 | AliGenPythia *pythia = PythiaHVQ(proc); | |
267 | // FeedDown option | |
268 | pythia->SetFeedDownHigherFamily(kFALSE); | |
269 | // Stack filling option | |
270 | if(!stars) pythia->SetStackFillOpt(AliGenPythia::kParentSelection); | |
271 | // Set Count mode | |
272 | if(nEvts>0) pythia->SetCountMode(AliGenPythia::kCountParents); | |
273 | // | |
274 | // DECAYS | |
275 | // | |
276 | switch(decHvFl) { | |
277 | case kNature: | |
278 | pythia->SetForceDecay(kAll); | |
279 | break; | |
280 | case kHadr: | |
281 | pythia->SetForceDecay(kHadronicD); | |
282 | break; | |
283 | case kSemiEl: | |
284 | pythia->SetForceDecay(kSemiElectronic); | |
285 | break; | |
286 | case kSemiMu: | |
287 | pythia->SetForceDecay(kSemiMuonic); | |
288 | break; | |
289 | } | |
290 | // | |
291 | // GEOM & KINE CUTS | |
292 | // | |
293 | pythia->SetMomentumRange(0,99999999); | |
294 | pythia->SetPhiRange(0., 360.); | |
295 | pythia->SetThetaRange(0,180); | |
296 | switch(ycut) { | |
297 | case kFull: | |
298 | pythia->SetYRange(-999,999); | |
299 | break; | |
300 | case kBarrel: | |
301 | pythia->SetYRange(-2,2); | |
302 | break; | |
303 | case kMuonArm: | |
304 | pythia->SetYRange(1,6); | |
305 | break; | |
306 | } | |
307 | gener = pythia; | |
308 | } else if (proc == kPyMbNoHvq) { | |
309 | gener = MbCocktail(); | |
310 | } else if (proc == kPyOmegaMinus) { | |
311 | gener = PyMbTriggered(3334); | |
312 | } else if (proc == kPyOmegaPlus) { | |
313 | gener = PyMbTriggered(-3334); | |
314 | } | |
315 | ||
316 | ||
317 | ||
318 | // PRIMARY VERTEX | |
319 | // | |
320 | gener->SetOrigin(0., 0., 0.); // vertex position | |
321 | // | |
322 | // | |
323 | // Size of the interaction diamond | |
324 | // Longitudinal | |
325 | Float_t sigmaz = 7.55 / TMath::Sqrt(2.); // [cm] | |
326 | // | |
327 | // Transverse | |
328 | Float_t betast = 10; // beta* [m] | |
329 | Float_t eps = 3.75e-6; // emittance [m] | |
330 | Float_t gamma = 7000. / 0.938272; // relativistic gamma [1] | |
331 | Float_t sigmaxy = TMath::Sqrt(eps * betast / gamma) / TMath::Sqrt(2.) * 100.; // [cm] | |
332 | printf("\n \n Diamond size x-y: %10.3e z: %10.3e\n \n", sigmaxy, sigmaz); | |
333 | ||
334 | gener->SetSigma(sigmaxy, sigmaxy, sigmaz); // Sigma in (X,Y,Z) (cm) on IP position | |
335 | gener->SetCutVertexZ(3.); // Truncate at 3 sigma | |
336 | gener->SetVertexSmear(kPerEvent); | |
337 | ||
338 | gener->Init(); | |
339 | ||
340 | // FIELD | |
341 | // | |
342 | if (mag == k2kG) { | |
343 | comment = comment.Append(" | L3 field 0.2 T"); | |
344 | } else if (mag == k4kG) { | |
345 | comment = comment.Append(" | L3 field 0.4 T"); | |
346 | } else if (mag == k5kG) { | |
347 | comment = comment.Append(" | L3 field 0.5 T"); | |
348 | } | |
349 | printf("\n \n Comment: %s \n \n", comment.Data()); | |
350 | ||
351 | AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., mag); | |
352 | field->SetL3ConstField(0); //Using const. field in the barrel | |
353 | rl->CdGAFile(); | |
354 | gAlice->SetField(field); | |
355 | ||
356 | ||
357 | ||
358 | Int_t iABSO = 1; | |
359 | Int_t iACORDE = 0; | |
360 | Int_t iDIPO = 1; | |
361 | Int_t iEMCAL = 1; | |
362 | Int_t iFMD = 1; | |
363 | Int_t iFRAME = 1; | |
364 | Int_t iHALL = 1; | |
365 | Int_t iITS = 1; | |
366 | Int_t iMAG = 1; | |
367 | Int_t iMUON = 1; | |
368 | Int_t iPHOS = 1; | |
369 | Int_t iPIPE = 1; | |
370 | Int_t iPMD = 1; | |
371 | Int_t iHMPID = 1; | |
372 | Int_t iSHIL = 1; | |
373 | Int_t iT0 = 1; | |
374 | Int_t iTOF = 1; | |
375 | Int_t iTPC = 1; | |
376 | Int_t iTRD = 1; | |
377 | Int_t iVZERO = 1; | |
378 | Int_t iZDC = 1; | |
379 | ||
380 | ||
381 | //=================== Alice BODY parameters ============================= | |
382 | AliBODY *BODY = new AliBODY("BODY", "Alice envelop"); | |
383 | ||
384 | ||
385 | if (iMAG) | |
386 | { | |
387 | //=================== MAG parameters ============================ | |
388 | // --- Start with Magnet since detector layouts may be depending --- | |
389 | // --- on the selected Magnet dimensions --- | |
390 | AliMAG *MAG = new AliMAG("MAG", "Magnet"); | |
391 | } | |
392 | ||
393 | ||
394 | if (iABSO) | |
395 | { | |
396 | //=================== ABSO parameters ============================ | |
96fb3353 | 397 | AliABSO *ABSO = new AliABSOv3("ABSO", "Muon Absorber"); |
3928b038 | 398 | } |
399 | ||
400 | if (iDIPO) | |
401 | { | |
402 | //=================== DIPO parameters ============================ | |
403 | ||
96fb3353 | 404 | AliDIPO *DIPO = new AliDIPOv3("DIPO", "Dipole version 3"); |
3928b038 | 405 | } |
406 | ||
407 | if (iHALL) | |
408 | { | |
409 | //=================== HALL parameters ============================ | |
410 | ||
96fb3353 | 411 | AliHALL *HALL = new AliHALLv3("HALL", "Alice Hall"); |
3928b038 | 412 | } |
413 | ||
414 | ||
415 | if (iFRAME) | |
416 | { | |
417 | //=================== FRAME parameters ============================ | |
418 | ||
419 | AliFRAMEv2 *FRAME = new AliFRAMEv2("FRAME", "Space Frame"); | |
3b90f080 | 420 | if (geo == kHoles) { |
421 | FRAME->SetHoles(1); | |
422 | } else { | |
423 | FRAME->SetHoles(0); | |
424 | } | |
3928b038 | 425 | } |
426 | ||
427 | if (iSHIL) | |
428 | { | |
429 | //=================== SHIL parameters ============================ | |
430 | ||
96fb3353 | 431 | AliSHIL *SHIL = new AliSHILv3("SHIL", "Shielding Version 3"); |
3928b038 | 432 | } |
433 | ||
434 | ||
435 | if (iPIPE) | |
436 | { | |
437 | //=================== PIPE parameters ============================ | |
438 | ||
96fb3353 | 439 | AliPIPE *PIPE = new AliPIPEv3("PIPE", "Beam Pipe"); |
3928b038 | 440 | } |
441 | ||
e89fa83b | 442 | if (iITS) |
443 | { | |
444 | //=================== ITS parameters ============================ | |
445 | ||
3928b038 | 446 | AliITSvPPRasymmFMD *ITS = new AliITSvPPRasymmFMD("ITS","New ITS PPR detailed version with asymmetric services"); |
3928b038 | 447 | } |
448 | ||
449 | if (iTPC) | |
450 | { | |
451 | //============================ TPC parameters ===================== | |
452 | AliTPC *TPC = new AliTPCv2("TPC", "Default"); | |
453 | } | |
454 | ||
455 | ||
456 | if (iTOF) { | |
457 | //=================== TOF parameters ============================ | |
0d7ef405 | 458 | AliTOF *TOF = new AliTOFv6T0("TOF", "normal TOF"); |
3928b038 | 459 | // Partial geometry: modules at 2,3,4,6,7,11,12,14,15,16 |
460 | // starting at 6h in positive direction | |
461 | // Int_t TOFSectors[18]={-1,-1,0,0,0,-1,0,0,-1,-1,-1,0,0,-1,0,0,0,0}; | |
462 | // Partial geometry: modules at 1,2,6,7,9,10,11,12,15,16,17 | |
463 | // (ALICE numbering convention) | |
464 | Int_t TOFSectors[18]={-1,0,0,-1,-1,-1,0,0,-1,0,0,0,0,-1,-1,0,0,0}; | |
465 | TOF->SetTOFSectors(TOFSectors); | |
466 | } | |
467 | ||
468 | ||
469 | if (iHMPID) | |
470 | { | |
471 | //=================== HMPID parameters =========================== | |
55eb2b56 | 472 | AliHMPID *HMPID = new AliHMPIDv2("HMPID", "normal HMPID"); |
3928b038 | 473 | |
474 | } | |
475 | ||
476 | ||
477 | if (iZDC) | |
478 | { | |
479 | //=================== ZDC parameters ============================ | |
480 | ||
cb14d625 | 481 | AliZDC *ZDC = new AliZDCv3("ZDC", "normal ZDC"); |
3928b038 | 482 | } |
483 | ||
484 | if (iTRD) | |
485 | { | |
486 | //=================== TRD parameters ============================ | |
487 | ||
488 | AliTRD *TRD = new AliTRDv1("TRD", "TRD slow simulator"); | |
489 | AliTRDgeometry *geoTRD = TRD->GetGeometry(); | |
490 | // Partial geometry: modules at 2,3,4,6,11,12,14,15 | |
491 | // starting at 6h in positive direction | |
492 | geoTRD->SetSMstatus(0,0); | |
493 | geoTRD->SetSMstatus(1,0); | |
494 | geoTRD->SetSMstatus(5,0); | |
495 | geoTRD->SetSMstatus(7,0); | |
496 | geoTRD->SetSMstatus(8,0); | |
497 | geoTRD->SetSMstatus(9,0); | |
498 | geoTRD->SetSMstatus(10,0); | |
499 | geoTRD->SetSMstatus(13,0); | |
500 | geoTRD->SetSMstatus(16,0); | |
501 | geoTRD->SetSMstatus(17,0); | |
502 | } | |
503 | ||
504 | if (iFMD) | |
505 | { | |
506 | //=================== FMD parameters ============================ | |
507 | AliFMD *FMD = new AliFMDv1("FMD", "normal FMD"); | |
508 | } | |
509 | ||
510 | if (iMUON) | |
511 | { | |
512 | //=================== MUON parameters =========================== | |
513 | // New MUONv1 version (geometry defined via builders) | |
514 | AliMUON *MUON = new AliMUONv1("MUON", "default"); | |
515 | } | |
516 | //=================== PHOS parameters =========================== | |
517 | ||
518 | if (iPHOS) | |
519 | { | |
520 | AliPHOS *PHOS = new AliPHOSv1("PHOS", "IHEP"); | |
521 | } | |
522 | ||
523 | ||
524 | if (iPMD) | |
525 | { | |
526 | //=================== PMD parameters ============================ | |
527 | AliPMD *PMD = new AliPMDv1("PMD", "normal PMD"); | |
528 | } | |
529 | ||
530 | if (iT0) | |
531 | { | |
532 | //=================== T0 parameters ============================ | |
533 | AliT0 *T0 = new AliT0v1("T0", "T0 Detector"); | |
534 | } | |
535 | ||
536 | if (iEMCAL) | |
537 | { | |
538 | //=================== EMCAL parameters ============================ | |
539 | AliEMCAL *EMCAL = new AliEMCALv2("EMCAL", "SHISH_77_TRD1_2X2_FINAL_110DEG"); | |
540 | } | |
541 | ||
542 | if (iACORDE) | |
543 | { | |
544 | //=================== ACORDE parameters ============================ | |
545 | AliACORDE *ACORDE = new AliACORDEv0("ACORDE", "normal ACORDE"); | |
546 | } | |
547 | ||
548 | if (iVZERO) | |
549 | { | |
550 | //=================== VZERO parameters ============================ | |
551 | AliVZERO *VZERO = new AliVZEROv7("VZERO", "normal VZERO"); | |
552 | } | |
553 | } | |
554 | // | |
555 | // PYTHIA | |
556 | // | |
557 | AliGenPythia *PythiaHVQ(PDC06Proc_t proc) { | |
558 | //*******************************************************************// | |
559 | // Configuration file for charm / beauty generation with PYTHIA // | |
560 | // // | |
561 | // The parameters have been tuned in order to reproduce the inclusive// | |
562 | // heavy quark pt distribution given by the NLO pQCD calculation by // | |
563 | // Mangano, Nason and Ridolfi. // | |
564 | // // | |
565 | // For details and for the NORMALIZATION of the yields see: // | |
566 | // N.Carrer and A.Dainese, // | |
567 | // "Charm and beauty production at the LHC", // | |
568 | // ALICE-INT-2003-019, [arXiv:hep-ph/0311225]; // | |
569 | // PPR Chapter 6.6, CERN/LHCC 2005-030 (2005). // | |
570 | //*******************************************************************// | |
571 | AliGenPythia * gener = 0x0; | |
572 | ||
573 | switch(proc) { | |
574 | case kCharmPbPb5500: | |
575 | comment = comment.Append(" Charm in Pb-Pb at 5.5 TeV"); | |
576 | gener = new AliGenPythia(nEvts); | |
577 | gener->SetProcess(kPyCharmPbPbMNR); | |
578 | gener->SetStrucFunc(kCTEQ4L); | |
579 | gener->SetPtHard(2.1,-1.0); | |
580 | gener->SetEnergyCMS(5500.); | |
581 | gener->SetNuclei(208,208); | |
582 | break; | |
583 | case kCharmpPb8800: | |
584 | comment = comment.Append(" Charm in p-Pb at 8.8 TeV"); | |
585 | gener = new AliGenPythia(nEvts); | |
586 | gener->SetProcess(kPyCharmpPbMNR); | |
587 | gener->SetStrucFunc(kCTEQ4L); | |
588 | gener->SetPtHard(2.1,-1.0); | |
589 | gener->SetEnergyCMS(8800.); | |
590 | gener->SetProjectile("P",1,1); | |
591 | gener->SetTarget("Pb",208,82); | |
592 | break; | |
593 | case kCharmpp14000: | |
594 | comment = comment.Append(" Charm in pp at 14 TeV"); | |
595 | gener = new AliGenPythia(nEvts); | |
596 | gener->SetProcess(kPyCharmppMNR); | |
597 | gener->SetStrucFunc(kCTEQ4L); | |
598 | gener->SetPtHard(2.1,-1.0); | |
599 | gener->SetEnergyCMS(14000.); | |
600 | break; | |
601 | case kCharmpp14000wmi: | |
602 | comment = comment.Append(" Charm in pp at 14 TeV with mult. interactions"); | |
603 | gener = new AliGenPythia(-1); | |
604 | gener->SetProcess(kPyCharmppMNRwmi); | |
605 | gener->SetStrucFunc(kCTEQ5L); | |
606 | gener->SetPtHard(ptHardMin,ptHardMax); | |
607 | gener->SetEnergyCMS(14000.); | |
608 | break; | |
609 | case kD0PbPb5500: | |
610 | comment = comment.Append(" D0 in Pb-Pb at 5.5 TeV"); | |
611 | gener = new AliGenPythia(nEvts); | |
612 | gener->SetProcess(kPyD0PbPbMNR); | |
613 | gener->SetStrucFunc(kCTEQ4L); | |
614 | gener->SetPtHard(2.1,-1.0); | |
615 | gener->SetEnergyCMS(5500.); | |
616 | gener->SetNuclei(208,208); | |
617 | break; | |
618 | case kD0pPb8800: | |
619 | comment = comment.Append(" D0 in p-Pb at 8.8 TeV"); | |
620 | gener = new AliGenPythia(nEvts); | |
621 | gener->SetProcess(kPyD0pPbMNR); | |
622 | gener->SetStrucFunc(kCTEQ4L); | |
623 | gener->SetPtHard(2.1,-1.0); | |
624 | gener->SetEnergyCMS(8800.); | |
625 | gener->SetProjectile("P",1,1); | |
626 | gener->SetTarget("Pb",208,82); | |
627 | break; | |
628 | case kD0pp14000: | |
629 | comment = comment.Append(" D0 in pp at 14 TeV"); | |
630 | gener = new AliGenPythia(nEvts); | |
631 | gener->SetProcess(kPyD0ppMNR); | |
632 | gener->SetStrucFunc(kCTEQ4L); | |
633 | gener->SetPtHard(2.1,-1.0); | |
634 | gener->SetEnergyCMS(14000.); | |
635 | break; | |
636 | case kDPlusPbPb5500: | |
637 | comment = comment.Append(" DPlus in Pb-Pb at 5.5 TeV"); | |
638 | gener = new AliGenPythia(nEvts); | |
639 | gener->SetProcess(kPyDPlusPbPbMNR); | |
640 | gener->SetStrucFunc(kCTEQ4L); | |
641 | gener->SetPtHard(2.1,-1.0); | |
642 | gener->SetEnergyCMS(5500.); | |
643 | gener->SetNuclei(208,208); | |
644 | break; | |
645 | case kDPluspPb8800: | |
646 | comment = comment.Append(" DPlus in p-Pb at 8.8 TeV"); | |
647 | gener = new AliGenPythia(nEvts); | |
648 | gener->SetProcess(kPyDPluspPbMNR); | |
649 | gener->SetStrucFunc(kCTEQ4L); | |
650 | gener->SetPtHard(2.1,-1.0); | |
651 | gener->SetEnergyCMS(8800.); | |
652 | gener->SetProjectile("P",1,1); | |
653 | gener->SetTarget("Pb",208,82); | |
654 | break; | |
655 | case kDPluspp14000: | |
656 | comment = comment.Append(" DPlus in pp at 14 TeV"); | |
657 | gener = new AliGenPythia(nEvts); | |
658 | gener->SetProcess(kPyDPlusppMNR); | |
659 | gener->SetStrucFunc(kCTEQ4L); | |
660 | gener->SetPtHard(2.1,-1.0); | |
661 | gener->SetEnergyCMS(14000.); | |
662 | break; | |
663 | case kBeautyPbPb5500: | |
664 | comment = comment.Append(" Beauty in Pb-Pb at 5.5 TeV"); | |
665 | gener = new AliGenPythia(nEvts); | |
666 | gener->SetProcess(kPyBeautyPbPbMNR); | |
667 | gener->SetStrucFunc(kCTEQ4L); | |
668 | gener->SetPtHard(2.75,-1.0); | |
669 | gener->SetEnergyCMS(5500.); | |
670 | gener->SetNuclei(208,208); | |
671 | break; | |
672 | case kBeautypPb8800: | |
673 | comment = comment.Append(" Beauty in p-Pb at 8.8 TeV"); | |
674 | gener = new AliGenPythia(nEvts); | |
675 | gener->SetProcess(kPyBeautypPbMNR); | |
676 | gener->SetStrucFunc(kCTEQ4L); | |
677 | gener->SetPtHard(2.75,-1.0); | |
678 | gener->SetEnergyCMS(8800.); | |
679 | gener->SetProjectile("P",1,1); | |
680 | gener->SetTarget("Pb",208,82); | |
681 | break; | |
682 | case kBeautypp14000: | |
683 | comment = comment.Append(" Beauty in pp at 14 TeV"); | |
684 | gener = new AliGenPythia(nEvts); | |
685 | gener->SetProcess(kPyBeautyppMNR); | |
686 | gener->SetStrucFunc(kCTEQ4L); | |
687 | gener->SetPtHard(2.75,-1.0); | |
688 | gener->SetEnergyCMS(14000.); | |
689 | break; | |
690 | case kBeautypp14000wmi: | |
691 | comment = comment.Append(" Beauty in pp at 14 TeV with mult. interactions"); | |
692 | gener = new AliGenPythia(-1); | |
693 | gener->SetProcess(kPyBeautyppMNRwmi); | |
694 | gener->SetStrucFunc(kCTEQ5L); | |
695 | gener->SetPtHard(ptHardMin,ptHardMax); | |
696 | gener->SetEnergyCMS(14000.); | |
697 | break; | |
698 | } | |
699 | ||
700 | return gener; | |
701 | } | |
702 | ||
703 | AliGenerator* MbCocktail() | |
704 | { | |
705 | comment = comment.Append(" pp at 14 TeV: Pythia low-pt, no heavy quarks + J/Psi from parameterisation"); | |
706 | AliGenCocktail * gener = new AliGenCocktail(); | |
707 | gener->UsePerEventRates(); | |
708 | ||
709 | // | |
710 | // Pythia | |
711 | AliGenPythia* pythia = new AliGenPythia(-1); | |
712 | pythia->SetMomentumRange(0, 999999.); | |
713 | pythia->SetThetaRange(0., 180.); | |
714 | pythia->SetYRange(-12.,12.); | |
715 | pythia->SetPtRange(0,1000.); | |
716 | pythia->SetProcess(kPyMb); | |
717 | pythia->SetEnergyCMS(14000.); | |
718 | pythia->SwitchHFOff(); | |
719 | ||
720 | // | |
721 | // J/Psi parameterisation | |
722 | ||
723 | AliGenParam* jpsi = new AliGenParam(1, AliGenMUONlib::kJpsi, "CDF scaled", "Jpsi"); | |
724 | jpsi->SetPtRange(0.,100.); | |
725 | jpsi->SetYRange(-8., 8.); | |
726 | jpsi->SetPhiRange(0., 360.); | |
727 | jpsi->SetForceDecay(kAll); | |
728 | // | |
729 | // | |
730 | gener->AddGenerator(jpsi, "J/Psi", 8.e-4); | |
731 | gener->AddGenerator(pythia, "Pythia", 1.); | |
732 | ||
733 | ||
734 | return gener; | |
735 | } | |
736 | ||
737 | AliGenerator* PyMbTriggered(Int_t pdg) | |
738 | { | |
739 | AliGenPythia* pythia = new AliGenPythia(-1); | |
740 | pythia->SetMomentumRange(0, 999999.); | |
741 | pythia->SetThetaRange(0., 180.); | |
742 | pythia->SetYRange(-12.,12.); | |
743 | pythia->SetPtRange(0,1000.); | |
744 | pythia->SetProcess(kPyMb); | |
745 | pythia->SetEnergyCMS(14000.); | |
746 | pythia->SetTriggerParticle(pdg, 0.9); | |
747 | return pythia; | |
748 | } | |
749 | ||
750 | void ProcessEnvironmentVars() | |
751 | { | |
752 | // Run type | |
753 | if (gSystem->Getenv("CONFIG_RUN_TYPE")) { | |
754 | for (Int_t iRun = 0; iRun < kRunMax; iRun++) { | |
755 | if (strcmp(gSystem->Getenv("CONFIG_RUN_TYPE"), pprRunName[iRun])==0) { | |
756 | proc = (PDC06Proc_t)iRun; | |
757 | cout<<"Run type set to "<<pprRunName[iRun]<<endl; | |
758 | } | |
759 | } | |
760 | } | |
761 | ||
762 | // Random Number seed | |
763 | if (gSystem->Getenv("CONFIG_SEED")) { | |
764 | seed = atoi(gSystem->Getenv("CONFIG_SEED")); | |
765 | } | |
766 | } | |
767 | ||
768 | ||
769 |