Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

BaseFitter Class Reference

Abstract base class for fitting engines of kinematic fits. More...

#include <BaseFitter.h>

Inheritance diagram for BaseFitter:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 BaseFitter ()
virtual ~BaseFitter ()
virtual void addFitObject (BaseFitObject *fitobject_)
virtual void addFitObject (BaseFitObject &fitobject_)
virtual void addConstraint (BaseConstraint *constraint_)
virtual void addConstraint (BaseConstraint &constraint_)
virtual std::vector< BaseFitObject * > * getFitObjects ()
virtual std::vector< BaseConstraint * > * getConstraints ()
virtual double fit ()=0
virtual int getError () const=0
virtual double getProbability () const=0
virtual double getChi2 () const=0
virtual int getIterations () const=0
virtual void reset ()

Protected Types

typedef std::vector< BaseFitObject * > FitObjectContainer
typedef std::vector< BaseConstraint * > ConstraintContainer
typedef FitObjectContainer::iterator FitObjectIterator

Protected Member Functions

virtual bool initialize ()=0

Protected Attributes

FitObjectContainer fitobjects
ConstraintContainer constraints

Detailed Description

Abstract base class for fitting engines of kinematic fits.

Author: Jenny List, Benno List Last update:

Date
2007/09/14 10:58:42
by:
Author
blist

Definition at line 34 of file BaseFitter.h.


Member Typedef Documentation

typedef std::vector<BaseConstraint *> BaseFitter::ConstraintContainer [protected]
 

Definition at line 67 of file BaseFitter.h.

typedef std::vector<BaseFitObject *> BaseFitter::FitObjectContainer [protected]
 

Definition at line 66 of file BaseFitter.h.

typedef FitObjectContainer::iterator BaseFitter::FitObjectIterator [protected]
 

Definition at line 69 of file BaseFitter.h.

Referenced by NewtonFitter::fit().


Constructor & Destructor Documentation

BaseFitter::BaseFitter  )  [inline]
 

Definition at line 36 of file BaseFitter.h.

virtual BaseFitter::~BaseFitter  )  [inline, virtual]
 

Definition at line 37 of file BaseFitter.h.


Member Function Documentation

virtual void BaseFitter::addConstraint BaseConstraint constraint_  )  [inline, virtual]
 

Definition at line 47 of file BaseFitter.h.

References constraints.

virtual void BaseFitter::addConstraint BaseConstraint constraint_  )  [inline, virtual]
 

Definition at line 44 of file BaseFitter.h.

References constraints.

Referenced by VertexFitObject::addMomentumConstraint(), VertexFitObject::addVertexConstraints(), TopEvent::fitEvent(), and main().

virtual void BaseFitter::addFitObject BaseFitObject fitobject_  )  [inline, virtual]
 

Definition at line 41 of file BaseFitter.h.

References fitobjects.

virtual void BaseFitter::addFitObject BaseFitObject fitobject_  )  [inline, virtual]
 

Definition at line 38 of file BaseFitter.h.

References fitobjects.

Referenced by TopEvent::fitEvent(), K0Event::fitEvent(), H1K0Event2::fitEvent(), H1K0Event::fitEvent(), and main().

virtual double BaseFitter::fit  )  [pure virtual]
 

Implemented in NewtonFitter, WWFitter, and WWFitterFast.

Referenced by TopEvent::fitEvent(), K0Event::fitEvent(), H1K0Event2::fitEvent(), and H1K0Event::fitEvent().

virtual double BaseFitter::getChi2  )  const [pure virtual]
 

Implemented in WWFitter, and WWFitterFast.

virtual std::vector<BaseConstraint*>* BaseFitter::getConstraints  )  [inline, virtual]
 

Definition at line 51 of file BaseFitter.h.

References constraints.

virtual int BaseFitter::getError  )  const [pure virtual]
 

Implemented in WWFitter, and WWFitterFast.

Referenced by TopEvent::fitEvent(), K0Event::fitEvent(), H1K0Event2::fitEvent(), and H1K0Event::fitEvent().

virtual std::vector<BaseFitObject*>* BaseFitter::getFitObjects  )  [inline, virtual]
 

Definition at line 50 of file BaseFitter.h.

References fitobjects.

virtual int BaseFitter::getIterations  )  const [pure virtual]
 

Implemented in WWFitter, and WWFitterFast.

virtual double BaseFitter::getProbability  )  const [pure virtual]
 

Implemented in WWFitter, and WWFitterFast.

virtual bool BaseFitter::initialize  )  [protected, pure virtual]
 

Implemented in NewtonFitter, WWFitter, and WWFitterFast.

virtual void BaseFitter::reset  )  [inline, virtual]
 

Definition at line 58 of file BaseFitter.h.

References constraints, and fitobjects.

Referenced by TopEvent::fitEvent().


Member Data Documentation

ConstraintContainer BaseFitter::constraints [protected]
 

Definition at line 72 of file BaseFitter.h.

Referenced by addConstraint(), WWFitterFast::fit(), WWFitter::fit(), getConstraints(), WWFitterFast::initialize(), WWFitter::initialize(), NewtonFitter::initialize(), and reset().

FitObjectContainer BaseFitter::fitobjects [protected]
 

Definition at line 71 of file BaseFitter.h.

Referenced by addFitObject(), WWFitterFast::fit(), WWFitter::fit(), NewtonFitter::fit(), getFitObjects(), WWFitterFast::initialize(), WWFitter::initialize(), NewtonFitter::initialize(), reset(), WWFitterFast::updateFitObjects(), and WWFitter::updateFitObjects().


The documentation for this class was generated from the following file:
Generated on Fri Sep 14 17:38:35 2007 for Kinfit by doxygen 1.3.2