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>
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. | |
Static Public Member Functions inherited from ThePEG::Base | |
static void | Init () |
The standard Init function used to initialize the interfaces. | |
Private Member Functions | |
Main & | operator= (const Main &)=delete |
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. | |
Additional Inherited Members | |
Public Types inherited from ThePEG::Pointer::ReferenceCounted | |
typedef unsigned int | CounterType |
The integer type used for counting. | |
Public Member Functions inherited from ThePEG::Base | |
virtual | ~Base () |
The virtual destructor. | |
void | debug () const |
Print out debugging information for this object on std::cerr. | |
virtual void | debugme () const |
Print out debugging information for this object on std::cerr. | |
Public Member Functions inherited from ThePEG::Pointer::ReferenceCounted | |
CounterType | referenceCount () const |
Return the reference count. | |
Public Attributes inherited from ThePEG::Pointer::ReferenceCounted | |
const unsigned long | uniqueId |
The unique ID. | |
Protected Member Functions inherited from ThePEG::Pointer::ReferenceCounted | |
ReferenceCounted () | |
Default constructor. | |
ReferenceCounted (const ReferenceCounted &) | |
Copy-constructor. | |
ReferenceCounted & | operator= (const ReferenceCounted &) |
Assignment. | |
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.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |