CMS 3D CMS Logo

Public Types | Public Member Functions | Public Attributes | Private Attributes

function::ZMuMuBack Class Reference

#include <ZMuMuBack.h>

List of all members.

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.

{ arguments = 1 };
anonymous enum
Enumerator:
parameters 

Definition at line 12 of file ZMuMuBack.h.

{ parameters = 4 };

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.

References a1, a2, expo_, lambda, Nbkg, and poly_.

                                                                   :
      Nbkg(Nb), lambda(l), a1(a), a2(b), 
      expo_(-(*l)), poly_(1., *a, *b) {}
function::ZMuMuBack::ZMuMuBack ( double  Nb,
double  l,
double  a,
double  b 
) [inline]

Definition at line 17 of file ZMuMuBack.h.

References a1, a2, expo_, lambda, Nbkg, and poly_.

                                                      :
      Nbkg(new double(Nb)), lambda(new double(l)), a1(new double(a)), a2(new double(b)), 
      expo_(-l), poly_(1, a, b) {}

Member Function Documentation

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

Definition at line 20 of file ZMuMuBack.h.

References expo_, Nbkg, and poly_.

                                       {
      return *Nbkg * expo_(x) * poly_(x);
    }
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().

                                                                {
      *Nbkg = Nb; 
      *lambda = l;
      *a1 = a;
      *a2 = b;
      expo_.setParameters(-l);
      poly_.setParameters(1., a, b);
    }

Member Data Documentation

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

Definition at line 32 of file ZMuMuBack.h.

Referenced by setParameters(), and ZMuMuBack().

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

Definition at line 32 of file ZMuMuBack.h.

Referenced by setParameters(), and ZMuMuBack().

Exponential function::ZMuMuBack::expo_ [private]

Definition at line 34 of file ZMuMuBack.h.

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

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

Definition at line 32 of file ZMuMuBack.h.

Referenced by setParameters(), and ZMuMuBack().

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

Definition at line 32 of file ZMuMuBack.h.

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

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

Definition at line 35 of file ZMuMuBack.h.

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