Skip to content
Snippets Groups Projects
Commit 01df9603 authored by Johannes Elmsheuser's avatar Johannes Elmsheuser
Browse files

Merge branch 'atr-22468-2' into 'master'

Modify element index in L2Muon Hypo

See merge request atlas/athena!39405
parents 7d73f2fe 48d71884
No related branches found
No related tags found
No related merge requests found
......@@ -322,18 +322,17 @@ StatusCode TrigMufastHypoTool::inclusiveSelection(std::vector<TrigMufastHypoTool
StatusCode TrigMufastHypoTool::multiplicitySelection(std::vector<TrigMufastHypoTool::MuonClusterInfo>& toolInput) const{
HLT::Index2DVec passingSelection( m_ptBins.size() );
size_t elementIndex{ 0 };
for ( size_t cutIndex=0; cutIndex < m_ptBins.size(); ++cutIndex ) {
size_t elementIndex{ 0 };
for ( auto& i: toolInput ) {
if(!m_acceptAll && m_applyOR && !i.passOR) {
ATH_MSG_DEBUG("skip due to overap, DecisionID " << m_decisionId );
elementIndex++;
continue;
}
elementIndex = &i - &toolInput.front();
// If muon event has difference DecisionID, it shouldn't apply.
if ( TrigCompositeUtils::passed( m_decisionId.numeric(), i.previousDecisionIDs ) ) {
if ( decideOnSingleObject( i, cutIndex ) == true ) {
......@@ -345,6 +344,7 @@ StatusCode TrigMufastHypoTool::multiplicitySelection(std::vector<TrigMufastHypoT
} else {
ATH_MSG_DEBUG("Not match DecisionID " << m_decisionId );
}
elementIndex++;
}
// If no object passes the selection, multipul selection should stop.
......
......@@ -275,18 +275,17 @@ StatusCode TrigmuCombHypoTool::inclusiveSelection(std::vector<TrigmuCombHypoTool
StatusCode TrigmuCombHypoTool::multiplicitySelection(std::vector<TrigmuCombHypoTool::CombinedMuonInfo>& input) const
{
HLT::Index2DVec passingSelection( m_ptBins.size() );
size_t elementIndex{ 0 };
for ( size_t cutIndex=0; cutIndex < m_ptBins.size(); ++cutIndex ) {
size_t elementIndex{ 0 };
for ( auto& i: input ) {
if(!m_acceptAll && m_applyOR && !i.passOR) {
ATH_MSG_DEBUG("skip due to overap, DecisionID " << m_decisionId );
elementIndex++;
continue;
}
elementIndex = &i - &input.front();
// If muon event has difference DecisionID, it shouldn't apply.
if ( TrigCompositeUtils::passed( m_decisionId.numeric(), i.previousDecisionIDs ) ) {
if ( decideOnSingleObject( i, cutIndex ) == true ) {
......@@ -298,6 +297,7 @@ StatusCode TrigmuCombHypoTool::multiplicitySelection(std::vector<TrigmuCombHypoT
} else {
ATH_MSG_DEBUG("Not match DecisionID " << m_decisionId );
}
elementIndex++;
}
// If no object passes the selection, multipul selection should stop.
......
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