|
| 1 | +#ifndef SBND_CRTSPACEPOINT_CXX |
| 2 | +#define SBND_CRTSPACEPOINT_CXX |
| 3 | + |
| 4 | +#include "sbnobj/SBND/CRT/CRTSpacePoint.hh" |
| 5 | + |
| 6 | +namespace sbnd { |
| 7 | + |
| 8 | + namespace crt { |
| 9 | + |
| 10 | + CRTSpacePoint::CRTSpacePoint() |
| 11 | + : fPos ({0., 0., 0.}) |
| 12 | + , fPosErr ({0., 0., 0.}) |
| 13 | + , fPE (0.) |
| 14 | + , fTime (0.) |
| 15 | + , fTimeErr (0.) |
| 16 | + , fComplete (false) |
| 17 | + {} |
| 18 | + |
| 19 | + CRTSpacePoint::CRTSpacePoint(double _x, double _ex, double _y, double _ey, double _z, double _ez, |
| 20 | + double _pe, double _time, double _etime, bool _complete) |
| 21 | + : fPos ({_x, _y, _z}) |
| 22 | + , fPosErr ({_ex, _ey, _ez}) |
| 23 | + , fPE (_pe) |
| 24 | + , fTime (_time) |
| 25 | + , fTimeErr (_etime) |
| 26 | + , fComplete (_complete) |
| 27 | + {} |
| 28 | + |
| 29 | + CRTSpacePoint::CRTSpacePoint(geo::Point_t _pos, geo::Point_t _err, double _pe, double _time, double _etime, bool _complete) |
| 30 | + : fPos (_pos) |
| 31 | + , fPosErr (_err) |
| 32 | + , fPE (_pe) |
| 33 | + , fTime (_time) |
| 34 | + , fTimeErr (_etime) |
| 35 | + , fComplete (_complete) |
| 36 | + {} |
| 37 | + |
| 38 | + CRTSpacePoint::~CRTSpacePoint() {} |
| 39 | + |
| 40 | + double CRTSpacePoint::X() const { return fPos.X(); } |
| 41 | + double CRTSpacePoint::XErr() const { return fPosErr.X(); } |
| 42 | + double CRTSpacePoint::Y() const { return fPos.Y(); } |
| 43 | + double CRTSpacePoint::YErr() const { return fPosErr.Y(); } |
| 44 | + double CRTSpacePoint::Z() const { return fPos.Z(); } |
| 45 | + double CRTSpacePoint::ZErr() const { return fPosErr.Z(); } |
| 46 | + geo::Point_t CRTSpacePoint::Pos() const { return fPos; } |
| 47 | + geo::Point_t CRTSpacePoint::Err() const { return fPosErr; } |
| 48 | + double CRTSpacePoint::PE() const { return fPE; } |
| 49 | + double CRTSpacePoint::Time() const { return fTime; } |
| 50 | + double CRTSpacePoint::TimeErr() const { return fTimeErr; } |
| 51 | + bool CRTSpacePoint::Complete() const { return fComplete; } |
| 52 | + } |
| 53 | +} |
| 54 | + |
| 55 | +#endif |
0 commit comments