#include <HerwigUIProvider.h>
Public Member Functions | |
const std::vector< std::string > & | appendReadDirectories () const override |
std::ostream & | errStream () const override |
Return the standard err stream to be used. More... | |
HerwigUIProvider (const edm::ParameterSet &pset, std::string inputFileName, RunMode::Mode) | |
Constructor from the arguments provided by CMSSW. More... | |
std::string | inputfile () const override |
Name of the file to be read. More... | |
std::istream & | inStream () const override |
Return the standard in stream to be used. More... | |
std::string | integrationList () const override |
int | jobs () const override |
unsigned int | jobSize () const override |
unsigned int | maxJobs () const override |
long | N () const override |
std::ostream & | outStream () const override |
Return the standard out stream to be used. More... | |
const std::vector< std::string > & | prependReadDirectories () const override |
void | quit () const override |
void | quitWithHelp () const override |
std::string | repository () const override |
Repository name to operate on. More... | |
bool | resume () const override |
Try to resume execution from an earlier interrupted run. More... | |
RunMode::Mode | runMode () const override |
Requested Herwig run mode. More... | |
int | seed () const override |
void | setRunMode (RunMode::Mode runMode, const edm::ParameterSet &pset, std::string inputFile="") |
void | setSeed (long seed) |
std::string | setupfile () const override |
Name of the setup file to be read, to modify the repository. More... | |
std::string | tag () const override |
A user-defined tag to append to the run name. More... | |
bool | tics () const override |
Require verbose progress markers. More... | |
~HerwigUIProvider () override | |
Destructor to leave a clean ThePEG::Repository behind. More... | |
Private Attributes | |
std::vector< std::string > | appendReadDirectories_ |
std::string | inputfile_ |
std::string | integrationList_ |
int | jobs_ |
unsigned int | jobsize_ |
unsigned int | maxjobs_ |
long | nEvents_ |
std::vector< std::string > | prependReadDirectories_ |
std::string | repository_ |
bool | resume_ |
RunMode::Mode | runMode_ |
int | seed_ |
std::string | setupfile_ |
std::string | tag_ |
bool | tics_ |
HerwigUIProvider is an implementation of the HerwigUI interface getting its input from CMSSW configs.
Definition at line 18 of file HerwigUIProvider.h.
Herwig::HerwigUIProvider::HerwigUIProvider | ( | const edm::ParameterSet & | pset, |
std::string | inputFileName, | ||
RunMode::Mode | runMode | ||
) |
Constructor from the arguments provided by CMSSW.
Definition at line 34 of file HerwigUIProvider.cc.
References appendReadDirectories_, dqm::qstatus::ERROR, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), mps_fire::i, integrationList_, jobs_, jobsize_, maxjobs_, nEvents_, prependReadDirectories_, repository_, gen::ParameterCollector::resolve(), resume_, runMode_, seed_, setupfile_, AlCaHLTBitMon_QueryRunRegistry::string, tag_, and tics_.
|
override |
Destructor to leave a clean ThePEG::Repository behind.
Definition at line 30 of file HerwigUIProvider.cc.
References edm::cleanup().
|
inlineoverride |
Definition at line 57 of file HerwigUIProvider.h.
References appendReadDirectories_.
|
inlineoverride |
Return the standard err stream to be used.
Definition at line 73 of file HerwigUIProvider.h.
References MessageLogger_cfi::cerr.
|
inlineoverride |
Name of the file to be read.
Definition at line 42 of file HerwigUIProvider.h.
References inputfile_.
|
inlineoverride |
Return the standard in stream to be used.
Definition at line 76 of file HerwigUIProvider.h.
References analyzePatCleaning_cfg::inputFile, runMode(), setRunMode(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inlineoverride |
Definition at line 50 of file HerwigUIProvider.h.
References integrationList_.
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
Return the standard out stream to be used.
Definition at line 70 of file HerwigUIProvider.h.
References gather_cfg::cout.
|
inlineoverride |
Definition at line 54 of file HerwigUIProvider.h.
References prependReadDirectories_.
|
override |
Definition at line 25 of file HerwigUIProvider.cc.
References edm::cleanup().
Referenced by maxJobs(), and quitWithHelp().
|
override |
Definition at line 20 of file HerwigUIProvider.cc.
References quit().
Referenced by maxJobs().
|
inlineoverride |
Repository name to operate on.
Definition at line 45 of file HerwigUIProvider.h.
References repository_.
|
inlineoverride |
Try to resume execution from an earlier interrupted run.
Definition at line 33 of file HerwigUIProvider.h.
References resume_.
|
inlineoverride |
Requested Herwig run mode.
Definition at line 28 of file HerwigUIProvider.h.
References runMode_.
Referenced by inStream(), and setRunMode().
|
inlineoverride |
void Herwig::HerwigUIProvider::setRunMode | ( | RunMode::Mode | runMode, |
const edm::ParameterSet & | pset, | ||
std::string | inputFile = "" |
||
) |
Change run mode of Herwig Additionally pass the name of the new input file
Function sets jobsize_ and maxjobs_ accordingly to the run modes.
Definition at line 158 of file HerwigUIProvider.cc.
References edm::ParameterSet::getUntrackedParameter(), inputfile_, jobsize_, maxjobs_, runMode(), and runMode_.
Referenced by inStream().
|
inline |
Definition at line 29 of file HerwigUIProvider.h.
|
inlineoverride |
Name of the setup file to be read, to modify the repository.
Definition at line 48 of file HerwigUIProvider.h.
References setupfile_.
|
inlineoverride |
A user-defined tag to append to the run name.
Definition at line 39 of file HerwigUIProvider.h.
References tag_.
|
inlineoverride |
Require verbose progress markers.
Definition at line 36 of file HerwigUIProvider.h.
References tics_.
|
private |
Definition at line 102 of file HerwigUIProvider.h.
Referenced by appendReadDirectories(), and HerwigUIProvider().
|
private |
Definition at line 95 of file HerwigUIProvider.h.
Referenced by inputfile(), and setRunMode().
|
private |
Definition at line 99 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), and integrationList().
|
private |
Definition at line 106 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), and jobs().
|
private |
Definition at line 107 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), jobSize(), and setRunMode().
|
private |
Definition at line 108 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), maxJobs(), and setRunMode().
|
private |
Definition at line 104 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), and N().
|
private |
Definition at line 101 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), and prependReadDirectories().
|
private |
Definition at line 96 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), and repository().
|
private |
Definition at line 91 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), and resume().
|
private |
Definition at line 89 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), runMode(), and setRunMode().
|
private |
Definition at line 105 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), seed(), and setSeed().
|
private |
Definition at line 97 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), and setupfile().
|
private |
Definition at line 93 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), and tag().
|
private |
Definition at line 92 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), and tics().