From 59f9f1c9573774a98e8e420505d28c38f72fc8a5 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Thu, 12 Nov 2026 16:45:47 +0100 Subject: [PATCH] DPL: avoid InheritsFrom call --- Framework/Core/src/ASoA.cxx | 2 +- Framework/Core/src/DataRefUtils.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Framework/Core/src/ASoA.cxx b/Framework/Core/src/ASoA.cxx index 26e250af64163..9c0821dbd0462 100644 --- a/Framework/Core/src/ASoA.cxx +++ b/Framework/Core/src/ASoA.cxx @@ -286,7 +286,7 @@ void* extractCCDBPayload(char* payload, size_t size, TClass const* cl, const cha auto result = object; // We need to handle some specific cases as ROOT ties them deeply // to the file they are contained in - if (cl->InheritsFrom("TObject")) { + if (cl->IsTObject()) { // make a clone // detach from the file auto tree = dynamic_cast((TObject*)object); diff --git a/Framework/Core/src/DataRefUtils.cxx b/Framework/Core/src/DataRefUtils.cxx index 0b5aee4287abb..6f583cd148d0d 100644 --- a/Framework/Core/src/DataRefUtils.cxx +++ b/Framework/Core/src/DataRefUtils.cxx @@ -62,7 +62,7 @@ void* extractFromTFile(TFile& file, TClass const* cl, const char* what) auto result = object; // We need to handle some specific cases as ROOT ties them deeply // to the file they are contained in - if (cl->InheritsFrom("TObject")) { + if (cl->IsTObject()) { // make a clone // detach from the file auto tree = dynamic_cast((TObject*)object);