34 using namespace genie;
48 cout <<
"NuclearData singleton dtor: Deleting inputs... " << endl;
57 LOG(
"NuclData",
pINFO) <<
"NuclearData late initialization";
67 if(Q2 > 0.20)
return 1.;
69 if(Q2 < 3E-5) { Q2 = 3E-5; }
80 string(gSystem->Getenv(
"GENIE")) +
81 string(
"/data/evgen/nucl");
83 <<
"Loading nuclear data from: " << data_dir;
87 string nuclsupprd2_file = data_dir +
"/D2sup.data";
88 assert( ! gSystem->AccessPathName(nuclsupprd2_file.c_str()) );
90 TTree nuclsupprd2_tree;
91 nuclsupprd2_tree.ReadFile(nuclsupprd2_file.c_str(),
"Q2/D:R/D");
95 LOG(
"NuclData",
pINFO) <<
"Done loading all data";
static NuclearData * Instance(void)
double Q2(const Interaction *const i)
A numeric analysis tool class for interpolating 1-D functions.
double Evaluate(double x) const
static NuclearData * fInstance
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
void DummyMethodAndSilentCompiler()
double DeuteriumSuppressionFactor(double Q2)
Most commonly used PDG codes. A set of utility functions to handle PDG codes is provided in PDGUtils...