83 if ( tuneName ==
"Default" || tuneName ==
"" ) tuneName =
gDefaultTune;
86 <<
", now being re-set to " << tuneName;
101 LOG(
"RunOpt",
pDEBUG) <<
"Reading "<<argc-1<<
" command line arguments.";
104 if( parser.
OptionExists(
"enable-bare-xsec-pre-calc") ) {
107 if( parser.
OptionExists(
"disable-bare-xsec-pre-calc") ) {
123 if( parser.
OptionExists(
"mc-job-status-refresh-rate") ) {
125 1, parser.
ArgAsInt(
"mc-job-status-refresh-rate"));
144 const char * bitfield =
145 parser.
ArgAsString(
"unphysical-event-mask").c_str();
149 bool flag = (bitfield[i]==
'1');
159 std::ostringstream
s;
161 <<
"\n // command line args handled by RunOpt:"
163 <<
"\n [--event-generator-list list_name] // default \"Default\" "
165 <<
"\n [--tune tune_name] // default \"" <<
gDefaultTune <<
"\" "
166 <<
"\n [--xml-path path]"
167 <<
"\n [--message-thresholds xml_file]";
169 if (include_generator_specific) {
173 <<
"\n [--event-record-print-level level]"
174 <<
"\n [--mc-job-status-refresh-rate rate]"
175 <<
"\n [--cache-file root_file]"
176 <<
"\n [--enable-bare-xsec-pre-calc]"
177 <<
"\n [--disable-bare-xsec-pre-calc]"
178 <<
"\n [--unphysical-event-mask mask]"
187 stream <<
"Global running options:";
188 if (
fTune ) stream <<
"\n GENIE tune: " << *
fTune;
190 stream <<
"\n User-specified message thresholds : " <<
fMesgThresholds;
192 stream <<
"\n Unphysical event mask (bits: "
196 stream <<
"\n Pre-calculate all free-nucleon cross-sections? : "
200 stream <<
"\n XMLPath over-ride : "<<
fXMLPath;
TuneId * Tune(void) const
static RunOpt * fInstance
string ArgAsString(char opt)
string fMesgThresholds
List of files (delimited with : if more than one) with custom mesg stream thresholds.
void ReadFromCommandLine(int argc, char **argv)
static constexpr double s
string fCacheFile
Name of cache file, is cache is to be re-used.
static XSecSplineList * Instance()
int fEventRecordPrintLevel
GHEP event r ecord print level.
void SetCurrentTune(const string &tune)
static const string gDefaultTune
void SetEventGeneratorList(string evgenlist)
Some common run-time GENIE options.
TBits * fUnphysEventMask
Unphysical event mask.
static unsigned int NFlags(void)
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
static std::string RunOptSyntaxString(bool include_generator_specific)
int fMCJobStatusRefreshRate
MC job status file refresh rate.
TuneId * fTune
GENIE comprehensive neutrino interaction model tune.
void BuildTune()
build tune and inform XSecSplineList
bool fEnableBareXSecPreCalc
string fEventGeneratorList
Name of event generator list to be loaded by the event generation drivers.
static RunOpt * Instance(void)
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
Command line argument parser.
void Build(const string &name="")
void DummyMethodAndSilentCompiler()
bool OptionExists(char opt)
was option set?
void Print(ostream &stream) const
void SetTuneName(string tuneName="Default")
string fXMLPath
An path to look for XML in. Higher priority than GXMLPATH.