Commit a7f217e7 authored by Lennart Huth's avatar Lennart Huth
Browse files

inline comment for degrees of freedom

parent 5a22d6be
...@@ -36,6 +36,8 @@ ROOT::Math::XYPoint StraightLineTrack::getKinkAt(const std::string&) const { ...@@ -36,6 +36,8 @@ ROOT::Math::XYPoint StraightLineTrack::getKinkAt(const std::string&) const {
void StraightLineTrack::calculateChi2() { void StraightLineTrack::calculateChi2() {
// Get the number of clusters // Get the number of clusters
// We do have a 2-dimensional offset(x_0,y_0) and slope (dx,dy). Each hit provides two measurements.
// ndof_ = 2*num_planes - 4 = 2 * (num_planes -2)
ndof_ = (static_cast<double>(track_clusters_.size()) - 2.) * 2.; ndof_ = (static_cast<double>(track_clusters_.size()) - 2.) * 2.;
chi2_ = 0.; chi2_ = 0.;
chi2ndof_ = 0.; chi2ndof_ = 0.;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment