Heavy ion Analysis Libriares
|
#include <Splines.h>
Public Member Functions | |
Spline3D (TH3 *h=NULL, Option_t *interpolation="") | |
void | FastOverwrite (TH3 *h, Option_t *interpolation="") |
Double_t | Eval (Double_t x, Double_t y, Double_t z) const |
Double_t | GetError (Double_t x, Double_t y, Double_t z) const |
Double_t | EvalBin (Int_t x, Int_t y, Int_t z) const |
Double_t | ErrorBin (Int_t x, Int_t y, Int_t z) const |
void | Refit () |
void | PrintParams (Double_t x, Double_t y, Double_t z) const |
void | Eval (Double_t x, Double_t y, Double_t z, Double_t &f, Double_t &error) const |
TAxis * | GetXaxis () const |
TAxis * | GetYaxis () const |
TAxis * | GetZaxis () const |
virtual TH3D * | GetTHD (TString name="spline_thd") const |
class that intepolate 3D histogram by trilinear intepolation, interpolation base on neighbour bins, therefore value at the center of given bin might not correspond to the value of intepolated histogram. If created with "mid" then value at the bin center of intepolation will be the same as at the bin center of interpolated histogram - this is done by "shifting" interpolation to the value of histogram.
Hal::Spline3D::Spline3D | ( | TH3 * | h = NULL, |
Option_t * | interpolation = "" ) |
h | histogram to interpolate |
interpolation | if "nointerpolation" - don't do interpolation "fix1". "yes" - try to fix edges by "mean" method, "mid" - value at bin center value must agree with value of intepolated histogram |
Definition at line 550 of file Splines.cxx.
|
virtual |
Definition at line 690 of file Splines.cxx.
Double_t Hal::Spline3D::ErrorBin | ( | Int_t | x, |
Int_t | y, | ||
Int_t | z ) const |
get error ov value at bin (of histogram used to create this object)
x | |
y | |
z |
Definition at line 688 of file Splines.cxx.
Double_t Hal::Spline3D::Eval | ( | Double_t | x, |
Double_t | y, | ||
Double_t | z ) const |
void Hal::Spline3D::Eval | ( | Double_t | x, |
Double_t | y, | ||
Double_t | z, | ||
Double_t & | f, | ||
Double_t & | error ) const |
works like HalSpline3D: Eval(Double_t x,Double_t y, Double_t z) but return both value and error at once
x | |
y | |
z | |
f | |
error |
Definition at line 669 of file Splines.cxx.
Double_t Hal::Spline3D::EvalBin | ( | Int_t | x, |
Int_t | y, | ||
Int_t | z ) const |
calculate function value at the middle of histogram bin that was used to create this class
x | |
y | |
z |
Definition at line 679 of file Splines.cxx.
void Hal::Spline3D::FastOverwrite | ( | TH3 * | h, |
Option_t * | interpolation = "" ) |
recalculate this histogram without reallocation of resources
h | |
interpolation |
Definition at line 820 of file Splines.cxx.
Double_t Hal::Spline3D::GetError | ( | Double_t | x, |
Double_t | y, | ||
Double_t | z ) const |
|
virtual |
try to get histogram used to create this object
name |
Definition at line 721 of file Splines.cxx.
|
inline |
|
inline |
|
inline |
void Hal::Spline3D::PrintParams | ( | Double_t | x, |
Double_t | y, | ||
Double_t | z ) const |
print interpolation parametsers at give value
x | |
y | |
z |
Definition at line 661 of file Splines.cxx.
void Hal::Spline3D::Refit | ( | ) |
smear this function, still not works perfectly
Definition at line 750 of file Splines.cxx.