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 PyInt2_t &pyint2(){ return *address_of_pyint2(); }
71  static PyInt5_t &pyint5(){ return *address_of_pyint5(); }
72 
74  static void PyTune( Int_t tune );
76  static void PyStat( Int_t stat );
78  static void PyList( Int_t list );
80  static void PyGive( const char* give );
82  static void Set( const char* give ){ PyGive(give); }
83 
84  static void CloseDecays( int id ){ PyCloseDecays(id); }
85  static void OpenDecay( int id, int idcy, int val ){ PyOpenDecay( id, idcy, val ); }
86 
89  static void SetDecayFlag( const int kf, const int flag );
90 
91  private:
92  protected:
93  ClassDef(StarPythia6,1);
94 
95  void FillPP( StarGenEvent *event );
96  void FillEP( StarGenEvent *event );
97 
98  map<Int_t,Int_t> mStatusCode;
99 
100 };
101 
102 #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:71
static void Set(const char *give)
... and alias this to Set
Definition: StarPythia6.h:82
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 PyInt2_t & pyint2()
Returns a reference to the /PYINT2/ common block.
Definition: StarPythia6.h:69
static PyDat3_t & pydat3()
Returns a reference to the /PYDAT3/ common block.
Definition: StarPythia6.h:65