#include <MultiTrajectoryStateMerger.h>
Public Member Functions | |
MultiTrajectoryStateMerger * | clone () const |
TrajectoryStateOnSurface | merge (const TrajectoryStateOnSurface &tsos) const |
MultiTrajectoryStateMerger (const MultiGaussianStateMerger< 5 > &merger) | |
Private Attributes | |
const boost::shared_ptr< const MultiGaussianStateMerger< 5 > > | theMultiStateMerger |
Merging of MultiTrajectoryStates - uses MultiGaussianStateMergers for the actual merging.
Definition at line 15 of file MultiTrajectoryStateMerger.h.
MultiTrajectoryStateMerger::MultiTrajectoryStateMerger | ( | const MultiGaussianStateMerger< 5 > & | merger | ) | [inline] |
Definition at line 17 of file MultiTrajectoryStateMerger.h.
Referenced by clone().
: theMultiStateMerger(merger.clone()) {}
MultiTrajectoryStateMerger* MultiTrajectoryStateMerger::clone | ( | void | ) | const [inline] |
Definition at line 20 of file MultiTrajectoryStateMerger.h.
References MultiTrajectoryStateMerger().
{ return new MultiTrajectoryStateMerger(*this); }
TrajectoryStateOnSurface MultiTrajectoryStateMerger::merge | ( | const TrajectoryStateOnSurface & | tsos | ) | const |
Definition at line 6 of file MultiTrajectoryStateMerger.cc.
References gather_cfg::cout, TrajectoryStateOnSurface::isValid(), GaussianStateConversions::multiGaussianStateFromTSOS(), MultiGaussianStateTransform::multiState(), theMultiStateMerger, and GaussianStateConversions::tsosFromMultiGaussianState().
{ if ( !tsos.isValid() ) std::cout << "Merger called with invalid state" << std::endl; MultiGaussianState<5> multiState(GaussianStateConversions::multiGaussianStateFromTSOS(tsos)); MultiGaussianState<5> mergedStates = theMultiStateMerger->merge(multiState); return GaussianStateConversions::tsosFromMultiGaussianState(mergedStates,tsos); }
const boost::shared_ptr< const MultiGaussianStateMerger<5> > MultiTrajectoryStateMerger::theMultiStateMerger [private] |
Definition at line 25 of file MultiTrajectoryStateMerger.h.
Referenced by merge().