/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CondFormats/HcalObjects/interface/HcalDetIdTransform.h
28 строк
968 B
Cms Build
Clang-Format
24 май 2019, 00:14
24 май 2019, 00:14
ecf11e6
Код
Авторство
О чём код?
#ifndef CondFormats_HcalObjects_HcalDetIdTransform_h #define CondFormats_HcalObjects_HcalDetIdTransform_h class HcalDetId; namespace HcalDetIdTransform { // When you add more transforms, add codes for them at the end // of the enum, just before "N_TRANSFORMS". Don't forget to adjust // the "transform" function accordingly. enum { RAWID = 0, // Raw detector id IETA, // ieta() + shift IETAABS, // ietaAbs() SUBDET, // subdetId() IETADEPTH, // maps ieta() and depth() into a unique number IETAABSDEPTH, // maps ietaAbs() and depth() into a unique number N_TRANSFORMS }; // Transform the detector id unsigned transform(const HcalDetId& id, unsigned transformCode); // The following function will throw an exception // if the transform code is invalid void validateCode(unsigned transformCode); } // namespace HcalDetIdTransform #endif // CondFormats_HcalObjects_HcalDetIdTransform_h