CMS 3D CMS Logo

Public Member Functions

cms::CompareTrajChi Class Reference

#include <CosmicTrackFinder.h>

List of all members.

Public Member Functions

bool operator() (Trajectory *t1, Trajectory *t2)

Detailed Description

Definition at line 59 of file CosmicTrackFinder.h.


Member Function Documentation

bool cms::CompareTrajChi::operator() ( Trajectory t1,
Trajectory t2 
) [inline]

Definition at line 61 of file CosmicTrackFinder.h.

References Trajectory::chiSquared(), and Trajectory::foundHits().

                                   {
      if (t1->foundHits() != t2->foundHits()) 
        return t1->foundHits()> t2->foundHits();
      return t1->chiSquared()< t2->chiSquared();  
    }