![]() |
Belle II Software
release-05-02-19
|
Class for jets with (E, eta, phi) in kinematic fits. More...
#include <JetFitObject.h>
Public Member Functions | |
JetFitObject (double E, double theta, double phi, double DE, double Dtheta, double Dphi, double m=0) | |
JetFitObject (const JetFitObject &rhs) | |
Copy constructor. More... | |
JetFitObject & | operator= (const JetFitObject &rhs) |
Assignment. More... | |
virtual JetFitObject * | copy () const override |
Return a new copy of itself. | |
virtual JetFitObject & | assign (const BaseFitObject &source) override |
Assign from anther object, if of same type. More... | |
virtual const char * | getParamName (int ilocal) const override |
Get name of parameter ilocal. More... | |
virtual bool | updateParams (double p[], int idim) override |
Read values from global vector, readjust vector; return: significant change. More... | |
virtual int | getNPar () const override |
virtual double | getDPx (int ilocal) const override |
Return d p_x / d par_ilocal (derivative of px w.r.t. local parameter ilocal) More... | |
virtual double | getDPy (int ilocal) const override |
Return d p_y / d par_ilocal (derivative of py w.r.t. local parameter ilocal) More... | |
virtual double | getDPz (int ilocal) const override |
Return d p_z / d par_ilocal (derivative of pz w.r.t. local parameter ilocal) More... | |
virtual double | getDE (int ilocal) const override |
Return d E / d par_ilocal (derivative of E w.r.t. local parameter ilocal) More... | |
virtual double | getCov (int ilocal, int jlocal) const override |
virtual double | getError (int ilocal) const override |
Get error of parameter ilocal. More... | |
virtual double | getFirstDerivative_Meta_Local (int iMeta, int ilocal, int metaSet) const override |
add derivatives to vector der of size idim pxfact*dpx/dx_i + pyfact*dpy/dx_i + pzfact*dpz/dx_i + efact*dE/dx_i | |
virtual double | getSecondDerivative_Meta_Local (int iMeta, int ilocal, int jlocal, int metaSet) const override |
virtual bool | setMass (double mass_) |
Set mass of particle; return=success. | |
virtual double | getMass () const |
Get mass of particle. | |
virtual std::ostream & | print4Vector (std::ostream &os) const |
print the four-momentum (E, px, py, pz) More... | |
virtual FourVector | getFourMomentum () const |
virtual double | getE () const |
Return E. | |
virtual double | getPx () const |
Return px. | |
virtual double | getPy () const |
Return py. | |
virtual double | getPz () const |
Return pz. | |
virtual double | getP () const |
Return p (momentum) | |
virtual double | getP2 () const |
Return p (momentum) squared. | |
virtual double | getPt () const |
Return pt (transverse momentum) | |
virtual double | getPt2 () const |
Return pt (transverse momentum) squared. | |
virtual void | getDerivatives (double der[], int idim) const override |
virtual void | addToGlobalChi2DerMatrixNum (double *M, int idim, double eps) |
Add numerically determined derivatives of chi squared to global covariance matrix. More... | |
virtual void | addToGlobalChi2DerVectorNum (double *y, int idim, double eps) |
Add numerically determined derivatives of chi squared to global derivative vector. More... | |
virtual std::ostream & | print (std::ostream &os) const override |
print object to ostream More... | |
void | test1stDerivatives () |
void | test2ndDerivatives () |
double | num1stDerivative (int ilocal, double eps) |
Evaluates numerically the 1st derivative of chi2 w.r.t. a parameter. More... | |
double | num2ndDerivative (int ilocal1, double eps1, int ilocal2, double eps2) |
Evaluates numerically the 2nd derivative of chi2 w.r.t. 2 parameters. More... | |
virtual double | getChi2 () const override |
Protected Types | |
enum | { NPAR = 3 } |
Get chi squared from measured and fitted parameters. | |
Protected Member Functions | |
void | updateCache () const override |
Static Protected Member Functions | |
static bool | adjustEThetaPhi (const double &m, double &E, double &theta, double &phi) |
Adjust E, theta and phi such that E>=m, 0<=theta<=pi, -pi <= phi < pi; returns true if anything was changed. | |
Protected Attributes | |
double | ctheta |
double | stheta |
double | cphi |
double | sphi |
double | p2 |
double | p |
double | pt |
double | px |
double | py |
double | pz |
double | dpdE |
double | dptdE |
double | dpxdE |
double | dpydE |
double | dpzdE |
double | dpxdtheta |
double | dpydtheta |
double | chi2 |
double | mass |
mass of particle | |
FourVector | fourMomentum |
double | paramCycl [BaseDefs::MAXPAR] |
Class for jets with (E, eta, phi) in kinematic fits.
Author: Jenny List, Benno List
Changelog:
Definition at line 57 of file JetFitObject.h.
JetFitObject | ( | const JetFitObject & | rhs | ) |
|
virtualinherited |
Add numerically determined derivatives of chi squared to global covariance matrix.
M | Global covariance matrix |
idim | First dimension of global covariance matrix |
eps | Parameter variation |
Definition at line 162 of file ParticleFitObject.cc.
|
virtualinherited |
Add numerically determined derivatives of chi squared to global derivative vector.
y | Vector of chi2 derivatives |
idim | Vector size |
eps | Parameter variation |
Definition at line 152 of file ParticleFitObject.cc.
|
overridevirtual |
Assign from anther object, if of same type.
source | The source object |
Reimplemented from ParticleFitObject.
Definition at line 103 of file JetFitObject.cc.
|
overridevirtual |
ilocal | Local parameter number i |
jlocal | Local parameter number j |
Definition at line 219 of file JetFitObject.cc.
|
overridevirtual |
Return d E / d par_ilocal (derivative of E w.r.t. local parameter ilocal)
ilocal | Local parameter number |
Implements ParticleFitObject.
Definition at line 201 of file JetFitObject.cc.
|
overridevirtual |
Return d p_x / d par_ilocal (derivative of px w.r.t. local parameter ilocal)
ilocal | Local parameter number |
Implements ParticleFitObject.
Definition at line 165 of file JetFitObject.cc.
|
overridevirtual |
Return d p_y / d par_ilocal (derivative of py w.r.t. local parameter ilocal)
ilocal | Local parameter number |
Implements ParticleFitObject.
Definition at line 177 of file JetFitObject.cc.
|
overridevirtual |
Return d p_z / d par_ilocal (derivative of pz w.r.t. local parameter ilocal)
ilocal | Local parameter number |
Implements ParticleFitObject.
Definition at line 189 of file JetFitObject.cc.
|
overridevirtual |
Get error of parameter ilocal.
ilocal | Local parameter number |
Definition at line 212 of file JetFitObject.cc.
|
overridevirtual |
Get name of parameter ilocal.
ilocal | Local parameter number |
Definition at line 116 of file JetFitObject.cc.
|
inherited |
Evaluates numerically the 1st derivative of chi2 w.r.t. a parameter.
ilocal | Local parameter number |
eps | variation of local parameter |
Definition at line 230 of file ParticleFitObject.cc.
|
inherited |
Evaluates numerically the 2nd derivative of chi2 w.r.t. 2 parameters.
ilocal1 | 1st local parameter number |
eps1 | variation of 1st local parameter |
ilocal2 | 1st local parameter number |
eps2 | variation of 2nd local parameter |
Definition at line 242 of file ParticleFitObject.cc.
JetFitObject & operator= | ( | const JetFitObject & | rhs | ) |
|
overridevirtualinherited |
print object to ostream
os | The output stream |
Definition at line 140 of file ParticleFitObject.cc.
|
virtualinherited |
print the four-momentum (E, px, py, pz)
os | The output stream |
Definition at line 94 of file ParticleFitObject.cc.
|
overridevirtual |
Read values from global vector, readjust vector; return: significant change.
p | The parameter vector |
idim | Length of the vector |
Definition at line 127 of file JetFitObject.cc.