Main Page
Namespaces
Classes
Package Documentation
ElectroWeakAnalysis
ZMuMu
src
ZMuTrackFunction.cc
Go to the documentation of this file.
1
/*
2
#include "ElectroWeakAnalysis/ZMuMu/interface/ZMuTrackFunction.h"
3
4
void ZMuTrackFunction::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
double ZMuTrackFunction::operator()(double x) const {
20
double eff_tr_2 = efficiencyTrack * efficiencyTrack;
21
double eff_sa_minus = efficiencyStandalone * (1. - efficiencyStandalone);
22
return cgz_(x) * 2. * numberOfEvents * eff_tr_2 * eff_sa_minus;
23
}
24
*/
Generated for CMSSW Reference Manual by
1.8.11