TrdMCClusterR Fit Classifier
|
Functions | |
Line::FitLine3D | fitClustersToLine3D (const AMSTrdMCTrack::Track &track, const int &eventID, TFile *file) |
Line::FitLine3D ClusterFitter3D::fitClustersToLine3D | ( | const AMSTrdMCTrack::Track & | track, |
const int & | eventID, | ||
TFile * | file | ||
) |
Function to fit the clusters to a 3D line and return FitLine3D
Get the graph with clusters
Define the 3D line function (name, parameter functor, xmin, xmax, ymin, ymax, zmin, zmax, npar (6), ndim=3)
Initial parameters
Fit the data and store the fit result in TFitResultPtr
"V" for verbose fitting
Check if the fit was successful
The fit failed
Print fit results
Save the graph and fit to provided TFile