CGEM BOSS
6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
TVacuumPol.h
Go to the documentation of this file.
1
#ifndef RAD_TVacuumPol
2
#define RAD_TVacuumPol
3
4
#include <string>
5
#include <complex>
6
#include "
TRadSpline.h
"
7
8
class
TVacuumPol
{
9
protected
:
10
TRadSpline
*
fsvtr
;
11
TRadSpline
*
fsvsr
;
12
TRadSpline
*
fsvsi
;
13
bool
fNoVP
;
14
bool
fReadSuccessfullyVP
;
15
void
ReadVacuumPolData
(std::string);
16
public
:
17
TVacuumPol
();
18
~TVacuumPol
();
19
void
Init
(std::string, std::string);
20
void
SetZeroVP
(){
fNoVP
=
true
;}
21
void
SetDefaultVP
(){
fNoVP
= !
fReadSuccessfullyVP
;}
22
bool
GetVacuumPolarization
(){
return
fNoVP
;}
23
inline
std::complex <double>
Evals
(
const
double
&
s
){
24
if
(
fNoVP
)
return
std::complex<double>(1,0);
25
return
std::complex<double>(
fsvsr
->
Eval
(
s
),
fsvsi
->
Eval
(
s
));
26
}
27
inline
std::complex <double>
Evalt
(
const
double
&
t
){
28
if
(
fNoVP
)
return
std::complex<double>(1,0);
29
return
std::complex<double>(
fsvtr
->
Eval
(fabs(
t
)),0.);
30
}
31
};
32
33
extern
TVacuumPol
*
gVPol
;
34
35
#endif
// #ifndef RAD_TVacuumPol
s
XmlRpcServer s
Definition
HelloServer.cpp:11
TRadSpline.h
gVPol
TVacuumPol * gVPol
TRadSpline
Definition
TRadSpline.h:4
TRadSpline::Eval
virtual double Eval(double x) const =0
TVacuumPol
Definition
TVacuumPol.h:8
TVacuumPol::Evalt
std::complex< double > Evalt(const double &t)
Definition
TVacuumPol.h:27
TVacuumPol::Evals
std::complex< double > Evals(const double &s)
Definition
TVacuumPol.h:23
TVacuumPol::SetDefaultVP
void SetDefaultVP()
Definition
TVacuumPol.h:21
TVacuumPol::fNoVP
bool fNoVP
Definition
TVacuumPol.h:13
TVacuumPol::fsvtr
TRadSpline * fsvtr
Definition
TVacuumPol.h:10
TVacuumPol::TVacuumPol
TVacuumPol()
TVacuumPol::fsvsi
TRadSpline * fsvsi
Definition
TVacuumPol.h:12
TVacuumPol::ReadVacuumPolData
void ReadVacuumPolData(std::string)
TVacuumPol::~TVacuumPol
~TVacuumPol()
TVacuumPol::GetVacuumPolarization
bool GetVacuumPolarization()
Definition
TVacuumPol.h:22
TVacuumPol::fReadSuccessfullyVP
bool fReadSuccessfullyVP
Definition
TVacuumPol.h:14
TVacuumPol::fsvsr
TRadSpline * fsvsr
Definition
TVacuumPol.h:11
TVacuumPol::Init
void Init(std::string, std::string)
TVacuumPol::SetZeroVP
void SetZeroVP()
Definition
TVacuumPol.h:20
t
int t()
Definition
t.c:1
6.6.5.i
Generator
Mcgpj
Mcgpj-00-01-04
src
code
inc
TVacuumPol.h
Generated by
1.12.0