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
9protected:
13 bool fNoVP;
15 void ReadVacuumPolData(std::string);
16public:
19 void Init(std::string, std::string);
20 void SetZeroVP(){fNoVP = true;}
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
33extern TVacuumPol *gVPol;
34
35#endif // #ifndef RAD_TVacuumPol
XmlRpcServer s
TVacuumPol * gVPol
virtual double Eval(double x) const =0
std::complex< double > Evalt(const double &t)
Definition TVacuumPol.h:27
std::complex< double > Evals(const double &s)
Definition TVacuumPol.h:23
void SetDefaultVP()
Definition TVacuumPol.h:21
TRadSpline * fsvtr
Definition TVacuumPol.h:10
TRadSpline * fsvsi
Definition TVacuumPol.h:12
void ReadVacuumPolData(std::string)
bool GetVacuumPolarization()
Definition TVacuumPol.h:22
bool fReadSuccessfullyVP
Definition TVacuumPol.h:14
TRadSpline * fsvsr
Definition TVacuumPol.h:11
void Init(std::string, std::string)
void SetZeroVP()
Definition TVacuumPol.h:20
int t()
Definition t.c:1