 |
Belle II Software
release-05-02-19
|
17 #ifndef __JETFITOBJECT_H
18 #define __JETFITOBJECT_H
20 #include "analysis/OrcaKinFit/ParticleFitObject.h"
28 namespace OrcaKinFit {
43 class JetFitObject :
public ParticleFitObject {
45 JetFitObject(
double E,
double theta,
double phi,
46 double DE,
double Dtheta,
double Dphi,
50 JetFitObject(
const JetFitObject& rhs
53 JetFitObject&
operator= (
const JetFitObject& rhs
56 virtual ~JetFitObject();
74 virtual int getNPar()
const override {
return NPAR;}
78 virtual double getDPx(
int ilocal)
const override;
79 virtual double getDPy(
int ilocal)
const override;
80 virtual double getDPz(
int ilocal)
const override;
81 virtual double getDE(
int ilocal)
const override;
106 virtual double getSecondDerivative_Meta_Local(
int iMeta,
int ilocal ,
int jlocal ,
int metaSet)
const override;
115 void updateCache()
const override;
117 mutable double ctheta, stheta, cphi, sphi,
118 p2, p, pt, px, py, pz, dpdE, dptdE,
119 dpxdE, dpydE, dpzdE, dpxdtheta, dpydtheta,
124 static bool adjustEThetaPhi(
const double& m,
double& E,
double& theta,
double& phi);
137 #endif // __JETFITOBJECT_H
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 c...
virtual bool updateParams(double p[], int idim) override
Read values from global vector, readjust vector; return: significant change.
virtual const char * getParamName(int ilocal) const override
Get name of parameter ilocal.
virtual double getDE(int ilocal) const override
Return d E / d par_ilocal (derivative of E w.r.t. local parameter ilocal)
JetFitObject & operator=(const JetFitObject &rhs)
Assignment.
virtual double getError(int ilocal) const override
Get error of parameter ilocal.
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 + efac...
virtual JetFitObject & assign(const BaseFitObject &source) override
Assign from anther object, if of same type.
virtual JetFitObject * copy() const override
Return a new copy of itself.
virtual double getDPz(int ilocal) const override
Return d p_z / d par_ilocal (derivative of pz w.r.t. local parameter ilocal)
Abstract base class for different kinds of events.
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 getDPx(int ilocal) const override
Return d p_x / d par_ilocal (derivative of px w.r.t. local parameter ilocal)
Class for jets with (E, eta, phi) in kinematic fits.
virtual double getCov(int ilocal, int jlocal) const override