AliRoot Core  3dc7879 (3dc7879)
AliCheb2DStack Class Referenceabstract

#include <AliCheb2DStack.h>

Inheritance diagram for AliCheb2DStack:

Public Types

enum  { kMaxPoints =255 }
 
enum  { ktgp, kz }
 

Public Member Functions

 AliCheb2DStack ()
 
virtual ~AliCheb2DStack ()
 
 AliCheb2DStack (int nSlices, int dimOut, const float bmin[2], const float bmax[2], const float *dead=0, const float *rowXI=0)
 
Int_t GetNSlices () const
 
Int_t GetDimOut () const
 
const Float_t * GetBoundMin () const
 
const Float_t * GetBoundMax () const
 
void SetXRowInv (const float *xi)
 
const float * GetXRowInv () const
 
virtual void Eval (int sliceID, const float *par, float *res) const =0
 
virtual Float_t Eval (int sliceID, int dimOut, const float *par) const =0
 
virtual void EvalDeriv (int sliceID, int dim, const Float_t *par, float *res) const =0
 
Bool_t IsInside (const float *par) const
 
void Print (const Option_t *opt="") const
 
virtual void PrintSlice (int isl, const Option_t *opt) const =0
 

Static Public Member Functions

static float ChebEval1D (float x, const float *array, int ncf)
 
static float ChebEval1D (float x, const Short_t *array, int ncf)
 
static float ChebEval1Deriv (float x, const float *array, int ncf)
 
static float ChebEval1Deriv (float x, const Short_t *array, int ncf)
 
static void SetDefPrecision (float prc=1e-4)
 
static float GetDefPrecision ()
 

Protected Member Functions

void MapToInternal (int slice, const float *xy, float *xyint) const
 
void MapToInternal (int slice, const float *xy, float &x1, float &x2) const
 
float MapToExternal (int slice, float x, int dim) const
 
float * DefineGrid (int slice, int dim, const int np[2]) const
 
void CheckDimensions (const int *np) const
 
Int_t CalcChebCoefs (const float *funval, int np, float *outCoefs, float prec)
 

Protected Attributes

Int_t fDimOut
 
Int_t fNSlices
 
Int_t fNParams
 
Int_t fNCoefsTot
 
Int_t fNRowsTot
 
Float_t fBMin [2]
 
Float_t fBMax [2]
 
Float_t fBScaleZ
 
Float_t fBOffsetZ
 
Float_t fDead [2]
 
const Float_t * fRowXI
 
UChar_t * fNRows
 optional external!!! set 1/X for each row if dead zones to be accounted More...
 
UChar_t * fNCols
 
Int_t * fCoeffsEntry
 
Int_t * fColEntry
 

Static Protected Attributes

static Float_t fgkDefPrec = 1e-4
 
static Float_t fWSpace [kMaxPoints] = {0}
 

Private Member Functions

 AliCheb2DStack (const AliCheb2DStack &src)
 
AliCheb2DStackoperator= (const AliCheb2DStack &rhs)
 

Detailed Description

Definition at line 19 of file AliCheb2DStack.h.

Member Enumeration Documentation

anonymous enum
Enumerator
kMaxPoints 

Definition at line 22 of file AliCheb2DStack.h.

anonymous enum
Enumerator
ktgp 
kz 

Definition at line 23 of file AliCheb2DStack.h.

Constructor & Destructor Documentation

AliCheb2DStack::AliCheb2DStack ( )

Definition at line 26 of file AliCheb2DStack.cxx.

AliCheb2DStack::~AliCheb2DStack ( )
virtual

Definition at line 77 of file AliCheb2DStack.cxx.

AliCheb2DStack::AliCheb2DStack ( int  nSlices,
int  dimOut,
const float  bmin[2],
const float  bmax[2],
const float *  dead = 0,
const float *  rowXI = 0 
)

Definition at line 45 of file AliCheb2DStack.cxx.

AliCheb2DStack::AliCheb2DStack ( const AliCheb2DStack src)
private

Member Function Documentation

Int_t AliCheb2DStack::CalcChebCoefs ( const float *  funval,
int  np,
float *  outCoefs,
float  prec 
)
protected
float AliCheb2DStack::ChebEval1D ( float  x,
const float *  array,
int  ncf 
)
inlinestatic
float AliCheb2DStack::ChebEval1D ( float  x,
const Short_t *  array,
int  ncf 
)
inlinestatic

Definition at line 169 of file AliCheb2DStack.h.

float AliCheb2DStack::ChebEval1Deriv ( float  x,
const float *  array,
int  ncf 
)
inlinestatic
float AliCheb2DStack::ChebEval1Deriv ( float  x,
const Short_t *  array,
int  ncf 
)
inlinestatic

Definition at line 207 of file AliCheb2DStack.h.

void AliCheb2DStack::CheckDimensions ( const int *  np) const
protected
float * AliCheb2DStack::DefineGrid ( int  slice,
int  dim,
const int  np[2] 
) const
protected
virtual void AliCheb2DStack::Eval ( int  sliceID,
const float *  par,
float *  res 
) const
pure virtual
virtual Float_t AliCheb2DStack::Eval ( int  sliceID,
int  dimOut,
const float *  par 
) const
pure virtual

Implemented in AliCheb2DStackF, and AliCheb2DStackS.

virtual void AliCheb2DStack::EvalDeriv ( int  sliceID,
int  dim,
const Float_t *  par,
float *  res 
) const
pure virtual

Implemented in AliCheb2DStackF, and AliCheb2DStackS.

Referenced by AliTPCChebCorr::EvalDeriv(), and GetXRowInv().

const Float_t* AliCheb2DStack::GetBoundMax ( ) const
inline

Definition at line 34 of file AliCheb2DStack.h.

const Float_t* AliCheb2DStack::GetBoundMin ( ) const
inline

Definition at line 33 of file AliCheb2DStack.h.

static float AliCheb2DStack::GetDefPrecision ( )
inlinestatic

Definition at line 52 of file AliCheb2DStack.h.

Int_t AliCheb2DStack::GetDimOut ( ) const
inline

Definition at line 32 of file AliCheb2DStack.h.

Referenced by AliTPCChebCorr::GetDimOut(), and AliTPCChebCorr::IsRowMasked().

Int_t AliCheb2DStack::GetNSlices ( ) const
inline

Definition at line 31 of file AliCheb2DStack.h.

const float* AliCheb2DStack::GetXRowInv ( ) const
inline

Definition at line 37 of file AliCheb2DStack.h.

Bool_t AliCheb2DStack::IsInside ( const float *  par) const
inline

Definition at line 146 of file AliCheb2DStack.h.

Referenced by GetXRowInv().

float AliCheb2DStack::MapToExternal ( int  slice,
float  x,
int  dim 
) const
inlineprotected

Definition at line 132 of file AliCheb2DStack.h.

Referenced by DefineGrid(), and GetDefPrecision().

void AliCheb2DStack::MapToInternal ( int  slice,
const float *  xy,
float *  xyint 
) const
protected
void AliCheb2DStack::MapToInternal ( int  slice,
const float *  xy,
float &  x1,
float &  x2 
) const
inlineprotected

Definition at line 114 of file AliCheb2DStack.h.

AliCheb2DStack& AliCheb2DStack::operator= ( const AliCheb2DStack rhs)
private
void AliCheb2DStack::Print ( const Option_t *  opt = "") const
virtual void AliCheb2DStack::PrintSlice ( int  isl,
const Option_t *  opt 
) const
pure virtual

Implemented in AliCheb2DStackS, and AliCheb2DStackF.

Referenced by GetXRowInv(), and Print().

static void AliCheb2DStack::SetDefPrecision ( float  prc = 1e-4)
inlinestatic

Definition at line 51 of file AliCheb2DStack.h.

void AliCheb2DStack::SetXRowInv ( const float *  xi)
inline

Definition at line 36 of file AliCheb2DStack.h.

Referenced by AliTPCChebCorr::Init().

Member Data Documentation

Float_t AliCheb2DStack::fBOffsetZ
protected

Definition at line 72 of file AliCheb2DStack.h.

Referenced by AliCheb2DStack(), MapToExternal(), and MapToInternal().

Float_t AliCheb2DStack::fBScaleZ
protected
Float_t AliCheb2DStack::fDead[2]
protected
float AliCheb2DStack::fgkDefPrec = 1e-4
staticprotected
Int_t AliCheb2DStack::fNCoefsTot
protected
Int_t AliCheb2DStack::fNParams
protected

Definition at line 66 of file AliCheb2DStack.h.

Int_t AliCheb2DStack::fNRowsTot
protected
const Float_t* AliCheb2DStack::fRowXI
protected

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