Functor used to compute the normalization integral of probability functions. More...
#include <MuScleFitBase.h>
Public Member Functions | |
double | operator() (const double *mass, const double *) |
ProbForIntegral (const double &massResol, const int iRes, const int iY, const bool isZ) | |
Protected Attributes | |
int | iRes_ |
bool | isZ_ |
int | iY_ |
double | massResol_ |
Functor used to compute the normalization integral of probability functions.
Definition at line 53 of file MuScleFitBase.h.
MuScleFitBase::ProbForIntegral::ProbForIntegral | ( | const double & | massResol, |
const int | iRes, | ||
const int | iY, | ||
const bool | isZ | ||
) | [inline] |
Definition at line 56 of file MuScleFitBase.h.
: massResol_(massResol), iRes_(iRes), iY_(iY), isZ_(isZ) {}
double MuScleFitBase::ProbForIntegral::operator() | ( | const double * | mass, |
const double * | |||
) | [inline] |
Definition at line 60 of file MuScleFitBase.h.
References MuScleFitUtils::GLNorm, MuScleFitUtils::GLValue, MuScleFitUtils::GLZNorm, MuScleFitUtils::GLZValue, iRes_, isZ_, iY_, massResol_, and MuScleFitUtils::probability().
{ if( isZ_ ) { return( MuScleFitUtils::probability(*mass, massResol_, MuScleFitUtils::GLZValue, MuScleFitUtils::GLZNorm, iRes_, iY_) ); } return( MuScleFitUtils::probability(*mass, massResol_, MuScleFitUtils::GLValue, MuScleFitUtils::GLNorm, iRes_, iY_) ); }
int MuScleFitBase::ProbForIntegral::iRes_ [protected] |
Definition at line 69 of file MuScleFitBase.h.
Referenced by operator()().
bool MuScleFitBase::ProbForIntegral::isZ_ [protected] |
Definition at line 70 of file MuScleFitBase.h.
Referenced by operator()().
int MuScleFitBase::ProbForIntegral::iY_ [protected] |
Definition at line 69 of file MuScleFitBase.h.
Referenced by operator()().
double MuScleFitBase::ProbForIntegral::massResol_ [protected] |
Definition at line 68 of file MuScleFitBase.h.
Referenced by operator()().