27 using namespace genie;
46 string expandedinpfile =
"";
47 string fullinpfile =
"";
48 if ( inpfile !=
"" ) {
50 expandedinpfile = gSystem->ExpandPathName(inpfile.c_str());
53 fullinpfile = expandedinpfile;
67 <<
"Problem reading file: " << expandedinpfile;
76 if (inpfile.size() > 0) {
78 <<
"Input cross-section file [" << inpfile <<
"] does not exist!\n" 79 <<
"looked for " << expandedinpfile <<
" in $GXMLPATH locations ";
87 LOG(
"AppInit",
pWARN) <<
"No cross-section file was specified in the application inputs";
88 LOG(
"AppInit",
pWARN) <<
"If none is loaded, event generation might be inefficient";
90 LOG(
"AppInit",
pFATAL) <<
"No cross-section file was specified in the application inputs";
91 LOG(
"AppInit",
pFATAL) <<
"This is mandatory as, otherwise, event generation will be prohibitively inefficient";
103 for (
size_t i=0;
i < files.size(); ++
i ) {
105 if(inp_file.size() > 0) {
110 <<
"Could not load customized mesg thresholds from: " 120 if(inp_file.size() > 0) {
void RandGen(long int seed)
void XSecTable(string inpfile, bool require_table)
THE MAIN GENIE PROJECT NAMESPACE
static RandomGen * Instance()
Access instance.
bool FileExists(string filename)
static XSecSplineList * Instance()
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
void OpenCacheFile(string filename)
cache file
bool SetPrioritiesFromXmlFile(string filename)
static Messenger * Instance(void)
string GetXMLFilePath(string basename)
A more convenient interface to the log4cpp Message Service.
vector< string > Split(string input, string delim)
void MesgThresholds(string inpfile)
static Cache * Instance(void)
enum genie::EXmlParseStatus XmlParserStatus_t
List of cross section vs energy splines.
XmlParserStatus_t LoadFromXml(const string &filename, bool keep=false)
void CacheFile(string inpfile)
void SetSeed(long int seed)