/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CondFormats/CSCObjects/interface/CSCDBGains.h
35 строк
678 B
Cms Build
Clang-Format
22 май 2019, 04:56
22 май 2019, 04:56
28f175a
Код
Авторство
О чём код?
#ifndef CSCDBGains_h #define CSCDBGains_h #include "CondFormats/Serialization/interface/Serializable.h" #include <iosfwd> #include <vector> class CSCDBGains { public: CSCDBGains() {} ~CSCDBGains() {} struct Item { short int gain_slope; COND_SERIALIZABLE; }; int factor_gain; enum factors { FGAIN = 1000 }; typedef std::vector<Item> GainContainer; GainContainer gains; const Item& item(int index) const { return gains[index]; } short int gain(int index) const { return gains[index].gain_slope; } int scale() const { return factor_gain; } COND_SERIALIZABLE; }; std::ostream& operator<<(std::ostream& os, const CSCDBGains& cscdb); #endif