a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models Logo
GeneralTHDMMatching.cpp File Reference

Go to the source code of this file.

Classes

struct  __f_params
 

Functions

double __fPS2_integrand (double x, void *p)
 
double __fS2_integrand (double x, void *p)
 
double gpseudoscalar2 (double r)
 
double gscalar2 (double r)
 

Function Documentation

◆ __fPS2_integrand()

double __fPS2_integrand ( double  x,
void *  p 
)

Definition at line 123 of file GeneralTHDMMatching.cpp.

123  {
124  __f_params &params= *reinterpret_cast<__f_params *>(p);
125  double integ = log(x*(1.0-x)/params.a) / (x*(1.0-x)-params.a);
126  return integ;
127 }

◆ __fS2_integrand()

double __fS2_integrand ( double  x,
void *  p 
)

Definition at line 117 of file GeneralTHDMMatching.cpp.

117  {
118  __f_params &params= *reinterpret_cast<__f_params *>(p);
119  double integ = (2.0*x*(1.0-x)-1.0) * log(x*(1.0-x)/params.a) / (x*(1.0-x)-params.a);
120  return integ;
121 }

◆ gpseudoscalar2()

double gpseudoscalar2 ( double  r)

Definition at line 150 of file GeneralTHDMMatching.cpp.

151 {
152  __f_params params;
153  params.a=r;
154 
155  double result;
156  gsl_integration_glfixed_table * w
157  = gsl_integration_glfixed_table_alloc(100);
158  gsl_function F;
159 
160  F.function = &__fPS2_integrand;
161  F.params = reinterpret_cast<void *>(&params);
162 
163  result = gsl_integration_glfixed (&F, 0, 1, w);
164 
165  gsl_integration_glfixed_table_free (w);
166 
167  return result;
168 }

◆ gscalar2()

double gscalar2 ( double  r)

Definition at line 130 of file GeneralTHDMMatching.cpp.

131 {
132  __f_params params;
133  params.a=r;
134 
135  double result;
136  gsl_integration_glfixed_table * w
137  = gsl_integration_glfixed_table_alloc(100);
138  gsl_function F;
139 
140  F.function = &__fS2_integrand;
141  F.params = reinterpret_cast<void *>(&params);
142 
143  result = gsl_integration_glfixed (&F, 0, 1, w);
144 
145  gsl_integration_glfixed_table_free (w);
146 
147  return result;
148 }
__f_params
Definition: GeneralTHDMMatching.cpp:113
__f_params::a
double a
Definition: GeneralTHDMMatching.cpp:114
gslpp::log
complex log(const complex &z)
Definition: gslpp_complex.cpp:342
__fS2_integrand
double __fS2_integrand(double x, void *p)
Definition: GeneralTHDMMatching.cpp:117
__fPS2_integrand
double __fPS2_integrand(double x, void *p)
Definition: GeneralTHDMMatching.cpp:123