CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/TrackingTools/GsfTracking/src/MultiTrajectoryStateMerger.cc

Go to the documentation of this file.
00001 #include "TrackingTools/GsfTracking/interface/MultiTrajectoryStateMerger.h"
00002 
00003 #include "TrackingTools/GsfTracking/interface/TsosGaussianStateConversions.h"
00004 
00005 TrajectoryStateOnSurface
00006 MultiTrajectoryStateMerger::merge (const TrajectoryStateOnSurface& tsos) const
00007 {
00008   if ( !tsos.isValid() )  std::cout << "Merger called with invalid state" << std::endl;
00009   MultiGaussianState<5> multiState(GaussianStateConversions::multiGaussianStateFromTSOS(tsos));
00010   MultiGaussianState<5> mergedStates = theMultiStateMerger->merge(multiState);
00011   return GaussianStateConversions::tsosFromMultiGaussianState(mergedStates,tsos);
00012 }