CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch2/src/RecoVertex/VertexTools/src/LinearizationPointFinder.cc

Go to the documentation of this file.
00001 #include "RecoVertex/VertexTools/interface/LinearizationPointFinder.h"
00002 #include "TrackingTools/TrajectoryState/interface/FreeTrajectoryState.h"
00003 #include "TrackingTools/TransientTrack/interface/TransientTrackFromFTSFactory.h"
00004 GlobalPoint LinearizationPointFinder::getLinearizationPoint(
00005     const std::vector<FreeTrajectoryState> & ftses ) const
00006 {
00007   std::vector < reco::TransientTrack > rectracks;
00008   TransientTrackFromFTSFactory factory;
00009   for ( std::vector< FreeTrajectoryState>::const_iterator fts=ftses.begin();
00010         fts!=ftses.end() ; ++fts )
00011   rectracks.push_back ( factory.build(*fts));
00012   return getLinearizationPoint(rectracks);
00013 }