Stores the positions of a MICE detector in global coordinates.
More...
#include <GeometryHandler.hh>
Stores the positions of a MICE detector in global coordinates.
This object extracts the globals of the requested module from the MICE .dat geometry file. It retains its positions and rotations in the MICE global coordinate system.
| DetectorGlobals::DetectorGlobals |
( |
| ) |
|
Default constructor, initilizes everything to 0.
| DetectorGlobals::DetectorGlobals |
( |
const std::string & |
filename, |
|
|
const std::string & |
name |
|
) |
| |
Import the requested detector.
- Parameters
-
| filename | Path to the MICE geometry file |
| name | Name of the detector |
| DetectorGlobals::DetectorGlobals |
( |
const DetectorGlobals & |
detector_globals | ) |
|
| DetectorGlobals::~DetectorGlobals |
( |
| ) |
|
| double DetectorGlobals::alpha |
( |
| ) |
const |
|
inline |
Returns the global pitch of the detector.
| const TVector3& DetectorGlobals::Angles |
( |
| ) |
const |
|
inline |
Returns the global rotation angles of the detector.
| double DetectorGlobals::beta |
( |
| ) |
const |
|
inline |
Returns the global yaw of the detector.
| double DetectorGlobals::gamma |
( |
| ) |
const |
|
inline |
Returns the global roll of the detector.
| void DetectorGlobals::Load |
( |
const std::string & |
filename, |
|
|
const std::string & |
name |
|
) |
| |
Loads the global constants from the parent geometry file.
- Parameters
-
| filename | Path to the MICE geometry file |
| name | Name of the module |
| const TVector3& DetectorGlobals::operator[] |
( |
const size_t |
i | ) |
const |
|
inline |
Overload the subscript operator, return a value.
| TVector3& DetectorGlobals::operator[] |
( |
const size_t |
i | ) |
|
|
inline |
Overload the subscript operator, return a value, allows mods.
| const TVector3& DetectorGlobals::Position |
( |
| ) |
const |
|
inline |
Returns the global position of the detector.
| void DetectorGlobals::SetAngles |
( |
const TVector3 & |
angles | ) |
|
|
inline |
Sets the global rotation angles of the detector.
| void DetectorGlobals::SetPosition |
( |
const TVector3 & |
pos | ) |
|
Sets the global position of the detector.
| double DetectorGlobals::x |
( |
| ) |
const |
|
inline |
Returns the global x coordinate of the detector.
| double DetectorGlobals::y |
( |
| ) |
const |
|
inline |
Returns the global y coordinate of the detector.
| double DetectorGlobals::z |
( |
| ) |
const |
|
inline |
Returns the global z coordinate of the detector.
| TVector3 DetectorGlobals::_angles |
|
private |
Rotation angles of module.
| TVector3 DetectorGlobals::_pos |
|
private |
| std::vector<TVector3> DetectorGlobals::_subpos |
|
private |
The documentation for this class was generated from the following files: