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 }