5 namespace HWWFunctions {
7 void eidGetWP2012(
const wp2012_tightness tightness, std::vector<double> &cutdeta, std::vector<double> &cutdphi, std::vector<double> &
cuthoe, std::vector<double> &
cutsee, std::vector<double> &cutooemoop, std::vector<double> &cutd0vtx, std::vector<double> &cutdzvtx, std::vector<bool> &cutvtxfit, std::vector<int> &cutmhit, std::vector<double> &cutrelisohighpt, std::vector<double> &cutrelisolowpt)
13 double dEtaIn_tmp[2] = {0.007, 0.010};
14 double dPhiIn_tmp[2] = {0.800, 0.700};
15 double sigmaIEtaIEta_tmp[2] = {0.010, 0.030};
16 double hoe_tmp[2] = {0.150, 999.9};
17 double ooemoop_tmp[2] = {999.9, 999.9};
18 double d0Vtx_tmp[2] = {0.040, 0.040};
19 double dzVtx_tmp[2] = {0.200, 0.200};
20 bool vtxFit_tmp[2] = {
false,
false};
21 int mHits_tmp[2] = {999, 999};
22 double isoHi_tmp[2] = {0.150, 0.150};
23 double isoLo_tmp[2] = {0.150, 0.150};
39 double dEtaIn_tmp[2] = {0.007, 0.009};
40 double dPhiIn_tmp[2] = {0.150, 0.100};
41 double sigmaIEtaIEta_tmp[2] = {0.010, 0.030};
42 double hoe_tmp[2] = {0.120, 0.100};
43 double ooemoop_tmp[2] = {0.050, 0.050};
44 double d0Vtx_tmp[2] = {0.020, 0.020};
45 double dzVtx_tmp[2] = {0.200, 0.200};
46 bool vtxFit_tmp[2] = {
true,
true};
47 int mHits_tmp[2] = {1, 1};
48 double isoHi_tmp[2] = {0.150, 0.150};
49 double isoLo_tmp[2] = {0.150, 0.100};
65 double dEtaIn_tmp[2] = {0.004, 0.007};
66 double dPhiIn_tmp[2] = {0.060, 0.030};
67 double sigmaIEtaIEta_tmp[2] = {0.010, 0.030};
68 double hoe_tmp[2] = {0.120, 0.100};
69 double ooemoop_tmp[2] = {0.050, 0.050};
70 double d0Vtx_tmp[2] = {0.020, 0.020};
71 double dzVtx_tmp[2] = {0.100, 0.100};
72 bool vtxFit_tmp[2] = {
true,
true};
73 int mHits_tmp[2] = {1, 1};
74 double isoHi_tmp[2] = {0.150, 0.150};
75 double isoLo_tmp[2] = {0.150, 0.100};
91 double dEtaIn_tmp[2] = {0.004, 0.005};
92 double dPhiIn_tmp[2] = {0.030, 0.020};
93 double sigmaIEtaIEta_tmp[2] = {0.010, 0.030};
94 double hoe_tmp[2] = {0.120, 0.100};
95 double ooemoop_tmp[2] = {0.050, 0.050};
96 double d0Vtx_tmp[2] = {0.020, 0.020};
97 double dzVtx_tmp[2] = {0.100, 0.100};
98 bool vtxFit_tmp[2] = {
true,
true};
99 int mHits_tmp[2] = {0, 0};
100 double isoHi_tmp[2] = {0.100, 0.100};
101 double isoLo_tmp[2] = {0.100, 0.070};
111 eidAssign(cutrelisohighpt, isoHi_tmp, 2);
117 edm::LogError(
"InvalidInput") <<
"[eidGetWP2012] ERROR! Invalid tightness level";
125 void eidGetVBTF(
const vbtf_tightness tightness, std::vector<double> &cutdeta, std::vector<double> &cutdphi, std::vector<double> &
cuthoe, std::vector<double> &
cutsee, std::vector<double> &cutreliso)
131 double isoThresholds_tmp[2] = {0.15, 0.1};
132 double sigmaIEtaIEtaThresholds_tmp[2] = {0.01, 0.03};
133 double dPhiInThresholds_tmp[2] = {0.8, 0.7};
134 double dEtaInThresholds_tmp[2] = {0.007, 0.01};
135 double hoeThresholds_tmp[2] = {0.5, 0.07};
136 eidAssign(cutreliso, isoThresholds_tmp, 2);
137 eidAssign(cutdeta, dEtaInThresholds_tmp, 2);
138 eidAssign(cutdphi, dPhiInThresholds_tmp, 2);
140 eidAssign(cutsee, sigmaIEtaIEtaThresholds_tmp, 2);
146 double isoThresholds_tmp[2] = {0.1, 0.07};
147 double sigmaIEtaIEtaThresholds_tmp[2] = {0.01, 0.03};
148 double dPhiInThresholds_tmp[2] = {0.8, 0.7};
149 double dEtaInThresholds_tmp[2] = {0.007, 0.009};
150 double hoeThresholds_tmp[2] = {0.12, 0.05};
151 eidAssign(cutreliso, isoThresholds_tmp, 2);
152 eidAssign(cutdeta, dEtaInThresholds_tmp, 2);
153 eidAssign(cutdphi, dPhiInThresholds_tmp, 2);
155 eidAssign(cutsee, sigmaIEtaIEtaThresholds_tmp, 2);
161 double isoThresholds_tmp[2] = {0.09, 0.06};
162 double sigmaIEtaIEtaThresholds_tmp[2] = {0.01, 0.03};
163 double dPhiInThresholds_tmp[2] = {0.06, 0.04};
164 double dEtaInThresholds_tmp[2] = {0.006, 0.007};
165 double hoeThresholds_tmp[2] = {0.04, 0.025};
166 eidAssign(cutreliso, isoThresholds_tmp, 2);
167 eidAssign(cutdeta, dEtaInThresholds_tmp, 2);
168 eidAssign(cutdphi, dPhiInThresholds_tmp, 2);
170 eidAssign(cutsee, sigmaIEtaIEtaThresholds_tmp, 2);
176 double isoThresholds_tmp[2] = {0.07, 0.06};
177 double sigmaIEtaIEtaThresholds_tmp[2] = {0.01, 0.03};
178 double dPhiInThresholds_tmp[2] = {0.06, 0.03};
179 double dEtaInThresholds_tmp[2] = {0.004, 0.007};
180 double hoeThresholds_tmp[2] = {0.04, 0.025};
181 eidAssign(cutreliso, isoThresholds_tmp, 2);
182 eidAssign(cutdeta, dEtaInThresholds_tmp, 2);
183 eidAssign(cutdphi, dPhiInThresholds_tmp, 2);
185 eidAssign(cutsee, sigmaIEtaIEtaThresholds_tmp, 2);
191 double isoThresholds_tmp[2] = {0.05, 0.04};
192 double sigmaIEtaIEtaThresholds_tmp[2] = {0.01, 0.03};
193 double dPhiInThresholds_tmp[2] = {0.03, 0.02};
194 double dEtaInThresholds_tmp[2] = {0.003, 0.005};
195 double hoeThresholds_tmp[2] = {0.025, 0.012};
196 eidAssign(cutreliso, isoThresholds_tmp, 2);
197 eidAssign(cutdeta, dEtaInThresholds_tmp, 2);
198 eidAssign(cutdphi, dPhiInThresholds_tmp, 2);
200 eidAssign(cutsee, sigmaIEtaIEtaThresholds_tmp, 2);
206 double isoThresholds_tmp[2] = {0.04, 0.03};
207 double sigmaIEtaIEtaThresholds_tmp[2] = {0.01, 0.03};
208 double dPhiInThresholds_tmp[2] = {0.02, 0.02};
209 double dEtaInThresholds_tmp[2] = {0.0025, 0.003};
210 double hoeThresholds_tmp[2] = {0.025, 0.009};
211 eidAssign(cutreliso, isoThresholds_tmp, 2);
212 eidAssign(cutdeta, dEtaInThresholds_tmp, 2);
213 eidAssign(cutdphi, dPhiInThresholds_tmp, 2);
215 eidAssign(cutsee, sigmaIEtaIEtaThresholds_tmp, 2);
221 double isoThresholds_tmp[2] = {0.04, 0.03};
222 double sigmaIEtaIEtaThresholds_tmp[2] = {0.01, 0.03};
223 double dPhiInThresholds_tmp[2] = {0.03, 0.02};
224 double dEtaInThresholds_tmp[2] = {0.004, 0.005};
225 double hoeThresholds_tmp[2] = {0.025, 0.025};
226 eidAssign(cutreliso, isoThresholds_tmp, 2);
227 eidAssign(cutdeta, dEtaInThresholds_tmp, 2);
228 eidAssign(cutdphi, dPhiInThresholds_tmp, 2);
230 eidAssign(cutsee, sigmaIEtaIEtaThresholds_tmp, 2);
236 double isoThresholds_tmp[2] = {0.03, 0.02};
237 double sigmaIEtaIEtaThresholds_tmp[2] = {0.01, 0.03};
238 double dPhiInThresholds_tmp[2] = {0.025, 0.02};
239 double dEtaInThresholds_tmp[2] = {0.004, 0.005};
240 double hoeThresholds_tmp[2] = {0.025, 0.025};
241 eidAssign(cutreliso, isoThresholds_tmp, 2);
242 eidAssign(cutdeta, dEtaInThresholds_tmp, 2);
243 eidAssign(cutdphi, dPhiInThresholds_tmp, 2);
245 eidAssign(cutsee, sigmaIEtaIEtaThresholds_tmp, 2);
251 double isoThresholds_tmp[2] = {0.07, 0.06};
252 double sigmaIEtaIEtaThresholds_tmp[2] = {0.01, 0.03};
253 double dPhiInThresholds_tmp[2] = {0.06, 0.03};
254 double dEtaInThresholds_tmp[2] = {0.004, 0.007};
255 double hoeThresholds_tmp[2] = {0.04, 9999.};
256 eidAssign(cutreliso, isoThresholds_tmp, 2);
257 eidAssign(cutdeta, dEtaInThresholds_tmp, 2);
258 eidAssign(cutdphi, dPhiInThresholds_tmp, 2);
260 eidAssign(cutsee, sigmaIEtaIEtaThresholds_tmp, 2);
266 double isoThresholds_tmp[2] = { 0.09 , 0.06 };
267 double sigmaIEtaIEtaThresholds_tmp[2] = { 0.01 , 0.03 };
268 double dPhiInThresholds_tmp[2] = { 0.06 , 0.04 };
269 double dEtaInThresholds_tmp[2] = { 0.006 , 0.007 };
270 double hoeThresholds_tmp[2] = { 0.04 , 9999. };
271 eidAssign(cutreliso, isoThresholds_tmp, 2);
272 eidAssign(cutdeta, dEtaInThresholds_tmp, 2);
273 eidAssign(cutdphi, dPhiInThresholds_tmp, 2);
275 eidAssign(cutsee, sigmaIEtaIEtaThresholds_tmp, 2);
281 double isoThresholds_tmp[2] = { 0.09 , 0.06 };
282 double sigmaIEtaIEtaThresholds_tmp[2] = { 0.01 , 0.03 };
283 double dPhiInThresholds_tmp[2] = { 0.06 , 0.04 };
284 double dEtaInThresholds_tmp[2] = { 0.006 , 0.007 };
285 double hoeThresholds_tmp[2] = { 0.04 , 0.025 };
286 eidAssign(cutreliso, isoThresholds_tmp, 2);
287 eidAssign(cutdeta, dEtaInThresholds_tmp, 2);
288 eidAssign(cutdphi, dPhiInThresholds_tmp, 2);
290 eidAssign(cutsee, sigmaIEtaIEtaThresholds_tmp, 2);
296 double isoThresholds_tmp[2] = {0.04, 0.03};
297 double sigmaIEtaIEtaThresholds_tmp[2] = {0.01, 0.03};
298 double dPhiInThresholds_tmp[2] = {0.03, 0.02};
299 double dEtaInThresholds_tmp[2] = {0.004, 0.005};
300 double hoeThresholds_tmp[2] = {0.025, 9999.};
301 eidAssign(cutreliso, isoThresholds_tmp, 2);
302 eidAssign(cutdeta, dEtaInThresholds_tmp, 2);
303 eidAssign(cutdphi, dPhiInThresholds_tmp, 2);
305 eidAssign(cutsee, sigmaIEtaIEtaThresholds_tmp, 2);
310 double isoThresholds_tmp[2] = {0.1, 0.07};
311 double sigmaIEtaIEtaThresholds_tmp[2] = {0.01, 0.03};
312 double dPhiInThresholds_tmp[2] = {0.15, 0.10};
313 double dEtaInThresholds_tmp[2] = {0.007, 0.009};
314 double hoeThresholds_tmp[2] = {0.12, 0.10};
315 eidAssign(cutreliso, isoThresholds_tmp, 2);
316 eidAssign(cutdeta, dEtaInThresholds_tmp, 2);
317 eidAssign(cutdphi, dPhiInThresholds_tmp, 2);
319 eidAssign(cutsee, sigmaIEtaIEtaThresholds_tmp, 2);
325 double isoThresholds_tmp[2] = {0.1, 0.07};
326 double sigmaIEtaIEtaThresholds_tmp[2] = {0.01, 0.03};
327 double dPhiInThresholds_tmp[2] = {0.15, 0.10};
328 double dEtaInThresholds_tmp[2] = {0.007, 0.009};
329 double hoeThresholds_tmp[2] = {0.10, 0.075};
330 eidAssign(cutreliso, isoThresholds_tmp, 2);
331 eidAssign(cutdeta, dEtaInThresholds_tmp, 2);
332 eidAssign(cutdphi, dPhiInThresholds_tmp, 2);
334 eidAssign(cutsee, sigmaIEtaIEtaThresholds_tmp, 2);
340 double isoThresholds_tmp[2] = {0.15, 0.10};
341 double sigmaIEtaIEtaThresholds_tmp[2] = {0.01, 0.03};
342 double dPhiInThresholds_tmp[2] = {0.80, 0.70};
343 double dEtaInThresholds_tmp[2] = {0.007, 0.01};
344 double hoeThresholds_tmp[2] = {0.15, 999.};
345 eidAssign(cutreliso, isoThresholds_tmp, 2);
346 eidAssign(cutdeta, dEtaInThresholds_tmp, 2);
347 eidAssign(cutdphi, dPhiInThresholds_tmp, 2);
349 eidAssign(cutsee, sigmaIEtaIEtaThresholds_tmp, 2);
354 edm::LogError(
"InvalidInput") <<
"[eidGetVBTF] ERROR! Invalid tightness level";
360 void eidAssign(std::vector<double> &cutarr,
double cutvals[],
unsigned int size)
363 for (
unsigned int i = 0;
i <
size; ++
i) {
364 cutarr.push_back(cutvals[
i]);
369 void eidAssign(std::vector<bool> &cutarr,
bool cutvals[],
unsigned int size)
372 for (
unsigned int i = 0;
i <
size; ++
i) {
373 cutarr.push_back(cutvals[
i]);
380 for (
unsigned int i = 0;
i <
size; ++
i) {
381 cutarr.push_back(cutvals[
i]);
void eidGetVBTF(const vbtf_tightness tightness, std::vector< double > &cutdeta, std::vector< double > &cutdphi, std::vector< double > &cuthoe, std::vector< double > &cutsee, std::vector< double > &cutreliso)
void eidAssign(std::vector< double > &cutarr, double cutvals[], unsigned int size)
void eidGetWP2012(const wp2012_tightness tightness, std::vector< double > &cutdeta, std::vector< double > &cutdphi, std::vector< double > &cuthoe, std::vector< double > &cutsee, std::vector< double > &cutooemoop, std::vector< double > &cutd0vtx, std::vector< double > &cutdzvtx, std::vector< bool > &cutvtxfit, std::vector< int > &cutmhit, std::vector< double > &cutrelisohighpt, std::vector< double > &cutrelisolowpt)
tuple size
Write out results.