public final class EvioHeader
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
bankType
Type of bank based on tag's value.
|
(package private) long |
dataLen
Length of node's data in 32-bit words.
|
(package private) long |
dataPos
Position of node's data in file in bytes.
|
(package private) int |
dataType
Type of data stored in node.
|
(package private) java.lang.String |
error
Contains description of any error in event's header.
|
(package private) EvioHeader |
errorHeader
If this is an event, this contains the header in which an error
has occurred if at a different evio level.
|
(package private) boolean |
isEvent
Does this node represent an event (top-level bank)?
|
(package private) long |
len
Header's length value (32-bit words).
|
(package private) MyTableModel |
model
Data source that this node is associated with.
|
(package private) int |
num
Num, only meaningful for Bank.
|
(package private) int |
pad
Padding, only meaningful if type is 8 or 16 bit int.
|
(package private) int |
place
Place of containing event in file/buffer.
|
(package private) long |
pos
Position of header in file in bytes.
|
(package private) int |
tag
Tag.
|
(package private) int |
type
This node's (evio container's) type.
|
(package private) java.lang.Long |
wordIndex
For some applications it's nice to know the word index this event starts at.
|
Constructor and Description |
---|
EvioHeader(int word1,
int word2)
Constructor which creates an EvioNode associated with
an event (top level).
|
EvioHeader(int word1,
int word2,
java.lang.Long wordIndex)
Constructor which creates an EvioNode associated with
an event (top level) and specifies its first word's file position.
|
EvioHeader(long pos,
int place,
MyTableModel model)
Constructor which creates an EvioNode associated with
an event (top level) evio container when parsing buffers
for evio data.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
org.jlab.coda.jevio.DataType |
getDataTypeObj()
Get the evio type of the data this evio structure contains as an object.
|
long |
getFilePosition()
Get the position of this event in file.
|
org.jlab.coda.jevio.DataType |
getTypeObj()
Get the evio type of this evio structure as an object.
|
boolean |
probablyIsBank()
When scanning for events, the user initially clicks on a first header word value.
|
void |
setAll(int word1,
int word2,
long pos,
long dataPos,
int dataLen,
boolean isEvent)
Set all relevant parameters.
|
long len
long pos
int type
int tag
int num
int pad
long dataLen
long dataPos
int dataType
java.lang.String bankType
java.lang.String error
boolean isEvent
MyTableModel model
java.lang.Long wordIndex
int place
EvioHeader errorHeader
EvioHeader(int word1, int word2)
word1
- event's first header wordword2
- event's second header wordEvioHeader(int word1, int word2, java.lang.Long wordIndex)
word1
- event's first header wordword2
- event's second header wordwordIndex
- index of word in file at which this event startsEvioHeader(long pos, int place, MyTableModel model)
pos
- position of event in buffer (number of bytes)place
- containing event's place in buffer (starting at 1)model
- data source containing this eventpublic boolean probablyIsBank()
public java.lang.Object clone()
clone
in class java.lang.Object
public void setAll(int word1, int word2, long pos, long dataPos, int dataLen, boolean isEvent)
word1
- event's first header wordword2
- event's second header wordpos
- evio structure's byte position in filedataPos
- evio structure's data position in filedataLen
- length of node data in 32-bit wordsisEvent
- is this structure an event (top-level bank)?public long getFilePosition()
public org.jlab.coda.jevio.DataType getDataTypeObj()
public org.jlab.coda.jevio.DataType getTypeObj()