File indexing completed on 2024-04-06 12:02:11
0001 #ifndef CondFormats_ESObjects_ESWeight_H
0002 #define CondFormats_ESObjects_ESWeight_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #include <iostream>
0013
0014 class ESWeight {
0015 public:
0016 ESWeight();
0017 ESWeight(const double& awgt);
0018 ESWeight(const ESWeight& awgt);
0019 ESWeight& operator=(const ESWeight& rhs);
0020
0021 double value() const { return wgt_; }
0022 double operator()() const { return wgt_; }
0023
0024 void setValue(const double& awgt) { wgt_ = awgt; }
0025 bool operator==(const ESWeight& rhs) const { return (wgt_ == rhs.wgt_); }
0026 bool operator!=(const ESWeight& rhs) const { return (wgt_ != rhs.wgt_); }
0027 bool operator<(const ESWeight& rhs) const { return (wgt_ < rhs.wgt_); }
0028 bool operator>(const ESWeight& rhs) const { return (wgt_ > rhs.wgt_); }
0029 bool operator<=(const ESWeight& rhs) const { return (wgt_ <= rhs.wgt_); }
0030 bool operator>=(const ESWeight& rhs) const { return (wgt_ >= rhs.wgt_); }
0031
0032 private:
0033 double wgt_;
0034 };
0035
0036
0037
0038
0039
0040 #endif