We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35a45b2 commit fb46d18Copy full SHA for fb46d18
1 file changed
common-tools/clara-io/src/main/java/org/jlab/io/clara/DecoderWriter.java
@@ -91,7 +91,9 @@ protected void writeEvent(Object event) throws EventWriterException {
91
if (runConfig.getRows() > 0) {
92
int unix = runConfig.getInt("unixTime",0);
93
int evno = runConfig.getInt("event",0);
94
+ // if this event has a good unix time, store it for later:
95
if (unix > 0) unixEventMap.put(evno, unix);
96
+ // otherwise update it with the latest unix time reading:
97
else runConfig.putInt("unixTime",0, unixEventMap.get(unixEventMap.floorKey(evno)));
98
}
99
Event t = CLASDecoder4.createTaggedEvent((Event)event, runConfig, tag1banks);
0 commit comments