/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CondFormats/ESObjects/interface/ESTimeSampleWeights.h
30 строк
862 B
Cms Build
Clang-Format
20 май 2019, 13:01
20 май 2019, 13:01
a27185a
Код
Авторство
О чём код?
#ifndef CondFormats_ESObjects_ESTimeSampleWeights_H #define CondFormats_ESObjects_ESTimeSampleWeights_H #include "CondFormats/Serialization/interface/Serializable.h" #include <iostream> class ESTimeSampleWeights { public: ESTimeSampleWeights(); ESTimeSampleWeights(const float& w0, const float& w1, const float& w2); ~ESTimeSampleWeights(); void setWeightForTS0(const float& value) { w0_ = value; } float getWeightForTS0() const { return w0_; } void setWeightForTS1(const float& value) { w1_ = value; } float getWeightForTS1() const { return w1_; } void setWeightForTS2(const float& value) { w2_ = value; } float getWeightForTS2() const { return w2_; } void print(std::ostream& s) const { s << "ESTimeSampleWeights: " << w0_ << " " << w1_ << " " << w2_; } private: float w0_; float w1_; float w2_; COND_SERIALIZABLE; }; #endif