00001 #ifndef CSCRecHitD_CSCStripData_h
00002 #define CSCRecHitD_CSCStripData_h
00003
00012 class CSCStripData
00013 {
00014 public:
00015
00016
00017
00018
00019 CSCStripData() : x_(-1.), ymax_(0.), t_(-1), y2_(0.), y3_(0.), y4_(0.), y5_(0.), y6_(0.), y7_(0.),
00020 y2Raw_(0.), y3Raw_(0.), y4Raw_(0.), y5Raw_(0.), y6Raw_(0.), y7Raw_(0.){};
00021 CSCStripData( float x, float ymax, int t, float y2, float y3, float y4, float y5, float y6, float y7,
00022 float y2Raw, float y3Raw, float y4Raw, float y5Raw, float y6Raw, float y7Raw) :
00023 x_(x), ymax_(ymax), t_(t), y2_(y2), y3_(y3), y4_(y4), y5_(y5), y6_(y6), y7_(y7),
00024 y2Raw_(y2Raw), y3Raw_(y3Raw), y4Raw_(y4Raw), y5Raw_(y5Raw), y6Raw_(y6Raw), y7Raw_(y7Raw){};
00025
00026 float x() const {return x_;}
00027 float ymax() const {return ymax_;}
00028 int t() const {return t_;}
00029 float y2() const {return y2_;}
00030 float y3() const {return y3_;}
00031 float y4() const {return y4_;}
00032 float y5() const {return y5_;}
00033 float y6() const {return y6_;}
00034 float y7() const {return y7_;}
00035 float y2Raw() const {return y2Raw_;}
00036 float y3Raw() const {return y3Raw_;}
00037 float y4Raw() const {return y4Raw_;}
00038 float y5Raw() const {return y5Raw_;}
00039 float y6Raw() const {return y6Raw_;}
00040 float y7Raw() const {return y7Raw_;}
00041
00042 bool operator<( const CSCStripData & data ) const { return ymax_ < data.ymax_; }
00043
00044 void operator*=( float addend) {
00045 ymax_ *= addend;
00046 y2_ *= addend;
00047 y3_ *= addend;
00048 y4_ *= addend;
00049 y5_ *= addend;
00050 y6_ *= addend;
00051 y7_ *= addend;
00052 }
00053
00054
00055 private:
00056
00057 float x_;
00058 float ymax_;
00059 int t_;
00060 float y2_;
00061 float y3_;
00062 float y4_;
00063 float y5_;
00064 float y6_;
00065 float y7_;
00066 float y2Raw_;
00067 float y3Raw_;
00068 float y4Raw_;
00069 float y5Raw_;
00070 float y6Raw_;
00071 float y7Raw_;
00072
00073 };
00074
00075 #endif
00076