CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ZMuTrackScaledNormalBack.h
Go to the documentation of this file.
1 #ifndef ElectroWeakAnalysis_ZMuMu_ZMuTrackScaledNormalBack_h
2 #define ElectroWeakAnalysis_ZMuMu_ZMuTrackScaledNormalBack_h
5 #include <boost/shared_ptr.hpp>
6 
7 namespace function {
9  public:
10  enum{ arguments = 1};
11  enum{ parameters = 13};
12  ZMuTrackScaledNormalBack(boost::shared_ptr<double> m, boost::shared_ptr<double> g, boost::shared_ptr<double> Ng, boost::shared_ptr<double> Ni,
13  boost::shared_ptr<double> me, boost::shared_ptr<double> s,
14  boost::shared_ptr<double> N, boost::shared_ptr<double> eff_tr, boost::shared_ptr<double> eff_sa,
15  boost::shared_ptr<double> Nb, boost::shared_ptr<double> l, boost::shared_ptr<double> a, boost::shared_ptr<double> b,
16  int bin, int rmin, int rmax):
17  mass(m), width(g), Ngamma(Ng), Nint(Ni),
18  mean(me), sigma(s),
20  Nbkg(Nb), lambda(l), a1(a), a2(b),
21  binScaleFactor(bin), x_min(rmin), x_max(rmax),
22  zmts_(m, g, Ng, Ni, me, s, N, eff_tr, eff_sa, bin), zmmnb_(Nb, l, a, b, rmin, rmax) {}
23  ZMuTrackScaledNormalBack(double m, double g, double Ng, double Ni,
24  double me, double s,
25  double N, double eff_tr, double eff_sa,
26  double Nb, double l, double a, double b,
27  int bin, int rmin, int rmax):
28  mass(new double(m)), width(new double(g)), Ngamma(new double(Ng)), Nint(new double(Ni)),
29  mean(new double(me)), sigma(new double(s)),
30  numberOfEvents(new double(N)), efficiencyTrack(new double(eff_tr)), efficiencyStandalone(new double(eff_sa)),
31  Nbkg(new double(Nb)), lambda(new double(l)), a1(new double(a)), a2(new double(b)),
32  binScaleFactor(bin), x_min(rmin), x_max(rmax),
33  zmts_(m, g, Ng, Ni, me, s, N, eff_tr, eff_sa, bin), zmmnb_(Nb, l, a, b, rmin, rmax) {}
34  void setParameters(double m, double g, double Ng, double Ni,
35  double me, double s,
36  double N, double eff_tr, double eff_sa,
37  double Nb, double l, double a, double b) {
38  zmts_.setParameters(m, g, Ng, Ni, me, s, N, eff_tr, eff_sa);
39  zmmnb_.setParameters(Nb, l, a, b);
40  }
41  double operator()(double x) const {
42  return zmts_(x) + zmmnb_(x);
43  }
44  boost::shared_ptr<double> mass, width, Ngamma, Nint, mean, sigma;
46  boost::shared_ptr<double> Nbkg, lambda, a1, a2;
48  private:
51  };
52 }
53 
54 #endif
ZMuTrackScaledNormalBack(double m, double g, double Ng, double Ni, double me, double s, double N, double eff_tr, double eff_sa, double Nb, double l, double a, double b, int bin, int rmin, int rmax)
boost::shared_ptr< double > numberOfEvents
Definition: vlib.h:256
int l
Definition: vlib.h:268
boost::shared_ptr< double > efficiencyStandalone
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
void setParameters(double m, double g, double Ng, double Ni, double me, double s, double N, double eff_tr, double eff_sa)
#define N
Definition: blowfish.cc:9
void setParameters(double Nb, double l, double a, double b)
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
ZMuTrackScaledNormalBack(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, boost::shared_ptr< double > Nb, boost::shared_ptr< double > l, boost::shared_ptr< double > a, boost::shared_ptr< double > b, int bin, int rmin, int rmax)
boost::shared_ptr< double > efficiencyTrack
void setParameters(double m, double g, double Ng, double Ni, double me, double s, double N, double eff_tr, double eff_sa, double Nb, double l, double a, double b)