83 if ( tuneName ==
"Default" || tuneName ==
"" ) tuneName =
gDefaultTune;
85 LOG(
"RunOpt",
pNOTICE) <<
"RunOpt::SetTune() already had " <<
fTune->Name()
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;
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
Command line argument parser.
string ArgAsString(char opt)
bool OptionExists(char opt)
was option set?
static unsigned int NFlags(void)
Some common run-time GENIE options.
int fEventRecordPrintLevel
GHEP event r ecord print level.
bool fEnableBareXSecPreCalc
void ReadFromCommandLine(int argc, char **argv)
TuneId * Tune(void) const
string fEventGeneratorList
Name of event generator list to be loaded by the event generation drivers.
TBits * fUnphysEventMask
Unphysical event mask.
static std::string RunOptSyntaxString(bool include_generator_specific)
string fCacheFile
Name of cache file, is cache is to be re-used.
void BuildTune()
build tune and inform XSecSplineList
string fMesgThresholds
List of files (delimited with : if more than one) with custom mesg stream thresholds.
static RunOpt * fInstance
void SetTuneName(string tuneName="Default")
static RunOpt * Instance(void)
TuneId * fTune
GENIE comprehensive neutrino interaction model tune.
string fXMLPath
An path to look for XML in. Higher priority than GXMLPATH.
int fMCJobStatusRefreshRate
MC job status file refresh rate.
void SetEventGeneratorList(string evgenlist)
void Print(ostream &stream) const
void Build(const string &name="")
static XSecSplineList * Instance()
void SetCurrentTune(const string &tune)
THE MAIN GENIE PROJECT NAMESPACE
static const string gDefaultTune
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
void DummyMethodAndSilentCompiler()