CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
cms::CompareTrajChi Class Reference

#include <CosmicTrackFinder.h>

Public Member Functions

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

Detailed Description

Definition at line 58 of file CosmicTrackFinder.h.

Member Function Documentation

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

Definition at line 60 of file CosmicTrackFinder.h.

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

61  {
62  if (t1->foundHits() != t2->foundHits())
63  return t1->foundHits()> t2->foundHits();
64  return t1->chiSquared()< t2->chiSquared();
65  }
int foundHits() const
Definition: Trajectory.h:234
float chiSquared() const
Definition: Trajectory.h:252