Commit in lcsim/src/org/lcsim/contrib/uiowa/standalone on MAIN
MainLoop.java+5-11.1 -> 1.2
Bugfix: Make it actually process the number of events requested

lcsim/src/org/lcsim/contrib/uiowa/standalone
MainLoop.java 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- MainLoop.java	29 Sep 2005 21:06:29 -0000	1.1
+++ MainLoop.java	1 Oct 2005 01:26:19 -0000	1.2
@@ -26,15 +26,19 @@
 	    Driver myDriver = MainLoop.makeDriverFromString(args[1]);
 	    LCSimLoop loop = new LCSimLoop();
 	    loop.add(myDriver);
+	    long eventsProcessed = 0;
 	    // Third and subsequent args: names of SIO files to analyze
             for (int i=2; i<args.length; i++) {
 		String filename = args[i];
 		File input = new File(filename);
 		loop.setLCIORecordSource(input);
-		loop.loop(-1);
+		long eventsProcessedFromThisFile = loop.loop(numToProcess);
+		eventsProcessed += eventsProcessedFromThisFile;
+		System.out.println("Processed "+eventsProcessed+" events from file "+filename);
 	    }
 	    loop.dispose();
 	    //AIDA.defaultInstance().saveAs("exampleAnalysisJava.aida");
+	    System.out.println("Processed "+eventsProcessed+" events total.");
        }
    }
 
CVSspam 0.2.8