CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes | Private Attributes
function::ZMuTrackFunction Class Reference

#include <ZMuTrackFunction.h>

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)
 
 ZMuTrackFunction (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)
 
 ZMuTrackFunction (double m, double g, double Ng, double Ni, double me, double s, double N, double eff_tr, double eff_sa)
 

Public Attributes

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

ConvGaussZLineShape cgz_
 

Detailed Description

Definition at line 7 of file ZMuTrackFunction.h.

Member Enumeration Documentation

anonymous enum
Enumerator
arguments 

Definition at line 9 of file ZMuTrackFunction.h.

anonymous enum
Enumerator
parameters 

Definition at line 10 of file ZMuTrackFunction.h.

Constructor & Destructor Documentation

function::ZMuTrackFunction::ZMuTrackFunction ( 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 
)
inline

Definition at line 11 of file ZMuTrackFunction.h.

13  :
14  mass(m), width(g), Ngamma(Ng), Nint(Ni), mean(me), sigma(s),
16  cgz_(m, g, Ng, Ni, me, s) {}
boost::shared_ptr< double > mean
boost::shared_ptr< double > sigma
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
boost::shared_ptr< double > efficiencyStandalone
boost::shared_ptr< double > width
boost::shared_ptr< double > Nint
boost::shared_ptr< double > mass
boost::shared_ptr< double > numberOfEvents
#define N
Definition: blowfish.cc:9
boost::shared_ptr< double > efficiencyTrack
ConvGaussZLineShape cgz_
boost::shared_ptr< double > Ngamma
function::ZMuTrackFunction::ZMuTrackFunction ( double  m,
double  g,
double  Ng,
double  Ni,
double  me,
double  s,
double  N,
double  eff_tr,
double  eff_sa 
)
inline

Definition at line 17 of file ZMuTrackFunction.h.

19  :
20  mass(new double(m)), width(new double(g)), Ngamma(new double(Ng)), Nint(new double(Ni)), mean(new double(me)), sigma(new double(s)),
21  numberOfEvents(new double(N)), efficiencyTrack(new double(eff_tr)), efficiencyStandalone(new double(eff_sa)),
22  cgz_(m, g, Ng, Ni, me, s) {}
boost::shared_ptr< double > mean
boost::shared_ptr< double > sigma
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
boost::shared_ptr< double > efficiencyStandalone
boost::shared_ptr< double > width
boost::shared_ptr< double > Nint
boost::shared_ptr< double > mass
boost::shared_ptr< double > numberOfEvents
#define N
Definition: blowfish.cc:9
boost::shared_ptr< double > efficiencyTrack
ConvGaussZLineShape cgz_
boost::shared_ptr< double > Ngamma

Member Function Documentation

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

Definition at line 23 of file ZMuTrackFunction.h.

References cgz_, efficiencyStandalone, and efficiencyTrack.

23  {
24  double eff_tr_2 = *efficiencyTrack * (*efficiencyTrack);
25  double eff_sa_minus = *efficiencyStandalone * (1. - *efficiencyStandalone);
26  return cgz_(x) * 2. * (*numberOfEvents) * eff_tr_2 * eff_sa_minus;
27  }
boost::shared_ptr< double > efficiencyStandalone
boost::shared_ptr< double > efficiencyTrack
ConvGaussZLineShape cgz_
void function::ZMuTrackFunction::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 28 of file ZMuTrackFunction.h.

References cgz_, efficiencyStandalone, efficiencyTrack, g, funct::m, mass, mean, N, Ngamma, Nint, numberOfEvents, alignCSCRings::s, sigma, and width.

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

30  {
31  *mass = m;
32  *width = g;
33  *Ngamma = Ng;
34  *Nint = Ni;
35  *mean = me;
36  *sigma = s;
37  *numberOfEvents = N;
38  *efficiencyTrack = eff_tr;
39  *efficiencyStandalone = eff_sa;
40  cgz_.setParameters(m, g, Ng, Ni, me, s);
41  }
boost::shared_ptr< double > mean
boost::shared_ptr< double > sigma
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
boost::shared_ptr< double > efficiencyStandalone
boost::shared_ptr< double > width
boost::shared_ptr< double > Nint
boost::shared_ptr< double > mass
boost::shared_ptr< double > numberOfEvents
#define N
Definition: blowfish.cc:9
boost::shared_ptr< double > efficiencyTrack
ConvGaussZLineShape cgz_
boost::shared_ptr< double > Ngamma

Member Data Documentation

ConvGaussZLineShape function::ZMuTrackFunction::cgz_
private

Definition at line 45 of file ZMuTrackFunction.h.

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

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

Definition at line 43 of file ZMuTrackFunction.h.

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

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

Definition at line 43 of file ZMuTrackFunction.h.

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

boost::shared_ptr<double> function::ZMuTrackFunction::mass
boost::shared_ptr<double> function::ZMuTrackFunction::mean

Definition at line 42 of file ZMuTrackFunction.h.

Referenced by setParameters().

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

Definition at line 42 of file ZMuTrackFunction.h.

Referenced by setParameters().

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

Definition at line 42 of file ZMuTrackFunction.h.

Referenced by setParameters().

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

Definition at line 43 of file ZMuTrackFunction.h.

Referenced by setParameters().

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

Definition at line 42 of file ZMuTrackFunction.h.

Referenced by setParameters().

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