Page MenuHomeHEPForge

BufferedEventReader.cc
No OneTemporary

Size
501 B
Referenced Files
None
Subscribers
None

BufferedEventReader.cc

/**
* \authors The HEJ collaboration (see AUTHORS for details)
* \date 2019-2020
* \copyright GPLv2 or later
*/
#include "HEJ/BufferedEventReader.hh"
namespace HEJ {
bool BufferedEventReader::read_event() {
if(buffer_.empty()) {
const bool read_success = reader_->read_event();
if(read_success) cur_event_ = reader_->hepeup();
return read_success;
}
cur_event_ = buffer_.top();
buffer_.pop();
return true;
}
} // namespace HEJ

File Metadata

Mime Type
text/x-c
Expires
Tue, Sep 30, 5:51 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6445137
Default Alt Text
BufferedEventReader.cc (501 B)

Event Timeline