f87cfe57 |
1 | #ifndef ALIPYTHIA_H |
2 | #define ALIPYTHIA_H |
3da30618 |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ |
5 | |
6 | /* $Id$ */ |
fe4da5cc |
7 | |
95b811fe |
8 | #include <TPythia6.h> |
3356c022 |
9 | #include <AliRndm.h> |
f1a48a38 |
10 | |
11 | typedef enum |
5f42cc16 |
12 | {kPyCharm, kPyBeauty, kPyCharmUnforced, kPyBeautyUnforced, kPyJpsi, kPyJpsiChi, kPyMb, kPyMbNonDiffr, kPyJets, kPyDirectGamma, kPyCharmPbMNR, kPyD0PbMNR, kPyBeautyPbMNR} |
f1a48a38 |
13 | Process_t; |
14 | |
15 | typedef enum |
16 | { |
d3f01a1d |
17 | kDOSet1 = 1006, |
18 | kGRVLO = 5005, |
19 | kGRVHO = 5006, |
20 | kMRSDminus = 3031, |
21 | kMRSD0 = 3030, |
22 | kMRSG = 3041, |
23 | kCTEQ2pM = 4024, |
24 | kCTEQ4L = 4032, |
25 | kCTEQ4M = 4034, |
26 | kMRSTcgLO = 3072, |
27 | kCTEQ5L = 4046, |
28 | kGRVLO98 = 5012 |
f1a48a38 |
29 | } |
30 | StrucFunc_t; |
fe4da5cc |
31 | |
3356c022 |
32 | class AliPythia : public TPythia6, public AliRndm |
fe4da5cc |
33 | { |
f1a48a38 |
34 | |
fe4da5cc |
35 | public: |
75c6d54e |
36 | virtual ~AliPythia(){;} |
fe4da5cc |
37 | // convert to compressed code and print result (for debugging only) |
f87cfe57 |
38 | virtual Int_t CheckedLuComp(Int_t kf); |
fe4da5cc |
39 | // Pythia initialisation for selected processes |
40 | virtual void ProcInit |
41 | (Process_t process, Float_t energy, StrucFunc_t strucfunc); |
811826d8 |
42 | // treat protons as inside nuclei |
43 | virtual void SetNuclei(Int_t a1, Int_t a2); |
14ee1cd0 |
44 | // Print particle properties |
45 | virtual void PrintParticles(); |
46 | virtual void ResetDecayTable(); |
47 | virtual void SetDecayTable(); |
811826d8 |
48 | // return instance of the singleton |
95b811fe |
49 | static AliPythia* Instance(); |
50 | |
f87cfe57 |
51 | protected: |
95b811fe |
52 | Process_t fProcess; // Process type |
53 | Float_t fEcms; // Centre of mass energy |
54 | StrucFunc_t fStrucFunc; // Structure function |
14ee1cd0 |
55 | Int_t fDefMDCY[501]; // ! Default decay switches per particle |
56 | Int_t fDefMDME[2000]; // ! Default decay switches per mode |
95b811fe |
57 | static AliPythia* fgAliPythia; // Pointer to single instance |
58 | private: |
59 | AliPythia(); |
f87cfe57 |
60 | |
3356c022 |
61 | ClassDef(AliPythia,1) //ALICE UI to PYTHIA |
fe4da5cc |
62 | }; |
63 | |
64 | #endif |
65 | |
66 | |
67 | |