ATLAS Offline Software
Loading...
Searching...
No Matches
NswSegmentFinderAlg.cxx File Reference

Go to the source code of this file.

Namespaces

namespace  MuonR4
 This header ties the generic definitions in this package.

Macros

#define TEST_HIT_CORRIDOR(LAYER, HIT_ITER, START_LAYER)
 Macro to check whether a hit is compatible with the hit corridor.

Variables

constexpr unsigned MuonR4::minLayers {4}

Macro Definition Documentation

◆ TEST_HIT_CORRIDOR

#define TEST_HIT_CORRIDOR ( LAYER,
HIT_ITER,
START_LAYER )
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?)
Definition hcg.cxx:132

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}