]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVGEN/AliPythia.h
Add possibility to use nuclear structure functions from PDF library V8.
[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 "GenTypeDefs.h"
10
11 class AliPythia:public TPythia6
12 {
13  public:
14     virtual ~AliPythia(){;}
15     // convert to compressed code and print result (for debugging only)
16     virtual Int_t CheckedLuComp(Int_t kf);
17     // Pythia initialisation for selected processes
18     virtual void ProcInit
19         (Process_t process, Float_t energy, StrucFunc_t strucfunc);
20     // treat protons as inside nuclei
21     virtual void    SetNuclei(Int_t a1, Int_t a2);
22     // return instance of the singleton
23     static  AliPythia* Instance();
24
25  protected:
26     Process_t     fProcess;           // Process type
27     Float_t       fEcms;              // Centre of mass energy
28     StrucFunc_t   fStrucFunc;         // Structure function
29     static AliPythia*    fgAliPythia; // Pointer to single instance
30  private: 
31     AliPythia();
32
33     ClassDef(AliPythia,1) //ALICE UI to PYTHIA
34 };
35
36 #endif
37
38
39