Skip to content

Commit

Permalink
get output same as c++
Browse files Browse the repository at this point in the history
  • Loading branch information
carltimmer committed Nov 18, 2024
1 parent 478b63c commit 765f7ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions java/org/jlab/coda/jevio/test/DictTest2.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ void createObjectEvents(int tag, int num) throws EvioException, IOException{
EventWriter writer = new EventWriter(new File(writeFileName1), dictionary, false);
System.out.println(" createObjectEvents: set First Event, size bytes = " + event.getTotalBytes());

// writer.setFirstEvent(event);
writer.setFirstEvent(event);
writer.writeEvent(event);
writer.close();

Expand All @@ -201,13 +201,13 @@ void createObjectEvents(int tag, int num) throws EvioException, IOException{
String xmlDict = reader.getDictionaryXML();
System.out.println(" createObjectEvents: read dictionary ->\n\n" + xmlDict);

System.out.println(" createObjectEvents: have first event? " + reader.hasFirstEvent());
System.out.println("\n createObjectEvents: have first event? " + reader.hasFirstEvent());
if (reader.hasFirstEvent()) {
EvioEvent fe = reader.getFirstEvent();
System.out.println(" createObjectEvents: read first event ->\n\n" + fe.treeToString(""));
System.out.println(" createObjectEvents: first ev.treeToString() ->\n\n" + fe.treeToString(""));
}

System.out.println(" createObjectEvents: try getting ev #1");;
System.out.println("\n createObjectEvents: try getting ev #1");
EvioEvent ev = reader.parseEvent(1);
System.out.println(" createObjectEvents: event ->\n" + ev.treeToString(""));
}
Expand Down

0 comments on commit 765f7ed

Please sign in to comment.