{ \
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.
190#define TEST_HIT_CORRIDOR(LAYER, HIT_ITER, START_LAYER) \
191{ \
192 const SpacePoint* testMe = combinatoricLayers[LAYER].get()[HIT_ITER]; \
193 if (usedHits[LAYER].get()[HIT_ITER] > m_maxUsed) { \
194 ATH_MSG_VERBOSE(__func__<<":"<<__LINE__<<" - " \
195 <<m_idHelperSvc->toString(testMe->identify()) \
196 <<" already used in good seed." ); \
197 continue; \
198 } \
199 const HitWindow inWindow = hitFromIPCorridor(*testMe, beamSpot, dirEstUp, dirEstDn); \
200 if(inWindow == HitWindow::tooHigh) { \
201 ATH_MSG_VERBOSE(__func__<<":"<<__LINE__<<" - Hit " \
202 <<m_idHelperSvc->toString(testMe->identify()) \
203 <<" is beyond the corridor. Break loop"); \
204 break; \
205 } else if (inWindow == HitWindow::tooLow) { \
206 START_LAYER = HIT_ITER + 1; \
207 ATH_MSG_VERBOSE(__func__<<":"<<__LINE__<<" - Hit " \
208 <<m_idHelperSvc->toString(testMe->identify()) \
209 <<" is still below the corridor. Update start to " \
210 <<START_LAYER); \
211 continue; \
212 } \
213}