Skip to content

Commit 5a2d061

Browse files
authored
Allow for TEfficiency merging (#7389)
1 parent 50336fe commit 5a2d061

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Utilities/Mergers/src/MergerAlgorithm.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <THnSparse.h>
2727
#include <TObjArray.h>
2828
#include <TGraph.h>
29+
#include <TEfficiency.h>
2930

3031
namespace o2::mergers::algorithm
3132
{
@@ -85,6 +86,8 @@ void merge(TObject* const target, TObject* const other)
8586
errorCode = reinterpret_cast<TTree*>(target)->Merge(&otherCollection);
8687
} else if (target->InheritsFrom(TGraph::Class())) {
8788
errorCode = reinterpret_cast<TGraph*>(target)->Merge(&otherCollection);
89+
} else if (target->InheritsFrom(TEfficiency::Class())) {
90+
errorCode = reinterpret_cast<TEfficiency*>(target)->Merge(&otherCollection);
8891
} else {
8992
throw std::runtime_error("Object with type '" + std::string(target->ClassName()) + "' is not one of the mergeable types.");
9093
}

0 commit comments

Comments
 (0)