Skip to content
Snippets Groups Projects
Commit 4eed079b authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'muTrkFitIsMu' into 'master'

Check if MuPatHit identifier is a muon identifier

See merge request atlas/athena!34883
parents 52722fb6 a15a9ffa
No related branches found
No related tags found
No related merge requests found
......@@ -497,6 +497,12 @@ namespace Muon {
const Identifier& id = hit.info().id;
if( hit.info().status != MuPatHit::OnTrack || !id.is_valid() ) continue;
// in theory, there are only MuPatHit objects for MS hits
if (!m_idHelperSvc->isMuon(id)) {
ATH_MSG_WARNING("given Identifier "<<id.get_compact()<<" ("<<m_idHelperSvc->mdtIdHelper().print_to_string(id)<<") is not a muon Identifier, continuing");
continue;
}
MuonStationIndex::ChIndex chIndex = m_idHelperSvc->chamberIndex(id);
MuonStationIndex::StIndex stIndex = MuonStationIndex::toStationIndex( chIndex );
......
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