CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ConvertToFromReco.h
Go to the documentation of this file.
1 #ifndef RecoVertex_ConvertToFromReco_h
2 #define RecoVertex_ConvertToFromReco_h
3 
5 
6 namespace RecoVertex{
8  {
10  pos.SetX(p.x());
11  pos.SetY(p.y());
12  pos.SetZ(p.z());
13  return pos;
14  }
15 
17  { return GlobalPoint(p.x(), p.y(), p.z()); }
18 }
19 
20 #endif
reco::Vertex::Point convertPos(const GlobalPoint &p)
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
T y() const
Definition: PV3DBase.h:57
T z() const
Definition: PV3DBase.h:58
math::XYZPoint Point
point in the space
Definition: Vertex.h:40
T x() const
Definition: PV3DBase.h:56