Belle II Software  release-08-01-10
GeoOpticalSurface Class Reference

Represent an optical finish of a surface. More...

#include <GeoOpticalSurface.h>

Inheritance diagram for GeoOpticalSurface:
Collaboration diagram for GeoOpticalSurface:

Public Member Functions

 GeoOpticalSurface ()=default
 empty constructor for ROOT
 
 GeoOpticalSurface (const std::string &name, int model, int finish, int type, double value)
 real constructor
 
void setName (const std::string &name)
 set name of the optical surface
 
void setModel (int model)
 set model for the surface
 
void setFinish (int finish)
 set finish of the surface
 
void setType (int type)
 set type of the surface
 
void setValue (double value)
 set value for the surface condition
 
void addProperty (const GeoMaterialProperty &property)
 add a property to the material
 
const std::string & getName () const
 get name of the optical surface
 
int getModel () const
 get model for the surface
 
int getFinish () const
 get finish of the surface
 
int getType () const
 get type of the surface
 
double getValue () const
 get value for the surface condition
 
const std::vector< GeoMaterialProperty > & getProperties () const
 get all properties
 
bool hasProperties () const
 check if the material has at least one property More...
 

Private Member Functions

 ClassDef (GeoOpticalSurface, 1)
 Add ROOT reflection info.
 

Private Attributes

std::string m_name
 name of the optical surface
 
int m_model
 model for the surface
 
int m_finish
 finish of the surface
 
int m_type
 type of the surface
 
double m_value
 value for the surface condition
 
std::vector< GeoMaterialPropertym_properties
 properties of this material
 

Detailed Description

Represent an optical finish of a surface.

Definition at line 21 of file GeoOpticalSurface.h.

Member Function Documentation

◆ hasProperties()

bool hasProperties ( ) const
inline

check if the material has at least one property

Returns
true if there is at least one property

Definition at line 54 of file GeoOpticalSurface.h.

54 { return m_properties.size() > 0; }
std::vector< GeoMaterialProperty > m_properties
properties of this material

The documentation for this class was generated from the following file: