Commit 9d06b735 authored by Jens Kroeger's avatar Jens Kroeger
Browse files

EventloaderEUDAQ2: simplified (*it).at(x) to it->at(x)

parent 934288cc
Pipeline #842819 failed with stages
in 2 minutes and 20 seconds
......@@ -135,11 +135,11 @@ EventLoaderEUDAQ2::EventPosition EventLoaderEUDAQ2::is_within_event(std::shared_
adjust_event_times.end(),
[evt](const std::vector<std::string>& x) { return x.front() == evt->GetDescription(); });
if(it != adjust_event_times.end()) {
double shift_start = corryvreckan::from_string<double>((*it).at(1));
double shift_end = corryvreckan::from_string<double>((*it).at(2));
double shift_start = corryvreckan::from_string<double>(it->at(1));
double shift_end = corryvreckan::from_string<double>(it->at(2));
event_start += shift_start;
event_end += shift_end;
LOG(DEBUG) << "Adjusting " << (*it).at(0) << ": event_start by " << Units::display(shift_start, {"us", "ns"})
LOG(DEBUG) << "Adjusting " << it->at(0) << ": event_start by " << Units::display(shift_start, {"us", "ns"})
<< ", event_end by " << Units::display(event_end, {"us", "ns"});
}
......
Supports Markdown
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