[Rivet] [Rivet-svn] r1290 - trunk/bin

Frank Siegert frank.siegert at durham.ac.uk
Fri Jan 30 16:28:10 GMT 2009


Andy Buckley, Friday 30 January 2009:
> > Log:
> > bin/rivet: Gracefully exit, if end of hepmc file is reached. Anybody
> > a better idea on how to achieve this?
>
> Without checking your code (!), I don't think there is a neat way to do
> this until HepMC 2.5.0, which should actually provide a way to use
> standard C++ streams. In that case, our IO wrapper can directly query
> the istream about its state. Anything else is likely to be heuristic
> and hacky (like I say, I haven't looked at your code, but I'm guessing
> from your comment that it's not 100% convincing!)

I'm checking, whether the presumably read GenEvent contains 0 vertices.

Does this really have to do with HepMC 2.05? Doesn't 
IO_GenEvent::fill_next_event already return a bool about whether it 
succeeded or not? So it's just a matter of knowing how to read that in our 
Python interface, and I didn't know enough about this, thus the comment in 
SVN log.

Frank


More information about the Rivet mailing list