test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Public Attributes | Private Attributes
function::ZMuMuBack Class Reference

#include <ZMuMuBack.h>

Public Types

enum  { arguments = 1 }
 
enum  { parameters = 4 }
 

Public Member Functions

double operator() (double x) const
 
void setParameters (double Nb, double l, double a, double b)
 
 ZMuMuBack (boost::shared_ptr< double > Nb, boost::shared_ptr< double > l, boost::shared_ptr< double > a, boost::shared_ptr< double > b)
 
 ZMuMuBack (double Nb, double l, double a, double b)
 

Public Attributes

boost::shared_ptr< double > a1
 
boost::shared_ptr< double > a2
 
boost::shared_ptr< double > lambda
 
boost::shared_ptr< double > Nbkg
 

Private Attributes

Exponential expo_
 
Polynomial< 2 > poly_
 

Detailed Description

Definition at line 9 of file ZMuMuBack.h.

Member Enumeration Documentation

anonymous enum
Enumerator
arguments 

Definition at line 11 of file ZMuMuBack.h.

anonymous enum
Enumerator
parameters 

Definition at line 12 of file ZMuMuBack.h.

Constructor & Destructor Documentation

function::ZMuMuBack::ZMuMuBack ( boost::shared_ptr< double >  Nb,
boost::shared_ptr< double >  l,
boost::shared_ptr< double >  a,
boost::shared_ptr< double >  b 
)
inline

Definition at line 13 of file ZMuMuBack.h.

14  :
15  Nbkg(Nb), lambda(l), a1(a), a2(b),
16  expo_(-(*l)), poly_(1., *a, *b) {}
int l
Definition: vlib.h:268
boost::shared_ptr< double > a2
Definition: ZMuMuBack.h:32
boost::shared_ptr< double > a1
Definition: ZMuMuBack.h:32
Polynomial< 2 > poly_
Definition: ZMuMuBack.h:35
Exponential expo_
Definition: ZMuMuBack.h:34
double b
Definition: hdecay.h:120
boost::shared_ptr< double > Nbkg
Definition: ZMuMuBack.h:32
double a
Definition: hdecay.h:121
boost::shared_ptr< double > lambda
Definition: ZMuMuBack.h:32
function::ZMuMuBack::ZMuMuBack ( double  Nb,
double  l,
double  a,
double  b 
)
inline

Definition at line 17 of file ZMuMuBack.h.

17  :
18  Nbkg(new double(Nb)), lambda(new double(l)), a1(new double(a)), a2(new double(b)),
19  expo_(-l), poly_(1, a, b) {}
int l
Definition: vlib.h:268
boost::shared_ptr< double > a2
Definition: ZMuMuBack.h:32
boost::shared_ptr< double > a1
Definition: ZMuMuBack.h:32
Polynomial< 2 > poly_
Definition: ZMuMuBack.h:35
Exponential expo_
Definition: ZMuMuBack.h:34
double b
Definition: hdecay.h:120
boost::shared_ptr< double > Nbkg
Definition: ZMuMuBack.h:32
double a
Definition: hdecay.h:121
boost::shared_ptr< double > lambda
Definition: ZMuMuBack.h:32

Member Function Documentation

double function::ZMuMuBack::operator() ( double  x) const
inline

Definition at line 20 of file ZMuMuBack.h.

References expo_, Nbkg, and poly_.

20  {
21  return *Nbkg * expo_(x) * poly_(x);
22  }
Polynomial< 2 > poly_
Definition: ZMuMuBack.h:35
Exponential expo_
Definition: ZMuMuBack.h:34
boost::shared_ptr< double > Nbkg
Definition: ZMuMuBack.h:32
Definition: DDAxes.h:10
void function::ZMuMuBack::setParameters ( double  Nb,
double  l,
double  a,
double  b 
)
inline

Definition at line 23 of file ZMuMuBack.h.

References a, a1, a2, b, expo_, function::l, lambda, Nbkg, and poly_.

Referenced by function::ZMuMuNormalBack::setParameters().

23  {
24  *Nbkg = Nb;
25  *lambda = l;
26  *a1 = a;
27  *a2 = b;
28  expo_.setParameters(-l);
29  poly_.setParameters(1., a, b);
30  }
int l
Definition: vlib.h:268
boost::shared_ptr< double > a2
Definition: ZMuMuBack.h:32
boost::shared_ptr< double > a1
Definition: ZMuMuBack.h:32
Polynomial< 2 > poly_
Definition: ZMuMuBack.h:35
Exponential expo_
Definition: ZMuMuBack.h:34
double b
Definition: hdecay.h:120
boost::shared_ptr< double > Nbkg
Definition: ZMuMuBack.h:32
double a
Definition: hdecay.h:121
boost::shared_ptr< double > lambda
Definition: ZMuMuBack.h:32

Member Data Documentation

boost::shared_ptr<double> function::ZMuMuBack::a1

Definition at line 32 of file ZMuMuBack.h.

Referenced by setParameters().

boost::shared_ptr<double> function::ZMuMuBack::a2

Definition at line 32 of file ZMuMuBack.h.

Referenced by setParameters().

Exponential function::ZMuMuBack::expo_
private

Definition at line 34 of file ZMuMuBack.h.

Referenced by operator()(), and setParameters().

boost::shared_ptr<double> function::ZMuMuBack::lambda

Definition at line 32 of file ZMuMuBack.h.

Referenced by setParameters().

boost::shared_ptr<double> function::ZMuMuBack::Nbkg

Definition at line 32 of file ZMuMuBack.h.

Referenced by operator()(), and setParameters().

Polynomial<2> function::ZMuMuBack::poly_
private

Definition at line 35 of file ZMuMuBack.h.

Referenced by operator()(), and setParameters().