diff --git a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkJetEtMiss/python/ExtendedJetCommon.py b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkJetEtMiss/python/ExtendedJetCommon.py index c6ec6b1a99dce19e309cb2bf1ecefcd09795c212..90fd39d0e95472342afa49bcb93903d01c9bfab2 100644 --- a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkJetEtMiss/python/ExtendedJetCommon.py +++ b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkJetEtMiss/python/ExtendedJetCommon.py @@ -288,7 +288,7 @@ def applyJetCalibration(jetalg,algname,sequence,largeRjetconfig = 'comb', suffix if (not isMC) and jetalg_basename in ['AntiKt4EMTopo','AntiKt4LCTopo','AntiKt4EMPFlow']: isdata=True - if not jetalg_basename=='AntiKt4LCTopo': calibseq = calibseq[:-6]+'_Insitu' + if not jetalg_basename=='AntiKt4LCTopo': calibseq = calibseq+'_Insitu' calibtool = CfgMgr.JetCalibrationTool( calibtoolname, diff --git a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkJetEtMiss/python/JetCommon.py b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkJetEtMiss/python/JetCommon.py index 1fffbcfe03d18fc54349e02dab6806e6cd5c1d92..08edf7e56256a71b21cf42d66d6f65b9e6b30597 100644 --- a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkJetEtMiss/python/JetCommon.py +++ b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkJetEtMiss/python/JetCommon.py @@ -264,7 +264,9 @@ def buildGenericGroomAlg(jetalg, rsize, inputtype, groomedName, jetToolBuilder, # 2nd step run the trimming alg. We can re-use the original largeR jet since we reassociated the PseudoJet already. fatjet_groom = jetToolBuilder(groomedName, ungroomedName) - fatjet_rectool = [t for t in finderalg.Tools if t.name() == ungroomedName][0] + print (finderalg.Tools) + print (ungroomedName) + fatjet_rectool = [t for t in finderalg.Tools if t.name().endswith(ungroomedName)][0] fatjet_groom.InputPseudoJets = fatjet_rectool.InputPseudoJets # recopy the InputPseudoJets so tools know how to map fastjet constituents with xAOD constituents