|
[Rivet-svn] r2167 - trunk/src/Coreblackhole at projects.hepforge.org blackhole at projects.hepforge.orgThu Dec 10 16:00:56 GMT 2009
Author: eike Date: Thu Dec 10 16:00:55 2009 New Revision: 2167 Log: fix last commit: don't be verbose on ERROR log level Modified: trunk/src/Core/Run.cc Modified: trunk/src/Core/Run.cc ============================================================================== --- trunk/src/Core/Run.cc Thu Dec 10 15:49:42 2009 (r2166) +++ trunk/src/Core/Run.cc Thu Dec 10 16:00:55 2009 (r2167) @@ -32,18 +32,10 @@ bool Run::readEvent() { /// @todo Clear rather than new the GenEvent object per-event? _evt.reset(new GenEvent()); - // if (_io->rdstate() != 0 || !_io->fill_next_event(_evt.get()) ) { - //Log::getLog("Rivet.Run") << Log::DEBUG << "Read failed. End of file?" << endl; - // return false; - // } - if (_io->rdstate() != 0) { - Log::getLog("Rivet.Run") << Log::ERROR - << "Read failed: HepMC rdstate != 0" << endl; - return false; - } else if (!_io->fill_next_event(_evt.get())) { - Log::getLog("Rivet.Run") << Log::ERROR - << "HepMC fill_next_event failed!" << endl; - cout << "HepMC error: " << _io->error_message() << " (type: " << _io->error_type() << ")" << endl; + if (_io->rdstate() != 0 || !_io->fill_next_event(_evt.get()) ) { + Log::getLog("Rivet.Run") << Log::DEBUG + << "Read failed. End of file? HepMC error:" << _io->error_message() + << endl; return false; } return true;
More information about the Rivet-svn mailing list |