All Downloads are FREE. Search and download functionalities are using the official Maven repository.

generated.docs.javadoc.org.eclipse.dawnsci.nexus.impl.NXevent_dataImpl.html Maven / Gradle / Ivy






NXevent_dataImpl (h5jan API)












org.eclipse.dawnsci.nexus.impl

Class NXevent_dataImpl

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<NodeLink>, GroupNode, Node, NXevent_data, NXobject


    public class NXevent_dataImpl
    extends NXobjectImpl
    implements NXevent_data
    NXevent_data is a special group for storing data from neutron detectors in event mode. In this mode, the detector electronics emits a stream of detectorID, timestamp pairs. With detectorID describing the detector element in which the neutron was detected and timestamp the timestamp at which the neutron event was detected. In NeXus detectorID maps to event_id, event_time_offset to the timestamp. As this kind of data is common at pulsed neutron sources, the timestamp is almost always relative to the start of a neutron pulse. Thus the pulse timestamp is recorded too together with an index in the event_id, event_time_offset pair at which data for that pulse starts. At reactor source the same pulsed data effect may be achieved through the use of choppers or in stroboscopic measurement setups. In order to make random access to timestamped data faster there is an optional array pair of cue_timestamp_zero and cue_index. The cue_timestamp_zero will contain courser timestamps then in the time array, say every five minutes. The cue_index will then contain the index into the event_id,event_time_offset pair of arrays for that courser cue_timestamp_zero.
    See Also:
    Serialized Form
    • Field Detail

      • PERMITTED_CHILD_GROUP_CLASSES

        public static final java.util.Set<NexusBaseClass> PERMITTED_CHILD_GROUP_CLASSES
    • Constructor Detail

      • NXevent_dataImpl

        public NXevent_dataImpl()
      • NXevent_dataImpl

        public NXevent_dataImpl(long oid)
    • Method Detail

      • getNXclass

        public java.lang.Class<? extends NXobject> getNXclass()
        Description copied from interface: NXobject
        Java Class object of the interface for this base class, e.g. NXsample.class.
        Specified by:
        getNXclass in interface NXobject
        Returns:
        name of Nexus class
      • getEvent_time_offset

        public IDataset getEvent_time_offset()
        Description copied from interface: NXevent_data
        A list of timestamps for each event as it comes in.

        Type: NX_NUMBER Units: NX_TIME_OF_FLIGHT Dimensions: 1: i;

        Specified by:
        getEvent_time_offset in interface NXevent_data
        Returns:
        the value.
      • getEvent_time_offsetScalar

        public java.lang.Number getEvent_time_offsetScalar()
        Description copied from interface: NXevent_data
        A list of timestamps for each event as it comes in.

        Type: NX_NUMBER Units: NX_TIME_OF_FLIGHT Dimensions: 1: i;

        Specified by:
        getEvent_time_offsetScalar in interface NXevent_data
        Returns:
        the value.
      • setEvent_time_offset

        public DataNode setEvent_time_offset(IDataset event_time_offset)
        Description copied from interface: NXevent_data
        A list of timestamps for each event as it comes in.

        Type: NX_NUMBER Units: NX_TIME_OF_FLIGHT Dimensions: 1: i;

        Specified by:
        setEvent_time_offset in interface NXevent_data
        Parameters:
        event_time_offset - the event_time_offset
      • setEvent_time_offsetScalar

        public DataNode setEvent_time_offsetScalar(java.lang.Number event_time_offset)
        Description copied from interface: NXevent_data
        A list of timestamps for each event as it comes in.

        Type: NX_NUMBER Units: NX_TIME_OF_FLIGHT Dimensions: 1: i;

        Specified by:
        setEvent_time_offsetScalar in interface NXevent_data
        Parameters:
        event_time_offset - the event_time_offset
      • getEvent_id

        public IDataset getEvent_id()
        Description copied from interface: NXevent_data
        There will be extra information in the NXdetector to convert event_id to detector_number.

        Type: NX_INT Units: NX_DIMENSIONLESS Dimensions: 1: i;

        Specified by:
        getEvent_id in interface NXevent_data
        Returns:
        the value.
      • getEvent_idScalar

        public java.lang.Long getEvent_idScalar()
        Description copied from interface: NXevent_data
        There will be extra information in the NXdetector to convert event_id to detector_number.

        Type: NX_INT Units: NX_DIMENSIONLESS Dimensions: 1: i;

        Specified by:
        getEvent_idScalar in interface NXevent_data
        Returns:
        the value.
      • setEvent_id

        public DataNode setEvent_id(IDataset event_id)
        Description copied from interface: NXevent_data
        There will be extra information in the NXdetector to convert event_id to detector_number.

        Type: NX_INT Units: NX_DIMENSIONLESS Dimensions: 1: i;

        Specified by:
        setEvent_id in interface NXevent_data
        Parameters:
        event_id - the event_id
      • setEvent_idScalar

        public DataNode setEvent_idScalar(java.lang.Long event_id)
        Description copied from interface: NXevent_data
        There will be extra information in the NXdetector to convert event_id to detector_number.

        Type: NX_INT Units: NX_DIMENSIONLESS Dimensions: 1: i;

        Specified by:
        setEvent_idScalar in interface NXevent_data
        Parameters:
        event_id - the event_id
      • getEvent_time_zero

        public IDataset getEvent_time_zero()
        Description copied from interface: NXevent_data
        The time that each pulse started with respect to the offset

        Type: NX_NUMBER Units: NX_TIME Dimensions: 1: j;

        Specified by:
        getEvent_time_zero in interface NXevent_data
        Returns:
        the value.
      • getEvent_time_zeroScalar

        public java.lang.Number getEvent_time_zeroScalar()
        Description copied from interface: NXevent_data
        The time that each pulse started with respect to the offset

        Type: NX_NUMBER Units: NX_TIME Dimensions: 1: j;

        Specified by:
        getEvent_time_zeroScalar in interface NXevent_data
        Returns:
        the value.
      • setEvent_time_zero

        public DataNode setEvent_time_zero(IDataset event_time_zero)
        Description copied from interface: NXevent_data
        The time that each pulse started with respect to the offset

        Type: NX_NUMBER Units: NX_TIME Dimensions: 1: j;

        Specified by:
        setEvent_time_zero in interface NXevent_data
        Parameters:
        event_time_zero - the event_time_zero
      • setEvent_time_zeroScalar

        public DataNode setEvent_time_zeroScalar(java.lang.Number event_time_zero)
        Description copied from interface: NXevent_data
        The time that each pulse started with respect to the offset

        Type: NX_NUMBER Units: NX_TIME Dimensions: 1: j;

        Specified by:
        setEvent_time_zeroScalar in interface NXevent_data
        Parameters:
        event_time_zero - the event_time_zero
      • getEvent_index

        public IDataset getEvent_index()
        Description copied from interface: NXevent_data
        The index into the event_time_offset, event_id pair for the pulse occurring at the matching entry in event_time_zero.

        Type: NX_INT Units: NX_DIMENSIONLESS Dimensions: 1: j;

        Specified by:
        getEvent_index in interface NXevent_data
        Returns:
        the value.
      • getEvent_indexScalar

        public java.lang.Long getEvent_indexScalar()
        Description copied from interface: NXevent_data
        The index into the event_time_offset, event_id pair for the pulse occurring at the matching entry in event_time_zero.

        Type: NX_INT Units: NX_DIMENSIONLESS Dimensions: 1: j;

        Specified by:
        getEvent_indexScalar in interface NXevent_data
        Returns:
        the value.
      • setEvent_index

        public DataNode setEvent_index(IDataset event_index)
        Description copied from interface: NXevent_data
        The index into the event_time_offset, event_id pair for the pulse occurring at the matching entry in event_time_zero.

        Type: NX_INT Units: NX_DIMENSIONLESS Dimensions: 1: j;

        Specified by:
        setEvent_index in interface NXevent_data
        Parameters:
        event_index - the event_index
      • setEvent_indexScalar

        public DataNode setEvent_indexScalar(java.lang.Long event_index)
        Description copied from interface: NXevent_data
        The index into the event_time_offset, event_id pair for the pulse occurring at the matching entry in event_time_zero.

        Type: NX_INT Units: NX_DIMENSIONLESS Dimensions: 1: j;

        Specified by:
        setEvent_indexScalar in interface NXevent_data
        Parameters:
        event_index - the event_index
      • getPulse_height

        public IDataset getPulse_height()
        Description copied from interface: NXevent_data
        If voltages from the ends of the detector are read out this is where they go. This list is for all events with information to attach to a particular pulse height. The information to attach to a particular pulse is located in events_per_pulse.

        Type: NX_FLOAT Units: NX_DIMENSIONLESS Dimensions: 1: i; 2: k;

        Specified by:
        getPulse_height in interface NXevent_data
        Returns:
        the value.
      • getPulse_heightScalar

        public java.lang.Double getPulse_heightScalar()
        Description copied from interface: NXevent_data
        If voltages from the ends of the detector are read out this is where they go. This list is for all events with information to attach to a particular pulse height. The information to attach to a particular pulse is located in events_per_pulse.

        Type: NX_FLOAT Units: NX_DIMENSIONLESS Dimensions: 1: i; 2: k;

        Specified by:
        getPulse_heightScalar in interface NXevent_data
        Returns:
        the value.
      • setPulse_height

        public DataNode setPulse_height(IDataset pulse_height)
        Description copied from interface: NXevent_data
        If voltages from the ends of the detector are read out this is where they go. This list is for all events with information to attach to a particular pulse height. The information to attach to a particular pulse is located in events_per_pulse.

        Type: NX_FLOAT Units: NX_DIMENSIONLESS Dimensions: 1: i; 2: k;

        Specified by:
        setPulse_height in interface NXevent_data
        Parameters:
        pulse_height - the pulse_height
      • setPulse_heightScalar

        public DataNode setPulse_heightScalar(java.lang.Double pulse_height)
        Description copied from interface: NXevent_data
        If voltages from the ends of the detector are read out this is where they go. This list is for all events with information to attach to a particular pulse height. The information to attach to a particular pulse is located in events_per_pulse.

        Type: NX_FLOAT Units: NX_DIMENSIONLESS Dimensions: 1: i; 2: k;

        Specified by:
        setPulse_heightScalar in interface NXevent_data
        Parameters:
        pulse_height - the pulse_height
      • getCue_timestamp_zero

        public IDataset getCue_timestamp_zero()
        Description copied from interface: NXevent_data
        Timestamps matching the corresponding cue_index into the event_id, event_time_offset pair.

        Type: NX_DATE_TIME Units: NX_TIME

        Specified by:
        getCue_timestamp_zero in interface NXevent_data
        Returns:
        the value.
      • getCue_timestamp_zeroScalar

        public java.util.Date getCue_timestamp_zeroScalar()
        Description copied from interface: NXevent_data
        Timestamps matching the corresponding cue_index into the event_id, event_time_offset pair.

        Type: NX_DATE_TIME Units: NX_TIME

        Specified by:
        getCue_timestamp_zeroScalar in interface NXevent_data
        Returns:
        the value.
      • setCue_timestamp_zero

        public DataNode setCue_timestamp_zero(IDataset cue_timestamp_zero)
        Description copied from interface: NXevent_data
        Timestamps matching the corresponding cue_index into the event_id, event_time_offset pair.

        Type: NX_DATE_TIME Units: NX_TIME

        Specified by:
        setCue_timestamp_zero in interface NXevent_data
        Parameters:
        cue_timestamp_zero - the cue_timestamp_zero
      • setCue_timestamp_zeroScalar

        public DataNode setCue_timestamp_zeroScalar(java.util.Date cue_timestamp_zero)
        Description copied from interface: NXevent_data
        Timestamps matching the corresponding cue_index into the event_id, event_time_offset pair.

        Type: NX_DATE_TIME Units: NX_TIME

        Specified by:
        setCue_timestamp_zeroScalar in interface NXevent_data
        Parameters:
        cue_timestamp_zero - the cue_timestamp_zero
      • getCue_index

        public IDataset getCue_index()
        Description copied from interface: NXevent_data
        Index into the event_id, event_time_offset pair matching the corresponding cue_timestamp.

        Type: NX_INT

        Specified by:
        getCue_index in interface NXevent_data
        Returns:
        the value.
      • getCue_indexScalar

        public java.lang.Long getCue_indexScalar()
        Description copied from interface: NXevent_data
        Index into the event_id, event_time_offset pair matching the corresponding cue_timestamp.

        Type: NX_INT

        Specified by:
        getCue_indexScalar in interface NXevent_data
        Returns:
        the value.
      • setCue_index

        public DataNode setCue_index(IDataset cue_index)
        Description copied from interface: NXevent_data
        Index into the event_id, event_time_offset pair matching the corresponding cue_timestamp.

        Type: NX_INT

        Specified by:
        setCue_index in interface NXevent_data
        Parameters:
        cue_index - the cue_index
      • setCue_indexScalar

        public DataNode setCue_indexScalar(java.lang.Long cue_index)
        Description copied from interface: NXevent_data
        Index into the event_id, event_time_offset pair matching the corresponding cue_timestamp.

        Type: NX_INT

        Specified by:
        setCue_indexScalar in interface NXevent_data
        Parameters:
        cue_index - the cue_index




© 2015 - 2024 Weber Informatics LLC | Privacy Policy