CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ZMuStandaloneScaledFunction.cc
Go to the documentation of this file.
1 /*
2 #include "ElectroWeakAnalysis/ZMuMu/interface/ZMuStandaloneScaledFunction.h"
3 
4 ZMuStandaloneScaledFunction::ZMuStandaloneScaledFunction(const ZMuStandaloneFunction & ZMM, int bin):
5  ZMM_(ZMM), bin_(bin) {
6 }
7 
8 ZMuStandaloneScaledFunction::ZMuStandaloneScaledFunction(double m, double g, double Ng, double Ni,
9  double me, double s,
10  double N, double eff_tr, double eff_sa, int bin):
11  ZMM_(m, g, Ng, Ni, me, s, N, eff_tr, eff_sa), bin_(bin) {
12 }
13 
14 void ZMuStandaloneScaledFunction::setParameters(double m, double g, double Ng, double Ni,
15  double me, double s,
16  double N, double eff_tr, double eff_sa) {
17  ZMM_.setParameters(m, g, Ng, Ni, me, s, N, eff_tr, eff_sa);
18 }
19 
20 void ZMuStandaloneScaledFunction::setConstants(int bin) {
21  bin_ = bin;
22 }
23 
24 double ZMuStandaloneScaledFunction::operator()(double x) const {
25  return bin_ * ZMM_(x);
26 }
27 */