TrdMCClusterR Fit Classifier
Functions
ClusterFitter Namespace Reference

Functions

std::vector< Line::FitLine2DGetClusterProjectionLinearFits (const std::vector< double > &TrkClusters_x, const std::vector< double > &TrkClusters_y, const std::vector< double > &TrkClusters_z, const int &trkID, const int &g3PID, const bool &debug=false, const double threshold=1000)
 

Function Documentation

◆ GetClusterProjectionLinearFits()

std::vector<Line::FitLine2D> ClusterFitter::GetClusterProjectionLinearFits ( const std::vector< double > &  TrkClusters_x,
const std::vector< double > &  TrkClusters_y,
const std::vector< double > &  TrkClusters_z,
const int &  trkID,
const int &  g3PID,
const bool &  debug = false,
const double  threshold = 1000 
)

Function which returns the "XZ, YZ and XY" 2D linear fits of 3D clusters.

sanity check

This should never happen if the argument vectors are set up correctly!

Must have at least 2 points to fit

Return an empty vector

!!! Change (0, 20) to actual AMS z-coordinate for the TRD !!!

!!! Change (0, 20) to actual AMS z-coordinate for the TRD !!!

!!! Change (0, 20) to actual AMS z-coordinate for the TRD !!!

Return an empty vector

Parameters
TrkClusters_yparticle-1 x-coordinate of clusters
TrkClusters_zparticle-1 y-coordinate of clusters
trkIDparticle-1 z-coordinate of clusters
threshold!!! Set accordingly. This is just some random guess !!!
Here is the call graph for this function:
Here is the caller graph for this function: