ICP  1
Public Member Functions | Public Attributes | List of all members
TCPStreamEventDataNeutron Struct Reference

#include <TCPEventStreamDefs.h>

Public Member Functions

 TCPStreamEventDataNeutron ()
 
 TCPStreamEventDataNeutron (const TCPStreamEventHeader &head_)
 
bool isValid () const
 

Public Attributes

TCPStreamEventHeader head
 
TCPStreamEventHeaderNeutron head_n
 details of ISIS frame data was collected in and the number of neutron events in this packet More...
 
std::vector
< TCPStreamEventNeutron
data
 list of neutron events More...
 

Detailed Description

structure of a packet describing a set of events - all these events correspond to the same ISIS frame (as specified in TCPStreamEventHeaderNeutron) but there may be several of these structures sent for each frame. There is no guarantee that you will receive all structures for frame n before receiving some structures for frame n+1 as data is spooled immediately it is read from a detector card. In the actual network stream the data will be an array rather than a stl vector as shown in the structure The data is generated in TCPEventStreamConnection::allEventCallback() and then spooled to clients in TCPEventStreamConnection::run() See EventsToolApp::liveData() in events_tool.cpp for a client example

Definition at line 95 of file TCPEventStreamDefs.h.

Constructor & Destructor Documentation

TCPStreamEventDataNeutron::TCPStreamEventDataNeutron ( )
inline

Definition at line 101 of file TCPEventStreamDefs.h.

TCPStreamEventDataNeutron::TCPStreamEventDataNeutron ( const TCPStreamEventHeader head_)
inline

Definition at line 102 of file TCPEventStreamDefs.h.

Member Function Documentation

bool TCPStreamEventDataNeutron::isValid ( ) const
inline

Member Data Documentation

std::vector<TCPStreamEventNeutron> TCPStreamEventDataNeutron::data

list of neutron events

Definition at line 99 of file TCPEventStreamDefs.h.

Referenced by TCPEventStreamConnection::allEventCallback(), isValid(), and EventsToolApp::liveData().

TCPStreamEventHeader TCPStreamEventDataNeutron::head
TCPStreamEventHeaderNeutron TCPStreamEventDataNeutron::head_n

details of ISIS frame data was collected in and the number of neutron events in this packet

Definition at line 98 of file TCPEventStreamDefs.h.

Referenced by TCPEventStreamConnection::allEventCallback(), isValid(), and EventsToolApp::liveData().


The documentation for this struct was generated from the following file: