diff --git a/Utilities/Mergers/src/MergerAlgorithm.cxx b/Utilities/Mergers/src/MergerAlgorithm.cxx index 9395dd0a2b3f7..2cd09712e4a81 100644 --- a/Utilities/Mergers/src/MergerAlgorithm.cxx +++ b/Utilities/Mergers/src/MergerAlgorithm.cxx @@ -111,7 +111,7 @@ Long64_t mergeDefault(TObject* const target, TObject* const other) // Merge() does not support averages, we have to use Add() // this will break if collection.size != 1 if (auto otherTH1 = dynamic_cast(otherCollection.First())) { - errorCode = targetTH1->Add(otherTH1); + errorCode = targetTH1->Add(otherTH1) == kFALSE ? -1 : 0; } } else { // Add() does not support histograms with labels, thus we resort to Merge() by default