lcsim/src/org/lcsim/contrib/uiowa
diff -u -r1.2 -r1.3
--- MainLoop.java 11 Sep 2007 00:21:02 -0000 1.2
+++ MainLoop.java 20 Sep 2007 20:51:05 -0000 1.3
@@ -10,7 +10,7 @@
import org.lcsim.util.loop.LCSimLoop;
import org.freehep.record.loop.LoopSourceExhaustedException;
-public class MainLoop extends Driver
+public class MainLoop
{
public MainLoop()
{
@@ -24,8 +24,8 @@
// First arg: Number of events to analyze
long numToProcess = Integer.parseInt(args[0]);
// Second arg: name of Driver to run
- Driver myDriver = MainLoop.makeDriverFromString(args[1]);
LCSimLoop loop = new LCSimLoop();
+ Driver myDriver = MainLoop.makeDriverFromString(args[1]);
loop.add(myDriver);
long eventsProcessed = 0;
// Third and subsequent args: names of SIO files to analyze
@@ -37,7 +37,7 @@
long eventsProcessedAtStartOfThisFile = loop.getTotalCountableSupplied();
while (numToProcess>0) {
try {
- long eventsProcessedThisIteration = loop.loop(numToProcess, null);
+ long eventsProcessedThisIteration = loop.loop(numToProcess);
eventsCountedFromThisFile += eventsProcessedThisIteration;
numToProcess -= eventsProcessedThisIteration;
} catch (LoopSourceExhaustedException x) {