CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrajectoryFitter.h
Go to the documentation of this file.
1 #ifndef _TrajectoryFitter_H_
2 #define _TrajectoryFitter_H_
3 
6 
7 class TrajectorySeed;
9 
15 
17 public:
18  enum fitType {standard=0, looper=1};
19 
22 
23  virtual ~TrajectoryFitter() {}
24 
25  virtual std::vector<Trajectory> fit(const Trajectory&) const = 0;
26  virtual std::vector<Trajectory> fit(const Trajectory& traj, fitType type) const {return fit(traj);}
27 
28 
29  virtual std::vector<Trajectory> fit(const TrajectorySeed&,
30  const RecHitContainer&) const = 0;
31  virtual std::vector<Trajectory> fit(const TrajectorySeed& seed,
32  const RecHitContainer& hits, fitType type) const {return fit(seed,hits);}
33 
34 
35  virtual std::vector<Trajectory> fit(const TrajectorySeed&,
36  const RecHitContainer&,
37  const TrajectoryStateOnSurface&) const = 0;
38  virtual std::vector<Trajectory> fit(const TrajectorySeed& seed,
39  const RecHitContainer& hits,
40  const TrajectoryStateOnSurface& tsos,
41  fitType type) const {return fit(seed,hits,tsos);}
42 
43 
44  virtual TrajectoryFitter* clone() const = 0;
45 };
46 
47 #endif
type
Definition: HCALResponse.h:22
virtual TrajectoryFitter * clone() const =0
virtual ~TrajectoryFitter()
ConstRecHitContainer RecHitContainer
Definition: Trajectory.h:44
virtual std::vector< Trajectory > fit(const TrajectorySeed &seed, const RecHitContainer &hits, fitType type) const
virtual std::vector< Trajectory > fit(const TrajectorySeed &seed, const RecHitContainer &hits, const TrajectoryStateOnSurface &tsos, fitType type) const
virtual std::vector< Trajectory > fit(const Trajectory &) const =0
TrajectoryFitterRecord Record
virtual std::vector< Trajectory > fit(const Trajectory &traj, fitType type) const
Trajectory::RecHitContainer RecHitContainer