41 int binNumber(
float x,
const std::vector<float>
bins)
const
43 for (
size_t iB=0; iB<bins.size(); ++iB)
44 if (x>=bins[iB]&&x<bins[iB+1])
49 int binNumber(
float x,
int nbins,
const float * bins) {
53 for (
int iB=0; iB<
nbins; ++iB) {
54 if (x>=bins[iB]&&x<bins[iB+1]) {
66 void InitMEtWeights(TFile *
file,
75 void InitMEtWeights(TFile * file,
76 const std::vector<float>& ZPtBins,
77 const std::string _perpZStr,
78 const std::string _paralZStr,
79 const std::vector<std::string>& _ZPtStr,
80 const std::vector<std::string>& _nJetsStr);
82 void CalculateU1U2FromMet(
float MetPx,
93 void CalculateMetFromU1U2(
float U1,
102 void U1U2CorrectionsByWidth(
float & U1,
float & U2,
106 float CorrectionsBySampling(
float x, TF1 * funcMC, TF1 * funcData);
108 float rescale(
float x,
111 float resolutionData,
116 std::vector<float> _ZPtBins;
126 TF1 * _metZParalData[5][3];
127 TF1 * _metZPerpData[5][3];
128 TF1 * _metZParalMC[5][3];
129 TF1 * _metZPerpMC[5][3];
131 TH1F * _metZParalDataHist[5][3];
132 TH1F * _metZPerpDataHist[5][3];
133 TH1F * _metZParalMCHist[5][3];
134 TH1F * _metZPerpMCHist[5][3];
136 float _meanMetZParalData[5][3];
137 float _meanMetZParalMC[5][3];
138 float _meanMetZPerpData[5][3];
139 float _meanMetZPerpMC[5][3];
141 float _rmsMetZParalData[5][3];
142 float _rmsLeftMetZParalData[5][3];
143 float _rmsRightMetZParalData[5][3];
145 float _rmsMetZParalMC[5][3];
146 float _rmsLeftMetZParalMC[5][3];
147 float _rmsRightMetZParalMC[5][3];
149 float _rmsMetZPerpData[5][3];
150 float _rmsLeftMetZPerpData[5][3];
151 float _rmsRightMetZPerpData[5][3];
153 float _rmsMetZPerpMC[5][3];
154 float _rmsLeftMetZPerpMC[5][3];
155 float _rmsRightMetZPerpMC[5][3];
157 float _xminMetZPerp[5][3];
158 float _xmaxMetZPerp[5][3];
160 float _xminMetZPerpData[5][3];
161 float _xmaxMetZPerpData[5][3];
163 float _xminMetZPerpMC[5][3];
164 float _xmaxMetZPerpMC[5][3];
166 float _xminMetZParal[5][3];
167 float _xmaxMetZParal[5][3];
169 float _xminMetZParalData[5][3];
170 float _xmaxMetZParalData[5][3];
172 float _xminMetZParalMC[5][3];
173 float _xmaxMetZParalMC[5][3];
tuple bins
Definition: makePlots_rocCurves.py:125
void Correct(float MetPx, float MetPy, float genZPx, float genZPy, float diLepPx, float diLepPy, int njets, float &MetCorrPx, float &MetCorrPy)
Definition: RecoilCorrector.cc:214
tuple x
Test the formatting of numbers with uncertainty.
Definition: test_uncertainties.py:1222
RecoilCorrector(TString fileName)
Definition: RecoilCorrector.cc:3
~RecoilCorrector()
Definition: RecoilCorrector.cc:73
nbins
Definition: makePlots_datacardsSMHtt_nDim.py:106
tuple file
Definition: makePlots_datacardsCPStudies_projection.py:222
void CorrectByMeanResolution(float MetPx, float MetPy, float genZPx, float genZPy, float diLepPx, float diLepPy, int njets, float &MetCorrPx, float &MetCorrPy)
Definition: RecoilCorrector.cc:342
Definition: RecoilCorrector.h:12