CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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)
11  : ax_(ax), bx_(bx), chi2x_(chi2x), nclusterx_(nclusterx), ay_(ay), by_(by), chi2y_(chi2y), nclustery_(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
double ay_
Definition: TrackFP420.h:28
int nclusterx() const
Definition: TrackFP420.h:17
TrackFP420(double ax, double bx, double chi2x, int nclusterx, double ay, double by, double chi2y, int nclustery)
Definition: TrackFP420.h:10
int nclusterx_
Definition: TrackFP420.h:27
double chi2x_
Definition: TrackFP420.h:26
double ax() const
Definition: TrackFP420.h:14
TrackFP420()
Definition: TrackFP420.h:8
double by() const
Definition: TrackFP420.h:19
double chi2x() const
Definition: TrackFP420.h:16
double chi2y() const
Definition: TrackFP420.h:20
double bx_
Definition: TrackFP420.h:25
double ay() const
Definition: TrackFP420.h:18
double bx() const
Definition: TrackFP420.h:15
double chi2y_
Definition: TrackFP420.h:30
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
bool operator<(DTCELinkId const &lhs, DTCELinkId const &rhs)
Definition: DTCELinkId.h:70