Skip to content
Snippets Groups Projects
Commit 2e384ef2 authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'makeEndEventFilterOptional' into 'master'

[ATR-21790] Make filter status of DecisionSummaryMaker a configurable property

See merge request atlas/athena!35090
parents 6a76985f 80f33ae4
No related branches found
No related tags found
No related merge requests found
......@@ -146,7 +146,11 @@ StatusCode DecisionSummaryMakerAlg::execute(const EventContext& context) const {
// Set the algorithm's filter status. This controlls the running of finalisation algs which we only want to execute
// in events which are accepted by one ore more chains.
setFilterPassed( allPassingFinalIDs.size() > 0, context );
bool filterStatus = true;
if (m_setFilterStatus) {
filterStatus = (allPassingFinalIDs.size() > 0);
}
setFilterPassed(filterStatus, context );
return StatusCode::SUCCESS;
}
......
......@@ -47,6 +47,10 @@ private:
Gaudi::Property<bool> m_doCostMonitoring{this, "DoCostMonitoring", false,
"Enables end-of-event cost monitoring behavior."};
Gaudi::Property<bool> m_setFilterStatus{this, "SetFilterStatus", false,
"Enables chain-passed filter. This will cause the downstream EDMCreator to not run if no chains pass, saving CPU in rejected events. "
"Cannot be used in jobs producing RDO output."};
std::map<std::string, TrigCompositeUtils::DecisionIDContainer> m_collectionFilter;
};
......
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