From 7ab9d4100786238c5dcb1470b6b2b0480e0f2e15 Mon Sep 17 00:00:00 2001 From: Gordon McCann Date: Thu, 29 Sep 2022 21:04:30 -0400 Subject: [PATCH] Continue to extend file api --- include/FileIO/DYFileReader.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/FileIO/DYFileReader.h b/include/FileIO/DYFileReader.h index 2e4becf..2218722 100644 --- a/include/FileIO/DYFileReader.h +++ b/include/FileIO/DYFileReader.h @@ -85,10 +85,14 @@ namespace DaqGrimoire { const DYListEvent& GetCurrentEvent() const { - m_isHitUsed = true; return m_dataEvent; } + void SetHitUsed() + { + m_isHitUsed = true; + } + const bool IsOpen() const { return m_fileHandle == nullptr ? false : m_fileHandle->is_open(); } const bool IsEOF() const { return m_isEOF; }