CMS 3D CMS Logo

RecoFP420.h
Go to the documentation of this file.
1 #ifndef RecoFP420_h
2 #define RecoFP420_h
3 
4 #include <vector>
5 
6 class RecoFP420 {
7 public:
8 
9  RecoFP420() : e0_(0), x0_(0), y0_(0), tx0_(0), ty0_(0), q20_(0), direction_(0) {}
10 
11  RecoFP420( double e0, double x0, double y0, double tx0, double ty0, double q20, int direction) : e0_(e0), x0_(x0), y0_(y0), tx0_(tx0), ty0_(ty0), q20_(q20), direction_(direction) {}
12 
13  // Access to track information
14  double e0() const {return e0_;}
15  double x0() const {return x0_;}
16  double y0() const {return y0_;}
17  double tx0() const {return tx0_;}
18  double ty0() const {return ty0_;}
19  double q20() const {return q20_;}
20  int direction() const {return direction_;}
21 
22 private:
23  double e0_;
24  double x0_;
25  double y0_;
26  double tx0_;
27  double ty0_;
28  double q20_;
30 };
31 
32 // Comparison operators
33 inline bool operator<( const RecoFP420& one, const RecoFP420& other) {
34  return ( one.e0() ) < ( other.e0() );
35 // return ( one.x0() + one.y0() ) < ( other.x0() + other.y0() );
36 }
37 #endif
double ty0() const
Definition: RecoFP420.h:18
RecoFP420()
Definition: RecoFP420.h:9
double e0_
Definition: RecoFP420.h:23
double tx0_
Definition: RecoFP420.h:26
double q20() const
Definition: RecoFP420.h:19
bool operator<(const RecoFP420 &one, const RecoFP420 &other)
Definition: RecoFP420.h:33
int direction() const
Definition: RecoFP420.h:20
RecoFP420(double e0, double x0, double y0, double tx0, double ty0, double q20, int direction)
Definition: RecoFP420.h:11
double y0_
Definition: RecoFP420.h:25
double x0_
Definition: RecoFP420.h:24
int direction_
Definition: RecoFP420.h:29
double x0() const
Definition: RecoFP420.h:15
double tx0() const
Definition: RecoFP420.h:17
double ty0_
Definition: RecoFP420.h:27
double y0() const
Definition: RecoFP420.h:16
double q20_
Definition: RecoFP420.h:28
double e0() const
Definition: RecoFP420.h:14