CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/RecoVertex/VertexPrimitives/interface/ConvertToFromReco.h

Go to the documentation of this file.
00001 #ifndef RecoVertex_ConvertToFromReco_h
00002 #define RecoVertex_ConvertToFromReco_h
00003 
00004 #include "RecoVertex/VertexPrimitives/interface/ConvertError.h"
00005 
00006 namespace RecoVertex{
00007   inline reco::Vertex::Point convertPos(const GlobalPoint& p) 
00008     {
00009       reco::Vertex::Point pos;
00010       pos.SetX(p.x());
00011       pos.SetY(p.y());
00012       pos.SetZ(p.z());
00013       return pos;
00014     }
00015 
00016   inline GlobalPoint convertPos(const reco::Vertex::Point& p)
00017     { return GlobalPoint(p.x(), p.y(), p.z()); }
00018 }
00019 
00020 #endif