#include <SortMuPatHits.h>
Definition at line 40 of file SortMuPatHits.h.
◆ SortByIPMuPatHits()
◆ operator()() [1/2]
large small overlap
Definition at line 48 of file SortMuPatHits.h.
51 const MuPatHit::Info& info1 = hit1->info();
52 const MuPatHit::Info& info2 = hit2->info();
56 const Trk::Surface& surf1{hit1->measurement().associatedSurface()};
57 const Trk::Surface& surf2{hit2->measurement().associatedSurface()};
59 if (info1.isEndcap && info2.isEndcap) {
60 const double absZ1 = std::abs(surf1.center().z());
61 const double absZ2 = std::abs(surf2.center().z());
62 if (std::abs(absZ1 - absZ2) > std::numeric_limits<float>::epsilon()) {
return absZ1 < absZ2; }
63 }
else if (!info1.isEndcap && !info2.isEndcap) {
64 const double perp1 = surf1.center().perp2();
65 const double perp2 = surf2.center().perp2();
66 if (std::abs(perp1 -
perp2) > std::numeric_limits<float>::epsilon()) {
return perp1 <
perp2; }
69 else if (info1.isEndcap || info2.isEndcap) {
72 if (st1 != st2)
return st1 < st2;
74 if (info1.type == info2.type) {
79 if (type1 != type2)
return type1 > type2;
81 if (info1.status != info2.status) {
82 return info1.status < info2.status;
84 if (info1.measuresPhi == info2.measuresPhi) {
85 return hit1->pull() < hit2->pull();
89 return !info1.measuresPhi;
◆ operator()() [2/2]
Sort the mu pat hits using their associated surfaces.
Definition at line 45 of file SortMuPatHits.h.
◆ m_idh
The documentation for this class was generated from the following file: