13 using namespace genie;
65 fFx.insert(map<double,double>::value_type(x,y));
71 double * x =
new double[n];
72 double * y =
new double[n];
75 map<double,double>::const_iterator iter =
fFx.begin();
76 for( ; iter !=
fFx.end(); ++iter) {
92 stream <<
"type: [CacheBranchFx] - nentries: " <<
fFx.size()
93 <<
" / spline: " << ((
fSpline) ?
"built" :
"null");
void Print(ostream &stream) const
map< double, double > fFx
x->y map
void SetType(string type)
A numeric analysis tool class for interpolating 1-D functions.
string fName
cache branch name
void CreateSpline(string type="TSpline3")
double Evaluate(double x) const
void AddValues(double x, double y)
Spline * fSpline
spline y = f(x)
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
double operator()(double x) const
A simple cache branch storing the cached data in a TNtuple.
The TObject at the root of concrete cache branches.