ESTimeSampleWeights

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
#ifndef CondFormats_ESObjects_ESTimeSampleWeights_H
#define CondFormats_ESObjects_ESTimeSampleWeights_H
#include "CondFormats/Serialization/interface/Serializable.h"

#include <iostream>

class ESTimeSampleWeights {
public:
  ESTimeSampleWeights();
  ESTimeSampleWeights(const float& w0, const float& w1, const float& w2);
  ~ESTimeSampleWeights();

  void setWeightForTS0(const float& value) { w0_ = value; }
  float getWeightForTS0() const { return w0_; }
  void setWeightForTS1(const float& value) { w1_ = value; }
  float getWeightForTS1() const { return w1_; }
  void setWeightForTS2(const float& value) { w2_ = value; }
  float getWeightForTS2() const { return w2_; }

  void print(std::ostream& s) const { s << "ESTimeSampleWeights: " << w0_ << " " << w1_ << " " << w2_; }

private:
  float w0_;
  float w1_;
  float w2_;

  COND_SERIALIZABLE;
};

#endif