~christopher-hunt08/maus/maus_integrated_kalman

« back to all changes in this revision

Viewing changes to src/common_cpp/DataStructure/SciFiStraightPRTrack.cc

Merged Updates

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
      _y0(y0),
50
50
      _my(my),
51
51
      _y_chisq(y_chisq) {
 
52
    this->set_chi_squared(_x_chisq + _y_chisq);
 
53
    this->set_ndf((2.0*_num_points) - 4);
52
54
  }
53
55
 
54
56
  SciFiStraightPRTrack::SciFiStraightPRTrack(int tracker, int num_points,
63
65
      _y0(line_y.get_c()),
64
66
      _my(line_y.get_m()),
65
67
      _y_chisq(line_y.get_chisq()) {
 
68
    this->set_chi_squared(_x_chisq + _y_chisq);
 
69
    this->set_ndf((2.0*_num_points) - 4);
66
70
  }
67
71
 
68
72
  SciFiStraightPRTrack::SciFiStraightPRTrack(const SciFiStraightPRTrack &strk)
75
79
      _y0(strk.get_y0()),
76
80
      _my(strk.get_my()),
77
81
      _y_chisq(strk.get_y_chisq()) {
 
82
    this->set_chi_squared(_x_chisq + _y_chisq);
 
83
    this->set_ndf((2.0*_num_points) - 4);
78
84
  }
79
85
 
80
86
  // Destructor