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
TrackFP420::chi2y_
double chi2y_
Definition: TrackFP420.h:30
SiPixelPI::one
Definition: SiPixelPayloadInspectorHelper.h:39
TrackFP420::nclustery_
int nclustery_
Definition: TrackFP420.h:31
TrackFP420::ax_
double ax_
Definition: TrackFP420.h:24
TrackFP420::chi2y
double chi2y() const
Definition: TrackFP420.h:20
operator<
bool operator<(const TrackFP420 &one, const TrackFP420 &other)
Definition: TrackFP420.h:35
TrackFP420
Definition: TrackFP420.h:6
TrackFP420::nclustery
int nclustery() const
Definition: TrackFP420.h:21
TrackFP420::ax
double ax() const
Definition: TrackFP420.h:14
TrackFP420::by_
double by_
Definition: TrackFP420.h:29
TrackFP420::ay
double ay() const
Definition: TrackFP420.h:18
trackingPlots.other
other
Definition: trackingPlots.py:1464
TrackFP420::TrackFP420
TrackFP420(double ax, double bx, double chi2x, int nclusterx, double ay, double by, double chi2y, int nclustery)
Definition: TrackFP420.h:10
TrackFP420::ay_
double ay_
Definition: TrackFP420.h:28
TrackFP420::TrackFP420
TrackFP420()
Definition: TrackFP420.h:8
TrackFP420::chi2x
double chi2x() const
Definition: TrackFP420.h:16
TrackFP420::bx
double bx() const
Definition: TrackFP420.h:15
TrackFP420::nclusterx_
int nclusterx_
Definition: TrackFP420.h:27
TrackFP420::chi2x_
double chi2x_
Definition: TrackFP420.h:26
TrackFP420::bx_
double bx_
Definition: TrackFP420.h:25
TrackFP420::by
double by() const
Definition: TrackFP420.h:19
TrackFP420::nclusterx
int nclusterx() const
Definition: TrackFP420.h:17