ESThresholds

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
#ifndef CondFormats_ESObjects_ESThresholds_H
#define CondFormats_ESObjects_ESThresholds_H
#include "CondFormats/Serialization/interface/Serializable.h"

#include <iostream>

class ESThresholds {
public:
  ESThresholds();
  ESThresholds(const float& ts2, const float& zs);
  ~ESThresholds();

  void setTS2Threshold(const float& value) { ts2_ = value; }
  float getTS2Threshold() const { return ts2_; }
  void setZSThreshold(const float& value) { zs_ = value; }
  float getZSThreshold() const { return zs_; }

  void print(std::ostream& s) const {
    s << "ESThresholds: 2nd time sample / ZS threshold" << ts2_ << " / " << zs_ << " [ADC count]";
  }

private:
  float ts2_;
  float zs_;

  COND_SERIALIZABLE;
};

#endif