Main Page
Namespaces
Classes
Package Documentation
ElectroWeakAnalysis
ZMuMu
src
ZMuStandaloneFunction.cc
Go to the documentation of this file.
1
/*
2
#include "ElectroWeakAnalysis/ZMuMu/interface/ZMuStandaloneFunction.h"
3
4
void ZMuStandaloneFunction::setParameters(double m, double g, double Ng, double Ni,
5
double me, double s,
6
double N, double eff_tr, double eff_sa) {
7
mass = m;
8
width = g;
9
Ngamma = Ng;
10
Nint = Ni;
11
mean = me;
12
sigma = s;
13
numberOfEvents = N;
14
efficiencyTrack = eff_tr;
15
efficiencyStandalone = eff_sa;
16
cgz_.setParameters(m, g, Ng, Ni, me, s);
17
}
18
19
20
double ZMuStandaloneFunction::operator()(double x) const {
21
double eff_sa_2 = efficiencyStandalone * efficiencyStandalone;
22
double eff_tr_minus = efficiencyTrack * ( 1. - efficiencyTrack );
23
return cgz_(x) * 2. * numberOfEvents * eff_sa_2 * eff_tr_minus;
24
}
25
*/
Generated for CMSSW Reference Manual by
1.8.11