Exponential binned in eta.
More...
#include <Functions.h>
|
| backgroundFunctionType6 (const double &lowerLimit, const double &upperLimit) |
|
double | fracVsEta (const double *parval, const double &eta1, const double &eta2) const override |
|
double | operator() (const double *parval, const double &mass, const double &eta) const override |
|
double | operator() (const double *parval, const double &mass, const double &eta1, const double &eta2) const override |
|
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) override |
| 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 1431 of file Functions.h.
backgroundFunctionType6::backgroundFunctionType6 |
( |
const double & |
lowerLimit, |
|
|
const double & |
upperLimit |
|
) |
| |
|
inline |
Definition at line 1433 of file Functions.h.
backgroundFunctionBase(const double &lowerLimit, const double &upperLimit)
double backgroundFunctionType6::fracVsEta |
( |
const double * |
parval, |
|
|
const double & |
eta1, |
|
|
const double & |
eta2 |
|
) |
| const |
|
inlineoverridevirtual |
Reimplemented from backgroundFunctionBase.
Definition at line 1487 of file Functions.h.
References gather_cfg::cout.
1489 if( fabs(eta1) <= 1.3 && fabs(eta2) <= 1.3 ) {
1490 return (1.-0.910903);
1492 else if( (fabs(eta1) <= 1.6 && fabs(eta1) > 1.3) && (fabs(eta2) <= 1.6 && fabs(eta2) > 1.3) ) {
1493 return (1.-0.801469);
1495 else if( fabs(eta1) > 1.6 && fabs(eta2) > 1.6 ) {
1496 return (1.-0.658196);
1498 else if( (fabs(eta1) <= 1.3 && (fabs(eta2) > 1.3 && fabs(eta2) <= 1.6)) ||
1499 (fabs(eta2) <= 1.3 && (fabs(eta1) > 1.3 && fabs(eta1) <= 1.6)) ) {
1500 return (1.-0.873411);
1502 else if( (fabs(eta1) <= 1.3 && fabs(eta2) > 1.6) ||
1503 (fabs(eta2) <= 1.3 && fabs(eta1) > 1.6) ) {
1504 return (1.-0.784674);
1506 else if( ((fabs(eta1) > 1.3 && fabs(eta1) <= 1.6) && fabs(eta2) > 1.6) ||
1507 ((fabs(eta2) > 1.3 && fabs(eta2) <= 1.6) && fabs(eta1) > 1.6) ) {
1508 return (1.-0.714398);
1511 std::cout <<
"WARNING: this should not happen for eta1 = " << eta1 <<
" and eta2 = " << eta2 << std::endl;
1512 return (1.-0.658196);
double backgroundFunctionType6::operator() |
( |
const double * |
parval, |
|
|
const double & |
mass, |
|
|
const double & |
eta |
|
) |
| const |
|
inlineoverridevirtual |
double backgroundFunctionType6::operator() |
( |
const double * |
parval, |
|
|
const double & |
mass, |
|
|
const double & |
eta1, |
|
|
const double & |
eta2 |
|
) |
| const |
|
inlineoverridevirtual |
Reimplemented from backgroundFunctionBase.
Definition at line 1439 of file Functions.h.
References gather_cfg::cout, and JetChargeProducer_cfi::exp.
1442 if( fabs(eta1) <= 1.3 && fabs(eta2) <= 1.3 ) {
1445 else if( (fabs(eta1) <= 1.6 && fabs(eta1) > 1.3) && (fabs(eta2) <= 1.6 && fabs(eta2) > 1.3) ) {
1448 else if( fabs(eta1) > 1.6 && fabs(eta2) > 1.6 ) {
1451 else if( (fabs(eta1) <= 1.3 && (fabs(eta2) > 1.3 && fabs(eta2) <= 1.6)) ||
1452 (fabs(eta2) <= 1.3 && (fabs(eta1) > 1.3 && fabs(eta1) <= 1.6)) ) {
1455 else if( (fabs(eta1) <= 1.3 && fabs(eta2) > 1.6) ||
1456 (fabs(eta2) <= 1.3 && fabs(eta1) > 1.6) ) {
1459 else if( ((fabs(eta1) > 1.3 && fabs(eta1) <= 1.6) && fabs(eta2) > 1.6) ||
1460 ((fabs(eta2) > 1.3 && fabs(eta2) <= 1.6) && fabs(eta1) > 1.6) ) {
1464 std::cout <<
"WARNING: this should not happen for eta1 = " << eta1 <<
" and eta2 = " << eta2 << std::endl;
1469 if( norm != 0 )
return exp(-Bgrp2*
mass)/norm;
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 |
|
) |
| |
|
inlineoverridevirtual |
This method is used to differentiate parameters among the different functions.
Implements backgroundFunctionBase.
Definition at line 1473 of file Functions.h.
1474 double thisStep[] = {0.01, 0.01};
1475 TString thisParName[] = {
"Bgr fraction",
"Bgr slope"};
1476 if( muonType == 1 ) {
1477 double thisMini[] = {0.0, 0.};
1478 double thisMaxi[] = {1.0, 10.};
1479 this->
setPar( Start,
Step, Mini, Maxi, ind, parname, parBgrIt, parBgrOrderIt, thisStep, thisMini, thisMaxi, thisParName );
1481 double thisMini[] = {0.0, 0.};
1482 double thisMaxi[] = {1.0, 10.};
1483 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.