CMS 3D CMS Logo

function::ZMuTrackScaledFunction Class Reference

#include <ElectroWeakAnalysis/ZMuMu/interface/ZMuTrackScaledFunction.h>

List of all members.

Public Types

enum  { arguments = 1 }
enum  { parameters = 9 }

Public Member Functions

double operator() (double x) const
void setParameters (double m, double g, double Ng, double Ni, double me, double s, double N, double eff_tr, double eff_sa)
 ZMuTrackScaledFunction (double m, double g, double Ng, double Ni, double me, double s, double N, double eff_tr, double eff_sa, int bin)
 ZMuTrackScaledFunction (boost::shared_ptr< double > m, boost::shared_ptr< double > g, boost::shared_ptr< double > Ng, boost::shared_ptr< double > Ni, boost::shared_ptr< double > me, boost::shared_ptr< double > s, boost::shared_ptr< double > N, boost::shared_ptr< double > eff_tr, boost::shared_ptr< double > eff_sa, int bin)
 ZMuTrackScaledFunction (const ZMuTrackFunction &zmt, int bin)

Public Attributes

int binScaleFactor
boost::shared_ptr< double > efficiencyStandalone
boost::shared_ptr< double > efficiencyTrack
boost::shared_ptr< double > mass
boost::shared_ptr< double > mean
boost::shared_ptr< double > Ngamma
boost::shared_ptr< double > Nint
boost::shared_ptr< double > numberOfEvents
boost::shared_ptr< double > sigma
boost::shared_ptr< double > width

Private Attributes

ZMuTrackFunction zmt_


Detailed Description

Definition at line 7 of file ZMuTrackScaledFunction.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
arguments 

Definition at line 9 of file ZMuTrackScaledFunction.h.

00009 { arguments = 1 };

anonymous enum

Enumerator:
parameters 

Definition at line 10 of file ZMuTrackScaledFunction.h.

00010 { parameters = 9 };


Constructor & Destructor Documentation

function::ZMuTrackScaledFunction::ZMuTrackScaledFunction ( const ZMuTrackFunction zmt,
int  bin 
) [inline]

Definition at line 11 of file ZMuTrackScaledFunction.h.

References binScaleFactor, and zmt_.

00011                                                                  : 
00012       binScaleFactor(bin), zmt_(zmt) {}

function::ZMuTrackScaledFunction::ZMuTrackScaledFunction ( boost::shared_ptr< double >  m,
boost::shared_ptr< double >  g,
boost::shared_ptr< double >  Ng,
boost::shared_ptr< double >  Ni,
boost::shared_ptr< double >  me,
boost::shared_ptr< double >  s,
boost::shared_ptr< double >  N,
boost::shared_ptr< double >  eff_tr,
boost::shared_ptr< double >  eff_sa,
int  bin 
) [inline]

Definition at line 13 of file ZMuTrackScaledFunction.h.

References binScaleFactor, efficiencyStandalone, efficiencyTrack, mass, Ngamma, Nint, numberOfEvents, sigma, and zmt_.

00015                                                                                                                             :
00016       mass(m), width(g), Ngamma(Ng), Nint(Ni), mean(me), sigma(s), 
00017       numberOfEvents(N), efficiencyTrack(eff_tr), efficiencyStandalone(eff_sa), binScaleFactor(bin), 
00018       zmt_(m, g, Ng, Ni, me, s, N, eff_tr, eff_sa) {}
    ZMuTrackScaledFunction(double m, double g, double Ng, double Ni, 

function::ZMuTrackScaledFunction::ZMuTrackScaledFunction ( double  m,
double  g,
double  Ng,
double  Ni,
double  me,
double  s,
double  N,
double  eff_tr,
double  eff_sa,
int  bin 
) [inline]

Definition at line 19 of file ZMuTrackScaledFunction.h.

References binScaleFactor, efficiencyStandalone, efficiencyTrack, mass, Ngamma, Nint, numberOfEvents, sigma, and zmt_.

00022                                    : 
00023       mass(new double(m)), width(new double(g)), Ngamma(new double(Ng)), Nint(new double(Ni)), mean(new double(me)), sigma(new double(s)), 
00024       numberOfEvents(new double(N)), efficiencyTrack(new double(eff_tr)), efficiencyStandalone(new double(eff_sa)), binScaleFactor(bin), 
00025       zmt_(m, g, Ng, Ni, me, s, N, eff_tr, eff_sa) {}


Member Function Documentation

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

Definition at line 40 of file ZMuTrackScaledFunction.h.

References binScaleFactor, and zmt_.

00040                                       {
00041       return binScaleFactor * zmt_(x);
00042     }

void function::ZMuTrackScaledFunction::setParameters ( double  m,
double  g,
double  Ng,
double  Ni,
double  me,
double  s,
double  N,
double  eff_tr,
double  eff_sa 
) [inline]

Definition at line 26 of file ZMuTrackScaledFunction.h.

References efficiencyStandalone, efficiencyTrack, mass, mean(), Ngamma, Nint, numberOfEvents, function::ZMuTrackFunction::setParameters(), setParameters(), sigma, width, and zmt_.

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

00028                                                                { 
00029       *mass = m; 
00030       *width = g; 
00031       *Ngamma = Ng; 
00032       *Nint = Ni; 
00033       *mean = me; 
00034       *sigma = s; 
00035       *numberOfEvents = N; 
00036       *efficiencyTrack = eff_tr; 
00037       *efficiencyStandalone = eff_sa; 
00038       zmt_.setParameters(m, g, Ng, Ni, me, s, N, eff_tr, eff_sa);
00039     }


Member Data Documentation

int function::ZMuTrackScaledFunction::binScaleFactor

Definition at line 45 of file ZMuTrackScaledFunction.h.

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

boost::shared_ptr<double> function::ZMuTrackScaledFunction::efficiencyStandalone

Definition at line 44 of file ZMuTrackScaledFunction.h.

Referenced by setParameters(), and ZMuTrackScaledFunction().

boost::shared_ptr<double> function::ZMuTrackScaledFunction::efficiencyTrack

Definition at line 44 of file ZMuTrackScaledFunction.h.

Referenced by setParameters(), and ZMuTrackScaledFunction().

boost::shared_ptr<double> function::ZMuTrackScaledFunction::mass

Definition at line 43 of file ZMuTrackScaledFunction.h.

Referenced by setParameters(), and ZMuTrackScaledFunction().

boost::shared_ptr<double> function::ZMuTrackScaledFunction::mean

Definition at line 43 of file ZMuTrackScaledFunction.h.

boost::shared_ptr<double> function::ZMuTrackScaledFunction::Ngamma

Definition at line 43 of file ZMuTrackScaledFunction.h.

Referenced by setParameters(), and ZMuTrackScaledFunction().

boost::shared_ptr<double> function::ZMuTrackScaledFunction::Nint

Definition at line 43 of file ZMuTrackScaledFunction.h.

Referenced by setParameters(), and ZMuTrackScaledFunction().

boost::shared_ptr<double> function::ZMuTrackScaledFunction::numberOfEvents

Definition at line 44 of file ZMuTrackScaledFunction.h.

Referenced by setParameters(), and ZMuTrackScaledFunction().

boost::shared_ptr<double> function::ZMuTrackScaledFunction::sigma

Definition at line 43 of file ZMuTrackScaledFunction.h.

Referenced by setParameters(), and ZMuTrackScaledFunction().

boost::shared_ptr<double> function::ZMuTrackScaledFunction::width

Definition at line 43 of file ZMuTrackScaledFunction.h.

ZMuTrackFunction function::ZMuTrackScaledFunction::zmt_ [private]

Definition at line 47 of file ZMuTrackScaledFunction.h.

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


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