Page MenuHomeHEPForge

BufferedEventReader.cc
No OneTemporary

Size
478 B
Referenced Files
None
Subscribers
None

BufferedEventReader.cc

/**
* \authors The HEJ collaboration (see AUTHORS for details)
* \date 2019
* \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;
}
}

File Metadata

Mime Type
text/x-c
Expires
Tue, Sep 30, 4:47 AM (13 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6468273
Default Alt Text
BufferedEventReader.cc (478 B)

Event Timeline