Skip to content

Commit 2f896a2

Browse files
committed
sync with Zhichen, fix W_lep order
1 parent 4fd2d70 commit 2f896a2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/ana.jl

+8-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,12 @@ function Find_Z_Pairs(v_l_pids, v_l_tlv)
1515
end
1616
end
1717
end
18-
return Z_pair, setdiff(1:4, Z_pair), M
18+
W_pair = setdiff(1:4, Z_pair)
19+
20+
# order W lep by pT
21+
if pt(v_l_tlv[W_pair[1]]) < pt(v_l_tlv[W_pair[2]])
22+
W_pair[1], W_pair[2] = W_pair[2], W_pair[1]
23+
end
24+
25+
return Z_pair, W_pair, M
1926
end

src/mainlooper.jl

-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ function main_looper(mytree, sumWeight, dict, pusher!, models,
202202
Wlep1_dphi = LorentzVectorHEP.phi_mpi_pi(Z_phi - Wlep1_phi)
203203
Wlep2_dphi = LorentzVectorHEP.phi_mpi_pi(Z_phi - Wlep2_phi)
204204
Wleps_deta = abs(Wlep1_eta - Wlep2_eta)
205-
Wleps_dphi = LorentzVectorHEP.phi_mpi_pi(Wlep1_phi - Wlep2_phi)
206205
pt_4l = pt(sum(v_l_tlv))
207206

208207
MET_dPhi = LorentzVectorHEP.phi_mpi_pi(Z_phi - METPhi)

0 commit comments

Comments
 (0)