Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::Spline1D Class Reference
Inheritance diagram for Hal::Spline1D:

Public Member Functions

 Spline1D (TH1 *h=NULL, Double_t begval=0, Double_t endval=0)
 
void FastOverwrite (TH1D *h, Double_t begval=0, Double_t endval=0)
 
void Refit ()
 
Double_t Eval (Double_t x) const
 
Double_t GetError (Double_t x) const
 
Double_t EvalBin (Int_t bin) const
 
Double_t ErrorBin (Int_t bin) const
 
void Eval (Double_t x, Double_t &f, Double_t &error) const
 
virtual TH1D * GetTHD (TString name="spline_thd") const
 
TAxis * GetXaxis () const
 

Detailed Description

Definition at line 33 of file Splines.h.

Constructor & Destructor Documentation

◆ Spline1D()

Hal::Spline1D::Spline1D ( TH1 * h = NULL,
Double_t begval = 0,
Double_t endval = 0 )

Definition at line 27 of file Splines.cxx.

◆ ~Spline1D()

Hal::Spline1D::~Spline1D ( )
virtual

Definition at line 203 of file Splines.cxx.

Member Function Documentation

◆ ErrorBin()

Double_t Hal::Spline1D::ErrorBin ( Int_t bin) const

return error at given bin

Parameters
bin
Returns

Definition at line 70 of file Splines.cxx.

◆ Eval() [1/2]

Double_t Hal::Spline1D::Eval ( Double_t x) const

return interpolated value at x

Parameters
x
Returns

Definition at line 55 of file Splines.cxx.

◆ Eval() [2/2]

void Hal::Spline1D::Eval ( Double_t x,
Double_t & f,
Double_t & error ) const

like Eval(Double_t x) but return value and error simultaneously

Parameters
x
f
error

Definition at line 72 of file Splines.cxx.

◆ EvalBin()

Double_t Hal::Spline1D::EvalBin ( Int_t bin) const

return value at bin center

Parameters
bin
Returns

Definition at line 65 of file Splines.cxx.

◆ FastOverwrite()

void Hal::Spline1D::FastOverwrite ( TH1D * h,
Double_t begval = 0,
Double_t endval = 0 )

use to overwrite this class without time-consuming redelcaration of object, IMPORATH NOTE: h - will be modified!

Parameters
h
begval
endval

Definition at line 489 of file Splines.cxx.

◆ GetError()

Double_t Hal::Spline1D::GetError ( Double_t x) const

return interpolated error value at x

Parameters
x
Returns

Definition at line 60 of file Splines.cxx.

◆ GetTHD()

TH1D * Hal::Spline1D::GetTHD ( TString name = "spline_thd") const
virtual

try to reproduce histogram used to create this class

Parameters
name
Returns

Definition at line 191 of file Splines.cxx.

◆ GetXaxis()

TAxis * Hal::Spline1D::GetXaxis ( ) const
inline

Definition at line 104 of file Splines.h.

◆ Refit()

void Hal::Spline1D::Refit ( )

smear interpolation

Definition at line 113 of file Splines.cxx.


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