CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/TBDataFormats/EcalTBObjects/interface/EcalTBHodoscopeRecInfo.h

Go to the documentation of this file.
00001 #ifndef RECECAL_ECALTBHODOSCOPERECINFO_H
00002 #define RECECAL_ECALTBHODOSCOPERECINFO_H 1
00003 
00004 #include <ostream>
00005 
00014 class EcalTBHodoscopeRecInfo {
00015  public:
00016   EcalTBHodoscopeRecInfo() {};
00017   EcalTBHodoscopeRecInfo(const float& xpos, const float& ypos, const float& xslope, const float& yslope, const float& xqual, const float& yqual): pos_x_(xpos), pos_y_(ypos), slope_x_(xslope), slope_y_(yslope), qual_x_(xqual), qual_y_(yqual)
00018     {
00019     };
00020 
00021   ~EcalTBHodoscopeRecInfo() {};
00022   
00023   float posX() const { return pos_x_; }
00024   float posY() const { return pos_y_; }
00025 
00026   float slopeX() const { return slope_x_; }
00027   float slopeY() const { return slope_y_; }
00028 
00029   float qualX() const { return qual_x_; }
00030   float qualY() const { return qual_y_; }
00031 
00032   void setPosX(const float& xpos) { pos_x_=xpos; }
00033   void setPosY(const float& ypos) { pos_y_=ypos; }
00034   
00035   void setSlopeX(const float& xslope) { slope_x_=xslope; }
00036   void setSlopeY(const float& yslope) { slope_y_=yslope; }
00037   
00038   void setQualX(const float& xqual) { qual_x_=xqual; }
00039   void setQualY(const float& yqual) { qual_y_=yqual; }
00040 
00041  private:
00042 
00043   float pos_x_;
00044   float pos_y_;
00045 
00046   float slope_x_;
00047   float slope_y_;
00048 
00049   float qual_x_;
00050   float qual_y_;
00051   
00052   
00053 };
00054 
00055 std::ostream& operator<<(std::ostream&, const EcalTBHodoscopeRecInfo&);
00056   
00057 #endif