BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
TFormFactor.h
Go to the documentation of this file.
1#ifndef RAD_TFormFactor
2#define RAD_TFormFactor
3
4#include <complex>
5#include "TRadSpline.h"
6
8protected:
9 unsigned int fNp;
12 bool fUnitFF;
13 virtual std::complex<double> ff(const double &)=0;
14public:
16 virtual ~TFormFactor();
17 void SetUnitFF(){fUnitFF = true;}
18 void SetDefaultFF(){fUnitFF = false;}
19 bool GetFFMode(){return fUnitFF;}
20 void SetNpoints(const unsigned int &i){fNp = i;}
21 void Init();
22 void Init(const double&);
23 inline std::complex <double> Eval(const double &s){
24 if(fUnitFF) return std::complex<double>(1,0);
25 return std::complex<double>(fsvsr->Eval(s),fsvsi->Eval(s));
26 }
27 void Print();
28};
29
30#endif // #ifndef RAD_TFormFactor
XmlRpcServer s
Definition: HelloServer.cpp:11
virtual ~TFormFactor()
TRadSpline * fsvsi
Definition: TFormFactor.h:11
void SetUnitFF()
Definition: TFormFactor.h:17
bool fUnitFF
Definition: TFormFactor.h:12
void Init(const double &)
void SetNpoints(const unsigned int &i)
Definition: TFormFactor.h:20
bool GetFFMode()
Definition: TFormFactor.h:19
void Print()
virtual std::complex< double > ff(const double &)=0
unsigned int fNp
Definition: TFormFactor.h:9
TRadSpline * fsvsr
Definition: TFormFactor.h:10
std::complex< double > Eval(const double &s)
Definition: TFormFactor.h:23
void SetDefaultFF()
Definition: TFormFactor.h:18
virtual double Eval(double x) const =0