StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StarPythia8.h
1 #ifndef __StarPythia8_h__
2 #define __StarPythia8_h__
3 
72 #include "StarGenerator/BASE/StarGenerator.h"
73 #include "Pythia.h"
74 
75 class StarGenPPEvent;
76 class StarGenEPEvent;
77 
78 class StarPythia8 : public StarGenerator
79 {
80 
81  public:
82  StarPythia8( const char *name="Pythia8" );
83  ~StarPythia8(){ /* nada */ };
84 
86  int Init();
88  int Generate();
89 
91  void Set( const char* s ){ mPythia -> readString(s); }
93  void ReadFile( const char* f ){ mPythia -> readFile( f ); }
94 
97 
98  virtual const char *GetCVS() const
99  {static const char cvs[]="Tag $Name: $ $Id: StarPythia8.h,v 1.10 2018/04/18 15:33:25 jwebb Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
100 
101  private:
102  protected:
103 
104  int InitCMS ( int blue, int yell );
105  int InitFIXT( int blue, int yell );
106  int Init3MOM( int blue, int yell );
107  int Init4MOM( int blue, int yell );
108  int Init5MOM( int blue, int yell );
109 
110  Pythia8::Pythia *mPythia;
111 
112  void FillPP( StarGenEvent *event );
113  void FillEP( StarGenEvent *event );
114 
115  ClassDef(StarPythia8,0);
116 
117 };
118 
119 #endif
void ReadFile(const char *f)
Read in a command file.
Definition: StarPythia8.h:93
int Generate()
Generate one event.
Event record class tailored to PP kinematics.
ABC for defining event generator interfaces.
Definition: StarGenerator.h:34
void FillEP(StarGenEvent *event)
(Optional) Method to fill a DIS event
End of run statistics for event generators.
Definition: StarGenStats.h:21
Base class for event records.
Definition: StarGenEvent.h:81
Event record class tailored to DIS kinemaics.
void FillPP(StarGenEvent *event)
(Optional) Method to fill a PP event
int Init()
Initialize the event generator.
Definition: StarPythia8.cxx:51
StarGenStats Stats()
Return end-of-run statistics.
void Set(const char *s)
Pass a string to Pythia8::Pythia::readString(), for user configuration.
Definition: StarPythia8.h:91