#include <HerwigUIProvider.h>
Public Member Functions | |
const std::vector< std::string > & | appendReadDirectories () const |
virtual std::ostream & | errStream () const |
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 |
Name of the file to be read. More... | |
virtual std::istream & | inStream () const |
Return the standard in stream to be used. More... | |
std::string | integrationList () const |
int | jobs () const |
unsigned int | jobSize () const |
unsigned int | maxJobs () const |
long | N () const |
virtual std::ostream & | outStream () const |
Return the standard out stream to be used. More... | |
const std::vector< std::string > & | prependReadDirectories () const |
void | quit () const |
void | quitWithHelp () const |
std::string | repository () const |
Repository name to operate on. More... | |
bool | resume () const |
Try to resume execution from an earlier interrupted run. More... | |
RunMode::Mode | runMode () const |
Requested Herwig run mode. More... | |
int | seed () const |
void | setRunMode (RunMode::Mode runMode, const edm::ParameterSet &pset, std::string inputFile="") |
std::string | setupfile () const |
Name of the setup file to be read, to modify the repository. More... | |
std::string | tag () const |
A user-defined tag to append to the run name. More... | |
bool | tics () const |
Require verbose progress markers. More... | |
~HerwigUIProvider () | |
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_.
Herwig::HerwigUIProvider::~HerwigUIProvider | ( | ) |
Destructor to leave a clean ThePEG::Repository behind.
Definition at line 30 of file HerwigUIProvider.cc.
References edm::cleanup().
|
inline |
Definition at line 55 of file HerwigUIProvider.h.
References appendReadDirectories_.
|
inlinevirtual |
Return the standard err stream to be used.
Definition at line 71 of file HerwigUIProvider.h.
References MessageLogger_cfi::cerr.
|
inline |
Name of the file to be read.
Definition at line 40 of file HerwigUIProvider.h.
References inputfile_.
|
inlinevirtual |
Return the standard in stream to be used.
Definition at line 74 of file HerwigUIProvider.h.
References analyzePatCleaning_cfg::inputFile, runMode(), setRunMode(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 48 of file HerwigUIProvider.h.
References integrationList_.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Return the standard out stream to be used.
Definition at line 68 of file HerwigUIProvider.h.
References gather_cfg::cout.
|
inline |
Definition at line 52 of file HerwigUIProvider.h.
References prependReadDirectories_.
void Herwig::HerwigUIProvider::quit | ( | ) | const |
Definition at line 25 of file HerwigUIProvider.cc.
References edm::cleanup().
Referenced by maxJobs(), and quitWithHelp().
void Herwig::HerwigUIProvider::quitWithHelp | ( | ) | const |
Definition at line 20 of file HerwigUIProvider.cc.
References quit().
Referenced by Herwig7Interface::callHerwigGenerator(), and maxJobs().
|
inline |
Repository name to operate on.
Definition at line 43 of file HerwigUIProvider.h.
References repository_.
|
inline |
Try to resume execution from an earlier interrupted run.
Definition at line 31 of file HerwigUIProvider.h.
References resume_.
|
inline |
Requested Herwig run mode.
Definition at line 28 of file HerwigUIProvider.h.
References runMode_.
Referenced by Herwig7Interface::callHerwigGenerator(), Herwig7Interface::initGenerator(), Herwig7Interface::initRepository(), inStream(), and setRunMode().
|
inline |
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 Herwig7Interface::initRepository(), and inStream().
|
inline |
Name of the setup file to be read, to modify the repository.
Definition at line 46 of file HerwigUIProvider.h.
References setupfile_.
|
inline |
A user-defined tag to append to the run name.
Definition at line 37 of file HerwigUIProvider.h.
References tag_.
|
inline |
Require verbose progress markers.
Definition at line 34 of file HerwigUIProvider.h.
References tics_.
|
private |
Definition at line 100 of file HerwigUIProvider.h.
Referenced by appendReadDirectories(), and HerwigUIProvider().
|
private |
Definition at line 93 of file HerwigUIProvider.h.
Referenced by inputfile(), and setRunMode().
|
private |
Definition at line 97 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), and integrationList().
|
private |
Definition at line 104 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), and jobs().
|
private |
Definition at line 105 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), jobSize(), and setRunMode().
|
private |
Definition at line 106 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), maxJobs(), and setRunMode().
|
private |
Definition at line 102 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), and N().
|
private |
Definition at line 99 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), and prependReadDirectories().
|
private |
Definition at line 94 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), and repository().
|
private |
Definition at line 89 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), and resume().
|
private |
Definition at line 87 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), runMode(), and setRunMode().
|
private |
Definition at line 103 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), and seed().
|
private |
Definition at line 95 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), and setupfile().
|
private |
Definition at line 91 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), and tag().
|
private |
Definition at line 90 of file HerwigUIProvider.h.
Referenced by HerwigUIProvider(), and tics().