Skip to content

Commit 10c97ae

Browse files
authored
Merge pull request #18 from jmduarte/convert_jmr_values
convert JMR values
2 parents fb15d1f + c8ed759 commit 10c97ae

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

boostedhiggs/corrections.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,12 +738,20 @@ def pad_val(
738738

739739
# jet mass resolution: https://twiki.cern.ch/twiki/bin/view/CMS/JetWtagging
740740
# nominal, down, up (these are switched in the github!!!)
741-
jmrValues["msoftdrop"] = {
741+
jmrValues["msoftdrop_twiki"] = {
742742
"2016": [1.0, 0.8, 1.2],
743743
"2017": [1.09, 1.04, 1.14],
744744
# Use 2017 values for 2018 until 2018 are released
745745
"2018": [1.09, 1.04, 1.14],
746746
}
747+
# convert from SF on sigma to value to smear mass by
748+
# note: clamped to 1.0 (so 2016 JMR down needs to be interpolated by combine)
749+
jmrValues["msoftdrop"] = {}
750+
for year in jmrValues["msoftdrop_twiki"]:
751+
rel_res = 0.12 if year == "2016" else 0.10
752+
jmrValues["msoftdrop"][year] = [
753+
1 + np.sqrt(max(sf_res**2 - 1, 0)) * rel_res for sf_res in jmrValues["msoftdrop_twiki"][year]
754+
]
747755

748756
# jet mass scale
749757
# W-tagging PUPPI softdrop JMS values: https://twiki.cern.ch/twiki/bin/view/CMS/JetWtagging

0 commit comments

Comments
 (0)