/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/Mcgpj/Mcgpj-00-01-04/src/code/inc/TKFun.h

Go to the documentation of this file.
00001 #ifndef RAD_TKFun
00002 #define RAD_TKFun
00003 
00004 //#include "TF1.h"
00005 #include "TLi2.h"
00006 #include "TRadSpline.h"
00007 
00008 class TKFun{
00009 protected:
00010   double fxmin;
00011   double fxmax;
00012   //  TF1 *fkfun;
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

Generated on Tue Nov 29 23:12:41 2016 for BOSS_7.0.2 by  doxygen 1.4.7