diff --git a/Trigger/TrigSteer/TrigOutputHandling/src/TriggerEDMDeserialiserAlg.cxx b/Trigger/TrigSteer/TrigOutputHandling/src/TriggerEDMDeserialiserAlg.cxx index 1779f88336e3b7986dccdfd93485b07475779ba6..d7a5a53be823a046d04877c8c94f8b36e5a82b65 100644 --- a/Trigger/TrigSteer/TrigOutputHandling/src/TriggerEDMDeserialiserAlg.cxx +++ b/Trigger/TrigSteer/TrigOutputHandling/src/TriggerEDMDeserialiserAlg.cxx @@ -304,12 +304,13 @@ void TriggerEDMDeserialiserAlg::add_bs_streamerinfos(){ TFile extFile(extFilePath.c_str()); m_streamerInfoList = std::unique_ptr<TList>(extFile.GetStreamerInfoList()); for(const auto&& infObj: *m_streamerInfoList) { - auto inf = (TStreamerInfo*)infObj; - TString t_name=inf->GetName(); + TString t_name=infObj->GetName(); if (t_name.BeginsWith("listOfRules")){ ATH_MSG_WARNING( "Could not re-load class " << t_name ); continue; } + + TStreamerInfo* inf = dynamic_cast<TStreamerInfo*>(infObj); inf->BuildCheck(); TClass *cl = inf->GetClass(); if (cl)