/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CalibFormats/CastorObjects/interface/CastorChannelCoder.h
30 строк
766 B
Cms Build
Clang-Format
09 май 2019, 07:16
09 май 2019, 07:16
7f0c057
Код
Авторство
О чём код?
#ifndef CASTOR_CHANNEL_CODER_H #define CASTOR_CHANNEL_CODER_H /** \class CastorChannelCoder Container for ADC<->fQ conversion constants for HCAL/Castor QIE */ namespace reco { namespace castor { class QieShape; } } // namespace reco class CastorChannelCoder { public: CastorChannelCoder(const float fOffset[16], const float fSlope[16]); // [CapId][Range] /// ADC[0..127]+capid[0..3]->fC conversion double charge(const reco::castor::QieShape& fShape, int fAdc, int fCapId) const; /// fC + capid[0..3] -> ADC conversion int adc(const reco::castor::QieShape& fShape, double fCharge, int fCapId) const; int index(int fCapId, int Range) { return fCapId * 4 + Range; } private: double mOffset[4][4]; double mSlope[4][4]; }; #endif