9#include <top/dbobjects/TOPGeoMirrorSegment.h>
26 if (dx > 0) z =
sqrt(z * z - dx * dx);
27 if (dy > 0) z =
sqrt(z * z - dy * dy);
48 cout <<
" Center of curvature: (" <<
getXc() <<
", " <<
getYc()
const std::string & getName() const
get name of the optical surface
bool hasProperties() const
check if the material has at least one property
double getWidth() const
Returns bar segment width.
double getFullLength() const
Returns bar segment length including glue.
double getThickness() const
Returns bar segment thickness.
float m_coatingThickness
reflective coating thickness
float m_radius
spherical mirror radius
double getCoatingThickness() const
Returns reflective coating thickness.
double getYc() const
Returns spherical mirror center of curvature in y.
double getOuterRadius() const
Returns spherical mirror outer radius of curvature.
std::string m_coatingMaterial
reflective coating material
const std::string & getCoatingMaterial() const
Returns reflective coating material.
GeoOpticalSurface m_coatingSurface
reflective coating optical surface
double getRadius() const
Returns spherical mirror radius of curvature.
double getXc() const
Returns spherical mirror center of curvature in x.
double sqrt(double a)
sqrt for double
bool isConsistent() const override
Check for consistency of data members.
virtual void print(const std::string &title="Bar segment geometry parameters") const override
Print the content of the class.
double getZc() const
Returns spherical mirror center of curvature in z (in local frame of this segment)
virtual void printSurface(const GeoOpticalSurface &surface) const
Print the content of optical surface.
static std::string s_unitName
conversion unit name
void print(const std::string &title="Mirror segment geometry parameters") const override
Print the content of the class.
Abstract base class for different kinds of events.