Belle II Software development
|
Public Member Functions | |
PxPyPzMFitObject (CLHEP::HepLorentzVector &particle, const CLHEP::HepSymMatrix &covmatrix) | |
PxPyPzMFitObject (const PxPyPzMFitObject &rhs) | |
PxPyPzMFitObject & | operator= (const PxPyPzMFitObject &rhs) |
virtual PxPyPzMFitObject * | copy () const override |
Return a new copy of itself. | |
virtual PxPyPzMFitObject & | assign (const BaseFitObject &source) override |
Assign from anther object, if of same type. | |
virtual const char * | getParamName (int ilocal) const override |
Get name of parameter ilocal. | |
virtual bool | updateParams (double p[], int idim) override |
Read values from global vector, readjust vector; return: significant change. | |
virtual double | getDPx (int ilocal) const override |
Return d p_x / d par_ilocal (derivative of px w.r.t. local parameter ilocal) | |
virtual double | getDPy (int ilocal) const override |
Return d p_y / d par_ilocal (derivative of py w.r.t. local parameter ilocal) | |
virtual double | getDPz (int ilocal) const override |
Return d p_z / d par_ilocal (derivative of pz w.r.t. local parameter ilocal) | |
virtual double | getDE (int ilocal) const override |
Return d E / d par_ilocal (derivative of E w.r.t. local parameter ilocal) | |
virtual double | getFirstDerivative_Meta_Local (int iMeta, int ilocal, int metaSet) const override |
virtual double | getSecondDerivative_Meta_Local (int iMeta, int ilocal, int jlocal, int metaSet) const override |
virtual int | getNPar () const override |
Get total number of parameters of this FitObject. | |
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) | |
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. | |
virtual void | addToGlobalChi2DerVectorNum (double *y, int idim, double eps) |
Add numerically determined derivatives of chi squared to global derivative vector. | |
virtual std::ostream & | print (std::ostream &os) const override |
print object to ostream | |
void | test1stDerivatives () |
void | test2ndDerivatives () |
double | num1stDerivative (int ilocal, double eps) |
Evaluates numerically the 1st derivative of chi2 w.r.t. a parameter. | |
double | num2ndDerivative (int ilocal1, double eps1, int ilocal2, double eps2) |
Evaluates numerically the 2nd derivative of chi2 w.r.t. 2 parameters. | |
virtual double | getChi2 () const override |
Get chi squared from measured and fitted parameters. | |
virtual bool | setParam (int ilocal, double par_, bool measured_, bool fixed_=false) |
Set value and measured flag of parameter i; return: significant change. | |
virtual bool | setParam (int ilocal, double par_) |
Set value of parameter ilocal; return: significant change. | |
virtual bool | setMParam (int ilocal, double mpar_) |
Set measured value of parameter ilocal; return: success. | |
virtual bool | setError (int ilocal, double err_) |
Set error of parameter ilocal; return: success. | |
virtual bool | setCov (int ilocal, int jlocal, double cov_) |
Set covariance of parameters ilocal and jlocal; return: success. | |
virtual bool | setGlobalParNum (int ilocal, int iglobal) |
Set number of parameter ilocal in global list return true signals OK. | |
virtual bool | fixParam (int ilocal, bool fix=true) |
Fix a parameter (fix=true), or release it (fix=false) | |
virtual bool | releaseParam (int ilocal) |
Release a parameter. | |
virtual bool | isParamFixed (int ilocal) const |
Returns whether parameter is fixed. | |
virtual double | getParam (int ilocal) const |
Get current value of parameter ilocal. | |
virtual const char * | getName () const |
Get object's name. | |
void | setName (const char *name_) |
Set object's name. | |
virtual double | getMParam (int ilocal) const |
Get measured value of parameter ilocal. | |
virtual double | getError (int ilocal) const |
Get error of parameter ilocal. | |
virtual double | getCov (int ilocal, int jlocal) const |
Get covariance between parameters ilocal and jlocal. | |
virtual double | getRho (int ilocal, int jlocal) const |
Get correlation coefficient between parameters ilocal and jlocal. | |
virtual bool | isParamMeasured (int ilocal) const |
Get measured flag for parameter ilocal. | |
virtual int | getGlobalParNum (int ilocal) const |
Get global parameter number of parameter ilocal. | |
virtual int | getNMeasured () const |
Get number of measured parameters of this FitObject. | |
virtual int | getNUnmeasured () const |
Get number of unmeasured parameters of this FitObject. | |
virtual int | getNFree () const |
Get number of free parameters of this FitObject. | |
virtual int | getNFixed () const |
Get number of fixed parameters of this FitObject. | |
virtual double | getDChi2DParam (int ilocal) const |
Get derivative of chi squared w.r.t. parameter ilocal. | |
virtual double | getD2Chi2DParam2 (int ilocal, int jlocal) const |
Get second derivative of chi squared w.r.t. parameters ilocal1 and ilocal2. | |
virtual std::ostream & | printParams (std::ostream &os) const |
print the parameters and errors | |
virtual std::ostream & | printRhoValues (std::ostream &os) const |
print the correlation coefficients | |
virtual std::ostream & | print1stDerivatives (std::ostream &os) const |
print the 1st derivatives wrt metaSet 0 (E, px, py, pz) | |
virtual std::ostream & | print2ndDerivatives (std::ostream &os) const |
print the 2nd derivatives wrt metaSet 0 (E, px, py, pz) | |
void | invalidateCache () const |
invalidate any cached quantities | |
virtual void | addToGlobCov (double *glcov, int idim) const |
Add covariance matrix elements to global covariance matrix of size idim x idim. | |
virtual int | addToGlobalChi2DerVector (double *y, int idim) const |
Add derivatives of chi squared to global derivative vector. | |
virtual void | addToGlobalChi2DerVector (double *y, int idim, double lambda, double der[], int metaSet) const |
Add derivatives of momentum vector to global derivative vector. | |
virtual void | addToGlobalChi2DerMatrix (double *M, int idim) const |
Add 2nd derivatives of chi squared to global derivative matrix. | |
virtual void | addTo1stDerivatives (double M[], int idim, double der[], int kglobal, int metaSet) const |
virtual void | addTo2ndDerivatives (double der2[], int idim, double factor[], int metaSet) const |
virtual void | addTo2ndDerivatives (double M[], int idim, double lambda, double der[], int metaSet) const |
virtual void | initCov () |
virtual double | getError2 (double der[], int metaset) const |
Protected Types | |
enum | { NPAR = 3 } |
Protected Member Functions | |
void | updateCache () const override |
virtual bool | calculateCovInv () const |
Calculate the inverse of the covariance matrix. | |
Protected Attributes | |
bool | cachevalid |
double | chi2 |
double | dEdpx |
double | dEdpy |
double | dEdpz |
double | dE2dpxdpx |
double | dE2dpxdpy |
double | dE2dpxdpz |
double | dE2dpydpy |
double | dE2dpydpz |
double | dE2dpzdpz |
double | mass |
mass of particle | |
FourVector | fourMomentum |
double | paramCycl [BaseDefs::MAXPAR] |
char * | name |
double | par [BaseDefs::MAXPAR] |
fit parameters | |
double | mpar [BaseDefs::MAXPAR] |
measured parameters | |
bool | measured [BaseDefs::MAXPAR] |
measured flag | |
bool | fixed [BaseDefs::MAXPAR] |
fixed flag | |
int | globalParNum [BaseDefs::MAXPAR] |
global parameter number for each parameter | |
double | cov [BaseDefs::MAXPAR][BaseDefs::MAXPAR] |
local covariance matrix | |
double | covinv [BaseDefs::MAXPAR][BaseDefs::MAXPAR] |
inverse pf local covariance matrix | |
bool | covinvvalid |
flag for valid inverse covariance matrix | |
Static Protected Attributes | |
static const double | eps2 = 0.0001 |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &os, const BaseFitObject &bfo) |
Prints out a BaseFitObject, using its print method. | |
Definition at line 26 of file PxPyPzMFitObject.h.
|
protected |
Definition at line 81 of file PxPyPzMFitObject.h.
PxPyPzMFitObject | ( | CLHEP::HepLorentzVector & | particle, |
const CLHEP::HepSymMatrix & | covmatrix | ||
) |
Definition at line 27 of file PxPyPzMFitObject.cc.
PxPyPzMFitObject | ( | const PxPyPzMFitObject & | rhs | ) |
rhs | right hand side |
Definition at line 58 of file PxPyPzMFitObject.cc.
|
virtualinherited |
Definition at line 515 of file BaseFitObject.cc.
|
virtualinherited |
Definition at line 534 of file BaseFitObject.cc.
|
virtualinherited |
Definition at line 559 of file BaseFitObject.cc.
|
virtualinherited |
Add 2nd derivatives of chi squared to global derivative matrix.
M | Global derivative matrix |
idim | First dimension of global derivative matrix |
Definition at line 462 of file BaseFitObject.cc.
|
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 derivatives of chi squared to global derivative vector.
y | Vector of chi2 derivatives |
idim | Vector size |
Definition at line 482 of file BaseFitObject.cc.
|
virtualinherited |
Add derivatives of momentum vector to global derivative vector.
y | Vector of chi2 derivatives |
idim | Vector size |
lambda | The lambda value |
der | derivatives of constraint wrt intermediate variables (e.g. 4-vector with dg/dE, dg/dpx, dg/dpy, dg/dpz) |
metaSet | which set of intermediate variables |
Definition at line 498 of file BaseFitObject.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.
|
virtualinherited |
Add covariance matrix elements to global covariance matrix of size idim x idim.
glcov | Global covariance matrix |
idim | First dimension of global derivative matrix |
Definition at line 217 of file BaseFitObject.cc.
|
overridevirtual |
Assign from anther object, if of same type.
source | The source object |
Reimplemented from ParticleFitObject.
Definition at line 79 of file PxPyPzMFitObject.cc.
|
protectedvirtualinherited |
Calculate the inverse of the covariance matrix.
Definition at line 235 of file BaseFitObject.cc.
|
overridevirtual |
Return a new copy of itself.
Implements BaseFitObject.
Definition at line 74 of file PxPyPzMFitObject.cc.
|
virtualinherited |
Fix a parameter (fix=true), or release it (fix=false)
ilocal | Local parameter number |
fix | fix if true, release if false |
Definition at line 352 of file BaseFitObject.cc.
|
overridevirtualinherited |
Get chi squared from measured and fitted parameters.
Reimplemented from BaseFitObject.
Definition at line 276 of file ParticleFitObject.cc.
|
virtualinherited |
Get covariance between parameters ilocal and jlocal.
ilocal | Local parameter number i |
jlocal | Local parameter number j |
Reimplemented in JetFitObject.
Definition at line 389 of file BaseFitObject.cc.
|
virtualinherited |
Get second derivative of chi squared w.r.t. parameters ilocal1 and ilocal2.
ilocal | Local parameter number i |
jlocal | Local parameter number j |
Definition at line 449 of file BaseFitObject.cc.
|
virtualinherited |
Get derivative of chi squared w.r.t. parameter ilocal.
ilocal | Local parameter number |
Definition at line 435 of file BaseFitObject.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 170 of file PxPyPzMFitObject.cc.
|
overridevirtualinherited |
Implements BaseFitObject.
Definition at line 173 of file ParticleFitObject.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 133 of file PxPyPzMFitObject.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 145 of file PxPyPzMFitObject.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 158 of file PxPyPzMFitObject.cc.
|
virtualinherited |
Return E.
Definition at line 106 of file ParticleFitObject.cc.
|
virtualinherited |
Get error of parameter ilocal.
ilocal | Local parameter number |
Reimplemented in JetFitObject.
Definition at line 383 of file BaseFitObject.cc.
|
virtualinherited |
Definition at line 597 of file BaseFitObject.cc.
|
overridevirtual |
Implements BaseFitObject.
Definition at line 182 of file PxPyPzMFitObject.cc.
|
virtualinherited |
Definition at line 101 of file ParticleFitObject.cc.
|
virtualinherited |
Get global parameter number of parameter ilocal.
ilocal | Local parameter number |
Definition at line 365 of file BaseFitObject.cc.
|
virtualinherited |
Get mass of particle.
Definition at line 89 of file ParticleFitObject.cc.
|
virtualinherited |
Get measured value of parameter ilocal.
ilocal | Local parameter number |
Definition at line 377 of file BaseFitObject.cc.
|
virtualinherited |
Get object's name.
Definition at line 107 of file BaseFitObject.cc.
|
virtualinherited |
Get number of fixed parameters of this FitObject.
Definition at line 130 of file BaseFitObject.cc.
|
virtualinherited |
Get number of free parameters of this FitObject.
Definition at line 124 of file BaseFitObject.cc.
|
virtualinherited |
Get number of measured parameters of this FitObject.
Definition at line 112 of file BaseFitObject.cc.
|
inlineoverridevirtual |
Get total number of parameters of this FitObject.
Implements BaseFitObject.
Definition at line 67 of file PxPyPzMFitObject.h.
|
virtualinherited |
Get number of unmeasured parameters of this FitObject.
Definition at line 118 of file BaseFitObject.cc.
|
virtualinherited |
Return p (momentum)
Definition at line 122 of file ParticleFitObject.cc.
|
virtualinherited |
Return p (momentum) squared.
Definition at line 126 of file ParticleFitObject.cc.
|
virtualinherited |
Get current value of parameter ilocal.
ilocal | Local parameter number |
Definition at line 371 of file BaseFitObject.cc.
|
overridevirtual |
Get name of parameter ilocal.
ilocal | Local parameter number |
Implements BaseFitObject.
Definition at line 92 of file PxPyPzMFitObject.cc.
|
virtualinherited |
Return pt (transverse momentum)
Definition at line 130 of file ParticleFitObject.cc.
|
virtualinherited |
Return pt (transverse momentum) squared.
Definition at line 134 of file ParticleFitObject.cc.
|
virtualinherited |
Return px.
Definition at line 110 of file ParticleFitObject.cc.
|
virtualinherited |
Return py.
Definition at line 114 of file ParticleFitObject.cc.
|
virtualinherited |
Return pz.
Definition at line 118 of file ParticleFitObject.cc.
|
virtualinherited |
Get correlation coefficient between parameters ilocal and jlocal.
ilocal | Local parameter number i |
jlocal | Local parameter number j |
Definition at line 396 of file BaseFitObject.cc.
|
overridevirtual |
Implements BaseFitObject.
Definition at line 208 of file PxPyPzMFitObject.cc.
|
virtualinherited |
Definition at line 587 of file BaseFitObject.cc.
|
inlineinherited |
|
virtualinherited |
Returns whether parameter is fixed.
ilocal | Local parameter number |
Definition at line 408 of file BaseFitObject.cc.
|
virtualinherited |
Get measured flag for parameter ilocal.
ilocal | Local parameter number |
Definition at line 402 of file BaseFitObject.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.
PxPyPzMFitObject & operator= | ( | const PxPyPzMFitObject & | rhs | ) |
rhs | right hand side |
Definition at line 66 of file PxPyPzMFitObject.cc.
|
overridevirtualinherited |
print object to ostream
os | The output stream |
Implements BaseFitObject.
Definition at line 140 of file ParticleFitObject.cc.
|
virtualinherited |
print the 1st derivatives wrt metaSet 0 (E, px, py, pz)
os | The output stream |
Definition at line 164 of file BaseFitObject.cc.
|
virtualinherited |
print the 2nd derivatives wrt metaSet 0 (E, px, py, pz)
os | The output stream |
Definition at line 178 of file BaseFitObject.cc.
|
virtualinherited |
print the four-momentum (E, px, py, pz)
os | The output stream |
Definition at line 94 of file ParticleFitObject.cc.
|
virtualinherited |
print the parameters and errors
os | The output stream |
Definition at line 137 of file BaseFitObject.cc.
|
virtualinherited |
print the correlation coefficients
os | The output stream |
Definition at line 151 of file BaseFitObject.cc.
|
inlinevirtualinherited |
Release a parameter.
ilocal | Local parameter number |
Definition at line 157 of file BaseFitObject.h.
|
virtualinherited |
Set covariance of parameters ilocal and jlocal; return: success.
ilocal | Local parameter number |
jlocal | Local parameter number |
cov_ | New error value |
Definition at line 340 of file BaseFitObject.cc.
|
virtualinherited |
Set error of parameter ilocal; return: success.
ilocal | Local parameter number |
err_ | New error value |
Definition at line 330 of file BaseFitObject.cc.
|
virtualinherited |
Set number of parameter ilocal in global list return true signals OK.
ilocal | Local parameter number |
iglobal | New global parameter number |
Definition at line 358 of file BaseFitObject.cc.
|
virtualinherited |
Set mass of particle; return=success.
Definition at line 63 of file ParticleFitObject.cc.
|
virtualinherited |
Set measured value of parameter ilocal; return: success.
ilocal | Local parameter number |
mpar_ | New measured parameter value |
Definition at line 320 of file BaseFitObject.cc.
|
inherited |
Set object's name.
Definition at line 98 of file BaseFitObject.cc.
|
virtualinherited |
Set value of parameter ilocal; return: significant change.
ilocal | Local parameter number |
par_ | New parameter value |
Definition at line 309 of file BaseFitObject.cc.
|
virtualinherited |
Set value and measured flag of parameter i; return: significant change.
ilocal | Local parameter number |
par_ | New parameter value |
measured_ | New "measured" flag |
fixed_ | New "fixed" flag |
Definition at line 299 of file BaseFitObject.cc.
|
inherited |
Definition at line 184 of file ParticleFitObject.cc.
|
inherited |
Definition at line 202 of file ParticleFitObject.cc.
|
overrideprotectedvirtual |
Implements BaseFitObject.
Definition at line 242 of file PxPyPzMFitObject.cc.
|
overridevirtual |
Read values from global vector, readjust vector; return: significant change.
p | The parameter vector |
idim | Length of the vector |
Reimplemented from BaseFitObject.
Definition at line 103 of file PxPyPzMFitObject.cc.
|
related |
Prints out a BaseFitObject, using its print method.
os | The output stream |
bfo | The object to print |
Definition at line 341 of file BaseFitObject.h.
|
mutableprotected |
Definition at line 73 of file PxPyPzMFitObject.h.
|
mutableprotected |
Definition at line 75 of file PxPyPzMFitObject.h.
|
protectedinherited |
local covariance matrix
Definition at line 327 of file BaseFitObject.h.
|
mutableprotectedinherited |
inverse pf local covariance matrix
Definition at line 329 of file BaseFitObject.h.
|
mutableprotectedinherited |
flag for valid inverse covariance matrix
Definition at line 331 of file BaseFitObject.h.
|
protected |
Definition at line 77 of file PxPyPzMFitObject.h.
|
protected |
Definition at line 77 of file PxPyPzMFitObject.h.
|
protected |
Definition at line 77 of file PxPyPzMFitObject.h.
|
protected |
Definition at line 78 of file PxPyPzMFitObject.h.
|
protected |
Definition at line 78 of file PxPyPzMFitObject.h.
|
protected |
Definition at line 79 of file PxPyPzMFitObject.h.
|
protected |
Definition at line 76 of file PxPyPzMFitObject.h.
|
protected |
Definition at line 76 of file PxPyPzMFitObject.h.
|
protected |
Definition at line 76 of file PxPyPzMFitObject.h.
|
staticprotectedinherited |
Definition at line 307 of file BaseFitObject.h.
|
protectedinherited |
fixed flag
Definition at line 323 of file BaseFitObject.h.
|
mutableprotectedinherited |
Definition at line 181 of file ParticleFitObject.h.
|
protectedinherited |
global parameter number for each parameter
Definition at line 325 of file BaseFitObject.h.
|
protectedinherited |
mass of particle
Definition at line 179 of file ParticleFitObject.h.
|
protectedinherited |
measured flag
Definition at line 321 of file BaseFitObject.h.
|
protectedinherited |
measured parameters
Definition at line 319 of file BaseFitObject.h.
|
protectedinherited |
Definition at line 306 of file BaseFitObject.h.
|
protectedinherited |
fit parameters
Definition at line 317 of file BaseFitObject.h.
|
protectedinherited |
Definition at line 184 of file ParticleFitObject.h.