/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/GeometrySurface/interface/BoundDiskSector.h
21 строка
726 B
Fabio Cossutti
Move disk sector classes into DataFormats
23 окт 2020, 19:00
23 окт 2020, 19:00
0028b02
Код
Авторство
О чём код?
#ifndef DataFormats_GeometrySurface_BoundDiskSector_h #define DataFormats_GeometrySurface_BoundDiskSector_h #include "DataFormats/GeometrySurface/interface/Plane.h" #include "DiskSectorBounds.h" class BoundDiskSector final : public Plane { public: ~BoundDiskSector() override {} BoundDiskSector(const PositionType& pos, const RotationType& rot, Bounds* bounds) : Plane(pos, rot, bounds) {} float innerRadius() const { return bounds().innerRadius(); } float outerRadius() const { return bounds().outerRadius(); } float phiHalfExtension() const { return bounds().phiHalfExtension(); } // hide DiskSectorBounds const& bounds() const { return static_cast<DiskSectorBounds const&>(Plane::bounds()); } }; #endif