CMS 3D CMS Logo

TrackFP420.h
Go to the documentation of this file.
1 #ifndef TrackFP420_h
2 #define TrackFP420_h
3 
4 #include <vector>
5 
6 class TrackFP420 {
7 public:
8  TrackFP420() : ax_(0), bx_(0), chi2x_(0), nclusterx_(0), ay_(0), by_(0), chi2y_(0), nclustery_(0) {}
9 
10  TrackFP420(double ax, double bx, double chi2x, int nclusterx, double ay, double by, double chi2y, int nclustery)
12 
13  // Access to track information
14  double ax() const { return ax_; }
15  double bx() const { return bx_; }
16  double chi2x() const { return chi2x_; }
17  int nclusterx() const { return nclusterx_; }
18  double ay() const { return ay_; }
19  double by() const { return by_; }
20  double chi2y() const { return chi2y_; }
21  int nclustery() const { return nclustery_; }
22 
23 private:
24  double ax_;
25  double bx_;
26  double chi2x_;
28  double ay_;
29  double by_;
30  double chi2y_;
32 };
33 
34 // Comparison operators
35 inline bool operator<(const TrackFP420& one, const TrackFP420& other) {
36  return (one.nclusterx() + one.nclustery()) < (other.nclusterx() + other.nclustery());
37 }
38 #endif
bool operator<(const TrackFP420 &one, const TrackFP420 &other)
Definition: TrackFP420.h:35
double ay_
Definition: TrackFP420.h:28
double chi2x() const
Definition: TrackFP420.h:16
TrackFP420(double ax, double bx, double chi2x, int nclusterx, double ay, double by, double chi2y, int nclustery)
Definition: TrackFP420.h:10
double bx() const
Definition: TrackFP420.h:15
int nclusterx_
Definition: TrackFP420.h:27
double chi2x_
Definition: TrackFP420.h:26
TrackFP420()
Definition: TrackFP420.h:8
double by() const
Definition: TrackFP420.h:19
double bx_
Definition: TrackFP420.h:25
int nclusterx() const
Definition: TrackFP420.h:17
double chi2y_
Definition: TrackFP420.h:30
double chi2y() const
Definition: TrackFP420.h:20
double ax_
Definition: TrackFP420.h:24
int nclustery_
Definition: TrackFP420.h:31
double by_
Definition: TrackFP420.h:29
int nclustery() const
Definition: TrackFP420.h:21
double ay() const
Definition: TrackFP420.h:18
double ax() const
Definition: TrackFP420.h:14