DAS  3.0
Das Analysis System
Thunberg< d, Log, Exp >

Description

template<const size_t d, double(*)(double) Log = log, double(*)(double) Exp = exp>
struct DAS::Thunberg< d, Log, Exp >

Motto: "Greta should not fail"

Alternative automated fitter for steeply falling p_T spectrum, using templates -> in principle, thanks to meta-programming approach (i.e. using templates), execution should be a bit faster

#include <Greta.h>

Public Member Functions

 Thunberg (double mi, double Ma)
 
double operator() (const double *x, const double *p)
 

Public Attributes

const size_t maxdegree
 
const size_t npars
 
const double m
 
const double M
 

Constructor & Destructor Documentation

◆ Thunberg()

Thunberg ( double  mi,
double  Ma 
)
inline
90  :
91  maxdegree(d), npars(d+1), m(Log(mi)), M(Log(Ma))
92  {
93  static_assert(d > 1, "degree must be greater than 1");
94  }

Member Function Documentation

◆ operator()()

double operator() ( const double *  x,
const double *  p 
)
inline
97  {
98  double nx = -1 + 2* (Log(x[0]) - m) / (M - m);
99  double chebyshev = Chebyshev::Polynom<d>::Eval(nx,p);
100  double result = Exp(chebyshev);
101  return result;
102  }

Member Data Documentation

◆ m

const double m

◆ M

const double M

◆ maxdegree

const size_t maxdegree

◆ npars

const size_t npars

The documentation for this struct was generated from the following file:
DAS::Thunberg::M
const double M
Definition: Greta.h:88
DAS::Chebyshev::Polynom::Eval
static double Eval(double x, const double p[])
Definition: Greta.h:48
Ntupliser_cfg.p
p
Definition: Ntupliser_cfg.py:361
DAS::Thunberg::npars
const size_t npars
Definition: Greta.h:87
DAS::Thunberg::maxdegree
const size_t maxdegree
Definition: Greta.h:87
DAS::Thunberg::m
const double m
Definition: Greta.h:88