/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Geometry/HGCalCommonData/interface/HGCalGeomRotation.h
30 строк
1 KB
Sunanda
Make some trivial changes to the destructors of a few classes in Geometry/HGCalCommonData
25 окт 2022, 09:44
25 окт 2022, 09:44
280b660
Код
Авторство
О чём код?
#ifndef Geometry_HGCalCommonData_HGCalGeomRotation_h #define Geometry_HGCalCommonData_HGCalGeomRotation_h class HGCalGeomRotation { public: enum class SectorType { Sector120Degrees, Sector60Degrees }; enum class WaferCentring { WaferCentred, CornerCentredY, CornerCentredMercedes }; HGCalGeomRotation(SectorType sectorType) { sectorType_ = sectorType; }; ~HGCalGeomRotation() = default; void uvMappingFromSector0(WaferCentring waferCentring, int& moduleU, int& moduleV, unsigned sector) const; unsigned uvMappingToSector0(WaferCentring waferCentring, int& moduleU, int& moduleV) const; private: void uvMappingFrom120DegreeSector0(WaferCentring waferCentring, int& moduleU, int& moduleV, unsigned sector) const; void uvMappingFrom60DegreeSector0(WaferCentring waferCentring, int& moduleU, int& moduleV, unsigned sector) const; unsigned uvMappingTo120DegreeSector0(WaferCentring waferCentring, int& moduleU, int& moduleV) const; unsigned uvMappingTo60DegreeSector0(WaferCentring waferCentring, int& moduleU, int& moduleV) const; void RotateModule60DegreesAnticlockwise(int& moduleU, int& moduleV) const; void RotateModule60DegreesClockwise(int& moduleU, int& moduleV) const; void RotateModule120DegreesAnticlockwise(int& moduleU, int& moduleV, int offset) const; void RotateModule120DegreesClockwise(int& moduleU, int& moduleV, int offset) const; SectorType sectorType_; }; #endif