Skip to content

Commit 4ad32a8

Browse files
committed
cleanup
1 parent 10c06a6 commit 4ad32a8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

common-tools/clas-reco/src/main/java/org/jlab/clas/reco/EngineProcessor.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,10 +322,12 @@ public void processFile(EvioSource reader, HipoDataSync writer, int skipEvents,
322322
eventsRead++;
323323
try {
324324
ByteBuffer bb = reader.getEventBuffer(eventsRead, true);
325-
EvioDataEvent evio = new EvioDataEvent(bb.array(), ByteOrder.LITTLE_ENDIAN);
326-
Event hipo = decoder.getDecodedEvent(evio, -1, eventsRead, null, null);
327-
HipoDataEvent hipo2 = new HipoDataEvent(hipo, decoder.getSchemaFactory());
328-
if (skipEvents <= 0 || eventsRead > skipEvents) processEvent(hipo2, writer);
325+
if (skipEvents <= 0 || eventsRead > skipEvents) {
326+
EvioDataEvent evio = new EvioDataEvent(bb.array(), ByteOrder.LITTLE_ENDIAN);
327+
Event hipo = decoder.getDecodedEvent(evio, -1, eventsRead, null, null);
328+
HipoDataEvent hipo2 = new HipoDataEvent(hipo, decoder.getSchemaFactory());
329+
processEvent(hipo2, writer);
330+
}
329331
if (maxEvents > 0 && eventsRead > maxEvents+skipEvents) break;
330332
} catch (EvioException ex) {
331333
System.getLogger(EngineProcessor.class.getName()).log(System.Logger.Level.ERROR, (String) null, ex);

0 commit comments

Comments
 (0)