![]() |
![]() |
Exponential. More...
#include <Functions.h>
Public Member Functions | |
backgroundFunctionType2 (const double &lowerLimit, const double &upperLimit) | |
virtual double | operator() (const double *parval, const double &mass, const double &eta) const |
virtual void | setParameters (double *Start, double *Step, double *Mini, double *Maxi, int *ind, TString *parname, const std::vector< double >::const_iterator &parBgrIt, const std::vector< int >::const_iterator &parBgrOrderIt, const int muonType) |
This method is used to differentiate parameters among the different functions. |
Exponential.
Definition at line 2804 of file Functions.h.
backgroundFunctionType2::backgroundFunctionType2 | ( | const double & | lowerLimit, |
const double & | upperLimit | ||
) | [inline] |
In case of an exponential, we normalize it such that it has integral in any window equal to unity, and then, when adding together all the resonances, one gets a meaningful result for the overall background fraction.
Definition at line 2811 of file Functions.h.
References backgroundFunctionBase::parNum_.
: backgroundFunctionBase(lowerLimit, upperLimit) { this->parNum_ = 2; }
virtual double backgroundFunctionType2::operator() | ( | const double * | parval, |
const double & | mass, | ||
const double & | eta | ||
) | const [inline, virtual] |
Implements backgroundFunctionBase.
Definition at line 2814 of file Functions.h.
References funct::exp(), backgroundFunctionBase::lowerLimit_, lumiNorm::norm, and backgroundFunctionBase::upperLimit_.
{ double Bgrp2 = parval[1]; double norm = -(exp(-Bgrp2*upperLimit_) - exp(-Bgrp2*lowerLimit_))/Bgrp2; if( norm != 0 ) return exp(-Bgrp2*mass)/norm; else return 0.; }
virtual void backgroundFunctionType2::setParameters | ( | double * | Start, |
double * | Step, | ||
double * | Mini, | ||
double * | Maxi, | ||
int * | ind, | ||
TString * | parname, | ||
const std::vector< double >::const_iterator & | parBgrIt, | ||
const std::vector< int >::const_iterator & | parBgrOrderIt, | ||
const int | muonType | ||
) | [inline, virtual] |
This method is used to differentiate parameters among the different functions.
Implements backgroundFunctionBase.
Definition at line 2821 of file Functions.h.
References backgroundFunctionBase::setPar().
{ double thisStep[] = {0.01, 0.01}; TString thisParName[] = {"Bgr fraction", "Bgr slope"}; if( muonType == 1 ) { double thisMini[] = {0.0, 0.}; double thisMaxi[] = {1.0, 10.}; this->setPar( Start, Step, Mini, Maxi, ind, parname, parBgrIt, parBgrOrderIt, thisStep, thisMini, thisMaxi, thisParName ); } else { double thisMini[] = {0.0, 0.}; double thisMaxi[] = {1.0, 10.}; this->setPar( Start, Step, Mini, Maxi, ind, parname, parBgrIt, parBgrOrderIt, thisStep, thisMini, thisMaxi, thisParName ); } }