File indexing completed on 2024-04-06 12:02:08
0001 #ifndef CondFormats_EcalObjects_EcalADCToGeVConstant_H
0002 #define CondFormats_EcalObjects_EcalADCToGeVConstant_H
0003
0004
0005
0006
0007
0008
0009 #include "CondFormats/Serialization/interface/Serializable.h"
0010
0011 #include <iostream>
0012
0013 class EcalADCToGeVConstant {
0014 public:
0015 EcalADCToGeVConstant();
0016 EcalADCToGeVConstant(const float& EBvalue, const float& EEvalue);
0017 ~EcalADCToGeVConstant();
0018 void setEBValue(const float& value) { EBvalue_ = value; }
0019 void setEEValue(const float& value) { EEvalue_ = value; }
0020 float getEBValue() const { return EBvalue_; }
0021 float getEEValue() const { return EEvalue_; }
0022 void print(std::ostream& s) const {
0023 s << "EcalADCToGeVConstant: EB " << EBvalue_ << "; EE " << EEvalue_ << " [GeV/ADC count]";
0024 }
0025
0026 private:
0027 float EBvalue_;
0028 float EEvalue_;
0029
0030 COND_SERIALIZABLE;
0031 };
0032
0033
0034
0035
0036
0037
0038
0039
0040 #endif