CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Private Member Functions
TrajectoryFitter Class Referenceabstract

#include <TrajectoryFitter.h>

Inheritance diagram for TrajectoryFitter:
GsfTrajectoryFitter KFFittingSmoother KFSplittingFitter KFTrajectoryFitter

Public Types

enum  fitType { standard = 0, looper = 1 }
 
typedef Trajectory::RecHitContainer RecHitContainer
 
typedef TrajectoryFitterRecord Record
 

Public Member Functions

virtual std::unique_ptr< TrajectoryFitterclone () const =0
 
std::vector< Trajectoryfit (const Trajectory &traj, fitType type=standard) const
 
std::vector< Trajectoryfit (const TrajectorySeed &seed, const RecHitContainer &hits, fitType type=standard) const
 
std::vector< Trajectoryfit (const TrajectorySeed &seed, const RecHitContainer &hits, const TrajectoryStateOnSurface &tsos, fitType type=standard) const
 
virtual Trajectory fitOne (const Trajectory &traj, fitType type=standard) const =0
 
virtual Trajectory fitOne (const TrajectorySeed &seed, const RecHitContainer &hits, fitType typee=standard) const =0
 
virtual Trajectory fitOne (const TrajectorySeed &seed, const RecHitContainer &hits, const TrajectoryStateOnSurface &tsos, fitType type=standard) const =0
 
virtual void setHitCloner (TkCloner const *)=0
 
virtual ~TrajectoryFitter ()
 

Static Private Member Functions

static std::vector< TrajectorymakeVect (Trajectory &&outTraj)
 

Detailed Description

Interface class for trajectory fitters, i.e. computing Trajectories out of a seed and/or collection of RecHits.

Definition at line 21 of file TrajectoryFitter.h.

Member Typedef Documentation

Definition at line 26 of file TrajectoryFitter.h.

Definition at line 25 of file TrajectoryFitter.h.

Member Enumeration Documentation

Enumerator
standard 
looper 

Definition at line 23 of file TrajectoryFitter.h.

23 { standard = 0, looper = 1 };
Definition: looper.py:1

Constructor & Destructor Documentation

virtual TrajectoryFitter::~TrajectoryFitter ( )
inlinevirtual

Member Function Documentation

virtual std::unique_ptr<TrajectoryFitter> TrajectoryFitter::clone ( ) const
pure virtual
std::vector<Trajectory> TrajectoryFitter::fit ( const Trajectory traj,
fitType  type = standard 
) const
inline

Definition at line 45 of file TrajectoryFitter.h.

References fitOne(), and makeVect().

Referenced by DAFTrackProducerAlgorithm::filter(), trackingPlots.Iteration::modules(), and StandAloneMuonRefitter::singleRefit().

45  {
46  return makeVect(fitOne(traj, type));
47  }
type
Definition: HCALResponse.h:21
virtual Trajectory fitOne(const Trajectory &traj, fitType type=standard) const =0
static std::vector< Trajectory > makeVect(Trajectory &&outTraj)
std::vector<Trajectory> TrajectoryFitter::fit ( const TrajectorySeed seed,
const RecHitContainer hits,
fitType  type = standard 
) const
inline

Definition at line 49 of file TrajectoryFitter.h.

References fitOne(), and makeVect().

Referenced by trackingPlots.Iteration::modules().

49  {
50  return makeVect(fitOne(seed, hits, type));
51  }
type
Definition: HCALResponse.h:21
virtual Trajectory fitOne(const Trajectory &traj, fitType type=standard) const =0
static std::vector< Trajectory > makeVect(Trajectory &&outTraj)
std::vector<Trajectory> TrajectoryFitter::fit ( const TrajectorySeed seed,
const RecHitContainer hits,
const TrajectoryStateOnSurface tsos,
fitType  type = standard 
) const
inline

Definition at line 52 of file TrajectoryFitter.h.

References fitOne(), and makeVect().

Referenced by trackingPlots.Iteration::modules().

55  {
56  return makeVect(fitOne(seed, hits, tsos, type));
57  }
type
Definition: HCALResponse.h:21
virtual Trajectory fitOne(const Trajectory &traj, fitType type=standard) const =0
static std::vector< Trajectory > makeVect(Trajectory &&outTraj)
virtual Trajectory TrajectoryFitter::fitOne ( const Trajectory traj,
fitType  type = standard 
) const
pure virtual
virtual Trajectory TrajectoryFitter::fitOne ( const TrajectorySeed seed,
const RecHitContainer hits,
fitType  typee = standard 
) const
pure virtual
virtual Trajectory TrajectoryFitter::fitOne ( const TrajectorySeed seed,
const RecHitContainer hits,
const TrajectoryStateOnSurface tsos,
fitType  type = standard 
) const
pure virtual
static std::vector<Trajectory> TrajectoryFitter::makeVect ( Trajectory &&  outTraj)
inlinestaticprivate

Definition at line 60 of file TrajectoryFitter.h.

References eostools::move().

Referenced by fit().

60  {
61  if (outTraj.isValid())
62  return std::vector<Trajectory>(1, std::move(outTraj));
63  return std::vector<Trajectory>();
64  }
bool isValid() const
Definition: Trajectory.h:257
def move(src, dest)
Definition: eostools.py:511
virtual void TrajectoryFitter::setHitCloner ( TkCloner const *  )
pure virtual