Commit 9eaaee59 authored by Philippe Calfayan's avatar Philippe Calfayan
Browse files

protection for longer vectors present in newer DB tags

parent e22eb000
......@@ -224,8 +224,11 @@ StatusCode TRT_ToT_dEdx::update(int& /*i*/ , std::list<std::string>& /*l*/)
current_array_values.push_back(first_channel->second["array_value"].data<float>());
}
result_dict[dict_names[current_channel]] = current_array_values;
// protection for longer vectors present in newer DB tags
if (current_channel < dict_names.size()) {
result_dict[dict_names[current_channel]] = current_array_values;
}
update_New(result_dict);
ATH_MSG_DEBUG ("update():: Reading new database is done!");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment