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

refilling buffer if empty

parent 39ad7bb9
Pipeline #3146456 failed with stages
in 52 minutes and 53 seconds
......@@ -188,8 +188,8 @@ StatusCode EventLoaderMuPixTelescope::read_unsorted(const std::shared_ptr<Clipbo
fillBuffer();
for(auto t : tags_) {
while(true) {
if(pixelbuffers_.at(t).size() == 0)
break;
if(pixelbuffers_.at(t).size() == 0 && !eof_)
fillBuffer();
auto pixel = pixelbuffers_.at(t).top();
if((pixel->timestamp() < clipboard->getEvent()->start())) {
LOG(DEBUG) << " Old hit found: " << Units::display(pixel->timestamp(), "us") << " vs prev end ("
......
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