public final class EpicsHeader extends Object
Modifier and Type | Field and Description |
---|---|
private int |
run
The run number.
|
private int |
sequence
The sequence number.
|
private int |
timestamp
The unix time in seconds.
|
Constructor and Description |
---|
EpicsHeader(int[] data)
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
(package private) static EpicsHeader |
fromEvio(int[] headerBank)
Create an
EpicsHeader from an int array in the EVIO bank. |
int |
getRun()
Get the run number.
|
int |
getSequence()
Get the sequence number.
|
int |
getTimestamp()
Get the time stamp.
|
private final int run
private final int sequence
private final int timestamp
public EpicsHeader(int[] data)
The data array should be length 3 and usually will come from the int data of a GenericObject
. In
order, it should contain the run, sequence and timestamp values.
data
- the header data with length 3static EpicsHeader fromEvio(int[] headerBank)
EpicsHeader
from an int array in the EVIO bank.
This reads in indices 1 to 3 as 0 and 5 are unused.
headerBank
- the header bank dataEpicsHeader
objectpublic int getRun()
public int getSequence()
public int getTimestamp()
Copyright © 2019. All rights reserved.