Commit 29b1602e authored by Jens Kroeger's avatar Jens Kroeger
Browse files

EventDefinitionM26: rename evtstart ->evtStart to be consistent with evtEnd + add some debug output

parent eeaa48d1
......@@ -155,12 +155,14 @@ StatusCode EventDefinitionM26::run(const std::shared_ptr<Clipboard>& clipboard)
if(time_trig - time_prev_ > 0) {
timebetweenMimosaEvents_->Fill(static_cast<double>(Units::convert(time_trig - time_prev_, "us")));
time_prev_ = time_trig;
long double evtstart = time_trig - time_before_;
long double evtStart = time_trig - time_before_;
long double evtEnd = time_trig + time_after_;
clipboard->putEvent(std::make_shared<Event>(evtstart, evtEnd));
LOG(DEBUG) << "Defining Corryvreckan event: " << Units::display(evtstart, {"us", "ns"}) << " - "
LOG(DEBUG) << "before/after/duration = " << Units::display(time_before_,"us") << ", " << Units::display(time_after_,"us") << ", " << Units::display(time_after_ - time_before_,"us");
LOG(DEBUG) << "evtStart/evtEnd/duration = " << Units::display(evtStart,"us") << ", " << Units::display(evtEnd,"us") << ", " << Units::display(evtEnd - evtStart,"us");
clipboard->putEvent(std::make_shared<Event>(evtStart, evtEnd));
LOG(DEBUG) << "Defining Corryvreckan event: " << Units::display(evtStart, {"us", "ns"}) << " - "
<< Units::display(evtEnd, {"us", "ns"}) << ", length "
<< Units::display(evtEnd - evtstart, {"us", "ns"});
<< Units::display(evtEnd - evtStart, {"us", "ns"});
} else {
LOG(WARNING) << "Current trigger time smaller than previous: " << time_trig << " vs " << time_prev_;
}
......
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