CMS 3D CMS Logo

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   static 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   static GlobalPoint convertPos(const reco::Vertex::Point& p)
00016     { return GlobalPoint(p.x(), p.y(), p.z()); }
00017 }
00018 
00019 #endif

Generated on Tue Jun 9 17:46:13 2009 for CMSSW by  doxygen 1.5.4