Hi,
I'm trying to get the start and end dates from the EVIO event control data in PRESTART and END events, but it does not return anything that makes any sense.
while ((event = reader.parseNextEvent()) != null) {
if (EvioEventUtilities.isEndEvent(event)) {
final int[] data = EvioEventUtilities.getControlEventData(event);
date = new Date((long) data[0] * MILLISECONDS);
break;
}
}
This returns on a recent file....
Tue Dec 30 01:15:32 PST 1969
The code above I think is basically equivalent to what is in LCSimTestRunEventBuilder for doing the same thing which is ...
if (EvioEventUtilities.isEndEvent(evioEvent)) {
int[] data = EvioEventUtilities.getControlEventData(evioEvent);
int seconds = data[0];
logger.info("End event: time " + seconds + " - " + new Date(((long) seconds) * 1000) + ", event count " + data[2]);
}
Am I doing something dumb here?
Or are these values actually not correct in these EVIO events? (Using EVIO files from run 5077 for testing.)
--Jeremy
########################################################################
Use REPLY-ALL to reply to list
To unsubscribe from the HPS-SOFTWARE list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1
|