Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:06

0001 #ifndef CondFormats_ESObjects_ESThresholds_H
0002 #define CondFormats_ESObjects_ESThresholds_H
0003 #include "CondFormats/Serialization/interface/Serializable.h"
0004 
0005 #include <iostream>
0006 
0007 class ESThresholds {
0008 public:
0009   ESThresholds();
0010   ESThresholds(const float& ts2, const float& zs);
0011   ~ESThresholds();
0012 
0013   void setTS2Threshold(const float& value) { ts2_ = value; }
0014   float getTS2Threshold() const { return ts2_; }
0015   void setZSThreshold(const float& value) { zs_ = value; }
0016   float getZSThreshold() const { return zs_; }
0017 
0018   void print(std::ostream& s) const {
0019     s << "ESThresholds: 2nd time sample / ZS threshold" << ts2_ << " / " << zs_ << " [ADC count]";
0020   }
0021 
0022 private:
0023   float ts2_;
0024   float zs_;
0025 
0026   COND_SERIALIZABLE;
0027 };
0028 
0029 #endif