Project
Loading...
Searching...
No Matches
o2::mch::TrackFitter Class Reference

Class to fit a track to a set of clusters. More...

#include <TrackFitter.h>

Public Member Functions

 TrackFitter ()=default
 
 ~TrackFitter ()=default
 
 TrackFitter (const TrackFitter &)=delete
 
TrackFitteroperator= (const TrackFitter &)=delete
 
 TrackFitter (TrackFitter &&)=delete
 
TrackFitteroperator= (TrackFitter &&)=delete
 
void initField (float l3Current, float dipoleCurrent)
 
void setBendingVertexDispersion (double ey)
 Set the vertex dispersion in y direction used for the track covariance seed.
 
void smoothTracks (bool smooth)
 Enable/disable the smoother (and the saving of related parameters)
 
bool isSmootherEnabled ()
 Return the smoother enable/disable flag.
 
void useClusterResolution ()
 Use the own resolution of each cluster during the fit (default)
 
void useChamberResolution ()
 Use the chamber resolution instead of cluster resolution during the fit.
 
void setChamberResolution (double ex, double ey)
 
void fit (Track &track, bool smooth=true, bool finalize=true, std::list< TrackParam >::reverse_iterator *itStartingParam=nullptr, bool skipLocalChi2Calculation=false)
 
void runKalmanFilter (TrackParam &trackParam)
 

Static Public Member Functions

static constexpr double getMaxChi2 ()
 Return the maximum chi2 above which the track can be considered as abnormal.
 

Detailed Description

Class to fit a track to a set of clusters.

Definition at line 30 of file TrackFitter.h.

Constructor & Destructor Documentation

◆ TrackFitter() [1/3]

o2::mch::TrackFitter::TrackFitter ( )
default

◆ ~TrackFitter()

o2::mch::TrackFitter::~TrackFitter ( )
default

◆ TrackFitter() [2/3]

o2::mch::TrackFitter::TrackFitter ( const TrackFitter )
delete

◆ TrackFitter() [3/3]

o2::mch::TrackFitter::TrackFitter ( TrackFitter &&  )
delete

Member Function Documentation

◆ fit()

void o2::mch::TrackFitter::fit ( Track track,
bool  smooth = true,
bool  finalize = true,
std::list< TrackParam >::reverse_iterator *  itStartingParam = nullptr,
bool  skipLocalChi2Calculation = false 
)

Fit a track to its attached clusters Smooth the track if requested and the smoother enabled If finalize = true: copy the smoothed parameters, if any, into the regular ones Fit the entire track or only the part upstream itStartingParam Skip the local chi2 calculation in the smoother if requested Throw an exception in case of failure

Definition at line 56 of file TrackFitter.cxx.

◆ getMaxChi2()

static constexpr double o2::mch::TrackFitter::getMaxChi2 ( )
inlinestaticconstexpr

Return the maximum chi2 above which the track can be considered as abnormal.

Definition at line 65 of file TrackFitter.h.

◆ initField()

void o2::mch::TrackFitter::initField ( float  l3Current,
float  dipoleCurrent 
)

Create the magnetic field map if not already done

Definition at line 38 of file TrackFitter.cxx.

◆ isSmootherEnabled()

bool o2::mch::TrackFitter::isSmootherEnabled ( )
inline

Return the smoother enable/disable flag.

Definition at line 49 of file TrackFitter.h.

◆ operator=() [1/2]

TrackFitter & o2::mch::TrackFitter::operator= ( const TrackFitter )
delete

◆ operator=() [2/2]

TrackFitter & o2::mch::TrackFitter::operator= ( TrackFitter &&  )
delete

◆ runKalmanFilter()

void o2::mch::TrackFitter::runKalmanFilter ( TrackParam trackParam)

Compute the new track parameters including the attached cluster with the Kalman filter The current parameters are supposed to have been extrapolated to the cluster z position Throw an exception in case of failure

Definition at line 260 of file TrackFitter.cxx.

◆ setBendingVertexDispersion()

void o2::mch::TrackFitter::setBendingVertexDispersion ( double  ey)
inline

Set the vertex dispersion in y direction used for the track covariance seed.

Definition at line 44 of file TrackFitter.h.

◆ setChamberResolution()

void o2::mch::TrackFitter::setChamberResolution ( double  ex,
double  ey 
)
inline

Set the chamber resolution in x and y directions

Definition at line 91 of file TrackFitter.h.

◆ smoothTracks()

void o2::mch::TrackFitter::smoothTracks ( bool  smooth)
inline

Enable/disable the smoother (and the saving of related parameters)

Definition at line 47 of file TrackFitter.h.

◆ useChamberResolution()

void o2::mch::TrackFitter::useChamberResolution ( )
inline

Use the chamber resolution instead of cluster resolution during the fit.

Definition at line 54 of file TrackFitter.h.

◆ useClusterResolution()

void o2::mch::TrackFitter::useClusterResolution ( )
inline

Use the own resolution of each cluster during the fit (default)

Definition at line 52 of file TrackFitter.h.


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