/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Geometry/HGCalCommonData/interface/HGCalWaferIndex.h
22 строки
817 B
Sunanda
Code check
01 май 2022, 13:43
01 май 2022, 13:43
9bf85be
Код
Авторство
О чём код?
#ifndef Geometry_HGCalCommonData_HGCalWaferIndex_h #define Geometry_HGCalCommonData_HGCalWaferIndex_h #include <cmath> #include <cstdint> namespace HGCalWaferIndex { // Packs layer, u, v indices into a single word (useful for xml definition) int32_t waferIndex(int32_t layer, int32_t waferU, int32_t waferV, bool old = false); // Unpacks the layer number from the packed index int32_t waferLayer(const int32_t index); // Unpacks wafer U from the packed index int32_t waferU(const int32_t index); // Unpacks wafer V from the packed index int32_t waferV(const int32_t index); // Gets the used part of the index (Layer:u:v) int32_t waferCopy(const int32_t index); // Finds the index format (old:false or new:true) bool waferFormat(const int32_t index); }; // namespace HGCalWaferIndex #endif