BOSS
6.6.4.p03
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
7
class
TFormFactor
{
8
protected
:
9
unsigned
int
fNp
;
10
TRadSpline
*
fsvsr
;
11
TRadSpline
*
fsvsi
;
12
bool
fUnitFF
;
13
virtual
std::complex<double>
ff
(
const
double
&)=0;
14
public
:
15
TFormFactor
();
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
s
XmlRpcServer s
Definition:
HelloServer.cpp:11
TRadSpline.h
TFormFactor
Definition:
TFormFactor.h:7
TFormFactor::~TFormFactor
virtual ~TFormFactor()
TFormFactor::fsvsi
TRadSpline * fsvsi
Definition:
TFormFactor.h:11
TFormFactor::SetUnitFF
void SetUnitFF()
Definition:
TFormFactor.h:17
TFormFactor::fUnitFF
bool fUnitFF
Definition:
TFormFactor.h:12
TFormFactor::Init
void Init(const double &)
TFormFactor::TFormFactor
TFormFactor()
TFormFactor::SetNpoints
void SetNpoints(const unsigned int &i)
Definition:
TFormFactor.h:20
TFormFactor::GetFFMode
bool GetFFMode()
Definition:
TFormFactor.h:19
TFormFactor::Print
void Print()
TFormFactor::ff
virtual std::complex< double > ff(const double &)=0
TFormFactor::fNp
unsigned int fNp
Definition:
TFormFactor.h:9
TFormFactor::fsvsr
TRadSpline * fsvsr
Definition:
TFormFactor.h:10
TFormFactor::Eval
std::complex< double > Eval(const double &s)
Definition:
TFormFactor.h:23
TFormFactor::SetDefaultFF
void SetDefaultFF()
Definition:
TFormFactor.h:18
TFormFactor::Init
void Init()
TRadSpline
Definition:
TRadSpline.h:4
TRadSpline::Eval
virtual double Eval(double x) const =0
source
Generator
Mcgpj
Mcgpj-00-01-03
src
code
inc
TFormFactor.h
Generated by
1.9.6