Skip to content
Snippets Groups Projects
Commit 4d2a25b6 authored by James Beacham's avatar James Beacham
Browse files

Merge branch 'ATLASRECTS-4510' into '21.0'

Fix for ATLASRECTS-4510

See merge request atlas/athena!13479

Former-commit-id: 98735bd6ad82ed115e4a943e227e76c2c70c9427
parents 7ccf1260 1f287a7b
No related branches found
No related tags found
No related merge requests found
......@@ -997,7 +997,7 @@ namespace Muon {
}
Trk::Track* MuonTrackCleaner::outlierRecovery( Trk::Track& track, MuonStationIndex::ChIndex* currentIndex ) const {
Trk::Track* MuonTrackCleaner::outlierRecovery( Trk::Track& track, MuonStationIndex::ChIndex* currentIndex ) const {
const Trk::Perigee* perigee = track.perigeeParameters();
......@@ -1060,7 +1060,6 @@ namespace Muon {
if( !hit->useInFit ){
if( hit->inBounds ){
if( recoverableLayers.count(hit->chIndex) ) {
// check whether we can savely add hits in this chamber to the track
bool recover = !isOutsideOnTrackCut( hit->id, hit->residual,hit->pull,m_associationScaleFactor ) ? true : false;
if( recover && m_onlyUseHitErrorInRecovery && hit->pars ){
......@@ -1096,8 +1095,12 @@ namespace Muon {
tsos->push_back( hit->originalState->clone() );
}
}
//layer not recoverable, drop the outliers: but if RPC, TGC, or CSC, expect track to go through all layers, so add a hole instead
if(m_idHelper->isRpc(hit->id) || m_idHelper->isTgc(hit->id) || m_idHelper->isCsc(hit->id)) tsos->push_back(MuonTSOSHelper::createHoleTSOS(hit->pars->clone()));
}else{
++removedOutOfBoundsHits;
//if RPC, TGC, or CSC, expect track to go through all layers: add a hole to replace lost outlier
if(m_idHelper->isRpc(hit->id) || m_idHelper->isTgc(hit->id) || m_idHelper->isCsc(hit->id)) tsos->push_back(MuonTSOSHelper::createHoleTSOS(hit->pars->clone()));
if( msgLvl(MSG::DEBUG) ) {
msg() << MSG::DEBUG << " removing out of bounds outlier " << m_idHelper->toString(hit->id)
<< " pull " << std::setw(7) << hit->pull << endmsg;
......@@ -1120,7 +1123,6 @@ namespace Muon {
return 0;
}
// create new track
Trk::Track* cleanedTrack = new Trk::Track( track.info(), tsos, track.fitQuality() ? track.fitQuality()->clone():0 );
......
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