Skip to content
Snippets Groups Projects
Commit e98d6def authored by Christopher Rob Jones's avatar Christopher Rob Jones
Browse files

RichDLLs: Fix out-of-range access to array of counters

parent ac01d10d
No related branches found
No related tags found
No related merge requests found
Pipeline #6749488 passed
......@@ -66,7 +66,7 @@ namespace Rich::Future::Rec::Moni {
withR1 += ( pid->usedRich1Gas() && !pid->usedRich2Gas() );
withR2 += ( pid->usedRich2Gas() && !pid->usedRich1Gas() );
withR1R2 += ( pid->usedRich2Gas() && pid->usedRich1Gas() );
for ( const auto id : activeParticles() ) { aboveThres[id] += pid->isAboveThreshold( id ); }
for ( const auto id : activeParticlesNoBT() ) { aboveThres.at( id ) += pid->isAboveThreshold( id ); }
}
{
......@@ -79,7 +79,7 @@ namespace Rich::Future::Rec::Moni {
// Only fill if either X or Y in DLL(X-Y) is above threshold.
// note by design Y is always pion
if ( pid->isAboveThreshold( Rich::Pion ) || pid->isAboveThreshold( id ) ) {
fillHisto( h_dlls[id], pid->particleDeltaLL( id ) );
fillHisto( h_dlls.at( id ), pid->particleDeltaLL( id ) );
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment