Skip to content

Commit

Permalink
Bugfix in chi square calculation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-kaspar committed Jun 13, 2016
1 parent 17edee1 commit b8f8902
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -170,7 +170,7 @@ bool TotemRPLocalTrackFitterAlgorithm::fitTrack(const edm::DetSetVector<TotemRPR
double pull_normalization = sqrt(sigma_str_2 - fit_strip_var);
double pull = residual/pull_normalization;

Chi_2+=residual/sigma_str_2;
Chi_2 += residual*residual / sigma_str_2;

TotemRPLocalTrack::FittedRecHit hit_point(*(applicable_hits[i].hit), TVector3(fited_det_xy_point.X(),
fited_det_xy_point.Y(), det_z), residual, pull);
Expand Down

0 comments on commit b8f8902

Please sign in to comment.