CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ESThresholds.h
Go to the documentation of this file.
1 #ifndef CondFormats_ESObjects_ESThresholds_H
2 #define CondFormats_ESObjects_ESThresholds_H
3 #include <iostream>
4 
5 class ESThresholds {
6 
7  public:
8 
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 
24  float ts2_;
25  float zs_;
26 };
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
float getZSThreshold() const
Definition: ESThresholds.h:16
float getTS2Threshold() const
Definition: ESThresholds.h:14