Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::Spline3D Class Reference

#include <Splines.h>

Inheritance diagram for Hal::Spline3D:

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
 

Detailed Description

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.

Definition at line 227 of file Splines.h.

Constructor & Destructor Documentation

◆ Spline3D()

Hal::Spline3D::Spline3D ( TH3 * h = NULL,
Option_t * interpolation = "" )
Parameters
hhistogram to interpolate
interpolationif "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.

◆ ~Spline3D()

Hal::Spline3D::~Spline3D ( )
virtual

Definition at line 690 of file Splines.cxx.

Member Function Documentation

◆ ErrorBin()

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)

Parameters
x
y
z
Returns

Definition at line 688 of file Splines.cxx.

◆ Eval() [1/2]

Double_t Hal::Spline3D::Eval ( Double_t x,
Double_t y,
Double_t z ) const

calculate value at given point

Parameters
x
y
z
Returns

Definition at line 645 of file Splines.cxx.

◆ Eval() [2/2]

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

Parameters
x
y
z
f
error

Definition at line 669 of file Splines.cxx.

◆ EvalBin()

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

Parameters
x
y
z
Returns

Definition at line 679 of file Splines.cxx.

◆ FastOverwrite()

void Hal::Spline3D::FastOverwrite ( TH3 * h,
Option_t * interpolation = "" )

recalculate this histogram without reallocation of resources

Parameters
h
interpolation

Definition at line 820 of file Splines.cxx.

◆ GetError()

Double_t Hal::Spline3D::GetError ( Double_t x,
Double_t y,
Double_t z ) const

get error at given point

Parameters
x
y
z
Returns

Definition at line 654 of file Splines.cxx.

◆ GetTHD()

TH3D * Hal::Spline3D::GetTHD ( TString name = "spline_thd") const
virtual

try to get histogram used to create this object

Parameters
name
Returns

Definition at line 721 of file Splines.cxx.

◆ GetXaxis()

TAxis * Hal::Spline3D::GetXaxis ( ) const
inline
Returns
axis of this

Definition at line 313 of file Splines.h.

◆ GetYaxis()

TAxis * Hal::Spline3D::GetYaxis ( ) const
inline
Returns
axis of this

Definition at line 318 of file Splines.h.

◆ GetZaxis()

TAxis * Hal::Spline3D::GetZaxis ( ) const
inline
Returns
axis of this

Definition at line 323 of file Splines.h.

◆ PrintParams()

void Hal::Spline3D::PrintParams ( Double_t x,
Double_t y,
Double_t z ) const

print interpolation parametsers at give value

Parameters
x
y
z

Definition at line 661 of file Splines.cxx.

◆ Refit()

void Hal::Spline3D::Refit ( )

smear this function, still not works perfectly

Definition at line 750 of file Splines.cxx.


The documentation for this class was generated from the following files: