19 using namespace genie;
37 TNamed(
"header",
"GENIE output tree header")
43 TNamed(
"header",
"GENIE output tree header")
56 string scvstag = this->
cvstag.GetString().Data();
57 string stune = this->
tune.GetString().Data();
58 string stuneDir = this->
tuneDir.GetString().Data();
59 string scustomDirs = this->
customDirs.GetString().Data();
61 stream <<
"Tree Header Info:" << endl
62 <<
"MC run number -> " << this->
runnu << endl
63 <<
"MC run seed -> " << this->
runseed << endl
64 <<
"NtpRecord Format -> " << sformat << endl
65 <<
"GENIE CVS Vrs Nu -> " << scvstag << endl
66 <<
"GENIE tune name -> " << stune << endl
67 <<
"tune directory -> " << stuneDir << endl
68 <<
"custom directories-> " << scustomDirs << endl
69 <<
"File generated at -> " << this->
datime << endl;
79 this->
tune.SetString(hdr.
tune.GetString().Data());
87 string genie_path = gSystem->Getenv(
"GENIE");
88 string filename = genie_path +
"/VERSION";
89 bool vrs_file_found = ! (gSystem->AccessPathName(filename.c_str()));
90 if (!vrs_file_found) {
92 <<
"The GENIE version file [" << filename <<
"] is not accessible";
93 version =
"NO CVS version number was specified";
95 ifstream gvinp(filename.c_str(), ios::in);
100 string tunename(
"unknown");
105 this->
cvstag.SetString(version.c_str());
109 this->
tune.SetString(tunename.c_str());
110 this->tuneDir.SetString(tuneDir.c_str());
111 this->customDirs.SetString(customDirs.c_str());
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
void Copy(const NtpMCDTime &dt)
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)