~christopher-hunt08/maus/maus_integrated_kalman

« back to all changes in this revision

Viewing changes to tests/cpp_unit/Recon/SciFi/PatternRecognitionTest.cc

Pattern recognition test

Show diffs side-by-side

added added

removed removed

Lines of Context:
956
956
  SimpleLine line;
957
957
  pr.linear_fit(x, y, y_err, line);
958
958
 
959
 
  EXPECT_EQ(2.0, line.get_c());
960
 
  EXPECT_EQ(1.0, line.get_m());
 
959
  double epsilon = 0.00001;
 
960
 
 
961
  EXPECT_NEAR(2.0, line.get_c(), epsilon);
 
962
  EXPECT_NEAR(1.0, line.get_m(), epsilon);
961
963
}
962
964
 
963
965
TEST_F(PatternRecognitionTest, test_calculate_dipangle) {