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 202 of file NswSegmentFinderAlg.cxx.

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