diff --git a/Reconstruction/MET/METUtilities/Root/METSignificance.cxx b/Reconstruction/MET/METUtilities/Root/METSignificance.cxx index e1a0fce43ebc4ec8bdede04f331292f3017fbf38..21e5558d7517505e2dafd2d233d0be3c65d8406f 100644 --- a/Reconstruction/MET/METUtilities/Root/METSignificance.cxx +++ b/Reconstruction/MET/METUtilities/Root/METSignificance.cxx @@ -562,7 +562,9 @@ namespace met { } else{ const xAOD::TauJet* tau(static_cast<const xAOD::TauJet*>(obj)); - pt_reso = dynamic_cast<CombinedP4FromRecoTaus*>(m_tCombinedP4FromRecoTaus.get())->getCaloResolution(*tau); + if (auto combp4 = dynamic_cast<CombinedP4FromRecoTaus*>(m_tCombinedP4FromRecoTaus.get())) { + pt_reso = combp4->getCaloResolution(*tau); + } if(m_doPhiReso) phi_reso = tau->pt()*0.01; ATH_MSG_VERBOSE("tau: " << pt_reso << " " << tau->pt() << " " << tau->p4().Eta() << " " << tau->p4().Phi() << " phi reso: " << phi_reso);