Value:{ \
const SpacePoint* testMe = combinatoricLayers[LAYER].get()[HIT_ITER]; \
if (usedHits[LAYER].
get()[HIT_ITER] > m_maxUsed) { \
ATH_MSG_VERBOSE(__func__<<":"<<__LINE__<<" - " \
<<m_idHelperSvc->toString(testMe->identify()) \
<<" already used in good seed." ); \
continue; \
} \
const HitWindow inWindow = hitFromIPCorridor(*testMe, beamSpot, dirEstUp, dirEstDn); \
if(inWindow == HitWindow::tooHigh) { \
ATH_MSG_VERBOSE(__func__<<":"<<__LINE__<<" - Hit " \
<<m_idHelperSvc->toString(testMe->identify()) \
<<" is beyond the corridor. Break loop"); \
break; \
} else if (inWindow == HitWindow::tooLow) { \
START_LAYER = HIT_ITER + 1; \
ATH_MSG_VERBOSE(__func__<<":"<<__LINE__<<" - Hit " \
<<m_idHelperSvc->toString(testMe->identify()) \
<<" is still below the corridor. Update start to " \
<<START_LAYER); \
continue; \
} \
}
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
Macro to check whether a hit is compatible with the hit corridor.
Definition at line 197 of file NswSegmentFinderAlg.cxx.
197#define TEST_HIT_CORRIDOR(LAYER, HIT_ITER, START_LAYER) \
198{ \
199 const SpacePoint* testMe = combinatoricLayers[LAYER].get()[HIT_ITER]; \
200 if (usedHits[LAYER].get()[HIT_ITER] > m_maxUsed) { \
201 ATH_MSG_VERBOSE(__func__<<":"<<__LINE__<<" - " \
202 <<m_idHelperSvc->toString(testMe->identify()) \
203 <<" already used in good seed." ); \
204 continue; \
205 } \
206 const HitWindow inWindow = hitFromIPCorridor(*testMe, beamSpot, dirEstUp, dirEstDn); \
207 if(inWindow == HitWindow::tooHigh) { \
208 ATH_MSG_VERBOSE(__func__<<":"<<__LINE__<<" - Hit " \
209 <<m_idHelperSvc->toString(testMe->identify()) \
210 <<" is beyond the corridor. Break loop"); \
211 break; \
212 } else if (inWindow == HitWindow::tooLow) { \
213 START_LAYER = HIT_ITER + 1; \
214 ATH_MSG_VERBOSE(__func__<<":"<<__LINE__<<" - Hit " \
215 <<m_idHelperSvc->toString(testMe->identify()) \
216 <<" is still below the corridor. Update start to " \
217 <<START_LAYER); \
218 continue; \
219 } \
220}