HerwigCLI is the default implementation of the HerwigUI interface. More...
#include <HerwigCLI.h>
Public Member Functions | |
HerwigCLI (int argc, char *argv[]) | |
Constructor from the arguments provided by main() | |
~HerwigCLI () | |
Destructor to leave a clean ThePEG::Repository behind. | |
RunMode::Mode | runMode () const |
Requested Herwig run mode. | |
bool | resume () const |
Try to resume execution from an earlier interrupted run. | |
bool | tics () const |
Require verbose progress markers. | |
std::string | tag () const |
A user-defined tag to append to the run name. | |
std::string | inputfile () const |
Name of the file to be read. | |
std::string | repository () const |
Repository name to operate on. | |
std::string | setupfile () const |
Name of the setup file to be read, to modify the repository. | |
std::string | integrationList () const |
An identifier for the integration job to be handled. | |
const std::vector< std::string > & | prependReadDirectories () const |
Directories from which Herwig reads input files, will be prepended to the search path. | |
const std::vector< std::string > & | appendReadDirectories () const |
Directories from which Herwig reads input files, will be appended to the search path. | |
long | N () const |
The number of events to generate. | |
int | seed () const |
The seed to use. | |
int | jobs () const |
The number of jobs to fork. | |
unsigned int | jobSize () const |
The number of subprocesses to integrate per integratoin job. | |
unsigned int | maxJobs () const |
The maximum number of integration jobs. | |
void | quitWithHelp () const |
Bail out and print usage information. | |
void | quit () const |
Bail out and be quiet. | |
virtual std::ostream & | outStream () const |
Return the standard out stream to be used. | |
virtual std::ostream & | errStream () const |
Return the standard err stream to be used. | |
virtual std::istream & | inStream () const |
Return the standard in stream to be used. | |
Public Member Functions inherited from Herwig::HerwigUI | |
virtual RunMode::Mode | runMode () const =0 |
Requested Herwig run mode. | |
virtual std::string | repository () const =0 |
Repository name to operate on. | |
virtual std::string | inputfile () const =0 |
Name of the file to be read. | |
virtual std::string | setupfile () const =0 |
Name of the setup file to be read, to modify the repository. | |
virtual bool | resume () const =0 |
Try to resume execution from an earlier interrupted run. | |
virtual bool | tics () const =0 |
Require verbose progress markers. | |
virtual std::string | tag () const =0 |
A user-defined tag to append to the run name. | |
virtual std::string | integrationList () const =0 |
An identifier for the integration job to be handled. | |
virtual const std::vector< std::string > & | prependReadDirectories () const =0 |
Directories from which Herwig reads input files, will be prepended to the search path. | |
virtual const std::vector< std::string > & | appendReadDirectories () const =0 |
Directories from which Herwig reads input files, will be appended to the search path. | |
virtual long | N () const =0 |
The number of events to generate. | |
virtual int | seed () const =0 |
The seed to use. | |
virtual int | jobs () const =0 |
The number of jobs to fork. | |
virtual unsigned int | jobSize () const =0 |
The number of subprocesses to integrate per integratoin job. | |
virtual unsigned int | maxJobs () const =0 |
The maximum number of integration jobs. | |
virtual void | quitWithHelp () const =0 |
Bail out and print usage information. | |
virtual void | quit () const =0 |
Bail out and be quiet. | |
virtual | ~HerwigUI () |
Destructor. | |
bool | integrationJob () const |
Return true, if this is an integration job. | |
virtual std::ostream & | outStream () const =0 |
Return the standard out stream to be used. | |
virtual std::ostream & | errStream () const =0 |
Return the standard err stream to be used. | |
virtual std::istream & | inStream () const =0 |
Return the standard in stream to be used. | |
Private Attributes | |
RunMode::Mode | runMode_ |
bool | resume_ |
bool | tics_ |
std::string | tag_ |
std::string | inputfile_ |
std::string | repository_ |
std::string | setupfile_ |
std::string | integrationList_ |
std::vector< std::string > | prependReadDirectories_ |
std::vector< std::string > | appendReadDirectories_ |
long | N_ |
int | seed_ |
int | jobs_ |
unsigned int | jobsize_ |
unsigned int | maxjobs_ |
HerwigCLI is the default implementation of the HerwigUI interface.
Using the gengetopt tool, we fill all required pieces from reading command line flags from the main executable.
Definition at line 23 of file HerwigCLI.h.
|
inlinevirtual |
Directories from which Herwig reads input files, will be appended to the search path.
Implements Herwig::HerwigUI.
Definition at line 60 of file HerwigCLI.h.
|
inlinevirtual |
Return the standard err stream to be used.
Implements Herwig::HerwigUI.
Definition at line 76 of file HerwigCLI.h.
|
inlinevirtual |
Name of the file to be read.
Implements Herwig::HerwigUI.
Definition at line 45 of file HerwigCLI.h.
|
inlinevirtual |
Return the standard in stream to be used.
Implements Herwig::HerwigUI.
Definition at line 79 of file HerwigCLI.h.
|
inlinevirtual |
An identifier for the integration job to be handled.
Implements Herwig::HerwigUI.
Definition at line 53 of file HerwigCLI.h.
|
inlinevirtual |
|
inlinevirtual |
The number of subprocesses to integrate per integratoin job.
Implements Herwig::HerwigUI.
Definition at line 65 of file HerwigCLI.h.
|
inlinevirtual |
The maximum number of integration jobs.
Implements Herwig::HerwigUI.
Definition at line 66 of file HerwigCLI.h.
|
inlinevirtual |
The number of events to generate.
Implements Herwig::HerwigUI.
Definition at line 62 of file HerwigCLI.h.
|
inlinevirtual |
Return the standard out stream to be used.
Implements Herwig::HerwigUI.
Definition at line 73 of file HerwigCLI.h.
|
inlinevirtual |
Directories from which Herwig reads input files, will be prepended to the search path.
Implements Herwig::HerwigUI.
Definition at line 57 of file HerwigCLI.h.
|
virtual |
Bail out and be quiet.
Implements Herwig::HerwigUI.
|
virtual |
Bail out and print usage information.
Implements Herwig::HerwigUI.
|
inlinevirtual |
Repository name to operate on.
Implements Herwig::HerwigUI.
Definition at line 48 of file HerwigCLI.h.
|
inlinevirtual |
Try to resume execution from an earlier interrupted run.
Implements Herwig::HerwigUI.
Definition at line 36 of file HerwigCLI.h.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Name of the setup file to be read, to modify the repository.
Implements Herwig::HerwigUI.
Definition at line 51 of file HerwigCLI.h.
|
inlinevirtual |
A user-defined tag to append to the run name.
Implements Herwig::HerwigUI.
Definition at line 42 of file HerwigCLI.h.
|
inlinevirtual |
Require verbose progress markers.
Implements Herwig::HerwigUI.
Definition at line 39 of file HerwigCLI.h.
|
private |
Definition at line 96 of file HerwigCLI.h.
|
private |
Definition at line 89 of file HerwigCLI.h.
|
private |
Definition at line 93 of file HerwigCLI.h.
|
private |
Definition at line 100 of file HerwigCLI.h.
|
private |
Definition at line 101 of file HerwigCLI.h.
|
private |
Definition at line 102 of file HerwigCLI.h.
|
private |
Definition at line 98 of file HerwigCLI.h.
|
private |
Definition at line 95 of file HerwigCLI.h.
|
private |
Definition at line 90 of file HerwigCLI.h.
|
private |
Definition at line 85 of file HerwigCLI.h.
|
private |
Definition at line 83 of file HerwigCLI.h.
|
private |
Definition at line 99 of file HerwigCLI.h.
|
private |
Definition at line 91 of file HerwigCLI.h.
|
private |
Definition at line 87 of file HerwigCLI.h.
|
private |
Definition at line 86 of file HerwigCLI.h.