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 201 of file NswSegmentFinderAlg.cxx.
201#define TEST_HIT_CORRIDOR(LAYER, HIT_ITER, START_LAYER) \
202{ \
203 const SpacePoint* testMe = combinatoricLayers[LAYER].get()[HIT_ITER]; \
204 if (usedHits[LAYER].get()[HIT_ITER] > m_maxUsed) { \
205 ATH_MSG_VERBOSE(__func__<<":"<<__LINE__<<" - " \
206 <<m_idHelperSvc->toString(testMe->identify()) \
207 <<" already used in good seed." ); \
208 continue; \
209 } \
210 const HitWindow inWindow = hitFromIPCorridor(*testMe, beamSpot, dirEstUp, dirEstDn); \
211 if(inWindow == HitWindow::tooHigh) { \
212 ATH_MSG_VERBOSE(__func__<<":"<<__LINE__<<" - Hit " \
213 <<m_idHelperSvc->toString(testMe->identify()) \
214 <<" is beyond the corridor. Break loop"); \
215 break; \
216 } else if (inWindow == HitWindow::tooLow) { \
217 START_LAYER = HIT_ITER + 1; \
218 ATH_MSG_VERBOSE(__func__<<":"<<__LINE__<<" - Hit " \
219 <<m_idHelperSvc->toString(testMe->identify()) \
220 <<" is still below the corridor. Update start to " \
221 <<START_LAYER); \
222 continue; \
223 } \
224}