BOSS 8.0.0
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 "TRadSpline.h"
5#include <complex>
6#include <string>
7
8class TVacuumPol {
9protected:
13 bool fNoVP;
15 void ReadVacuumPolData( std::string );
16
17public:
20 void Init( std::string, std::string );
21 void SetZeroVP() { fNoVP = true; }
23 bool GetVacuumPolarization() { return fNoVP; }
24 inline std::complex<double> Evals( const double& s ) {
25 if ( fNoVP ) return std::complex<double>( 1, 0 );
26 return std::complex<double>( fsvsr->Eval( s ), fsvsi->Eval( s ) );
27 }
28 inline std::complex<double> Evalt( const double& t ) {
29 if ( fNoVP ) return std::complex<double>( 1, 0 );
30 return std::complex<double>( fsvtr->Eval( fabs( t ) ), 0. );
31 }
32};
33
34extern TVacuumPol* gVPol;
35
36#endif // #ifndef RAD_TVacuumPol
XmlRpcServer s
TVacuumPol * gVPol
std::complex< double > Evalt(const double &t)
Definition TVacuumPol.h:28
std::complex< double > Evals(const double &s)
Definition TVacuumPol.h:24
void SetDefaultVP()
Definition TVacuumPol.h:22
TRadSpline * fsvtr
Definition TVacuumPol.h:10
TRadSpline * fsvsi
Definition TVacuumPol.h:12
void ReadVacuumPolData(std::string)
bool GetVacuumPolarization()
Definition TVacuumPol.h:23
bool fReadSuccessfullyVP
Definition TVacuumPol.h:14
TRadSpline * fsvsr
Definition TVacuumPol.h:11
void Init(std::string, std::string)
void SetZeroVP()
Definition TVacuumPol.h:21
int t()
Definition t.c:1