MVll.h File Reference
#include "StandardModel.h"
#include "ThObservable.h"
#include <math.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_integration.h>
#include <assert.h>
#include <gsl/gsl_monte_plain.h>
#include <TF1.h>
#include <TGraph.h>
#include <TFitResultPtr.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MVll
 A class for the \(M \to V l^+ l^-\) decay. More...
 

Macros

#define SWITCH   8.2
 

Functions

template<class F >
gsl_function convertToGslFunction (const F &f)
 
template<class F >
static double gslFunctionAdapter (double x, void *p)
 

Macro Definition Documentation

#define SWITCH   8.2

Definition at line 22 of file MVll.h.

Function Documentation

template<class F >
gsl_function convertToGslFunction ( const F &  f)

Definition at line 38 of file MVll.h.

39 {
40  gsl_function gslFunction;
41 
42  const void* p = &f;
43  assert (p != 0);
44 
45  gslFunction.function = &gslFunctionAdapter<F>;
46  // Just to eliminate the const.
47  gslFunction.params = const_cast<void*>( p );
48 
49  return gslFunction;
50 }
template<class F >
static double gslFunctionAdapter ( double  x,
void *  p 
)
static

Definition at line 29 of file MVll.h.

30 {
31  // Here I do recover the "right" pointer, safer to use static_cast
32  // than reinterpret_cast.
33  F* function = static_cast<F*>( p );
34  return (*function)( x );
35 }