Skip to content

Commit 15c1517

Browse files
Merge branch 'nickmccoll-fixFor_TObjectClone_withoutName' into 102x
2 parents 934ce51 + 7e98b4f commit 15c1517

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python/ShapeTools.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,7 @@ def getShape(self,channel,process,syst="",_cache={},allowNoSyst=False):
515515
if allowNoSyst: return None
516516
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])
517517
# Fix the fact that more than one entry can refer to the same object
518-
ret = ret.Clone()
519-
ret.SetName("shape%s_%s_%s%s" % (postFix,process,channel, "_"+syst if syst else ""))
518+
ret = ret.Clone("shape%s_%s_%s%s" % (postFix,process,channel, "_"+syst if syst else ""))
520519
if self.options.optimizeMHDependency and ret.InheritsFrom("RooAbsReal"):
521520
ret = self.optimizeMHDependency(ret,self.wsp)
522521
_cache[(channel,process,syst)] = ret

0 commit comments

Comments
 (0)