File indexing completed on 2024-04-06 12:02:09
0001 #ifndef CondFormats_EcalObjects_EcalTimeOffsetConstant_H
0002 #define CondFormats_EcalObjects_EcalTimeOffsetConstant_H
0003
0004
0005
0006
0007
0008
0009 #include "CondFormats/Serialization/interface/Serializable.h"
0010
0011 #include <iostream>
0012
0013 class EcalTimeOffsetConstant {
0014 public:
0015 EcalTimeOffsetConstant();
0016 EcalTimeOffsetConstant(const float& EBvalue, const float& EEvalue);
0017 ~EcalTimeOffsetConstant();
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 << "EcalTimeOffsetConstant: EB " << EBvalue_ << "; EE " << EEvalue_ << " [ns]";
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