hps-java/src/main/java/org/lcsim/hps/evio
diff -u -r1.15 -r1.16
--- TestRunEvioToLcio.java 23 May 2012 18:22:17 -0000 1.15
+++ TestRunEvioToLcio.java 23 May 2012 23:48:35 -0000 1.16
@@ -206,15 +206,14 @@
calibListener.endRun(seconds, nevents);
} else if (eventBuilder.isPhysicsEvent(evioEvent)) {
EventHeader lcioEvent = eventBuilder.makeLCSimEvent(evioEvent);
- if (runControl.process(lcioEvent)) {
+ if (runControl == null || runControl.process(lcioEvent)) {
jobManager.processEvent(lcioEvent);
- }
- if (writer != null) {
- writer.write(lcioEvent);
- writer.flush();
+ if (writer != null) {
+ writer.write(lcioEvent);
+ writer.flush();
+ }
}
}
-
} catch (Exception e) {
// Catch all event processing errors and continue.
e.printStackTrace();