Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:11

0001 #ifndef CondFormats_ESObjects_ESTimeSampleWeights_H
0002 #define CondFormats_ESObjects_ESTimeSampleWeights_H
0003 #include "CondFormats/Serialization/interface/Serializable.h"
0004 
0005 #include <iostream>
0006 
0007 class ESTimeSampleWeights {
0008 public:
0009   ESTimeSampleWeights();
0010   ESTimeSampleWeights(const float& w0, const float& w1, const float& w2);
0011   ~ESTimeSampleWeights();
0012 
0013   void setWeightForTS0(const float& value) { w0_ = value; }
0014   float getWeightForTS0() const { return w0_; }
0015   void setWeightForTS1(const float& value) { w1_ = value; }
0016   float getWeightForTS1() const { return w1_; }
0017   void setWeightForTS2(const float& value) { w2_ = value; }
0018   float getWeightForTS2() const { return w2_; }
0019 
0020   void print(std::ostream& s) const { s << "ESTimeSampleWeights: " << w0_ << " " << w1_ << " " << w2_; }
0021 
0022 private:
0023   float w0_;
0024   float w1_;
0025   float w2_;
0026 
0027   COND_SERIALIZABLE;
0028 };
0029 
0030 #endif