]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVGEN/AliPythia.h
stream.h changed to iostream.h
[u/mrichter/AliRoot.git] / EVGEN / AliPythia.h
1 #ifndef ALIPYTHIA_H
2 #define ALIPYTHIA_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 #include <TPythia6.h>
9 #include <AliRndm.h>
10
11 typedef enum
12 {kPyCharm, kPyBeauty, kPyCharmUnforced, kPyBeautyUnforced, kPyJpsi, kPyJpsiChi, kPyMb, kPyJets, kPyDirectGamma, kPyCharmPbMNR}
13 Process_t;
14
15 typedef enum
16 {
17     kDO_Set_1=1006,
18     kGRV_LO=5005,
19     kGRV_HO=5006,
20     kMRS_D_minus=3031,
21     kMRS_D0=3030,
22     kMRS_G=3041,
23     kCTEQ_2pM=4024,
24     kCTEQ_4L=4032,
25     kCTEQ_4M=4034,
26     kMRST_cg_LO=3072,
27     kCTEQ_5L=4046,
28     kGRV_LO_98=5012
29 }
30 StrucFunc_t;
31
32 class AliPythia : public TPythia6, public AliRndm
33 {
34
35  public:
36     virtual ~AliPythia(){;}
37     // convert to compressed code and print result (for debugging only)
38     virtual Int_t CheckedLuComp(Int_t kf);
39     // Pythia initialisation for selected processes
40     virtual void ProcInit
41         (Process_t process, Float_t energy, StrucFunc_t strucfunc);
42     // treat protons as inside nuclei
43     virtual void    SetNuclei(Int_t a1, Int_t a2);
44     // Print particle properties
45     virtual void PrintParticles();
46     virtual void ResetDecayTable();
47     virtual void SetDecayTable();
48     // return instance of the singleton
49     static  AliPythia* Instance();
50
51  protected:
52     Process_t     fProcess;           // Process type
53     Float_t       fEcms;              // Centre of mass energy
54     StrucFunc_t   fStrucFunc;         // Structure function
55     Int_t         fDefMDCY[501];      //  ! Default decay switches per particle
56     Int_t         fDefMDME[2000];     //  ! Default decay switches per mode
57     static AliPythia*    fgAliPythia; // Pointer to single instance
58  private: 
59     AliPythia();
60
61     ClassDef(AliPythia,1) //ALICE UI to PYTHIA
62 };
63
64 #endif
65
66
67