Commit f05fdf7a authored by Simon Spannagel's avatar Simon Spannagel
Browse files

EvLoEUDAQ2: create new StdEvent instead of recycling if decoding fails

parent c72f0687
Pipeline #1019812 passed with stages
in 20 minutes and 7 seconds
......@@ -129,10 +129,13 @@ void EventLoaderEUDAQ2::initialise() {
}
std::shared_ptr<eudaq::StandardEvent> EventLoaderEUDAQ2::get_next_event() {
auto stdevt = eudaq::StandardEvent::MakeShared();
std::shared_ptr<eudaq::StandardEvent> stdevt;
bool decoding_failed = true;
do {
// Create new StandardEvent
stdevt = eudaq::StandardEvent::MakeShared();
// Check if we need a new full event or if we still have some in the cache:
if(events_.empty()) {
LOG(TRACE) << "Reading new EUDAQ event from file";
......
Supports Markdown
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