Point_ROOT.cc
Go to the documentation of this file.
1 #include <io/Point_ROOT.h>
2 #include <det/Detector.h>
3 #include <utl/CoordinateSystem.h>
4 #include <utl/Point.h>
5 
6 using namespace io;
7 
8 
10 {
11  const utl::Point::Triple t =
12  p.GetCoordinates(det::Detector::GetInstance().GetSiteCoordinateSystem());
13  fPoint.SetXYZ(t.get<0>(), t.get<1>(), t.get<2>());
14 }
15 
16 
17 void
19  const
20 {
21  p =
22  utl::Point(fPoint.X(), fPoint.Y(), fPoint.Z(),
23  det::Detector::GetInstance().GetSiteCoordinateSystem());
24 }
Point object.
Definition: Point.h:32
boost::tuple< double, double, double > Triple
Coordinate triple for easy getting or setting of coordinates.
Definition: BasicVector.h:147
void operator>>(utl::Point &p) const
Definition: Point_ROOT.cc:18
TVector3 fPoint
Definition: Point_ROOT.h:34

, generated on Tue Sep 26 2023.