Skip to content

Commit e8788cd

Browse files
authored
add MET>10 requirement for all SR (#102)
1 parent 52f8af8 commit e8788cd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

WVZAnalysisCore/src/mainlooper.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,8 @@ function main_looper(mytree, sumWeight, dict, models,
265265
NN_score = model(BDT_input; fold = moded_event, region)
266266
end
267267

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-
275268
if MET > 10 && NN_hist && shape_variation == "NOMINAL"
269+
cutflow_ptr[] += 1
276270
if sr_SF_inZ push!(dict[:SFinZCutFlow], cutflow_ptr[]) end
277271
if sr_SF_inZ push!(dict[:SFinZCutFlowWgt], cutflow_ptr[], wgt_dict[:NOMINAL]) end
278272
if sr_SF_noZ push!(dict[:SFnoZCutFlow], cutflow_ptr[]) end
@@ -281,7 +275,14 @@ function main_looper(mytree, sumWeight, dict, models,
281275
if sr_DF push!(dict[:DFCutFlowWgt], cutflow_ptr[], wgt_dict[:NOMINAL]) end
282276
end
283277

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
284284
if NN_hist && !arrow_making
285+
285286
region_prefix = if sr_SF_inZ
286287
:SFinZ
287288
elseif sr_SF_noZ
@@ -350,7 +351,6 @@ function main_looper(mytree, sumWeight, dict, models,
350351
v_j_btag70, v_j_btag77, v_j_btag85, jet_btagCont_1, jet_btagCont_2, jet_btagCont_3, jet_btagCont_4, wgt, mcGenWgt,
351352
sr_SF_inZ, sr_SF_noZ, sr_DF, cr_ZZ, cr_ttZ, event
352353
else
353-
wgt = wgt_dict[:NOMINAL]
354354
@fill_dict! dict wgt push! pt_1, pt_2, pt_3, pt_4, eta_1, eta_2,
355355
eta_3, eta_4, mass_4l, Zcand_mass, other_mass, METSig, MET, HT, leptonic_HT, total_HT, SR,
356356
Z_eta, Z_phi, Z_pt, Z_rapidity, Njet

0 commit comments

Comments
 (0)