CMS 3D CMS Logo

function::ZMuMuBack Class Reference

#include <ElectroWeakAnalysis/ZMuMu/interface/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 (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)

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.

00011 { arguments = 1 };

anonymous enum

Enumerator:
parameters 

Definition at line 12 of file ZMuMuBack.h.

00012 { 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 expo_, lambda, Nbkg, and poly_.

00014                                                                    :
00015       Nbkg(Nb), lambda(l), a1(a), a2(b), 
00016       expo_(-(*l)), poly_(1., *a, *b) {}
    ZMuMuBack(double Nb, double l, double a, double b):

function::ZMuMuBack::ZMuMuBack ( double  Nb,
double  l,
double  a,
double  b 
) [inline]

Definition at line 17 of file ZMuMuBack.h.

References expo_, lambda, Nbkg, and poly_.

00017                                                       :
00018       Nbkg(new double(Nb)), lambda(new double(l)), a1(new double(a)), a2(new double(b)), 
00019       expo_(-l), poly_(1, a, b) {}
    double operator()(double x) const  {


Member Function Documentation

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

Definition at line 20 of file ZMuMuBack.h.

References expo_, Nbkg, and poly_.

00020                                        {
00021       return *Nbkg * expo_(x) * poly_(x);
00022     }

void function::ZMuMuBack::setParameters ( double  Nb,
double  l,
double  a,
double  b 
) [inline]

Definition at line 23 of file ZMuMuBack.h.

References a1, a2, expo_, lambda, Nbkg, poly_, and setParameters().

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

00023                                                                 {
00024       *Nbkg = Nb; 
00025       *lambda = l;
00026       *a1 = a;
00027       *a2 = b;
00028       expo_.setParameters(-l);
00029       poly_.setParameters(1., a, b);
00030     }


Member Data Documentation

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

Definition at line 32 of file ZMuMuBack.h.

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

Definition at line 32 of file ZMuMuBack.h.

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().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:47:03 2009 for CMSSW by  doxygen 1.5.4