Belle II Software  release-08-01-10
VertexFitKFit Class Reference

VertexFitKFit is a derived class from KFitBase to perform vertex-constraint kinematical fit. More...

#include <VertexFitKFit.h>

Inheritance diagram for VertexFitKFit:
Collaboration diagram for VertexFitKFit:

Public Member Functions

 VertexFitKFit (void)
 Construct an object with no argument.
 
 ~VertexFitKFit (void)
 Destruct the object.
 
enum KFitError::ECode setInitialVertex (const HepPoint3D &v)
 Set an initial vertex point for the vertex-vertex constraint fit. More...
 
enum KFitError::ECode setInitialVertex (const B2Vector3D &v)
 Set an initial vertex point for the mass-vertex constraint fit. More...
 
enum KFitError::ECode setIpProfile (const HepPoint3D &ip, const CLHEP::HepSymMatrix &ipe)
 Set an IP-ellipsoid shape for the vertex constraint fit. More...
 
enum KFitError::ECode setIpTubeProfile (const CLHEP::HepLorentzVector &p, const HepPoint3D &x, const CLHEP::HepSymMatrix &e, const double q)
 Set a virtual IP-tube track for the vertex constraint fit. More...
 
enum KFitError::ECode setKnownVertex (const bool flag=true)
 Tell the object to perform a fit with vertex position fixed. More...
 
enum KFitError::ECode setCorrelationMode (const bool m)
 Tell the object to perform a fit with track correlations. More...
 
const HepPoint3D getVertex (const int flag=KFitConst::kAfterFit) const
 Get a vertex position. More...
 
const CLHEP::HepSymMatrix getVertexError (void) const
 Get a fitted vertex error matrix. More...
 
double getCHIsq (void) const override
 Get a chi-square of the fit. More...
 
double getCHIsqVertex (void) const
 Get a chi-square of the fit excluding IP-constraint part. More...
 
const CLHEP::HepMatrix getTrackVertexError (const int id) const
 Get a vertex error matrix of the track. More...
 
double getTrackCHIsq (const int id) const override
 Get a chi-square of the track. More...
 
double getTrackPartCHIsq (void) const
 Get a sum of the chi-square associated to the input tracks. More...
 
int getTrackPartNDF (void) const
 Get an NDF relevant to the getTrackPartCHIsq(). More...
 
enum KFitError::ECode doFit (void)
 Perform a vertex-constraint fit. More...
 
enum KFitError::ECode updateMother (Particle *mother)
 Update mother particle. More...
 
enum KFitError::ECode addTrack (const KFitTrack &kp)
 Add a track to the fitter object. More...
 
enum KFitError::ECode addTrack (const CLHEP::HepLorentzVector &p, const HepPoint3D &x, const CLHEP::HepSymMatrix &e, const double q)
 Add a track to the fitter object with specifying its momentum, position, error matrix, and charge. More...
 
enum KFitError::ECode addParticle (const Particle *particle)
 Add a particle to the fitter. More...
 
virtual enum KFitError::ECode setCorrelation (const CLHEP::HepMatrix &c)
 Set a correlation matrix. More...
 
virtual enum KFitError::ECode setZeroCorrelation (void)
 Indicate no correlation between tracks. More...
 
enum KFitError::ECode setMagneticField (const double mf)
 Change a magnetic field from the default value KFitConst::kDefaultMagneticField. More...
 
enum KFitError::ECode getErrorCode (void) const
 Get a code of the last error. More...
 
int getTrackCount (void) const
 Get the number of added tracks. More...
 
virtual int getNDF (void) const
 Get an NDF of the fit. More...
 
double getMagneticField (void) const
 Get a magnetic field. More...
 
const CLHEP::HepLorentzVector getTrackMomentum (const int id) const
 Get a Lorentz vector of the track. More...
 
const HepPoint3D getTrackPosition (const int id) const
 Get a position of the track. More...
 
const CLHEP::HepSymMatrix getTrackError (const int id) const
 Get an error matrix of the track. More...
 
const KFitTrack getTrack (const int id) const
 Get a specified track object. More...
 
virtual const CLHEP::HepMatrix getCorrelation (const int id1, const int id2, const int flag=KFitConst::kAfterFit) const
 Get a correlation matrix between two tracks. More...
 
bool isFitted (void) const
 Return false if fit is not performed yet or performed fit is failed; otherwise true. More...
 

Protected Member Functions

const CLHEP::HepSymMatrix makeError1 (const CLHEP::HepLorentzVector &p, const CLHEP::HepMatrix &e) const
 Rebuild an error matrix from a Lorentz vector and an error matrix. More...
 
const CLHEP::HepMatrix makeError1 (const CLHEP::HepLorentzVector &p1, const CLHEP::HepLorentzVector &p2, const CLHEP::HepMatrix &e) const
 Rebuild an error matrix from a pair of Lorentz vectors and an error matrix. More...
 
const CLHEP::HepMatrix makeError2 (const CLHEP::HepLorentzVector &p, const CLHEP::HepMatrix &e) const
 Rebuild an error matrix from a Lorentz vector and an error matrix. More...
 
const CLHEP::HepSymMatrix makeError3 (const CLHEP::HepLorentzVector &p, const CLHEP::HepMatrix &e, const bool is_fix_mass) const
 Rebuild an error matrix from a Lorentz vector and an error matrix. More...
 
const CLHEP::HepMatrix makeError3 (const CLHEP::HepLorentzVector &p1, const CLHEP::HepLorentzVector &p2, const CLHEP::HepMatrix &e, const bool is_fix_mass1, const bool is_fix_mass2) const
 Rebuild an error matrix from a pair of Lorentz vectors and an error matrix. More...
 
const CLHEP::HepMatrix makeError4 (const CLHEP::HepLorentzVector &p, const CLHEP::HepMatrix &e) const
 Rebuild an error matrix from a Lorentz vector and an error matrix. More...
 
virtual enum KFitError::ECode prepareCorrelation (void)
 Build a grand correlation matrix from input-track properties. More...
 
enum KFitError::ECode doFit1 (void)
 Perform a fit (used in MassFitKFit::doFit()). More...
 
enum KFitError::ECode doFit2 (void)
 Perform a fit (used in VertexFitKFit::doFit() and MassVertexFitKFit::doFit()). More...
 
bool isTrackIDInRange (const int id) const
 Check if the id is in the range. More...
 
bool isNonZeroEnergy (const CLHEP::HepLorentzVector &p) const
 Check if the energy is non-zero. More...
 

Protected Attributes

enum KFitError::ECode m_ErrorCode
 Error code.
 
bool m_FlagFitted
 Flag to indicate if the fit is performed and succeeded.
 
std::vector< KFitTrackm_Tracks
 Container of input tracks.
 
std::vector< CLHEP::HepMatrix > m_BeforeCorrelation
 Container of input correlation matrices.
 
CLHEP::HepSymMatrix m_V_al_0
 See J.Tanaka Ph.D (2001) p137 for definition.
 
CLHEP::HepMatrix m_al_0
 See J.Tanaka Ph.D (2001) p136 for definition.
 
CLHEP::HepMatrix m_al_1
 See J.Tanaka Ph.D (2001) p136 for definition.
 
CLHEP::HepMatrix m_al_a
 See J.Tanaka Ph.D (2001) p137 for definition.
 
CLHEP::HepMatrix m_property
 Container of charges and masses.
 
CLHEP::HepMatrix m_D
 See J.Tanaka Ph.D (2001) p137 for definition.
 
CLHEP::HepMatrix m_d
 See J.Tanaka Ph.D (2001) p137 for definition.
 
CLHEP::HepMatrix m_V_D
 See J.Tanaka Ph.D (2001) p138 for definition.
 
CLHEP::HepMatrix m_V_al_1
 See J.Tanaka Ph.D (2001) p138 for definition.
 
CLHEP::HepMatrix m_lam
 See J.Tanaka Ph.D (2001) p137 for definition.
 
CLHEP::HepMatrix m_E
 See J.Tanaka Ph.D (2001) p137 for definition.
 
CLHEP::HepMatrix m_V_E
 See J.Tanaka Ph.D (2001) p138 for definition.
 
CLHEP::HepMatrix m_lam0
 See J.Tanaka Ph.D (2001) p138 for definition.
 
CLHEP::HepMatrix m_v
 See J.Tanaka Ph.D (2001) p137 for definition.
 
CLHEP::HepMatrix m_v_a
 See J.Tanaka Ph.D (2001) p137 for definition.
 
CLHEP::HepMatrix m_V_Dt
 See J.Tanaka Ph.D (2001) p138 for definition.
 
CLHEP::HepMatrix m_Cov_v_al_1
 See J.Tanaka Ph.D (2001) p137 for definition.
 
int m_NDF
 NDF of the fit.
 
double m_CHIsq
 chi-square of the fit.
 
int m_TrackCount
 Number of tracks.
 
int m_NecessaryTrackCount
 Number needed tracks to perform fit.
 
bool m_FlagCorrelation
 Flag whether a correlation among tracks exists.
 
bool m_FlagOverIteration
 Flag whether the iteration count exceeds the limit.
 
double m_MagneticField
 Magnetic field.
 

Private Member Functions

enum KFitError::ECode doFit3 (void)
 Perform a standard vertex-constraint fit including IP-tube constraint. More...
 
enum KFitError::ECode doFit4 (void)
 Perform a IP-ellipsoid and vertex-constraint fit. More...
 
enum KFitError::ECode doFit5 (void)
 Perform a fixed-vertex-position fit mainly for slow pion. More...
 
enum KFitError::ECode prepareInputMatrix (void) override
 Build grand matrices for minimum search from input-track properties. More...
 
enum KFitError::ECode prepareInputSubMatrix (void) override
 Build sub-matrices for minimum search from input-track properties. More...
 
enum KFitError::ECode prepareOutputMatrix (void) override
 Build an output error matrix. More...
 
enum KFitError::ECode makeCoreMatrix (void) override
 Build matrices using the kinematical constraint. More...
 
enum KFitError::ECode calculateNDF (void) override
 Calculate an NDF of the fit. More...
 
enum KFitError::ECode appendTube (void)
 Add the virtual tube track to m_Tracks just before the internal minimization call. More...
 
enum KFitError::ECode deleteTube (void)
 Delete the virtual tube track to m_Tracks just after the internal minimization call. More...
 

Private Attributes

bool m_CorrelationMode
 Flag controlled by setCorrelationMode().
 
double m_EachCHIsq [KFitConst::kMaxTrackCount2]
 Container of chi-square's of the input tracks.
 
double m_CHIsqVertex
 chi-square of the fit excluding IP-constraint part.
 
HepPoint3D m_BeforeVertex
 Vertex position before the fit.
 
HepPoint3D m_AfterVertex
 Vertex position after the fit.
 
CLHEP::HepSymMatrix m_AfterVertexError
 Vertex error matrix after the fit.
 
std::vector< CLHEP::HepMatrix > m_AfterTrackVertexError
 Array of vertex error matrices after the fit.
 
bool m_FlagBeam
 Flag if to perform IP-ellipsoid constraint fit.
 
CLHEP::HepSymMatrix m_BeamError
 Error matrix modeling the IP ellipsoid.
 
bool m_FlagKnownVertex
 Flag controlled by setKnownVertex().
 
bool m_FlagTube
 Flag if to perform IP-tube constraint fit.
 
int m_iTrackTube
 ID of the virtual tube track in the m_Tracks.
 
KFitTrack m_TubeTrack
 Entity of the virtual IP-tube track.
 

Detailed Description

VertexFitKFit is a derived class from KFitBase to perform vertex-constraint kinematical fit.

Definition at line 34 of file VertexFitKFit.h.

Member Function Documentation

◆ addParticle()

enum KFitError::ECode addParticle ( const Particle particle)
inherited

Add a particle to the fitter.

The function gets track parameters from the Particle dataobject and calls addTrack().

Parameters
[in]particleParticle.
Returns
error code (zero if success)

Definition at line 34 of file KFitBase.cc.

◆ addTrack() [1/2]

enum KFitError::ECode addTrack ( const CLHEP::HepLorentzVector &  p,
const HepPoint3D x,
const CLHEP::HepSymMatrix &  e,
const double  q 
)
inherited

Add a track to the fitter object with specifying its momentum, position, error matrix, and charge.

This function internally calls addTrack(const KFitTrack &kp).

Parameters
pLorentz vector of the track
xposition of the track
e(7x7) error matrix of the track
qcharge of the track
Returns
error code (zero if success)

◆ addTrack() [2/2]

enum KFitError::ECode addTrack ( const KFitTrack kp)
inherited

Add a track to the fitter object.

Parameters
kpobject of the track
Returns
error code (zero if success)

Definition at line 34 of file KFitBase.cc.

◆ appendTube()

enum KFitError::ECode appendTube ( void  )
private

Add the virtual tube track to m_Tracks just before the internal minimization call.

Returns
error code (zero if success)

Definition at line 198 of file VertexFitKFit.cc.

867  {
869 
870  if (m_iTrackTube != -1)
871  {
872  char buf[1024];
873  sprintf(buf, "%s:%s(): internal error; duplicated appendTube() call?", __FILE__, __func__);
874  B2FATAL(buf);
875  }
876 
877  m_Tracks.push_back(m_TubeTrack);
878  m_TrackCount = m_Tracks.size();
880 
882 }
enum KFitError::ECode m_ErrorCode
Error code.
Definition: KFitBase.h:243
std::vector< KFitTrack > m_Tracks
Container of input tracks.
Definition: KFitBase.h:249
int m_TrackCount
Number of tracks.
Definition: KFitBase.h:301
KFitTrack m_TubeTrack
Entity of the virtual IP-tube track.
bool m_FlagTube
Flag if to perform IP-tube constraint fit.
int m_iTrackTube
ID of the virtual tube track in the m_Tracks.

◆ calculateNDF()

enum KFitError::ECode calculateNDF ( void  )
overrideprivatevirtual

Calculate an NDF of the fit.

Returns
error code (zero if success)

Implements KFitBase.

Definition at line 198 of file VertexFitKFit.cc.

◆ deleteTube()

enum KFitError::ECode deleteTube ( void  )
private

Delete the virtual tube track to m_Tracks just after the internal minimization call.

Returns
error code (zero if success)

Definition at line 198 of file VertexFitKFit.cc.

◆ doFit()

enum KFitError::ECode doFit ( void  )

Perform a vertex-constraint fit.

Returns
error code (zero if success)

Definition at line 198 of file VertexFitKFit.cc.

◆ doFit1()

enum KFitError::ECode doFit1 ( void  )
protectedinherited

Perform a fit (used in MassFitKFit::doFit()).

Returns
error code (zero if success)

Definition at line 438 of file KFitBase.cc.

◆ doFit2()

enum KFitError::ECode doFit2 ( void  )
protectedinherited

Perform a fit (used in VertexFitKFit::doFit() and MassVertexFitKFit::doFit()).

Returns
error code (zero if success)

Definition at line 438 of file KFitBase.cc.

◆ doFit3()

enum KFitError::ECode doFit3 ( void  )
private

Perform a standard vertex-constraint fit including IP-tube constraint.

Returns
error code (zero if success)

Definition at line 198 of file VertexFitKFit.cc.

◆ doFit4()

enum KFitError::ECode doFit4 ( void  )
private

Perform a IP-ellipsoid and vertex-constraint fit.

Returns
error code (zero if success)

Definition at line 198 of file VertexFitKFit.cc.

◆ doFit5()

enum KFitError::ECode doFit5 ( void  )
private

Perform a fixed-vertex-position fit mainly for slow pion.

Returns
error code (zero if success)

Definition at line 198 of file VertexFitKFit.cc.

◆ getCHIsq()

double getCHIsq ( void  ) const
overridevirtual

Get a chi-square of the fit.

Returns
chi-square of the fit

Reimplemented from KFitBase.

Definition at line 139 of file VertexFitKFit.cc.

◆ getCHIsqVertex()

double getCHIsqVertex ( void  ) const

Get a chi-square of the fit excluding IP-constraint part.

Returns
chi-square of the fit excluding IP-constraint part.

Definition at line 146 of file VertexFitKFit.cc.

◆ getCorrelation()

const HepMatrix getCorrelation ( const int  id1,
const int  id2,
const int  flag = KFitConst::kAfterFit 
) const
virtualinherited

Get a correlation matrix between two tracks.

Parameters
id1first track id
id2second track id
flagKFitConst::kBeforeFit or KFitConst::kAfterFit
Returns
(7x7) correlation matrix

Reimplemented in RecoilMassKFit, MassVertexFitKFit, MassPointingVertexFitKFit, MassFourCFitKFit, MassFitKFit, and FourCFitKFit.

Definition at line 183 of file KFitBase.cc.

◆ getErrorCode()

enum KFitError::ECode getErrorCode ( void  ) const
inherited

Get a code of the last error.

Returns
the last error code

Definition at line 34 of file KFitBase.cc.

◆ getMagneticField()

double getMagneticField ( void  ) const
inherited

Get a magnetic field.

Returns
magnetic field

Definition at line 128 of file KFitBase.cc.

◆ getNDF()

int getNDF ( void  ) const
virtualinherited

Get an NDF of the fit.

Returns
NDF of the fit

Definition at line 114 of file KFitBase.cc.

◆ getTrack()

const KFitTrack getTrack ( const int  id) const
inherited

Get a specified track object.

Parameters
idtrack id
Returns
specified track object

Definition at line 175 of file KFitBase.cc.

◆ getTrackCHIsq()

double getTrackCHIsq ( const int  id) const
overridevirtual

Get a chi-square of the track.

Parameters
idtrack id
Returns
chi-square of the track

Reimplemented from KFitBase.

Definition at line 162 of file VertexFitKFit.cc.

◆ getTrackCount()

int getTrackCount ( void  ) const
inherited

Get the number of added tracks.

Returns
the number of added tracks

Definition at line 107 of file KFitBase.cc.

◆ getTrackError()

const HepSymMatrix getTrackError ( const int  id) const
inherited

Get an error matrix of the track.

Parameters
idtrack id
Returns
error matrix of the track

Definition at line 168 of file KFitBase.cc.

◆ getTrackMomentum()

const HepLorentzVector getTrackMomentum ( const int  id) const
inherited

Get a Lorentz vector of the track.

Parameters
idtrack id
Returns
Lorentz vector of the track

Definition at line 154 of file KFitBase.cc.

◆ getTrackPartCHIsq()

double getTrackPartCHIsq ( void  ) const

Get a sum of the chi-square associated to the input tracks.

The return value should be the same as the one from getCHIsqVertex().

Returns
sum of the chi-square associated to the input tracks

Definition at line 175 of file VertexFitKFit.cc.

◆ getTrackPartNDF()

int getTrackPartNDF ( void  ) const

Get an NDF relevant to the getTrackPartCHIsq().

Returns
NDF relevant to the getTrackPartCHIsq()

Definition at line 198 of file VertexFitKFit.cc.

◆ getTrackPosition()

const HepPoint3D getTrackPosition ( const int  id) const
inherited

Get a position of the track.

Parameters
idtrack id
Returns
position of the track

Definition at line 161 of file KFitBase.cc.

◆ getTrackVertexError()

const HepMatrix getTrackVertexError ( const int  id) const

Get a vertex error matrix of the track.

Parameters
idtrack id
flagKFitConst::kBeforeFit or KFitConst::kAfterFit
Returns
vertex error matrix

Definition at line 154 of file VertexFitKFit.cc.

◆ getVertex()

const HepPoint3D getVertex ( const int  flag = KFitConst::kAfterFit) const

Get a vertex position.

Parameters
flagKFitConst::kBeforeFit or KFitConst::kAfterFit
Returns
vertex position

Definition at line 113 of file VertexFitKFit.cc.

◆ getVertexError()

const HepSymMatrix getVertexError ( void  ) const

Get a fitted vertex error matrix.

Returns
vertex error matrix

Definition at line 132 of file VertexFitKFit.cc.

◆ isFitted()

bool isFitted ( void  ) const
inherited

Return false if fit is not performed yet or performed fit is failed; otherwise true.

Returns
see description

Definition at line 727 of file KFitBase.cc.

◆ isNonZeroEnergy()

bool isNonZeroEnergy ( const CLHEP::HepLorentzVector &  p) const
protectedinherited

Check if the energy is non-zero.

Parameters
pLorentz vector
Returns
true for non-zero energy, false for otherwise

Definition at line 749 of file KFitBase.cc.

◆ isTrackIDInRange()

bool isTrackIDInRange ( const int  id) const
protectedinherited

Check if the id is in the range.

Parameters
idtrack id
Returns
true if the id is in the range, false otherwise

Definition at line 738 of file KFitBase.cc.

◆ makeCoreMatrix()

enum KFitError::ECode makeCoreMatrix ( void  )
overrideprivatevirtual

Build matrices using the kinematical constraint.

Returns
error code (zero if success)

Implements KFitBase.

Definition at line 198 of file VertexFitKFit.cc.

◆ makeError1() [1/2]

const CLHEP::HepSymMatrix makeError1 ( const CLHEP::HepLorentzVector &  p,
const CLHEP::HepMatrix &  e 
) const
protectedinherited

Rebuild an error matrix from a Lorentz vector and an error matrix.

Parameters
pLorentz vector
e(6x6) error matrix
Returns
(7x7) error matrix

◆ makeError1() [2/2]

const CLHEP::HepMatrix makeError1 ( const CLHEP::HepLorentzVector &  p1,
const CLHEP::HepLorentzVector &  p2,
const CLHEP::HepMatrix &  e 
) const
protectedinherited

Rebuild an error matrix from a pair of Lorentz vectors and an error matrix.

Parameters
p1first Lorentz vector
p2second Lorentz vector
e(6x6) error matrix
Returns
(7x7) error matrix

◆ makeError2()

const HepMatrix makeError2 ( const CLHEP::HepLorentzVector &  p,
const CLHEP::HepMatrix &  e 
) const
protectedinherited

Rebuild an error matrix from a Lorentz vector and an error matrix.

Parameters
pLorentz vector
e(3x6) error matrix
Returns
(3x7) error matrix

Definition at line 296 of file KFitBase.cc.

◆ makeError3() [1/2]

const CLHEP::HepSymMatrix makeError3 ( const CLHEP::HepLorentzVector &  p,
const CLHEP::HepMatrix &  e,
const bool  is_fix_mass 
) const
protectedinherited

Rebuild an error matrix from a Lorentz vector and an error matrix.

Parameters
pLorentz vector
e(7x7) error matrix
is_fix_masstrue to recalculate energy term from other parameters, false to do nothing
Returns
(7x7) error matrix

◆ makeError3() [2/2]

const CLHEP::HepMatrix makeError3 ( const CLHEP::HepLorentzVector &  p1,
const CLHEP::HepLorentzVector &  p2,
const CLHEP::HepMatrix &  e,
const bool  is_fix_mass1,
const bool  is_fix_mass2 
) const
protectedinherited

Rebuild an error matrix from a pair of Lorentz vectors and an error matrix.

Parameters
p1first Lorentz vector
p2second Lorentz vector
e(7x7) error matrix
is_fix_mass1true to recalculate energy term from other parameters, false to do nothing
is_fix_mass2true to recalculate energy term from other parameters, false to do nothing
Returns
(7x7) error matrix

◆ makeError4()

const HepMatrix makeError4 ( const CLHEP::HepLorentzVector &  p,
const CLHEP::HepMatrix &  e 
) const
protectedinherited

Rebuild an error matrix from a Lorentz vector and an error matrix.

Parameters
pLorentz vector
e(3x7) error matrix
Returns
(7x7) error matrix

Definition at line 438 of file KFitBase.cc.

◆ prepareCorrelation()

enum KFitError::ECode prepareCorrelation ( void  )
protectedvirtualinherited

Build a grand correlation matrix from input-track properties.

Returns
error code (zero if success)

Reimplemented in RecoilMassKFit, MassVertexFitKFit, MassPointingVertexFitKFit, MassFourCFitKFit, MassFitKFit, and FourCFitKFit.

Definition at line 438 of file KFitBase.cc.

◆ prepareInputMatrix()

enum KFitError::ECode prepareInputMatrix ( void  )
overrideprivatevirtual

Build grand matrices for minimum search from input-track properties.

Returns
error code (zero if success)

Implements KFitBase.

Definition at line 198 of file VertexFitKFit.cc.

◆ prepareInputSubMatrix()

enum KFitError::ECode prepareInputSubMatrix ( void  )
overrideprivatevirtual

Build sub-matrices for minimum search from input-track properties.

Returns
error code (zero if success)

Implements KFitBase.

Definition at line 198 of file VertexFitKFit.cc.

◆ prepareOutputMatrix()

enum KFitError::ECode prepareOutputMatrix ( void  )
overrideprivatevirtual

Build an output error matrix.

Returns
error code (zero if success)

Implements KFitBase.

Definition at line 198 of file VertexFitKFit.cc.

◆ setCorrelation()

enum KFitError::ECode setCorrelation ( const CLHEP::HepMatrix &  c)
virtualinherited

Set a correlation matrix.

Not intended for end user's use.

Parameters
c(7x7) correlation matrix
Returns
error code (zero if success)

Reimplemented in RecoilMassKFit, MassVertexFitKFit, MassPointingVertexFitKFit, MassFourCFitKFit, MassFitKFit, and FourCFitKFit.

Definition at line 34 of file KFitBase.cc.

◆ setCorrelationMode()

enum KFitError::ECode setCorrelationMode ( const bool  m)

Tell the object to perform a fit with track correlations.

Parameters
mtrue for with correlation, false for otherwise
Returns
error code (zero if success)

Definition at line 46 of file VertexFitKFit.cc.

◆ setInitialVertex() [1/2]

enum KFitError::ECode setInitialVertex ( const B2Vector3D v)

Set an initial vertex point for the mass-vertex constraint fit.

Parameters
vinitial vertex point
Returns
error code (zero if success)

Definition at line 46 of file VertexFitKFit.cc.

◆ setInitialVertex() [2/2]

enum KFitError::ECode setInitialVertex ( const HepPoint3D v)

Set an initial vertex point for the vertex-vertex constraint fit.

Parameters
vinitial vertex point
Returns
error code (zero if success)

Definition at line 46 of file VertexFitKFit.cc.

◆ setIpProfile()

enum KFitError::ECode setIpProfile ( const HepPoint3D ip,
const CLHEP::HepSymMatrix &  ipe 
)

Set an IP-ellipsoid shape for the vertex constraint fit.

Parameters
ipIP position
ipeerror matrix of the IP
Returns
error code (zero if success)

Definition at line 46 of file VertexFitKFit.cc.

◆ setIpTubeProfile()

enum KFitError::ECode setIpTubeProfile ( const CLHEP::HepLorentzVector &  p,
const HepPoint3D x,
const CLHEP::HepSymMatrix &  e,
const double  q 
)

Set a virtual IP-tube track for the vertex constraint fit.

Parameters
pLorentz vector of the virtual IP-tube track
xIP position
eerror matrix of IP-tube track and IP position
qcharge of the virtual IP-tube track
Returns
error code (zero if success)

Definition at line 46 of file VertexFitKFit.cc.

◆ setKnownVertex()

enum KFitError::ECode setKnownVertex ( const bool  flag = true)

Tell the object to perform a fit with vertex position fixed.

Parameters
flagtrue for fixed vertex, false for otherwise
Returns
error code (zero if success)

Definition at line 46 of file VertexFitKFit.cc.

◆ setMagneticField()

enum KFitError::ECode setMagneticField ( const double  mf)
inherited

Change a magnetic field from the default value KFitConst::kDefaultMagneticField.

Parameters
mfmagnetic field to set
Returns
error code (zero if success)

Definition at line 34 of file KFitBase.cc.

◆ setZeroCorrelation()

enum KFitError::ECode setZeroCorrelation ( void  )
virtualinherited

Indicate no correlation between tracks.

Not intended for end user's use.

Returns
error code (zero if success)

Reimplemented in RecoilMassKFit, MassVertexFitKFit, MassPointingVertexFitKFit, MassFourCFitKFit, MassFitKFit, and FourCFitKFit.

Definition at line 34 of file KFitBase.cc.

◆ updateMother()

enum KFitError::ECode updateMother ( Particle mother)

Update mother particle.

Parameters
[in]motherMother particle.

Definition at line 198 of file VertexFitKFit.cc.


The documentation for this class was generated from the following files: