@@ -265,14 +265,8 @@ function main_looper(mytree, sumWeight, dict, models,
265
265
NN_score = model (BDT_input; fold = moded_event, region)
266
266
end
267
267
268
- cr_ZZ = sr_SF_inZ && MET < 10 && ! has_b
269
- cr_ttZ = has_b
270
- if cr_ZZ || cr_ttZ
271
- SR = - 1
272
- end
273
- cutflow_ptr[] += 1
274
-
275
268
if MET > 10 && NN_hist && shape_variation == " NOMINAL"
269
+ cutflow_ptr[] += 1
276
270
if sr_SF_inZ push! (dict[:SFinZCutFlow ], cutflow_ptr[]) end
277
271
if sr_SF_inZ push! (dict[:SFinZCutFlowWgt ], cutflow_ptr[], wgt_dict[:NOMINAL ]) end
278
272
if sr_SF_noZ push! (dict[:SFnoZCutFlow ], cutflow_ptr[]) end
@@ -281,7 +275,14 @@ function main_looper(mytree, sumWeight, dict, models,
281
275
if sr_DF push! (dict[:DFCutFlowWgt ], cutflow_ptr[], wgt_dict[:NOMINAL ]) end
282
276
end
283
277
278
+ wgt = wgt_dict[:NOMINAL ]
279
+ cr_ZZ = sr_SF_inZ && MET < 10 && ! has_b
280
+ cr_ttZ = has_b
281
+ if MET < 10 || cr_ZZ || cr_ttZ
282
+ SR = - 1
283
+ end
284
284
if NN_hist && ! arrow_making
285
+
285
286
region_prefix = if sr_SF_inZ
286
287
:SFinZ
287
288
elseif sr_SF_noZ
@@ -350,7 +351,6 @@ function main_looper(mytree, sumWeight, dict, models,
350
351
v_j_btag70, v_j_btag77, v_j_btag85, jet_btagCont_1, jet_btagCont_2, jet_btagCont_3, jet_btagCont_4, wgt, mcGenWgt,
351
352
sr_SF_inZ, sr_SF_noZ, sr_DF, cr_ZZ, cr_ttZ, event
352
353
else
353
- wgt = wgt_dict[:NOMINAL ]
354
354
@fill_dict! dict wgt push! pt_1, pt_2, pt_3, pt_4, eta_1, eta_2,
355
355
eta_3, eta_4, mass_4l, Zcand_mass, other_mass, METSig, MET, HT, leptonic_HT, total_HT, SR,
356
356
Z_eta, Z_phi, Z_pt, Z_rapidity, Njet
0 commit comments