StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StarPythia6.h
1 #ifndef __StarPythia6_h__
2 #define __StarPythia6_h__
3 
43 #include "StarGenerator/BASE/StarGenerator.h"
44 #include "Pythia6.h"
45 #include <map>
46 using namespace std;
47 
48 class StarPythia6 : public StarGenerator
49 {
50  public:
51  StarPythia6( const Char_t *name="Pythia6" );
52  ~StarPythia6(){ /* nada */ };
53 
54  Int_t Init();
55  Int_t Generate();
56  StarGenStats Stats();
57 
59  static PyJets_t &pyjets(){ return *address_of_pyjets(); }
61  static PySubs_t &pysubs(){ return *address_of_pysubs(); }
63  static PyDat1_t &pydat1(){ return *address_of_pydat1(); }
65  static PyDat3_t &pydat3(){ return *address_of_pydat3(); }
67  static PyPars_t &pypars(){ return *address_of_pypars(); }
69  static PyInt5_t &pyint5(){ return *address_of_pyint5(); }
70 
72  static void PyTune( Int_t tune );
74  static void PyStat( Int_t stat );
76  static void PyList( Int_t list );
77 
78  private:
79  protected:
80  ClassDef(StarPythia6,1);
81 
82  void FillPP( StarGenEvent *event );
83  void FillEP( StarGenEvent *event );
84 
85  map<Int_t,Int_t> mStatusCode;
86 
87 };
88 
89 #endif
ABC for defining event generator interfaces.
Definition: StarGenerator.h:34
static PyDat1_t & pydat1()
Returns a reference to the /PYDAT1/ common block.
Definition: StarPythia6.h:63
static PyInt5_t & pyint5()
Returns a reference to the /PYINT5/ common block.
Definition: StarPythia6.h:69
End of run statistics for event generators.
Definition: StarGenStats.h:21
static PySubs_t & pysubs()
Returns a reference to the /PYSUBS/ common block.
Definition: StarPythia6.h:61
static PyPars_t & pypars()
Returns a reference to the /PYPARS/ common block.
Definition: StarPythia6.h:67
Base class for event records.
Definition: StarGenEvent.h:81
Interface to pythia 6.
Definition: StarPythia6.h:48
static PyJets_t & pyjets()
Returns a reference to the /PYJETS/ common block.
Definition: StarPythia6.h:59
static PyDat3_t & pydat3()
Returns a reference to the /PYDAT3/ common block.
Definition: StarPythia6.h:65