ATLAS Offline Software
Public Member Functions | List of all members
InDet::InDetDenseEnvAmbiTrackSelectionTool::lessTrkTrack Struct Reference
Collaboration diagram for InDet::InDetDenseEnvAmbiTrackSelectionTool::lessTrkTrack:

Public Member Functions

bool operator() (const Trk::Track *x, const Trk::Track *y) const
 

Detailed Description

Definition at line 238 of file InDetDenseEnvAmbiTrackSelectionTool.h.

Member Function Documentation

◆ operator()()

bool InDet::InDetDenseEnvAmbiTrackSelectionTool::lessTrkTrack::operator() ( const Trk::Track x,
const Trk::Track y 
) const
inline

Definition at line 239 of file InDetDenseEnvAmbiTrackSelectionTool.h.

240  {
241  if (ATH_UNLIKELY(!x and !y)) return false;
242  if (ATH_UNLIKELY(!x)) return true;
243  if (ATH_UNLIKELY(!y)) return false;
244  if (ATH_UNLIKELY(!x->trackParameters() and !y->trackParameters())) return false;
245  if (ATH_UNLIKELY(!x->trackParameters() || x->trackParameters()->size() <= 0) ) return true;
246  if (ATH_UNLIKELY(!y->trackParameters() || y->trackParameters()->size() <= 0) ) return false;
247  return std::fabs( (*x->trackParameters())[0]->parameters()[Trk::qOverP]) < std::fabs( (*y->trackParameters())[0]->parameters()[Trk::qOverP]) ;
248  }

The documentation for this struct was generated from the following file:
ATH_UNLIKELY
#define ATH_UNLIKELY(x)
Definition: AthUnlikelyMacros.h:17
x
#define x
y
#define y
Trk::qOverP
@ qOverP
perigee
Definition: ParamDefs.h:67