Belle II Software  release-05-01-25
NeutrinoFitObject Class Reference
Inheritance diagram for NeutrinoFitObject:
Collaboration diagram for NeutrinoFitObject:

Public Member Functions

 NeutrinoFitObject (double E, double theta, double phi, double DE=1, double Dtheta=0.1, double Dphi=0.1)
 
 NeutrinoFitObject (const NeutrinoFitObject &rhs)
 Copy constructor. More...
 
NeutrinoFitObjectoperator= (const NeutrinoFitObject &rhs)
 Assignment. More...
 
virtual NeutrinoFitObjectcopy () const override
 Return a new copy of itself.
 
virtual NeutrinoFitObjectassign (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 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 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
 
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 }
 

Protected Member Functions

void updateCache () const override
 

Protected Attributes

double ctheta
 
double stheta
 
double cphi
 
double sphi
 
double pt
 
double px
 
double py
 
double pz
 
double dptdE
 
double dpxdE
 
double dpydE
 
double dpxdtheta
 
double dpydtheta
 
double chi2
 
double mass
 mass of particle
 
FourVector fourMomentum
 
double paramCycl [BaseDefs::MAXPAR]
 

Detailed Description

Definition at line 45 of file NeutrinoFitObject.h.

Constructor & Destructor Documentation

◆ NeutrinoFitObject()

Copy constructor.

Parameters
rhsright hand side

Definition at line 59 of file NeutrinoFitObject.cc.

60  : ParticleFitObject(rhs), ctheta(0), stheta(0), cphi(0), sphi(0), pt(0), px(0), py(0), pz(0), dptdE(0),
61  dpxdE(0), dpydE(0), dpxdtheta(0), dpydtheta(0), chi2(0)
62  {
64  }

Member Function Documentation

◆ addToGlobalChi2DerMatrixNum()

void addToGlobalChi2DerMatrixNum ( double *  M,
int  idim,
double  eps 
)
virtualinherited

Add numerically determined derivatives of chi squared to global covariance matrix.

Parameters
MGlobal covariance matrix
idimFirst dimension of global covariance matrix
epsParameter variation

Definition at line 162 of file ParticleFitObject.cc.

◆ addToGlobalChi2DerVectorNum()

void addToGlobalChi2DerVectorNum ( double *  y,
int  idim,
double  eps 
)
virtualinherited

Add numerically determined derivatives of chi squared to global derivative vector.

Parameters
yVector of chi2 derivatives
idimVector size
epsParameter variation

Definition at line 152 of file ParticleFitObject.cc.

◆ assign()

NeutrinoFitObject & assign ( const BaseFitObject &  source)
overridevirtual

Assign from anther object, if of same type.

Parameters
sourceThe source object

Reimplemented from ParticleFitObject.

Definition at line 79 of file NeutrinoFitObject.cc.

◆ getDE()

double getDE ( int  ilocal) const
overridevirtual

Return d E / d par_ilocal (derivative of E w.r.t. local parameter ilocal)

Parameters
ilocalLocal parameter number

Implements ParticleFitObject.

Definition at line 179 of file NeutrinoFitObject.cc.

◆ getDPx()

double getDPx ( int  ilocal) const
overridevirtual

Return d p_x / d par_ilocal (derivative of px w.r.t. local parameter ilocal)

Parameters
ilocalLocal parameter number

Implements ParticleFitObject.

Definition at line 143 of file NeutrinoFitObject.cc.

◆ getDPy()

double getDPy ( int  ilocal) const
overridevirtual

Return d p_y / d par_ilocal (derivative of py w.r.t. local parameter ilocal)

Parameters
ilocalLocal parameter number

Implements ParticleFitObject.

Definition at line 155 of file NeutrinoFitObject.cc.

◆ getDPz()

double getDPz ( int  ilocal) const
overridevirtual

Return d p_z / d par_ilocal (derivative of pz w.r.t. local parameter ilocal)

Parameters
ilocalLocal parameter number

Implements ParticleFitObject.

Definition at line 167 of file NeutrinoFitObject.cc.

◆ getParamName()

const char * getParamName ( int  ilocal) const
overridevirtual

Get name of parameter ilocal.

Parameters
ilocalLocal parameter number

Definition at line 92 of file NeutrinoFitObject.cc.

◆ num1stDerivative()

double num1stDerivative ( int  ilocal,
double  eps 
)
inherited

Evaluates numerically the 1st derivative of chi2 w.r.t. a parameter.

Parameters
ilocalLocal parameter number
epsvariation of local parameter

Definition at line 230 of file ParticleFitObject.cc.

◆ num2ndDerivative()

double num2ndDerivative ( int  ilocal1,
double  eps1,
int  ilocal2,
double  eps2 
)
inherited

Evaluates numerically the 2nd derivative of chi2 w.r.t. 2 parameters.

Parameters
ilocal11st local parameter number
eps1variation of 1st local parameter
ilocal21st local parameter number
eps2variation of 2nd local parameter

Definition at line 242 of file ParticleFitObject.cc.

◆ operator=()

NeutrinoFitObject & operator= ( const NeutrinoFitObject rhs)

Assignment.

Parameters
rhsright hand side

Definition at line 66 of file NeutrinoFitObject.cc.

◆ print()

std::ostream & print ( std::ostream &  os) const
overridevirtualinherited

print object to ostream

Parameters
osThe output stream

Definition at line 140 of file ParticleFitObject.cc.

◆ print4Vector()

std::ostream & print4Vector ( std::ostream &  os) const
virtualinherited

print the four-momentum (E, px, py, pz)

Parameters
osThe output stream

Definition at line 94 of file ParticleFitObject.cc.

◆ updateParams()

bool updateParams ( double  p[],
int  idim 
)
overridevirtual

Read values from global vector, readjust vector; return: significant change.

Parameters
pThe parameter vector
idimLength of the vector

Definition at line 103 of file NeutrinoFitObject.cc.


The documentation for this class was generated from the following files:
Belle2::OrcaKinFit::NeutrinoFitObject::assign
virtual NeutrinoFitObject & assign(const BaseFitObject &source) override
Assign from anther object, if of same type.
Definition: NeutrinoFitObject.cc:79
Belle2::OrcaKinFit::ParticleFitObject::ParticleFitObject
ParticleFitObject()
Default constructor.
Definition: ParticleFitObject.cc:39