CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/RecoVertex/KinematicFitPrimitives/src/KinematicParameters.cc

Go to the documentation of this file.
00001 #include "RecoVertex/KinematicFitPrimitives/interface/KinematicParameters.h"
00002  
00003 GlobalVector KinematicParameters::momentum() const
00004 {return GlobalVector(par[3], par[4], par[5]);}
00005   
00006 GlobalPoint KinematicParameters::position() const
00007 {return GlobalPoint(par[0], par[1], par[2]);}
00008 
00009 double KinematicParameters::energy() const {
00010   return sqrt(par(3)*par(3)+par(4)*par(4)+par(5)*par(5)+par(6)*par(6));
00011 }
00012