FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairGenerator Class Referenceabstract

#include <FairGenerator.h>

Inheritance diagram for FairGenerator:
FairAsciiGenerator FairBaseMCGenerator FairEvtGenGenerator FairShieldGenerator FairUrqmdGenerator Pythia6Generator Pythia6Generator Pythia8Generator Pythia8Generator

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 FairGeneratorCloneGenerator () const
 

Protected Member Functions

 FairGenerator (const FairGenerator &)
 
FairGeneratoroperator= (const FairGenerator &)
 
 ClassDef (FairGenerator, 1)
 

Detailed Description

Definition at line 31 of file FairGenerator.h.

Constructor & Destructor Documentation

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.

FairGenerator::~FairGenerator ( )
virtual

Destructor.

Definition at line 26 of file FairGenerator.cxx.

FairGenerator::FairGenerator ( const FairGenerator rhs)
protected

Copy constructor

Definition at line 22 of file FairGenerator.cxx.

Member Function Documentation

FairGenerator::ClassDef ( FairGenerator  ,
 
)
protected
FairGenerator * FairGenerator::CloneGenerator ( ) const
virtual

Clone this object (used in MT mode only)

Reimplemented in FairBoxGenerator, FairIonGenerator, and FairYPtGenerator.

Definition at line 40 of file FairGenerator.cxx.

virtual Bool_t FairGenerator::Init ( )
inlinevirtual

Initialize the generator if needed

Reimplemented in FairBoxGenerator, Pythia8Generator, Pythia8Generator, FairBaseMCGenerator, and FairYPtGenerator.

Definition at line 53 of file FairGenerator.h.

FairGenerator & FairGenerator::operator= ( const FairGenerator rhs)
protected

Assignment operator

Definition at line 28 of file FairGenerator.cxx.

virtual Bool_t FairGenerator::ReadEvent ( FairPrimaryGenerator primGen)
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.

Parameters
pStackThe stack
Returns
kTRUE if successful, kFALSE if not

Implemented in FairBoxGenerator, FairEvtGenGenerator, Pythia6Generator, Pythia6Generator, FairIonGenerator, FairParticleGenerator, Pythia8Generator, Pythia8Generator, FairUrqmdGenerator, FairShieldGenerator, FairAsciiGenerator, and FairYPtGenerator.


The documentation for this class was generated from the following files: