File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments