Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v29 rates] Add mass dimension and call mass in config #55

Merged
merged 2 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions rates/table/cfg/v29/v29_WITHMUONS_Final_clean_cfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ L1_DoubleEGEle:
obj: EG
L1_DoublePFJet_MassMin:
cross_masks:
- np.sqrt(2.0*leg2.et*leg1.et*(np.cosh(leg2.eta-leg1.eta)-np.cos(leg2.phi-leg1.phi)))>620.0
- (leg1+leg2).mass>620
leg1:
leg_mask:
- leg1.offline_pt >= 160.0
Expand Down Expand Up @@ -129,8 +129,8 @@ L1_DoubleTkMu4_SQ_OS_dR_Max1p2:
obj: gmtTkMuon
L1_DoubleTkMu4p5er2p0_SQ_OS_Mass7to18:
cross_masks:
- ((np.sqrt(2.0*leg2.et*leg1.et*(np.cosh(leg2.eta-leg1.eta)-np.cos(leg2.phi-leg1.phi)))>7.0) & (leg1.deltaR(leg2)>0))
- ((np.sqrt(2.0*leg2.et*leg1.et*(np.cosh(leg2.eta-leg1.eta)-np.cos(leg2.phi-leg1.phi)))<18.0) & (leg1.deltaR(leg2)>0))
- (((leg1+leg2).mass>7.0) & (leg1.deltaR(leg2)>0))
- (((leg1+leg2).mass<18.0) & (leg1.deltaR(leg2)>0))
- ((leg1.chg*leg2.chg<0.0) & (leg1.deltaR(leg2)>0))
- ((abs(leg2.z0-leg1.z0)<1) & (leg1.deltaR(leg2)>0))
leg1:
Expand Down Expand Up @@ -637,7 +637,7 @@ L1_TripleTkMu:
obj: gmtTkMuon
L1_TripleTkMu_5SQ_3SQ_0OQ_DoubleMu_5_3_SQ_OS_Mass_Max9:
cross_masks:
- np.sqrt(2.0*leg2.et*leg1.et*(np.cosh(leg2.eta-leg1.eta)-np.cos(leg2.phi-leg1.phi)))<9.0
- (leg1+leg2).mass<9.0
- leg1.chg*leg2.chg<0.0
- abs(leg2.z0-leg1.z0)<1
- abs(leg3.z0-leg1.z0)<1
Expand All @@ -663,8 +663,8 @@ L1_TripleTkMu_5_3p5_2p5_OS_Mass_5to17:
cross_masks:
- abs(leg2.z0-leg1.z0)<1
- leg1.chg*leg3.chg<0.0
- np.sqrt(2.0*leg3.et*leg1.et*(np.cosh(leg3.eta-leg1.eta)-np.cos(leg3.phi-leg1.phi)))>5.0
- np.sqrt(2.0*leg3.et*leg1.et*(np.cosh(leg3.eta-leg1.eta)-np.cos(leg3.phi-leg1.phi)))<17.0
- (leg1+leg3).mass>5.0
- (leg1+leg3).mass<17.0
- abs(leg3.z0-leg1.z0)<1
leg1:
leg_mask:
Expand Down
4 changes: 3 additions & 1 deletion rates/table/menu_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ def scale_pt(self, obj, arr):
arr["pt"] = arr[""]
arr["offline_pt"] = arr.pt

if "eta" in arr.fields: arr = ak.with_name(arr, "Momentum3D")
if "eta" in arr.fields:
arr["mass"] = 0.0*ak.ones_like(arr["eta"])
arr = ak.with_name(arr, "Momentum4D")

arr["idx"] = ak.local_index(arr)
return arr
Expand Down