FairRoot
|
#include <FairGenerator.h>
Public Member Functions | |
FairGenerator () | |
FairGenerator (const char *name, const char *title="FAIR Generator") | |
virtual | ~FairGenerator () |
virtual Bool_t | ReadEvent (FairPrimaryGenerator *primGen)=0 |
virtual Bool_t | Init () |
virtual FairGenerator * | CloneGenerator () const |
Protected Member Functions | |
FairGenerator (const FairGenerator &) | |
FairGenerator & | operator= (const FairGenerator &) |
ClassDef (FairGenerator, 1) | |
Definition at line 31 of file FairGenerator.h.
FairGenerator::FairGenerator | ( | ) |
Default constructor.
Definition at line 14 of file FairGenerator.cxx.
FairGenerator::FairGenerator | ( | const char * | name, |
const char * | title = "FAIR Generator" |
||
) |
Constructor with name and title
Definition at line 18 of file FairGenerator.cxx.
|
virtual |
Destructor.
Definition at line 26 of file FairGenerator.cxx.
|
protected |
Copy constructor
Definition at line 22 of file FairGenerator.cxx.
|
protected |
|
virtual |
Clone this object (used in MT mode only)
Reimplemented in FairBoxGenerator, FairIonGenerator, and FairYPtGenerator.
Definition at line 40 of file FairGenerator.cxx.
|
inlinevirtual |
Initialize the generator if needed
Reimplemented in FairBoxGenerator, Pythia8Generator, Pythia8Generator, FairBaseMCGenerator, and FairYPtGenerator.
Definition at line 53 of file FairGenerator.h.
|
protected |
Assignment operator
Definition at line 28 of file FairGenerator.cxx.
|
pure virtual |
Abstract method ReadEvent must be implemented by any derived class. It has to handle the generation of input tracks (reading from input file) and the handing of the tracks to the FairPrimaryGenerator. I t is called from FairMCApplication.
pStack | The stack |
Implemented in FairBoxGenerator, FairEvtGenGenerator, Pythia6Generator, Pythia6Generator, FairIonGenerator, FairParticleGenerator, Pythia8Generator, Pythia8Generator, FairUrqmdGenerator, FairShieldGenerator, FairAsciiGenerator, and FairYPtGenerator.