~christopher-hunt08/maus/maus_integrated_kalman

« back to all changes in this revision

Viewing changes to src/common_cpp/Simulation/MAUSEventAction.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:
72
72
        throw(Exception(Exception::recoverable, "Particles must be an array value",
73
73
                     "MAUSEventAction::SetEvent"));
74
74
    for (size_t i = 0; i < events.size(); ++i) {
75
 
        if (!events[i].isObject())
 
75
        if (!events[Json::Value::ArrayIndex(i)].isObject())
76
76
            throw(Exception(Exception::recoverable,
77
77
                         "Each Particle must be an object value",
78
78
                         "MAUSEventAction::SetEvent"));