ATLAS Offline Software
Loading...
Searching...
No Matches
TrkDriftCircleMath::NeighbourTube Struct Reference

#include <SortDcsByY.h>

Collaboration diagram for TrkDriftCircleMath::NeighbourTube:

Public Member Functions

bool operator() (const DriftCircle &dc1, const DriftCircle &dc2) const

Detailed Description

Definition at line 33 of file SortDcsByY.h.

Member Function Documentation

◆ operator()()

bool TrkDriftCircleMath::NeighbourTube::operator() ( const DriftCircle & dc1,
const DriftCircle & dc2 ) const
inline

Definition at line 34 of file SortDcsByY.h.

34 {
35 // check whether this is not the same tube
36 SameTube sameTube;
37 if (sameTube(dc1, dc2)) return false;
38
39 // check whether in the same layer
40 if (std::abs(dc1.y() - dc2.y()) > 1.) return false;
41
42 // check whether direct neighbours
43 if (std::abs(dc1.x() - dc2.x()) > 31.) return false;
44
45 return true;
46 }

The documentation for this struct was generated from the following file: