ATLAS Offline Software
Loading...
Searching...
No Matches
ICscSegmentFinder::sortByNunspoilAndChsq Struct Reference

#include <ICscSegmentFinder.h>

Collaboration diagram for ICscSegmentFinder::sortByNunspoilAndChsq:

Public Member Functions

bool operator() (const Segment &seg1, const Segment &seg2)

Detailed Description

Definition at line 134 of file ICscSegmentFinder.h.

Member Function Documentation

◆ operator()()

bool ICscSegmentFinder::sortByNunspoilAndChsq::operator() ( const Segment & seg1,
const Segment & seg2 )
inline

Definition at line 135 of file ICscSegmentFinder.h.

135 {
136 // sort by numbers of unspoil cluster
137 if (seg1.nunspoil > seg2.nunspoil)
138 return true;
139 else if (seg1.nunspoil < seg2.nunspoil)
140 return false;
141 // finally take the one with best chi2
142 return seg1.chsq < seg2.chsq;
143 }

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