Skip to content

Commit b13756d

Browse files
elusianguitargeek
authored andcommitted
[RF] Fix copy-paste error in RooDataSet::binnedClone
The branch when newTitle is `nullptr` should modify the title of the new `RooDataHist` and not its name
1 parent 7b78c81 commit b13756d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roofit/roofitcore/src/RooDataSet.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ RooDataHist* RooDataSet::binnedClone(const char* newName, const char* newTitle)
939939
if (newTitle) {
940940
title = newTitle ;
941941
} else {
942-
name = std::string(GetTitle()) + "_binned" ;
942+
title = std::string(GetTitle()) + "_binned" ;
943943
}
944944

945945
return new RooDataHist(name,title,*get(),*this) ;

0 commit comments

Comments
 (0)