Skip to content
Snippets Groups Projects
Commit 9274d3cb authored by zoujh@ihep.ac.cn's avatar zoujh@ihep.ac.cn
Browse files

fix a bug when EvtMax is more than the event number in files

parent 52d91c74
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ void PodioDataSvc::endOfRead() {
if (m_eventMax != -1) {
m_provider.clearCaches();
m_reader.endOfEvent();
if (m_eventNum++ > m_eventMax) {
if ( ++m_eventNum >= m_eventMax ) {
info() << "Reached end of file with event " << m_eventMax << endmsg;
IEventProcessor* eventProcessor;
service("ApplicationMgr", eventProcessor);
......
......@@ -74,7 +74,7 @@ void LCIODataSvc::endOfRead() {
if (m_eventMax != -1) {
// m_provider.clearCaches();
// m_reader.endOfEvent();
if (m_eventNum++ > m_eventMax) {
if ( ++m_eventNum >= m_eventMax ) {
info() << "Reached end of file with event " << m_eventMax << endmsg;
IEventProcessor* eventProcessor;
service("ApplicationMgr", eventProcessor);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment