Go to the documentation of this file.00001 #include "TrackingTools/TrackFitters/interface/FlexibleKFFittingSmoother.h"
00002
00003 using namespace std;
00004
00005 FlexibleKFFittingSmoother::~FlexibleKFFittingSmoother()
00006 {
00007 delete theStandardFitter;
00008 delete theLooperFitter;
00009 }
00010
00011 std::vector<Trajectory>
00012 FlexibleKFFittingSmoother::fit(const Trajectory& t,fitType type) const {
00013 if(type==standard)
00014 return theStandardFitter->fit(t);
00015 else if(type==looper)
00016 return theLooperFitter->fit(t);
00017 else
00018 return std::vector<Trajectory>();
00019 }
00020
00021
00022
00023 std::vector<Trajectory>
00024 FlexibleKFFittingSmoother::fit(const TrajectorySeed& aSeed,
00025 const RecHitContainer& hits,
00026 const TrajectoryStateOnSurface& firstPredTsos,
00027 fitType type) const{
00028 if(type==standard)
00029 return theStandardFitter->fit(aSeed,hits,firstPredTsos);
00030 else if(type==looper)
00031 return theLooperFitter->fit(aSeed,hits,firstPredTsos);
00032 else
00033 return std::vector<Trajectory>();
00034 }
00035
00036
00037 std::vector<Trajectory>
00038 FlexibleKFFittingSmoother::fit(const TrajectorySeed& aSeed,
00039 const RecHitContainer& hits,
00040 fitType type) const{
00041 if(type==standard)
00042 return theStandardFitter->fit(aSeed,hits);
00043 else if(type==looper)
00044 return theLooperFitter->fit(aSeed,hits);
00045 else
00046 return std::vector<Trajectory>();
00047 }