Commit db093483 authored by Rosen Matev's avatar Rosen Matev
Browse files

Merge branch 'sponce_CountersNoMove' into 'master'

Adapted code to non movable, non copyable counters

See merge request Phys!1001

Moved from Phys@9d3cc5a0
parents 1a19c23b 79e3b110
......@@ -274,7 +274,7 @@ bool BremAdder::brem4particle( LHCb::Particle* particle, std::string const& what
// revert the particle momentum (as in Charged CombinedParticle)
if ( "remove" == what || force ) {
m_revBeamCorrCounter++;
++m_revBeamCorrCounter;
const LHCb::State* state = usedState( proto->track() );
StatusCode sc = m_p2s->state2Particle( *state, *particle );
particle->eraseInfo( LHCb::Particle::additionalInfo::HasBremAdded );
......
......@@ -210,7 +210,7 @@ bool FunctionalBremAdder::brem4particle( LHCb::Particle& particle, const std::ve
// revert the particle momentum (as in Charged CombinedParticle)
if ( force ) {
m_revBeamCorrCounter++;
++m_revBeamCorrCounter;
const LHCb::State* state = usedState( proto->track() );
m_p2s->state2Particle( *state, particle ).ignore();
}
......
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