12 #include <arich/dbobjects/ARICHGeoBase.h>
13 #include <framework/gearbox/Unit.h>
19 double ARICHGeoBase::s_unit = Unit::cm;
20 std::string ARICHGeoBase::s_unitName(
"cm");
22 void ARICHGeoBase::print(
const std::string& title)
const
24 cout << title <<
":" << endl;
27 void ARICHGeoBase::printPlacement(
double x,
double y,
double z,
double rx,
double ry,
double rz)
const
30 cout <<
" Center position; x: " << x <<
" " << s_unitName <<
", y: " << y <<
" " << s_unitName <<
", z: " << z <<
" " << s_unitName
32 cout <<
" Rotations; x-axis: " << rx <<
" y-axis: " << ry <<
" z-axis: " << rz <<
" (in rad)" << endl;
36 cout <<
" Optical surface: ";
38 cout <<
"not defined" << endl;
42 cout <<
", model: " << surface.
getModel();
43 cout <<
", finish: " << surface.
getFinish();
44 cout <<
", type: " << surface.
getType();
45 cout <<
", value: " << surface.
getValue();
49 cout <<
" - property: ";
50 cout <<
property.getName() <<
" [";
51 for (
const auto& value : property.getValues()) cout << value <<
", ";
53 for (
const auto& value : property.getEnergies()) cout << value / Unit::eV <<
", ";
54 cout <<
"] eV" << endl;
57 cout <<
" - properties: None" << endl;