Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
807c8a3
Updated ymlgen.py for scenario A model points and data
kaihonglaw Dec 20, 2023
c78f676
Merge and fix conflicts
kaihonglaw Feb 25, 2024
6d2c962
Updated ymlgen to include Scenario B1, B2 and C
kaihonglaw Feb 25, 2024
1a2de35
Merge branch 'master' of https://github.com/mieskolainen/icenet into …
kaihonglaw Mar 6, 2024
c4e0317
Upadated ymlgen for UL vector portal samples
kaihonglaw Mar 6, 2024
8edb45b
update ymlgen steering
mieskolainen Mar 7, 2024
36fc4f0
clean up
mieskolainen Mar 7, 2024
225035a
clean-up steering files
mieskolainen Mar 7, 2024
2abdcbd
clean-up steering files
mieskolainen Mar 7, 2024
55352c6
clean-up steering files
mieskolainen Mar 7, 2024
92d1e1e
Merge and solve conflicts
kaihonglaw Mar 7, 2024
1e890b7
Merge branch 'master' of https://github.com/mieskolainen/icenet into …
kaihonglaw Mar 7, 2024
679e955
Merge and fix conflicts
kaihonglaw Mar 7, 2024
b703a4a
Merge branch 'master' of https://github.com/mieskolainen/icenet into …
kaihonglaw Mar 11, 2024
346236c
Merge branch 'master' of https://github.com/mieskolainen/icenet into …
kaihonglaw Mar 12, 2024
ae07eb3
Merge branch 'master' of https://github.com/mieskolainen/icenet into …
kaihonglaw May 4, 2024
956fe6f
Merge branch 'master' of https://github.com/mieskolainen/icenet into …
kaihonglaw May 5, 2024
0264942
Merge branch 'master' of https://github.com/mieskolainen/icenet into …
kaihonglaw May 5, 2024
fb6256a
Merge branch 'master' of https://github.com/mieskolainen/icenet into …
kaihonglaw Aug 28, 2024
b6c879f
Added dR between muon SVs as input variable
kaihonglaw Aug 28, 2024
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
10 changes: 9 additions & 1 deletion icedqcd/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,15 @@ def splitfactor(x, y, w, ids, args, skip_graph=True, use_dequantize=True):

jagged_vars.append('muonSV_mass')
muonsv_vars.append('muonSV_mass')


## DeltaR between each muon SV and the leading muon SV
## (for the leading muon SV, it is computed w.r.t the origin)
data.x['muonSV', 'SVdeltaR'] = \
analytic.muonSV_deltaR(X=data.x['muonSV'], x='x', y='y', z='z')

jagged_vars.append('muonSV_SVdeltaR')
muonsv_vars.append('muonSV_SVdeltaR')

print(f"muonSV.fields = {data.x['muonSV'].fields}", 'yellow')

# -------------------------------------------------------------------------
Expand Down
31 changes: 31 additions & 0 deletions icenet/algo/analytic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# [email protected], 2024

import numpy as np
import awkward as ak
import numba
from scipy import special as special

Expand Down Expand Up @@ -54,6 +55,36 @@ def deltaR(x, eta1: str, eta2: str, phi1: str, phi2: str):

return np.sqrt(deltaEta**2 + deltaPhi**2)

def muonSV_deltaR(X, x: str, y: str, z: str):
"""
dR between each muon SV and the leading muon SV
(dR w.r.t. the origin for the leading muon SV)
"""

muonSV_phi = np.sign(X[y])*np.arccos(X[y]/np.sqrt((X[x])**2 + (X[y])**2))
muonSV_theta = np.arccos(X[z]/np.sqrt((X[x])**2 + (X[y])**2+(X[z])**2))
muonSV_eta = -np.log(np.tan(muonSV_theta/2))

muonSV_dphi = []
muonSV_deta = []
for i in range(len(muonSV_phi)):
dphi = []
deta = []
for j in range(len(muonSV_phi[i])):
if j == 0:
dphi.append(muonSV_phi[i][j])
deta.append(muonSV_eta[i][j])
else:
dphi.append(muonSV_phi[i][j] - muonSV_phi[i][0])
deta.append(muonSV_eta[i][j] - muonSV_eta[i][0])
muonSV_dphi.append(dphi)
muonSV_deta.append(deta)

muonSV_dphi = ak.Array(muonSV_dphi)
muonSV_dphi = phi_phasewrap(muonSV_dphi)
muonSV_deta = ak.Array(muonSV_deta)

return np.sqrt(muonSV_dphi**2 + muonSV_deta**2)

def fox_wolfram_boost_inv(p, L=10):
"""
Expand Down