Skip to content

Commit 30923ef

Browse files
committed
add fjvt weight and systematics
1 parent 2f896a2 commit 30923ef

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/arrow_exfiltration.jl

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ function arrow_init()
5656
:Wlep2_phi => Float32[],
5757
:Wlep2_dphi => Float32[],
5858
:Wleps_deta => Float32[],
59-
:Wleps_dphi => Float32[],
6059
:Wlep2_pid => Int32[],
6160
:chisq => Float32[],
6261
:pt_4l => Float32[],

src/constants.jl

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ const SF_BRANCH_DICT = Dict(
5959
:v_m_wgtMedium => m_wgt_list,
6060
:v_j_wgt_btag77 => btag_wgt_list,
6161
:v_m_wgtTTVA => m_ttva_list,
62+
:w_sf_fjvt => [:JET_fJvtEfficiency__1down, :JET_fJvtEfficiency__1up]
6263
)
6364
const SHAPE_TREE_NAMES = [
6465
"EG_RESOLUTION_ALL__1down",

src/mainlooper.jl

+3-1
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ function main_looper(mytree, sumWeight, dict, pusher!, models,
135135
:weight; sfsys, pre_mask=1)
136136
make_sfsys_wgt!(evt, wgt_dict,
137137
:v_j_wgt_btag77, Colon() ; sfsys)
138+
make_sfsys_wgt!(evt, wgt_dict,
139+
:w_sf_fjvt; sfsys, pre_mask=1)
138140
# I hate indexing
139141
Z_pair_in_e = filter(<=(Nelec), Z_pair)
140142
Z_pair_in_m = filter!(>(0), Z_pair .- Nelec)
@@ -293,7 +295,7 @@ function main_looper(mytree, sumWeight, dict, pusher!, models,
293295
eta_2, eta_3, eta_4, phi_1, phi_2, phi_3, phi_4, Njet, mass_4l, Zcand_mass, other_mass, MET,
294296
METSig, METPhi, MET_dPhi, leptonic_HT, HT, total_HT, Zlep1_pt, Zlep1_eta, Zlep1_phi, Zlep1_dphi, Zlep1_pid,
295297
Zlep2_pt, Zlep2_eta, Zlep2_phi, Zlep2_dphi, Zlep2_pid, Wlep1_pt, Wlep1_eta, Wlep1_phi, Wlep1_dphi,
296-
Wlep1_pid, Wlep2_pt, Wlep2_eta, Wlep2_phi, Wlep2_dphi, Wlep2_pid, Wleps_deta, Wleps_dphi, chisq, pt_4l, jet_pt_1,
298+
Wlep1_pid, Wlep2_pt, Wlep2_eta, Wlep2_phi, Wlep2_dphi, Wlep2_pid, Wleps_deta, chisq, pt_4l, jet_pt_1,
297299
jet_pt_2, jet_pt_3, jet_pt_4, jet_eta_1, jet_eta_2, jet_eta_3, jet_eta_4, jet_phi_1, jet_phi_2,
298300
jet_phi_3, jet_phi_4, jet_m_1, jet_m_2, jet_m_3, jet_m_4, v_j_btagCont, v_j_btag60,
299301
v_j_btag70, v_j_btag77, v_j_btag85, jet_btagCont_1, jet_btagCont_2, jet_btagCont_3, jet_btagCont_4, wgt, mcGenWgt,

0 commit comments

Comments
 (0)