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
4 
5 #include <iostream>
6 
7 class ESThresholds {
8 
9  public:
10 
11  ESThresholds();
12  ESThresholds(const float & ts2, const float & zs);
13  ~ESThresholds();
14 
15  void setTS2Threshold(const float& value) { ts2_ = value; }
16  float getTS2Threshold() const { return ts2_; }
17  void setZSThreshold(const float& value) { zs_ = value; }
18  float getZSThreshold() const { return zs_; }
19 
20  void print(std::ostream& s) const {
21  s << "ESThresholds: 2nd time sample / ZS threshold" << ts2_ << " / " << zs_ <<" [ADC count]";
22  }
23 
24  private:
25 
26  float ts2_;
27  float zs_;
28 
30 };
31 
32 
33 #endif
void print(std::ostream &s) const
Definition: ESThresholds.h:20
void setTS2Threshold(const float &value)
Definition: ESThresholds.h:15
void setZSThreshold(const float &value)
Definition: ESThresholds.h:17
float getZSThreshold() const
Definition: ESThresholds.h:18
float getTS2Threshold() const
Definition: ESThresholds.h:16