Skip to content
Snippets Groups Projects
Commit 733768bf authored by Philip Adsley's avatar Philip Adsley Committed by GitHub
Browse files

Fix logic error in W1 strip matching

The condition was:

 if (m_PreTreatedData->GetFrontTStripNbr(couple[i].X()) == m_PreTreatedData->GetFrontTStripNbr(t) ||
                m_PreTreatedData->GetFrontTDetectorNbr(couple[i].X()) == m_PreTreatedData->GetFrontTDetectorNbr(t))

i.e., if the strip number is the same or the detector number is the same.

This has been modified to:

 if (m_PreTreatedData->GetFrontTStripNbr(couple[i].X()) == m_PreTreatedData->GetFrontTStripNbr(t) &&
                m_PreTreatedData->GetFrontTDetectorNbr(couple[i].X()) == m_PreTreatedData->GetFrontTDetectorNbr(t))

i.e. the strip number and detector number should both be the same.
parent 6945ceb6
No related branches found
No related tags found
Loading
Loading
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