#include <SortSegmentsByNumberOfHits.h>
◆ operator()()
| bool Muon::SortSegmentsByNumberOfHits::operator() |
( |
const std::unique_ptr< MuonSegment > & | seg1, |
|
|
const std::unique_ptr< MuonSegment > & | seg2 ) |
|
inline |
Definition at line 15 of file SortSegmentsByNumberOfHits.h.
15 {
16 unsigned int nhits1 = seg1->containedMeasurements().size();
17 unsigned int nhits2 = seg2->containedMeasurements().size();
18 if (nhits1 > nhits2) return true;
19 if (nhits1 < nhits2) return false;
20
21
22 const Trk::FitQuality* fq1 = seg1->fitQuality();
23 const Trk::FitQuality* fq2 = seg2->fitQuality();
24 if (!fq1 && fq2) return false;
25 if (fq1 && !fq2) return true;
26 if (!fq1 && !fq2) { return true; }
27
30
31
34 return chi2Ndof1 < chi2Ndof2;
35 }
int numberDoF() const
returns the number of degrees of freedom of the overall track or vertex fit as integer
double chiSquared() const
returns the of the overall track fit
The documentation for this class was generated from the following file: