1 #include "TauSpinner/ew_born.h"
7 static EWborn::complex ParseComplex(std::ifstream &in)
13 return EWborn::complex(x, y);
16 bool EWborn::FillFromTable(
const char *tableLocation)
18 ifstream in(tableLocation);
24 in >> MZ >> MH >> MT >> SWSQ >> GZ >> MW >> GW;
34 for (
int n = 0; n < NA; ++n)
36 in >> buf >> idx >> EEa[n];
38 if (in.fail() || idx != n)
41 for (
int ff = 0; ff < FF_LEN; ++ff)
43 FFa[n][ff] = ParseComplex(in);
49 for (
int fs = 0; fs < FS_LEN; ++fs)
59 for (
int n = 0; n < NB; ++n)
61 for (
int m = 0; m < MB; ++m)
63 in >> buf >> idx >> EEb[n] >> idx2;
65 if (in.fail() || idx != n || idx2 != m)
68 for (
int ff = 0; ff < FF_LEN; ++ff)
70 FFb[n][m][ff] = ParseComplex(in);
77 for (
int fs = 0; fs < FS_LEN; ++fs)
87 for (
int n = 0; n < NC; ++n)
89 for (
int m = 0; m < MC; ++m)
91 in >> buf >> idx >> EEc[n] >> idx2 >> COSc[m];
93 if (in.fail() || idx != n || idx2 != m)
96 for (
int ff = 0; ff < FF_LEN; ++ff)
98 FFc[n][m][ff] = ParseComplex(in);
105 for (
int fs = 0; fs < FS_LEN; ++fs)
115 for (
int n = 0; n < ND; ++n)
117 for (
int m = 0; m < MD; ++m)
119 in >> buf >> idx >> EEd[n] >> idx2 >> COSd[m];
121 if (in.fail() || idx != n || idx2 != m)
124 for (
int ff = 0; ff < FF_LEN; ++ff)
126 FFd[n][m][ff] = ParseComplex(in);
133 for (
int fs = 0; fs < FS_LEN; ++fs)