10 #include <arich/dbobjects/ARICHGeoBase.h>
11 #include <framework/gearbox/Unit.h>
17 double ARICHGeoBase::s_unit = Unit::cm;
18 std::string ARICHGeoBase::s_unitName(
"cm");
20 void ARICHGeoBase::print(
const std::string& title)
const
22 cout << title <<
":" << endl;
25 void ARICHGeoBase::printPlacement(
double x,
double y,
double z,
double rx,
double ry,
double rz)
const
28 cout <<
" Center position; x: " << x <<
" " << s_unitName <<
", y: " << y <<
" " << s_unitName <<
", z: " << z <<
" " << s_unitName
30 cout <<
" Rotations; x-axis: " << rx <<
" y-axis: " << ry <<
" z-axis: " << rz <<
" (in rad)" << endl;
34 cout <<
" Optical surface: ";
36 cout <<
"not defined" << endl;
40 cout <<
", model: " << surface.
getModel();
41 cout <<
", finish: " << surface.
getFinish();
42 cout <<
", type: " << surface.
getType();
43 cout <<
", value: " << surface.
getValue();
47 cout <<
" - property: ";
48 cout <<
property.getName() <<
" [";
49 for (
const auto& value : property.getValues()) cout << value <<
", ";
51 for (
const auto& value : property.getEnergies()) cout << value / Unit::eV <<
", ";
52 cout <<
"] eV" << endl;
55 cout <<
" - properties: None" << endl;
Represent an optical finish of a surface.
int getFinish() const
get finish of the surface
const std::string & getName() const
get name of the optical surface
double getValue() const
get value for the surface condition
const std::vector< GeoMaterialProperty > & getProperties() const
get all properties
int getType() const
get type of the surface
bool hasProperties() const
check if the material has at least one property
int getModel() const
get model for the surface
Abstract base class for different kinds of events.