Commit 25e3c9f6 authored by Peter Berta's avatar Peter Berta
Browse files

Merge branch '22.0_mc20_fix-ATR-24344' into '22.0-mc20'

TrigPassBits CLID validity check in TrigBphysMonitoring

See merge request atlas/athena!47225
parents 95bc0a2f 5a9d5836
......@@ -1655,9 +1655,17 @@ StatusCode HLTXAODBphysMonTool::fillTriggerGroup(const std::string & groupName,
if ((bphys->level() != xAOD::TrigBphys::EF) && (bphys->level() != xAOD::TrigBphys::HLT)) continue;
if(bits) {
bool objPass = bits->isPassing( bphys, cont_bphys.cptr() );
ATH_MSG_DEBUG("TrigBphys object pass: " << objPass << ", mass: " << bphys->mass() );
if(!objPass) continue;
// A dirty check below, to fix ATR-24344:
// We want to avoid the wrong CLID exception thrown from Event/xAOD/xAODTrigger/xAODTrigger/versions/TrigPassBits_v1.icc,
// so we check validity of CLID here and if it is bad we just ignore TrigPassBits, issuing a warning
if(bits->containerClid()) {
bool objPass = bits->isPassing( bphys, cont_bphys.cptr() );
ATH_MSG_DEBUG("TrigBphys object pass: " << objPass << ", mass: " << bphys->mass() );
if(!objPass) continue;
}
else {
ATH_MSG_WARNING("Broken TrigPassBits with bits->containerClid() = " << bits->containerClid() << ", will not use it and take all combinations." );
}
}
fillTrigBphysHists(bphys,groupName, m_prefix,groupName,chainName, fullSetOfHists);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment