Skip to content
Snippets Groups Projects
Commit 19a9db7e authored by Jonathan Bossio's avatar Jonathan Bossio
Browse files

Minor fixes

parent 1f9e501b
No related branches found
No related tags found
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!38920Small redesign of jet chain dict keys
......@@ -46,7 +46,7 @@ def extractRecoDict(chainParts):
# Translate the reco dict to a string for suffixing etc
def jetRecoDictToString(jetRecoDict):
strtemp = "{recoAlg}_{constitMod}_{constitType}_{clusterCalib}_{jetCalib}"
strtemp = "{recoAlg}_{constitMod}{constitType}_{clusterCalib}_{jetCalib}"
if jetRecoDict["trkopt"] != "notrk":
strtemp += "_{trkopt}_{trkpresel}"
return strtemp.format(**jetRecoDict)
......
......@@ -39,15 +39,15 @@ log = logging.getLogger(__name__)
def jetRecoDictForMET(**recoDict):
""" Get a jet reco dict that's usable for the MET slice """
jrd = {k: recoDict.get(k, JetChainParts_Default[k]) for k in jetRecoKeys}
# For various reasons, we can store the constituent modifiers separately
# to the data type, so we have to add that back in
jrd["constitMod"] = recoDict.get("constitmod", "")
if "jetDataType" in recoDict:
# Allow for the renaming dataType -> jetDataType
jrd["constitType"] = recoDict["jetDataType"]
jrd["constitType"] = recoDict["jetDataType"].replace(jrd["constitMod"],"") # strip constitMod from jetDataType
if jrd["constitType"] == "pf":
# We only use em calibration for PFOs
jrd["clusterCalib"] = "em"
# For various reasons, we can store the constituent modifiers separately
# to the data type, so we have to add that back in
jrd["constitMod"] = recoDict.get("constitmod", "")
if jrd["jetCalib"] == "default":
jrd["jetCalib"] = interpretJetCalibDefault(jrd)
return jrd
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment