Print

Print


Commit in slicPandora/src on MAIN
JobManager.cpp+8-11.7 -> 1.8
add check for end of input file

slicPandora/src
JobManager.cpp 1.7 -> 1.8
diff -u -r1.7 -r1.8
--- JobManager.cpp	17 Mar 2010 02:11:05 -0000	1.7
+++ JobManager.cpp	18 Mar 2010 02:43:31 -0000	1.8
@@ -137,11 +137,18 @@
 
         // Read the next event.
         event = reader->readNextEvent();
+ 
+        // End of input file.
+        if (0 == event)
+        {
+            std::cout << std::endl << "Ran out of events after <" << nread << "> events!" << std::endl;
+            break;
+        }
 
         // Check if job should be stopped due to user-specified event limit.
         if ((ntoread != -1) && (nread >= ntoread))
         {
-            std::cout << std::endl << "Stopping run after <" << ntoread << "> events!" << std::endl;
+            std::cout << std::endl << "Stopping run after <" << ntoread << "> event limit!" << std::endl;
             break;
         }
 
CVSspam 0.2.8