ICP
1
|
#include <dae_events.h>
Static Public Member Functions | |
static void | checkEventHeader (const DAEEventHeader *head) |
static int | checkEventHeader (const DAEEventHeader *head, std::string &error_message) |
static void | checkEvents (const isisU32_t *buffer, uint32_t maxlen, DAEstatus &status) |
checks that buffer corresponds to a copmplete set of event frames More... | |
static bool | isEndRunHeader (const DAEEventHeader *head, DAEstatus &status) |
check whether an event frame header is a special enf of frame header More... | |
static int | findValidEventHeaderOffset (const isisU32_t *buffer, uint32_t len, DAEstatus &status) |
returns index of start of a valid event header, -1 on error More... | |
static void | printEventHeader (const DAEEventHeader *head, std::ostream &os) |
static void | printDetectorEvents (const DetectorEvent32 *events, int n, std::ostream &os) |
static void | DAETimeToSystemTime (const DAEEventHeader::DAETime &daetime, SYSTEMTIME &systime) |
static void | SystemTimeToDAETime (const SYSTEMTIME &systime, DAEEventHeader::DAETime &daetime) |
static void | DAETimeToFILETIME (const DAEEventHeader::DAETime &daetime, FILETIME &filetime) |
template<typename T > | |
static void | DAETimeToOffset (const DAEEventHeader::DAETime &daetime, time_t base, T &offset) |
static void | OffsetToDAETime (time_t base, double offset, DAEEventHeader::DAETime &daetime) |
static void | FILETIMEToDAETime (const FILETIME &filetime, DAEEventHeader::DAETime &daetime) |
static std::string | DAETimeAsString (const DAEEventHeader::DAETime &daetime) |
return as ISO8601 format string More... | |
Static Private Member Functions | |
static uint32_t | checkEventsFrame (const isisU32_t *buffer, uint32_t maxlen, DAEstatus &status) |
static uint32_t | getCompleteFramesLen (const isisU32_t *buffer, uint32_t len, DAEstatus &status) |
static void | getEventHeaderErrorMessage (const DAEEventHeader *head, unsigned code, std::string &error_message) |
static int | checkEventHeaderImpl (const DAEEventHeader *head) |
return 0x20 if dummy header present More... | |
Definition at line 104 of file dae_events.h.
|
static |
Definition at line 22 of file dae_events.cpp.
References checkEventHeaderImpl(), and getEventHeaderErrorMessage().
Referenced by EventStoreCard::checkAndHistogramEvents(), checkEventsFrame(), findValidEventHeaderOffset(), getCompleteFramesLen(), DetectorCard< DetCardPolicy >::getNewEvents(), isEndRunHeader(), and printEventHeader().
|
static |
Definition at line 33 of file dae_events.cpp.
References checkEventHeaderImpl(), and getEventHeaderErrorMessage().
|
staticprivate |
return 0x20 if dummy header present
Definition at line 44 of file dae_events.cpp.
References AllValuesFilledInMarker, DAE_EVENT_HEADER_WORDS, DAEEventHeaderFixedMarker, DummyEndOfRunMarker, DummyHeaderMarker, EndOfRunMarker, DAEEventHeaderInfo::header_length, DAEEventHeader::info, DAEEventHeader::marker0, DAEEventHeader::marker1, and DAEEventHeader::num_events.
Referenced by checkEventHeader().
|
static |
checks that buffer corresponds to a copmplete set of event frames
Definition at line 6 of file dae_events.cpp.
References checkEventsFrame().
|
staticprivate |
assumes buffer points to start of one or more frames of events checks header and returns length in words of first frame header + its detector events len in words, returns number of words words
Definition at line 155 of file dae_events.cpp.
References checkEventHeader(), DAE_EVENT_HEADER_WORDS, DAEEventHeaderInfo::header_length, DAEEventHeader::info, and DAEEventHeader::num_events.
Referenced by checkEvents().
|
static |
return as ISO8601 format string
Definition at line 266 of file dae_events.cpp.
References DAETimeToSystemTime().
Referenced by printEventHeader(), and EnvPeriodCard< EnvPeriodPolicy >::syncFrameTimer().
|
static |
Definition at line 215 of file dae_events.cpp.
References DAEEventHeader::DAETime::high, and DAEEventHeader::DAETime::low.
Referenced by DAETimeToSystemTime(), and EnvPeriodCard< EnvPeriodPolicy >::readFrameTimer().
|
static |
Definition at line 226 of file dae_events.cpp.
References DAETimeToSystemTime().
Referenced by TCPEventStreamConnection::allEventCallback(), NeXusEventCallback::allFrameCallback(), and NeXusEventCallback::processDataDae().
|
static |
Definition at line 192 of file dae_events.cpp.
References DAETimeToFILETIME().
Referenced by DAETimeAsString(), and DAETimeToOffset().
|
static |
Definition at line 255 of file dae_events.cpp.
References DAEEventHeader::DAETime::high, and DAEEventHeader::DAETime::low.
Referenced by EnvPeriodCard< EnvPeriodPolicy >::syncFrameTimer(), and SystemTimeToDAETime().
|
static |
returns index of start of a valid event header, -1 on error
Definition at line 111 of file dae_events.cpp.
References checkEventHeader(), DAE_EVENT_HEADER_WORDS, and DAEEventHeaderFixedMarker.
Referenced by EventStoreCard::checkAndHistogramEvents().
|
staticprivate |
return the portion of buffer that corresponds to complete frames i.e. all events for the specific header
<
Definition at line 135 of file dae_events.cpp.
References checkEventHeader(), DAE_EVENT_HEADER_WORDS, and DAEEventHeader::num_events.
|
staticprivate |
Definition at line 77 of file dae_events.cpp.
References DAE_EVENT_HEADER_WORDS, DAEEventHeaderInfo::header_length, DAEEventHeader::info, DAEEventHeader::marker0, DAEEventHeader::marker1, and DAEEventHeader::num_events.
Referenced by checkEventHeader().
|
static |
check whether an event frame header is a special enf of frame header
Definition at line 179 of file dae_events.cpp.
References checkEventHeader(), EndOfRunMarker, and DAEEventHeader::marker1.
Referenced by EventStoreCard::checkAndHistogramEvents(), and DetectorCard< DetCardPolicy >::getNewEvents().
|
static |
Definition at line 238 of file dae_events.cpp.
References SystemTimeToDAETime().
Referenced by ISISRAWEventSource::sendHeader().
|
static |
Definition at line 291 of file dae_events.cpp.
References DetectorEvent32::spectrum, and DetectorEvent32::time_channel.
|
static |
Definition at line 279 of file dae_events.cpp.
References checkEventHeader(), DAETimeAsString(), DAEEventHeader::frame_number, DAEEventHeader::num_events, and DAEEventHeader::time.
Referenced by EventStoreCard::checkAndHistogramEvents().
|
static |
Definition at line 202 of file dae_events.cpp.
References FILETIMEToDAETime().
Referenced by OffsetToDAETime(), and SIMDetectorCard< DetCardPolicy >::simulateEventMode().