Skip to content
Snippets Groups Projects
Commit c3c5da65 authored by scott snyder's avatar scott snyder Committed by scott snyder
Browse files

TauAnalysisTools: Fix gcc11 warning.

Check result of dynamic_cast before dereferencing.
parent fc77c32d
No related branches found
No related tags found
No related merge requests found
......@@ -179,7 +179,10 @@ CP::CorrectionCode CommonSmearingTool::applyCorrection( xAOD::TauJet& xTau )
if (m_bApplyMVATES)
{
// veto MVA TES for unreasonably low resolution values
bool bVeto = dynamic_cast<CombinedP4FromRecoTaus*>(m_tCombinedP4FromRecoTaus.get())->getUseCaloPtFlag(xTau);
bool bVeto = false;
if (auto combp4 = dynamic_cast<CombinedP4FromRecoTaus*>(m_tCombinedP4FromRecoTaus.get())) {
bVeto = combp4->getUseCaloPtFlag(xTau);
}
if (xTau.nTracks() > 0 and xTau.nTracks() < 6)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment