ThePEG::Main Class Reference

This is a base class for classes implementing a main steering routine for running an EventGenerator, in case the standard 'go()' function in the EventGenerator is not enough. More...

#include <Main.h>

Inheritance diagram for ThePEG::Main:

ThePEG::Base ThePEG::Pointer::ReferenceCounted

List of all members.

Static Public Member Functions

static void eventGenerator (tEGPtr eg)
 Set the global event generator.
static tEGPtr eventGenerator ()
 Get the global event generator.
static void N (long n)
 Set the number of events requested.
static long N ()
 Get the number of events requested.
static void arguments (const vector< string > &args)
 Set the command-line arguments.
static const vector< string > & arguments ()
 Get the command-line arguments.
static void Init ()
 Standard Init function used to initialize the interfaces.

Private Member Functions

Mainoperator= (const Main &)
 Private and non-existent assignment operator.

Static Private Attributes

static EGPtr theEventGenerator
 The global event generator.
static long theN
 The number of events requested.
static vector< string > theArguments
 The command-line arguments.
static
AbstractNoPIOClassDescription
< Main
initMain
 Describe an abstract base class without persistent data.


Detailed Description

This is a base class for classes implementing a main steering routine for running an EventGenerator, in case the standard 'go()' function in the EventGenerator is not enough.

An example is a EventGenerator where the class deriving from Main specifies an initial set of partons which should be cascaded and hadronized etc.

The derived class will be dynamically loaded by the standard runThePEG program and the static Init() function will be run. The loaded EventGenerator will then be available in the static eventGenerator() function. In addition the number of events requested from the command line will be available from the N() function. All other command-line arguments will be available from the arguments() function.

See also:
EventGenerator

Definition at line 35 of file Main.h.


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

Generated on Thu Apr 29 12:43:22 2010 for ThePEG by  doxygen 1.5.5