00001 #ifndef RAD_TKFun
00002 #define RAD_TKFun
00003
00004
00005 #include "TLi2.h"
00006 #include "TRadSpline.h"
00007
00008 class TKFun{
00009 protected:
00010 double fxmin;
00011 double fxmax;
00012
00013 TRadSpline *fk;
00014 public:
00015 TKFun();
00016 TKFun(const double&);
00017 virtual ~TKFun();
00018 virtual void Init();
00019 virtual void Init(const double&);
00020 virtual double kfun(const double &x);
00021 virtual inline double Eval(const double &x){return fk->Eval(x);}
00022 virtual inline double Eval(const double &z1, const double &z2, const double &c){
00023 double v = (z1-z2)/(z1+z2);
00024 double cs = (c-v)/(1-c*v);
00025 return Eval(cs);
00026 }
00027 };
00028
00029 #endif //#ifndef RAD_TKFun