~christopher-hunt08/maus/maus_integrated_kalman

« back to all changes in this revision

Viewing changes to src/common_cpp/Recon/Global/DataStructureHelper.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:
269
269
 
270
270
  const size_t size = 6;
271
271
  double matrix_data[size*size];
272
 
  for (size_t row = 0; row < 6; ++row) {
 
272
  for (int row = 0; row < 6; ++row) {
273
273
    const Json::Value row_json = value[row];
274
274
    if (row_json.size() < static_cast<Json::Value::UInt>(6)) {
275
275
      throw(Exception(
277
277
          "Not enough column elements to convert JSON to CovarianceMatrix",
278
278
          "DataStructureHelper::GetJsonCovarianceMatrix()"));
279
279
    }
280
 
    for (size_t column = 0; column < 6; ++column) {
 
280
    for (int column = 0; column < 6; ++column) {
281
281
      const Json::Value element_json = row_json[column];
282
282
      matrix_data[row*size+column] = element_json.asDouble();
283
283
    }