Skip to content

Commit

Permalink
[RF] Fix copy-paste error in RooDataSet::binnedClone
Browse files Browse the repository at this point in the history
The branch when newTitle is `nullptr` should modify the title of the new `RooDataHist` and not its name
  • Loading branch information
elusian authored and guitargeek committed Oct 11, 2022
1 parent d8395fc commit 5568f61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roofit/roofitcore/src/RooDataSet.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ RooDataHist* RooDataSet::binnedClone(const char* newName, const char* newTitle)
if (newTitle) {
title = newTitle ;
} else {
name = std::string(GetTitle()) + "_binned" ;
title = std::string(GetTitle()) + "_binned" ;
}

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

0 comments on commit 5568f61

Please sign in to comment.