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);