Commit f4cd375a authored by Lennart Huth's avatar Lennart Huth
Browse files

static cast for filling histos

parent b5389caa
Pipeline #2845100 failed with stages
in 20 minutes and 25 seconds
......@@ -122,14 +122,14 @@ void EventDefinitionM26::initialize() {
void EventDefinitionM26::finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) {
for(uint i = 1; i < _pivots.size() - 1; ++i) {
_pivot_vs_next_event->Fill(_pivots.at(i),
_pivot_vs_next_event->Fill(static_cast<double>(_pivots.at(i)),
static_cast<double>(Units::convert(_starts.at(i + 1) - _ends.at(i), "us")));
_pivot_vs_priv_event->Fill(_pivots.at(i),
_pivot_vs_priv_event->Fill(static_cast<double>(_pivots.at(i)),
static_cast<double>(Units::convert(_starts.at(i) - _ends.at(i - 1), "us")));
_pivot_vs_next_dtrigger->Fill(_pivots.at(i),
_pivot_vs_next_dtrigger->Fill(static_cast<double>(_pivots.at(i)),
static_cast<double>(Units::convert(_triggers.at(i + 1) - _triggers.at(i), "us")));
_pivot_vs_priv_dtrigger->Fill(_pivots.at(i),
_pivot_vs_priv_dtrigger->Fill(static_cast<double>(_pivots.at(i)),
static_cast<double>(Units::convert(_triggers.at(i) - _triggers.at(i - 1), "us")));
}
LOG(INFO) << "We have to skip " << skipped_events_ << "events due to time cut criteria ";
......
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