Vector_ROOT.cc
Go to the documentation of this file.
1 #include <io/Vector_ROOT.h>
2 #include <det/Detector.h>
3 #include <utl/CoordinateSystem.h>
4 #include <utl/Vector.h>
5 #include <utl/AxialVector.h>
6 
7 using namespace io;
8 using namespace utl;
9 
10 
12 {
13  const utl::Vector::Triple t =
14  v.GetCoordinates(det::Detector::GetInstance().GetSiteCoordinateSystem());
15  fVector.SetXYZ(t.get<0>(), t.get<1>(), t.get<2>());
16 }
17 
18 
19 void
21  const
22 {
23  v =
24  utl::Vector(fVector.X(), fVector.Y(), fVector.Z(),
25  det::Detector::GetInstance().GetSiteCoordinateSystem());
26 }
27 
28 
29 void
31  const
32 {
33  v =
34  utl::AxialVector(fVector.X(), fVector.Y(), fVector.Z(),
35  det::Detector::GetInstance().GetSiteCoordinateSystem());
36 }
boost::tuple< double, double, double > Triple
Coordinate triple for easy getting or setting of coordinates.
Definition: BasicVector.h:147
void operator>>(utl::Vector &vector) const
Definition: Vector_ROOT.cc:20
Vector object.
Definition: Vector.h:30
AxialVector object.
Definition: AxialVector.h:30

, generated on Tue Sep 26 2023.