00001 00002 // Class WWFitter 00003 // 00004 // Author: Jenny Boehme 00005 // Last update: $Date: 2005/01/12 10:11:46 $ 00006 // by: $Author: blist $ 00007 // 00008 // Description: kinematic fit a la WWFGO 00009 // 00011 00012 #ifndef __WWFITTER_H 00013 #define __WWFITTER_H 00014 00015 #include<vector> 00016 #include"jbltools/kinfit/BaseFitter.h" 00017 00018 class BaseFitObject; 00019 class BaseConstraint; 00071 class WWFitter : public BaseFitter { 00072 public: 00073 WWFitter(); 00074 virtual ~WWFitter(); 00075 virtual double fit(); 00076 00078 00086 virtual int getError() const; 00087 virtual double getProbability() const; 00088 virtual double getChi2() const; 00089 virtual int getIterations() const; 00090 00091 protected: 00092 virtual bool initialize(); 00093 virtual bool updateFitObjects (double eta[]); 00094 enum {NPARMAX=50, NCONMAX=20, NUNMMAX=20}; 00095 00096 int npar; // total number of parameters 00097 int nmea; // total number of measured parameters 00098 int nunm; // total number of unmeasured parameters 00099 int ncon; // total number of constraints 00100 int ierr; // Error status 00101 int nit; // Number of iterations 00102 00103 double fitprob; // fit probability 00104 double chi2; // final chi2 00105 }; 00106 00107 #endif // __WWFITTER_H