#include <Main.h>
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 | |
Main & | operator= (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. |
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.
Definition at line 35 of file Main.h.