~christopher-hunt08/maus/maus_DOE_review_version

« back to all changes in this revision

Viewing changes to src/common_cpp/Recon/Kalman/KalmanState.cc

  • Committer: Christopher Hunt
  • Date: 2014-08-22 12:47:53 UTC
  • mfrom: (661.56.55 tracker_devel)
  • Revision ID: christopher.hunt08@imperial.ac.uk-20140822124753-r4zuju8q9k13v4zc
Merged Tracker Devel

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
                          _id(-1),
25
25
                          _chi2(0.),
26
26
                          _cluster(NULL),
27
 
                          _direction(ThreeVector()) {}
 
27
                          _direction(ThreeVector()),
 
28
                          _contains_measurement(false) {}
28
29
 
29
30
KalmanState::~KalmanState() {}
30
31
 
33
34
                                                _id(-1),
34
35
                                                _chi2(0.),
35
36
                                                _cluster(NULL),
36
 
                                                _direction(ThreeVector()) {
 
37
                                                _direction(ThreeVector()),
 
38
                                                _contains_measurement(false) {
37
39
  int dim = site.a(KalmanState::Projected).GetNrows();
38
40
  Initialise(dim);
39
41
 
42
44
  _chi2 = site.chi2();
43
45
  _cluster = site.cluster();
44
46
  _direction = site.direction();
 
47
  _contains_measurement = site.contains_measurement();
45
48
 
46
49
  _projected_a = site.a(KalmanState::Projected);
47
50
  _a           = site.a(KalmanState::Filtered);
81
84
  _chi2 = rhs.chi2();
82
85
  _cluster = rhs.cluster();
83
86
  _direction = rhs.direction();
 
87
  _contains_measurement = rhs.contains_measurement();
84
88
 
85
89
  _projected_a = rhs.a(KalmanState::Projected);
86
90
  _a           = rhs.a(KalmanState::Filtered);
122
126
  _smoothed_C. ResizeTo(dim, dim);
123
127
 
124
128
  // The measurement.
125
 
  // _v.          ResizeTo(2, 1);
126
129
  _v.          ResizeTo(1, 1);
127
130
 
128
131
  // The residuals.
129
 
  /*
130
 
  _pull.                ResizeTo(2, 1);
131
 
  _residual.            ResizeTo(2, 1);
132
 
  _smoothed_residual.   ResizeTo(2, 1);
133
 
  _covariance_residual.ResizeTo(2, 2);
134
 
  _covariance_smoothed_residual.ResizeTo(2, 2);
135
 
  */
136
132
  _pull.                ResizeTo(1, 1);
137
133
  _residual.            ResizeTo(1, 1);
138
134
  _smoothed_residual.   ResizeTo(1, 1);