CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/DataFormats/FP420Cluster/interface/TrackFP420.h

Go to the documentation of this file.
00001 #ifndef TrackFP420_h
00002 #define TrackFP420_h
00003 
00004 #include <vector>
00005 
00006 class TrackFP420 {
00007 public:
00008 
00009   TrackFP420() : ax_(0), bx_(0), chi2x_(0), nclusterx_(0), ay_(0), by_(0), chi2y_(0), nclustery_(0)  {}
00010 
00011     TrackFP420( double ax, double bx, double chi2x, int nclusterx, double ay, double by, double chi2y, int nclustery) : ax_(ax), bx_(bx), chi2x_(chi2x), nclusterx_(nclusterx), ay_(ay), by_(by), chi2y_(chi2y), nclustery_(nclustery) {}
00012 
00013   // Access to track information
00014   double ax() const   {return ax_;}
00015   double bx() const     {return bx_;}
00016   double chi2x() const {return chi2x_;}
00017   int nclusterx() const {return nclusterx_;}
00018   double ay() const   {return ay_;}
00019   double by() const     {return by_;}
00020   double chi2y() const {return chi2y_;}
00021   int nclustery() const {return nclustery_;}
00022 
00023 private:
00024   double ax_;
00025   double bx_;
00026   double chi2x_;
00027   int nclusterx_;
00028   double ay_;
00029   double by_;
00030   double chi2y_;
00031   int nclustery_;
00032 };
00033 
00034 // Comparison operators
00035 inline bool operator<( const TrackFP420& one, const TrackFP420& other) {
00036   return ( one.nclusterx() + one.nclustery() ) < ( other.nclusterx() + other.nclustery()  );
00037 } 
00038 #endif