CMS 3D CMS Logo

ESThresholds.h
Go to the documentation of this file.
1 #ifndef CondFormats_ESObjects_ESThresholds_H
2 #define CondFormats_ESObjects_ESThresholds_H
4 
5 #include <iostream>
6 
7 class ESThresholds {
8 public:
9  ESThresholds();
10  ESThresholds(const float& ts2, const float& zs);
11  ~ESThresholds();
12 
13  void setTS2Threshold(const float& value) { ts2_ = value; }
14  float getTS2Threshold() const { return ts2_; }
15  void setZSThreshold(const float& value) { zs_ = value; }
16  float getZSThreshold() const { return zs_; }
17 
18  void print(std::ostream& s) const {
19  s << "ESThresholds: 2nd time sample / ZS threshold" << ts2_ << " / " << zs_ << " [ADC count]";
20  }
21 
22 private:
23  float ts2_;
24  float zs_;
25 
27 };
28 
29 #endif
void print(std::ostream &s) const
Definition: ESThresholds.h:18
void setTS2Threshold(const float &value)
Definition: ESThresholds.h:13
void setZSThreshold(const float &value)
Definition: ESThresholds.h:15
Definition: value.py:1
float getZSThreshold() const
Definition: ESThresholds.h:16
float getTS2Threshold() const
Definition: ESThresholds.h:14
#define COND_SERIALIZABLE
Definition: Serializable.h:38