Exponential binned in eta.
More...
#include <Functions.h>
|
| backgroundFunctionType6 (const double &lowerLimit, const double &upperLimit) |
|
virtual double | fracVsEta (const double *parval, const double &eta1, const double &eta2) const |
|
virtual double | operator() (const double *parval, const double &mass, const double &eta) const |
|
virtual double | operator() (const double *parval, const double &mass, const double &eta1, const double &eta2) 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. More...
|
|
| backgroundFunctionBase (const double &lowerLimit, const double &upperLimit) |
|
virtual TF1 * | functionForIntegral (const std::vector< double >::const_iterator &parBgrIt) const |
|
virtual int | parNum () const |
|
virtual | ~backgroundFunctionBase () |
|
|
virtual void | setPar (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, double *thisStep, double *thisMini, double *thisMaxi, TString *thisParName) |
| This method sets the parameters. More...
|
|
FunctionForIntegral * | functionForIntegral_ |
|
double | lowerLimit_ |
|
int | parNum_ |
|
double | upperLimit_ |
|
Exponential binned in eta.
Definition at line 5938 of file Functions.h.
backgroundFunctionType6::backgroundFunctionType6 |
( |
const double & |
lowerLimit, |
|
|
const double & |
upperLimit |
|
) |
| |
|
inline |
virtual double backgroundFunctionType6::fracVsEta |
( |
const double * |
parval, |
|
|
const double & |
eta1, |
|
|
const double & |
eta2 |
|
) |
| const |
|
inlinevirtual |
Reimplemented from backgroundFunctionBase.
Definition at line 5994 of file Functions.h.
References gather_cfg::cout.
5996 if( fabs(eta1) <= 1.3 && fabs(eta2) <= 1.3 ) {
5997 return (1.-0.910903);
5999 else if( (fabs(eta1) <= 1.6 && fabs(eta1) > 1.3) && (fabs(eta2) <= 1.6 && fabs(eta2) > 1.3) ) {
6000 return (1.-0.801469);
6002 else if( fabs(eta1) > 1.6 && fabs(eta2) > 1.6 ) {
6003 return (1.-0.658196);
6005 else if( (fabs(eta1) <= 1.3 && (fabs(eta2) > 1.3 && fabs(eta2) <= 1.6)) ||
6006 (fabs(eta2) <= 1.3 && (fabs(eta1) > 1.3 && fabs(eta1) <= 1.6)) ) {
6007 return (1.-0.873411);
6009 else if( (fabs(eta1) <= 1.3 && fabs(eta2) > 1.6) ||
6010 (fabs(eta2) <= 1.3 && fabs(eta1) > 1.6) ) {
6011 return (1.-0.784674);
6013 else if( ((fabs(eta1) > 1.3 && fabs(eta1) <= 1.6) && fabs(eta2) > 1.6) ||
6014 ((fabs(eta2) > 1.3 && fabs(eta2) <= 1.6) && fabs(eta1) > 1.6) ) {
6015 return (1.-0.714398);
6018 std::cout <<
"WARNING: this should not happen for eta1 = " << eta1 <<
" and eta2 = " << eta2 << std::endl;
6019 return (1.-0.658196);
virtual double backgroundFunctionType6::operator() |
( |
const double * |
parval, |
|
|
const double & |
mass, |
|
|
const double & |
eta |
|
) |
| const |
|
inlinevirtual |
virtual double backgroundFunctionType6::operator() |
( |
const double * |
parval, |
|
|
const double & |
mass, |
|
|
const double & |
eta1, |
|
|
const double & |
eta2 |
|
) |
| const |
|
inlinevirtual |
Reimplemented from backgroundFunctionBase.
Definition at line 5946 of file Functions.h.
References gather_cfg::cout, create_public_lumi_plots::exp, backgroundFunctionBase::lowerLimit_, and backgroundFunctionBase::upperLimit_.
5949 if( fabs(eta1) <= 1.3 && fabs(eta2) <= 1.3 ) {
5952 else if( (fabs(eta1) <= 1.6 && fabs(eta1) > 1.3) && (fabs(eta2) <= 1.6 && fabs(eta2) > 1.3) ) {
5955 else if( fabs(eta1) > 1.6 && fabs(eta2) > 1.6 ) {
5958 else if( (fabs(eta1) <= 1.3 && (fabs(eta2) > 1.3 && fabs(eta2) <= 1.6)) ||
5959 (fabs(eta2) <= 1.3 && (fabs(eta1) > 1.3 && fabs(eta1) <= 1.6)) ) {
5962 else if( (fabs(eta1) <= 1.3 && fabs(eta2) > 1.6) ||
5963 (fabs(eta2) <= 1.3 && fabs(eta1) > 1.6) ) {
5966 else if( ((fabs(eta1) > 1.3 && fabs(eta1) <= 1.6) && fabs(eta2) > 1.6) ||
5967 ((fabs(eta2) > 1.3 && fabs(eta2) <= 1.6) && fabs(eta1) > 1.6) ) {
5971 std::cout <<
"WARNING: this should not happen for eta1 = " << eta1 <<
" and eta2 = " << eta2 << std::endl;
5976 if( norm != 0 )
return exp(-Bgrp2*
mass)/norm;
virtual void backgroundFunctionType6::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 |
|
) |
| |
|
inlinevirtual |
This method is used to differentiate parameters among the different functions.
Implements backgroundFunctionBase.
Definition at line 5980 of file Functions.h.
References backgroundFunctionBase::setPar().
5981 double thisStep[] = {0.01, 0.01};
5982 TString thisParName[] = {
"Bgr fraction",
"Bgr slope"};
5983 if( muonType == 1 ) {
5984 double thisMini[] = {0.0, 0.};
5985 double thisMaxi[] = {1.0, 10.};
5986 this->
setPar( Start,
Step, Mini, Maxi, ind, parname, parBgrIt, parBgrOrderIt, thisStep, thisMini, thisMaxi, thisParName );
5988 double thisMini[] = {0.0, 0.};
5989 double thisMaxi[] = {1.0, 10.};
5990 this->
setPar( Start,
Step, Mini, Maxi, ind, parname, parBgrIt, parBgrOrderIt, thisStep, thisMini, thisMaxi, thisParName );
virtual void setPar(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, double *thisStep, double *thisMini, double *thisMaxi, TString *thisParName)
This method sets the parameters.