CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ZMuTrackScaledNormalBack.cc
Go to the documentation of this file.
1 /*
2 #include "ElectroWeakAnalysis/ZMuMu/interface/ZMuTrackScaledNormalBack.h"
3 
4 ZMuTrackScaledNormalBack::ZMuTrackScaledNormalBack(double m, double g, double Ng, double Ni,
5  double me, double s,
6  double N, double eff_tr, double eff_sa,
7  double Nb, double l, double a, double b,
8  int bin, int x_min, int x_max):
9  zmt_(m, g, Ng, Ni, me, s, N, eff_tr, eff_sa),
10  zmb_(Nb, l, a, b),
11  zmbn_(l, a, b),
12  bin_(bin), x_min_(x_min), x_max_(x_max) {}
13 
14 void ZMuTrackScaledNormalBack::setParameters(double m, double g, double Ng, double Ni,
15  double me, double s,
16  double N, double eff_tr, double eff_sa,
17  double Nb, double l, double a, double b) {
18  zmt_.setParameters(m, g, Ng, Ni, me, s, N, eff_tr, eff_sa);
19  zmb_.setParameters(Nb, l, a, b);
20  zmbn_.setParameters(l, a, b);
21 }
22 
23 void ZMuTrackScaledNormalBack::setConstants(int bin, int x_min, int x_max) {
24  bin_ = bin;
25  x_min_ = x_min;
26  x_max_ = x_max;
27 }
28 
29 double ZMuTrackScaledNormalBack::operator()(double x) const {
30  return bin_ * zmt_(x) + zmbn_(x_min_, x_max_) * zmb_(x);
31 }
32 */