lcio/doc
diff -u -r1.48 -r1.49
--- versions.readme 27 Mar 2006 14:11:47 -0000 1.48
+++ versions.readme 18 May 2006 14:35:29 -0000 1.49
@@ -1,6 +1,9 @@
---------------------------------------------------------------
Describes the changes for the different versions/tags of LCIO
---------------------------------------------------------------
+
+ - bug fix in SIOReader::skipNEvents() (skipped only n-1 with readStream())
+
======================
v01-07
=======================
lcio/src/cpp/src/EXAMPLE
diff -u -r1.8 -r1.9
--- dumpevent.cc 10 Mar 2006 16:23:17 -0000 1.8
+++ dumpevent.cc 18 May 2006 14:35:29 -0000 1.9
@@ -76,7 +76,8 @@
if( dumpNthEvent ) {
- lcReader->skipNEvents( nthEvent - 1 ) ;
+ if( nthEvent > 1 )
+ lcReader->skipNEvents( nthEvent - 1 ) ;
evt = lcReader->readNextEvent() ;
lcio/src/cpp/src/SIO
diff -u -r1.46 -r1.47
--- SIOReader.cc 21 Oct 2005 13:53:20 -0000 1.46
+++ SIOReader.cc 18 May 2006 14:35:29 -0000 1.47
@@ -419,6 +419,17 @@
return ;
}
}
+
+ // now we need to also read the next record which suposedly nis an event record
+ // in order to prevent readStream from reading this event (the last to be skipped)
+ SIOUnpack evtUnp( SIOUnpack::EVENT ) ;
+
+ try{
+ readRecord() ;
+ }
+ catch(EndOfDataException){
+ return ;
+ }
}