CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch2/src/CondFormats/EcalObjects/interface/EcalWeight.h

Go to the documentation of this file.
00001 #ifndef CondFormats_EcalObjects_EcalWeight_H
00002 #define CondFormats_EcalObjects_EcalWeight_H
00003 
00012 #include <iostream>
00013 
00014 class EcalWeight {
00015   public:
00016     EcalWeight();
00017     EcalWeight(const double& awgt);
00018     EcalWeight(const EcalWeight& awgt);
00019     EcalWeight& operator=(const EcalWeight&rhs);
00020 
00021     double value() const { return wgt_; }
00022     double operator()() const { return wgt_; }
00023 
00024     void setValue(const double& awgt) { wgt_ = awgt; }
00025     bool operator ==(const EcalWeight&rhs) const { return (wgt_ == rhs.wgt_); }
00026     bool operator !=(const EcalWeight&rhs) const { return (wgt_ != rhs.wgt_); }
00027     bool operator <(const EcalWeight&rhs) const { return (wgt_ < rhs.wgt_); }
00028     bool operator >(const EcalWeight&rhs) const { return (wgt_ > rhs.wgt_); }
00029     bool operator <=(const EcalWeight&rhs) const { return (wgt_ <= rhs.wgt_); }
00030     bool operator >=(const EcalWeight&rhs) const { return (wgt_ >= rhs.wgt_); }
00031 
00032   private:
00033    double wgt_;
00034 };
00035 
00036 //std::ostream& operator<<(std::ostream& os, const EcalWeight& wg) {
00037 //   return os << wg.value();
00038 //}
00039 
00040 #endif