53 Spline(
string filename,
string xtag=
"",
string ytag=
"",
bool is_xml =
false);
54 Spline(TNtupleD * ntuple,
string xy,
string cut=
"");
55 Spline(TTree *
tree,
string xy,
string cut=
"");
58 Spline(
int nentries,
float x[],
float y[]);
60 Spline(
const TSpline3 & spline,
int nknots);
67 bool LoadFromTree (TTree * tr,
string xy,
string cut =
"");
73 void GetKnot (
int iknot,
double & x,
double & y)
const;
88 void SaveAsXml (
string filename,
string xtag,
string ytag,
string name=
"")
const;
89 void SaveAsXml (ofstream &
str,
string xtag,
string ytag,
string name=
"")
const;
91 void SaveAsROOT(
string filename,
string name=
"",
bool recreate=
false)
const;
94 TGraph *
GetAsTGraph (
int np = 500,
bool xscaling =
false,
95 bool inlog=
false,
double fx=1.,
double fy=1.)
const;
99 void FindClosestKnot(
double x,
double & xknot,
double & yknot, Option_t *
opt=
"-+")
const;
121 void BuildSpline (
int nentries,
double x[],
double y[]);
TGraph * GetAsTGraph(int np=500, bool xscaling=false, bool inlog=false, double fx=1., double fy=1.) const
THE MAIN GENIE PROJECT NAMESPACE
A numeric analysis tool class for interpolating 1-D functions.
static bool format(QChar::Decomposition tag, QString &str, int index, int len)
void Print(ostream &stream) const
bool LoadFromAsciiFile(string filename)
void BuildSpline(int nentries, double x[], double y[])
double Evaluate(double x) const
bool ClosestKnotValueIsZero(double x, Option_t *opt="-+") const
bool IsWithinValidRange(double x) const
TSpline3 * GetAsTSpline(void) const
bool LoadFromXmlFile(string filename, string xtag, string ytag)
double GetKnotX(int iknot) const
void SaveAsROOT(string filename, string name="", bool recreate=false) const
void Add(const Spline &spl, double c=1)
void Multiply(const Spline &spl, double c=1)
void GetKnot(int iknot, double &x, double &y) const
double GetKnotY(int iknot) const
bool LoadFromTSpline3(const TSpline3 &spline, int nknots)
void SaveAsText(string filename, string format="%10.6f\t%10.6f") const
void SaveAsXml(string filename, string xtag, string ytag, string name="") const
void SetName(string name)
bool LoadFromNtuple(TNtupleD *nt, string xy, string cut="")
bool LoadFromDBase(TSQLServer *db, string query)
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
void YCanBeNegative(bool tf)
bool LoadFromTree(TTree *tr, string xy, string cut="")
void FindClosestKnot(double x, double &xknot, double &yknot, Option_t *opt="-+") const
friend ostream & operator<<(ostream &stream, const Spline &spl)
query_result< Args... > query(sqlite3 *db, std::string const &ddl)
void Divide(const Spline &spl, double c=1)