Skip to content
Snippets Groups Projects
Commit ad3a50f9 authored by Tamara Vazquez Schroeder's avatar Tamara Vazquez Schroeder
Browse files

Merge branch 'revert-0d95f1d1' into '21.0'

Revert "Merge branch 'ATLASRECTS_4483' into '21.0'"

See merge request atlas/athena!11964

Former-commit-id: 5dc8fc03fc250b2d61a6876adc8d53838f2287d8
parents d77bb4be 94514e4e
No related branches found
No related tags found
No related merge requests found
......@@ -938,18 +938,17 @@ namespace Muon {
bool remove = hit->chId == chId && ( (removePhi && measuresPhi) || (removeEta && !measuresPhi) );
// hits that are flagged as outlier or hits in the chamber to be removed are added as Outlier
if( !hit->useInFit || remove ){
hit->useInFit = 0;
if( msgLvl(MSG::DEBUG) && remove ) msg() << MSG::DEBUG << " removing hit " << m_idHelper->toString(hit->id)
<< " pull " << hit->resPull->pull().front() << endmsg;
// add as outlier
if( hit->inBounds ) tsos->push_back( MuonTSOSHelper::cloneTSOSWithUpdate( *hit->originalState,
*hit->meas,
*hit->pars,
Trk::TrackStateOnSurface::Outlier) );
*hit->meas,
*hit->pars,
Trk::TrackStateOnSurface::Outlier) );
// if removed, add hit to vector of hits
//but only if the hit was not already an outlier to be skipped!
if( remove && hit->useInFit) result.removedHits.push_back(&*hit);
hit->useInFit = 0;
if( remove ) result.removedHits.push_back(&*hit);
continue;
}
}
......@@ -968,12 +967,12 @@ namespace Muon {
// fit new track
if ( msgLvl(MSG::DEBUG) ) {
const DataVector<const Trk::TrackStateOnSurface>* states = cleanedTrack->trackStateOnSurfaces();
const DataVector<const Trk::TrackStateOnSurface>* states = track.trackStateOnSurfaces();
int nStates = 0;
if ( states ) nStates = states->size();
msg() << MSG::DEBUG << "removeChamber: Calling fit with hits: " << nStates;
if ( msgLvl(MSG::VERBOSE) ) {
msg() << MSG::VERBOSE << std::endl << m_printer->printMeasurements( *cleanedTrack );
msg() << MSG::VERBOSE << std::endl << m_printer->printMeasurements( track );
}
msg() << endmsg;
if( !cleanedTrack->perigeeParameters() ){
......
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