CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/CondFormats/ESObjects/interface/ESTimeSampleWeights.h

Go to the documentation of this file.
00001 #ifndef CondFormats_ESObjects_ESTimeSampleWeights_H
00002 #define CondFormats_ESObjects_ESTimeSampleWeights_H
00003 #include <iostream>
00004 
00005 class ESTimeSampleWeights {
00006 
00007   public:
00008 
00009     ESTimeSampleWeights();
00010     ESTimeSampleWeights(const float & w0, const float & w1, const float & w2);
00011     ~ESTimeSampleWeights();
00012 
00013     void  setWeightForTS0(const float& value) { w0_ = value; }
00014     float getWeightForTS0() const { return w0_; }
00015     void  setWeightForTS1(const float& value) { w1_ = value; }
00016     float getWeightForTS1() const { return w1_; }
00017     void  setWeightForTS2(const float& value) { w2_ = value; }
00018     float getWeightForTS2() const { return w2_; }
00019 
00020     void print(std::ostream& s) const {
00021       s<<"ESTimeSampleWeights: "<<w0_<<" "<<w1_<<" "<<w2_;
00022     }
00023 
00024   private:
00025 
00026     float w0_; 
00027     float w1_;
00028     float w2_;
00029 };
00030 
00031 
00032 #endif