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 #ifndef __CINT__
74 #include "Pythia.h"
75 #endif
76 
77 class StarGenPPEvent;
78 class StarGenEPEvent;
79 
80 class StarPythia8 : public StarGenerator
81 {
82 
83  public:
84  StarPythia8( const char *name="Pythia8" );
85  ~StarPythia8(){ /* nada */ };
86 
88  int Init();
90  int Generate();
91 
93  void Set( const char* s ){ mPythia -> readString(s); }
95  void ReadFile( const char* f ){ mPythia -> readFile( f ); }
96 
99 
100  virtual const char *GetCVS() const
101  {static const char cvs[]="Tag $Name: $ $Id: StarPythia8.h,v 1.1 2018/09/25 18:53:47 jwebb Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
102 
103  private:
104  protected:
105 
106  int InitCMS ( int blue, int yell );
107  int InitFIXT( int blue, int yell );
108  int Init3MOM( int blue, int yell );
109  int Init4MOM( int blue, int yell );
110  int Init5MOM( int blue, int yell );
111 #ifndef __CINT__
112  Pythia8::Pythia *mPythia;
113 #endif
114 
115  void FillPP( StarGenEvent *event );
116  void FillEP( StarGenEvent *event );
117 
118  ClassDef(StarPythia8,0);
119 
120 };
121 
122 #endif
void ReadFile(const char *f)
Read in a command file.
Definition: StarPythia8.h:95
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:93