Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:29:19

0001 #ifndef RecoVertex_ConvertToFromReco_h
0002 #define RecoVertex_ConvertToFromReco_h
0003 
0004 #include "RecoVertex/VertexPrimitives/interface/ConvertError.h"
0005 
0006 namespace RecoVertex {
0007   inline reco::Vertex::Point convertPos(const GlobalPoint& p) {
0008     reco::Vertex::Point pos;
0009     pos.SetX(p.x());
0010     pos.SetY(p.y());
0011     pos.SetZ(p.z());
0012     return pos;
0013   }
0014 
0015   inline GlobalPoint convertPos(const reco::Vertex::Point& p) { return GlobalPoint(p.x(), p.y(), p.z()); }
0016 }  // namespace RecoVertex
0017 
0018 #endif