![]() |
ATLAS Offline Software
|
The SpacePointPerLayerSorter sort two given space points by their layer Identifier. More...
#include <SpacePointPerLayerSorter.h>
Public Member Functions | |
SpacePointPerLayerSorter (const Muon::IMuonIdHelperSvc *idHelperSvc) | |
bool | operator() (const std::shared_ptr< SpacePoint > &sp1, const std::shared_ptr< SpacePoint > &sp2) const |
bool | operator() (const std::unique_ptr< SpacePoint > &sp1, const std::unique_ptr< SpacePoint > &sp2) const |
bool | operator() (const SpacePoint *sp1, const SpacePoint *sp2) const |
bool | operator() (const SpacePoint &sp1, const SpacePoint &sp2) const |
Identifier | detectorLayerId (const Identifier &id) const |
Private Attributes | |
const Muon::IMuonIdHelperSvc * | m_idHelperSvc {nullptr} |
The SpacePointPerLayerSorter sort two given space points by their layer Identifier.
It is defined as the Identifier of the first tube in layer for the Mdts or as the Identifier of the first strip in a gasGap expressed in an eta view. First, all hits are sorted by layer Identifier - i.e. going outwards the detector. Then, hits in the same layer are sorted by y position (precision axis) in the sector frame and, if they have also the same y, they are sorted by x position (phi direction).
Definition at line 18 of file SpacePointPerLayerSorter.h.
MuonR4::SpacePointPerLayerSorter::SpacePointPerLayerSorter | ( | const Muon::IMuonIdHelperSvc * | idHelperSvc | ) |
Definition at line 10 of file SpacePointPerLayerSorter.cxx.
Identifier MuonR4::SpacePointPerLayerSorter::detectorLayerId | ( | const Identifier & | id | ) | const |
Definition at line 13 of file SpacePointPerLayerSorter.cxx.
bool MuonR4::SpacePointPerLayerSorter::operator() | ( | const SpacePoint & | sp1, |
const SpacePoint & | sp2 | ||
) | const |
Definition at line 68 of file SpacePointPerLayerSorter.cxx.
bool MuonR4::SpacePointPerLayerSorter::operator() | ( | const SpacePoint * | sp1, |
const SpacePoint * | sp2 | ||
) | const |
Definition at line 93 of file SpacePointPerLayerSorter.cxx.
bool MuonR4::SpacePointPerLayerSorter::operator() | ( | const std::shared_ptr< SpacePoint > & | sp1, |
const std::shared_ptr< SpacePoint > & | sp2 | ||
) | const |
Definition at line 86 of file SpacePointPerLayerSorter.cxx.
bool MuonR4::SpacePointPerLayerSorter::operator() | ( | const std::unique_ptr< SpacePoint > & | sp1, |
const std::unique_ptr< SpacePoint > & | sp2 | ||
) | const |
Definition at line 90 of file SpacePointPerLayerSorter.cxx.
|
private |
Definition at line 33 of file SpacePointPerLayerSorter.h.