CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Private Member Functions
TrajectoryFitter Class Referenceabstract

#include <TrajectoryFitter.h>

Inheritance diagram for TrajectoryFitter:
GCC11_FINAL< T, TOPO > GCC11_FINAL< T, TOPO > GCC11_FINAL< T, TOPO > GCC11_FINAL< T, TOPO > GCC11_FINAL< T, TOPO >

Public Types

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

Public Member Functions

virtual 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 ~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 18 of file TrajectoryFitter.h.

Member Typedef Documentation

Definition at line 23 of file TrajectoryFitter.h.

Definition at line 22 of file TrajectoryFitter.h.

Member Enumeration Documentation

Enumerator
standard 
looper 

Definition at line 20 of file TrajectoryFitter.h.

Constructor & Destructor Documentation

virtual TrajectoryFitter::~TrajectoryFitter ( )
inlinevirtual

Definition at line 25 of file TrajectoryFitter.h.

25 {}

Member Function Documentation

virtual TrajectoryFitter* TrajectoryFitter::clone ( ) const
pure virtual

Implemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.

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

Definition at line 38 of file TrajectoryFitter.h.

References fitOne(), and makeVect().

38 {return makeVect(fitOne(traj,type));}
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 40 of file TrajectoryFitter.h.

References fitOne(), and makeVect().

41  {return makeVect(fitOne(seed,hits,type));}
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 42 of file TrajectoryFitter.h.

References fitOne(), and makeVect().

45  {return makeVect(fitOne(seed,hits,tsos,type));}
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 49 of file TrajectoryFitter.h.

Referenced by fit().

49  {
50  if (outTraj.isValid()) return std::vector<Trajectory>(1,std::move(outTraj));
51  return std::vector<Trajectory>();
52  }
bool isValid() const
Definition: Trajectory.h:271