Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef CondFormats_ESObjects_ESMIPToGeVConstant_H
0002 #define CondFormats_ESObjects_ESMIPToGeVConstant_H
0003 #include "CondFormats/Serialization/interface/Serializable.h"
0004 
0005 #include <iostream>
0006 
0007 class ESMIPToGeVConstant {
0008 public:
0009   ESMIPToGeVConstant();
0010   ESMIPToGeVConstant(const float& ESvaluelow, const float& ESvaluehigh);
0011   ~ESMIPToGeVConstant();
0012   void setESValueLow(const float& value) { ESvaluelow_ = value; }
0013   float getESValueLow() const { return ESvaluelow_; }
0014   void setESValueHigh(const float& value) { ESvaluehigh_ = value; }
0015   float getESValueHigh() const { return ESvaluehigh_; }
0016   void print(std::ostream& s) const {
0017     s << "ESMIPToGeVConstant: ES low/high " << ESvaluelow_ << " / " << ESvaluehigh_ << " [GeV/MIP count]";
0018   }
0019 
0020 private:
0021   float ESvaluelow_;
0022   float ESvaluehigh_;
0023 
0024   COND_SERIALIZABLE;
0025 };
0026 
0027 #endif