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

Go to the source code of this file.

Classes

struct  __f_params
 

Functions

double __fPS_integrand (double x, void *p)
 
double __fS_integrand (double x, void *p)
 
double gpseudoscalar (double r)
 
double gscalar (double r)
 

Function Documentation

◆ __fPS_integrand()

double __fPS_integrand ( double  x,
void *  p 
)

Definition at line 491 of file THDMMatching.cpp.

493  {
494  __f_params &params= *reinterpret_cast<__f_params *>(p);
495  double integ = log(x*(1.0-x)/params.a) / (x*(1.0-x)-params.a);

◆ __fS_integrand()

double __fS_integrand ( double  x,
void *  p 
)

Definition at line 485 of file THDMMatching.cpp.

487  {
488  __f_params &params= *reinterpret_cast<__f_params *>(p);
489  double integ = (2.0*x*(1.0-x)-1.0) * log(x*(1.0-x)/params.a) / (x*(1.0-x)-params.a);

◆ gpseudoscalar()

double gpseudoscalar ( double  r)

Definition at line 518 of file THDMMatching.cpp.

521 {
522  __f_params params;
523  params.a=r;
524 
525  double result;
526  gsl_integration_glfixed_table * w
527  = gsl_integration_glfixed_table_alloc(100);
528  gsl_function F;
529 
530  F.function = &__fPS_integrand;
531  F.params = reinterpret_cast<void *>(&params);
532 
533  result = gsl_integration_glfixed (&F, 0, 1, w);
534 
535  gsl_integration_glfixed_table_free (w);
536 

◆ gscalar()

double gscalar ( double  r)

Definition at line 497 of file THDMMatching.cpp.

500 {
501  __f_params params;
502  params.a=r;
503 
504  double result;
505  gsl_integration_glfixed_table * w
506  = gsl_integration_glfixed_table_alloc(100);
507  gsl_function F;
508 
509  F.function = &__fS_integrand;
510  F.params = reinterpret_cast<void *>(&params);
511 
512  result = gsl_integration_glfixed (&F, 0, 1, w);
513 
514  gsl_integration_glfixed_table_free (w);
515 
__fS_integrand
double __fS_integrand(double x, void *p)
Definition: THDMMatching.cpp:485
__f_params
Definition: THDMMatching.cpp:481
__f_params::a
double a
Definition: THDMMatching.cpp:482
gslpp::log
complex log(const complex &z)
Definition: gslpp_complex.cpp:342
__fPS_integrand
double __fPS_integrand(double x, void *p)
Definition: THDMMatching.cpp:491