18 #ifndef _XSEC_SPLINE_LIST_H_
19 #define _XSEC_SPLINE_LIST_H_
43 ostream &
operator << (ostream & stream,
const XSecSplineList & xsl);
52 void SaveAsXml (
const string & filename,
bool save_init =
true)
const;
56 void Print (ostream & stream)
const;
73 int nknots = -1,
double e_min = -1,
double e_max = -1);
125 #endif // _XSEC_SPLINE_LIST_H_
void DummyMethodAndSilentCompiler()
Cross Section Calculation Interface.
string BuildSplineKey(const XSecAlgorithmI *alg, const Interaction *i) const
void CreateSpline(const XSecAlgorithmI *alg, const Interaction *i, int nknots=-1, double e_min=-1, double e_max=-1)
const vector< string > * GetSplineKeys(void) const
bool SplineExists(const XSecAlgorithmI *alg, const Interaction *i) const
A numeric analysis tool class for interpolating 1-D functions.
void SetMinE(double Ev)
set default minimum energy for xsec splines
map< string, set< string > > fLoadedSplineSet
tune -> { set of initialy loaded splines }
static XSecSplineList * Instance()
void SetCurrentTune(const string &tune)
Summary information for an interaction.
void Print(ostream &stream) const
void SetNKnots(int nk)
set default number of knots for building the spline
virtual ~XSecSplineList()
map< string, map< string, Spline * > > fSplineMap
tune -> { xsec_alg/xsec_config/interaction -> Spline }
string fCurrentTune
The `active' tune, out the many that can co-exist.
void SaveAsXml(const string &filename, bool save_init=true) const
friend ostream & operator<<(ostream &stream, const XSecSplineList &xsl)
bool HasSplineFromTune(const string &tune) const
static XSecSplineList * fInstance
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
void SetLogE(bool on)
set opt to build splines as f(E) or as f(logE)
string CurrentTune(void) const
void SetMaxE(double Ev)
set default maximum energy for xsec splines
enum genie::EXmlParseStatus XmlParserStatus_t
const Spline * GetSpline(const XSecAlgorithmI *alg, const Interaction *i) const
List of cross section vs energy splines.
XmlParserStatus_t LoadFromXml(const string &filename, bool keep=false)