Commit in lcio on MAIN
doc/versions.readme+31.48 -> 1.49
src/cpp/src/EXAMPLE/dumpevent.cc+2-11.8 -> 1.9
src/cpp/src/SIO/SIOReader.cc+111.46 -> 1.47
+16-1
3 modified files
fixed bug in SIOReader::skipNevents() 

lcio/doc
versions.readme 1.48 -> 1.49
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
dumpevent.cc 1.8 -> 1.9
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
SIOReader.cc 1.46 -> 1.47
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 ;
+    }
     
   }
 
CVSspam 0.2.8