~christopher-hunt08/maus/maus_integrated_kalman

« back to all changes in this revision

Viewing changes to src/common_cpp/Optics/PolynomialOpticsModel.cc

  • Committer: Durga Rajaram
  • Date: 2014-07-16 15:13:05 UTC
  • mfrom: (659.1.92 cand)
  • Revision ID: durga@fnal.gov-20140716151305-q27rv1y9p03v9lks
Tags: MAUS-v0.9, MAUS-v0.9.0
MAUS-v0.9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
168
168
      JsonWrapper::stringValue);
169
169
  size_t algorithm;
170
170
  for (algorithm = 0; algorithm <= algorithm_names.size(); ++algorithm) {
171
 
    if (algorithm_name == algorithm_names[algorithm]) {
 
171
    if (algorithm_name == algorithm_names[Json::Value::ArrayIndex(algorithm)]) {
172
172
      break;  // leave the current index into algorithm_names in algorithm
173
173
    }
174
174
  }