EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairGenerator Class Referenceabstract

#include <EicRoot/blob/master/base/FairGenerator.h>

+ Inheritance diagram for FairGenerator:
+ Collaboration diagram for FairGenerator:

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 ()
 
 ClassDef (FairGenerator, 1)
 

Private Member Functions

 FairGenerator (const FairGenerator &G)
 
FairGeneratoroperator= (const FairGenerator &)
 

Detailed Description

Definition at line 26 of file FairGenerator.h.

View newest version in sPHENIX GitHub at line 26 of file FairGenerator.h

Constructor & Destructor Documentation

FairGenerator::FairGenerator ( )

Default constructor.

Definition at line 10 of file FairGenerator.cxx.

View newest version in sPHENIX GitHub at line 10 of file FairGenerator.cxx

FairGenerator::FairGenerator ( const char *  name,
const char *  title = "FAIR Generator" 
)

Constructor with name and title

Definition at line 17 of file FairGenerator.cxx.

View newest version in sPHENIX GitHub at line 17 of file FairGenerator.cxx

FairGenerator::~FairGenerator ( )
virtual

Destructor.

Definition at line 24 of file FairGenerator.cxx.

View newest version in sPHENIX GitHub at line 24 of file FairGenerator.cxx

FairGenerator::FairGenerator ( const FairGenerator G)
private

Member Function Documentation

FairGenerator::ClassDef ( FairGenerator  ,
 
)
virtual Bool_t FairGenerator::Init ( )
inlinevirtual

Initialize the generator if needed

Definition at line 54 of file FairGenerator.h.

View newest version in sPHENIX GitHub at line 54 of file FairGenerator.h

Referenced by FairPrimaryGenerator::Init().

+ Here is the caller graph for this function:

FairGenerator& FairGenerator::operator= ( const FairGenerator )
inlineprivate

Definition at line 60 of file FairGenerator.h.

View newest version in sPHENIX GitHub at line 60 of file FairGenerator.h

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 EicEventGenerator, EicBoxGenerator, and EicAsciiBoxGenerator.

Referenced by FairPrimaryGenerator::GenerateEvent().

+ Here is the caller graph for this function:


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