Skip to content

Commit

Permalink
Merge branch 'nickmccoll-fixFor_TObjectClone_withoutName' into 102x
Browse files Browse the repository at this point in the history
  • Loading branch information
nucleosynthesis committed Mar 30, 2020
2 parents 934ce51 + 7e98b4f commit 15c1517
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/ShapeTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,7 @@ def getShape(self,channel,process,syst="",_cache={},allowNoSyst=False):
if allowNoSyst: return None
raise RuntimeError, "Object %s in workspace %s in file %s does not exist or it's neither a data nor a pdf" % (oname, wname, finalNames[0])
# Fix the fact that more than one entry can refer to the same object
ret = ret.Clone()
ret.SetName("shape%s_%s_%s%s" % (postFix,process,channel, "_"+syst if syst else ""))
ret = ret.Clone("shape%s_%s_%s%s" % (postFix,process,channel, "_"+syst if syst else ""))
if self.options.optimizeMHDependency and ret.InheritsFrom("RooAbsReal"):
ret = self.optimizeMHDependency(ret,self.wsp)
_cache[(channel,process,syst)] = ret
Expand Down

0 comments on commit 15c1517

Please sign in to comment.