#include <WWFitter.h>
Inheritance diagram for WWFitter:
Public Member Functions | |
WWFitter () | |
virtual | ~WWFitter () |
virtual double | fit () |
virtual int | getError () const |
Return error code. | |
virtual double | getProbability () const |
virtual double | getChi2 () const |
virtual int | getIterations () const |
Protected Types | |
enum | { NPARMAX = 50, NCONMAX = 20, NUNMMAX = 20 } |
Protected Member Functions | |
virtual bool | initialize () |
virtual bool | updateFitObjects (double eta[]) |
Protected Attributes | |
int | npar |
int | nmea |
int | nunm |
int | ncon |
int | ierr |
int | nit |
double | fitprob |
double | chi2 |
The WWFitter object holds a set (fitobjects) of BaseFitObject objects, which represent the objects (particles, jets) whose fourvectors shall be fitted. It also holds a set (constraints) of BaseConstraint objects that represent the constraints (momentum or mass constraints).
WWFitter::initialize goes over the list of fit objects and determines the number of parameters (measured and unmeasured), and assigns global numbers to them.
WWFitter::fit first initializes the global parameter numbering using WWFitter::initialize.
Then it initializes vectors eta () and y () with the current parameter values.
Next it initializes the matrix dfeta that represents
Used methods in WWFitter::initialize:
Used methods in WWFitter::updateFitObjects:
Used methods in WWFitter::fit:
Interaction between Constraints and Particles
The Fitter does not care how the constraints and BaseFitObject objects interact. The constraints are expressed in terms of four-vector components of the BaseFitObjects. A constraint object keeps a set of BaseFitObject objects, and, using the chain rule, calculates its derivatives w.r.t. the global parameters.
Definition at line 71 of file WWFitter.h.
|
Definition at line 94 of file WWFitter.h. |
|
Definition at line 44 of file WWFitter.C. |
|
Definition at line 47 of file WWFitter.C. |
|
initialize dfeta ( = d F / d eta) Implements BaseFitter. Definition at line 50 of file WWFitter.C. References chi2, BaseFitter::constraints, dinv(), dsinv(), FDouble, FInteger, BaseFitter::fitobjects, fitprob, FReal, ierr, initialize(), ncon, NCONMAX, nit, nmea, npar, NPARMAX, nunm, NUNMMAX, prob(), and updateFitObjects(). Referenced by main(). |
|
Implements BaseFitter. Definition at line 671 of file WWFitter.C. References chi2. Referenced by main(). |
|
Return error code. Error code meanings:
Implements BaseFitter. Definition at line 669 of file WWFitter.C. References ierr. Referenced by main(). |
|
Implements BaseFitter. Definition at line 672 of file WWFitter.C. References nit. Referenced by main(). |
|
Implements BaseFitter. Definition at line 670 of file WWFitter.C. References fitprob. Referenced by main(). |
|
Implements BaseFitter. Definition at line 604 of file WWFitter.C. References BaseFitter::constraints, BaseFitter::fitobjects, ncon, NCONMAX, nmea, npar, NPARMAX, nunm, and NUNMMAX. Referenced by fit(). |
|
Definition at line 649 of file WWFitter.C. References BaseFitter::fitobjects. Referenced by fit(). |
|
Definition at line 104 of file WWFitter.h. |
|
Definition at line 103 of file WWFitter.h. Referenced by fit(), and getProbability(). |
|
Definition at line 100 of file WWFitter.h. Referenced by fit(), and getError(). |
|
Definition at line 99 of file WWFitter.h. Referenced by fit(), and initialize(). |
|
Definition at line 101 of file WWFitter.h. Referenced by fit(), and getIterations(). |
|
Definition at line 97 of file WWFitter.h. Referenced by fit(), and initialize(). |
|
Definition at line 96 of file WWFitter.h. Referenced by fit(), and initialize(). |
|
Definition at line 98 of file WWFitter.h. Referenced by fit(), and initialize(). |