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

track fitting procedure More...

#include <BKLMTrackFitter.h>

Collaboration diagram for BKLMTrackFitter:

Public Member Functions

 BKLMTrackFitter ()
 Default constructor. More...
 
 ~BKLMTrackFitter ()
 Destructor.
 
double fit (std::list< KLMHit2d * > &listTrackPoint)
 do fit and returns chi square of the fit.
 
double distanceToHit (KLMHit2d *hit, double &error, double &sigma)
 Distance from track to a hit in the plane of the module.
 
double globalDistanceToHit (KLMHit2d *hit, double &error, double &sigma)
 Distance from track to a hit in the global system. More...
 
double fit1dSectorTrack (std::list< KLMHit2d * > hitList, CLHEP::HepVector &eta, CLHEP::HepSymMatrix &error, int depDir, int indDir)
 do fit in the y-x plane or z-x plane
 
double fit1dTrack (std::list< KLMHit2d * > hitList, CLHEP::HepVector &eta, CLHEP::HepSymMatrix &error, int depDir, int indDir)
 do fit in the global system More...
 
CLHEP::HepVector getTrackParam ()
 Get track parameters in the global system. y = p0 + p1 * x; y = p2 + p3 * z, if in local sector fit mode: y = p0 + p1 * x; z = p2 + p3 * x.
 
CLHEP::HepSymMatrix getTrackParamErr ()
 Get invariance matrix of track parameters in the global system.
 
CLHEP::HepVector getTrackParamSector ()
 Get track parameters in the sector locan system, y = p0 + p1 * x, z = p2 + p3 *x, where the first layer of the sector is used as reference.
 
CLHEP::HepSymMatrix getTrackParamSectorErr ()
 Get invariance matrix of track parameters in the sector local system, where the first layer of the sector is used as reference.
 
bool isValid ()
 Is fit valid.
 
bool isGood ()
 Is fit good.
 
float getChi2 ()
 Chi square of the fit.
 
int getNumHit ()
 number of the hits on this track
 
void inValidate ()
 Invalidate track.
 
void setGlobalFit (bool localOrGlobal)
 set the fitting mode, local system or global system
 

Private Attributes

bool m_Valid
 Is fit valid.
 
bool m_Good
 Is fit good.
 
float m_Chi2
 Chi square of fit.
 
int m_NumHit
 the number of hits on this track
 
bool m_globalFit
 do fit in the local system or global system false: local sys; true: global sys.
 
CLHEP::HepVector m_SectorPar
 track params in the sector local system
 
CLHEP::HepSymMatrix m_SectorErr
 track params errors in the sector local system
 
CLHEP::HepVector m_GlobalPar
 track params in global system
 
CLHEP::HepSymMatrix m_GlobalErr
 track params errors in global system
 
bklm::GeometryParm_GeoPar
 pointer to GeometryPar singleton
 

Detailed Description

track fitting procedure

Definition at line 29 of file BKLMTrackFitter.h.

Constructor & Destructor Documentation

◆ BKLMTrackFitter()

Default constructor.

Constructor.

Definition at line 40 of file BKLMTrackFitter.cc.

40  :
41  m_Valid(false),
42  m_Good(false),
43  m_Chi2(0.0),
44  m_NumHit(0),
45  m_globalFit(false),
46  m_SectorPar(4, 0),
47  m_SectorErr(4, 0),
48  m_GlobalPar(4, 0),
49  m_GlobalErr(4, 0),
50  m_GeoPar(nullptr)
51 {
52 }
float m_Chi2
Chi square of fit.
int m_NumHit
the number of hits on this track
CLHEP::HepSymMatrix m_GlobalErr
track params errors in global system
CLHEP::HepVector m_GlobalPar
track params in global system
bklm::GeometryPar * m_GeoPar
pointer to GeometryPar singleton
CLHEP::HepVector m_SectorPar
track params in the sector local system
CLHEP::HepSymMatrix m_SectorErr
track params errors in the sector local system
bool m_Valid
Is fit valid.
bool m_globalFit
do fit in the local system or global system false: local sys; true: global sys.
bool m_Good
Is fit good.

Member Function Documentation

◆ fit1dTrack()

double fit1dTrack ( std::list< KLMHit2d * >  hitList,
CLHEP::HepVector &  eta,
CLHEP::HepSymMatrix &  error,
int  depDir,
int  indDir 
)

do fit in the global system

do fit in global system, handle tracks that go thrugh multi-sectors

Definition at line 486 of file BKLMTrackFitter.cc.

◆ globalDistanceToHit()

double globalDistanceToHit ( KLMHit2d hit,
double &  error,
double &  sigma 
)

Distance from track to a hit in the global system.

Distance from track to a hit calculated in the global system.

Definition at line 233 of file BKLMTrackFitter.cc.


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