Skip to content

Commit

Permalink
make_scaling function added
Browse files Browse the repository at this point in the history
  • Loading branch information
emcgrady committed Oct 9, 2024
1 parent 5d49ee5 commit 5dfc420
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions topcoffea/modules/histEFT.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,9 @@ def make_scaling(self, wc_list=None):
#slice off extra columns which do not correlate with an WCs
scaling = self.values(flow=True)[:,1:-1]
#divide off-diagonal elements by 2
for key in wcs.keys():
if key[0] != key[1]:
scaling[:,wcs[key]] /= 2
for (wc1,wc2),coeff_idx in wcs.items():
if wc1 != wc2:
scaling[:,coeff_idx] /= 2
return (scaling/np.expand_dims(scaling[:,0], 1)) #divide by sm

@classmethod
Expand Down

0 comments on commit 5dfc420

Please sign in to comment.