hep.analysis
Interface NTupleEventData

All Superinterfaces:
EventData
All Known Implementing Classes:
AbstractNTupleEventData, AbstractEventData

public interface NTupleEventData
extends EventData

An implementation of this interface is used to provide data for one event from a simple NTuple with named columns. A variety of methods allow access to particular fields for the event that this object represents. Throw an EventDataException if an inappropriate call to one of these methods is made.

See Also:
EventDataException

Method Summary
 int findColumn(java.lang.String name)
          Returns the integer index for the column specified by name.
 boolean getBoolean(int column)
          Returns a boolean value for the field specified by the parameter column.
 boolean getBoolean(java.lang.String name)
          Deprecated. getBoolean(int) less expensive and recommended
 java.util.Date getDate(int column)
          Returns a Date object for the field specified by the parameter column.
 java.util.Date getDate(java.lang.String name)
          Deprecated. getDate(int) less expensive and recommended
 double getDouble(int column)
          Returns a double value for the field specified by the parameter column.
 double getDouble(java.lang.String name)
          Deprecated. getDouble(int) less expensive and recommended
 int getInt(int column)
          Returns an int value for the field specified by the parameter column.
 int getInt(java.lang.String name)
          Deprecated. getInt(int) less expensive and recommended
 java.lang.Object getObject(int column)
          Returns an Object for the field specified by the parameter column.
 java.lang.Object getObject(java.lang.String name)
          Deprecated. getObject(int) less expensive and recommended
 java.lang.String getString(int column)
          Returns a String object for the field specified by the parameter column.
 java.lang.String getString(java.lang.String name)
          Deprecated. getString(int) less expensive and recommended
 

Method Detail

getDouble

public double getDouble(java.lang.String name)
Deprecated. getDouble(int) less expensive and recommended

Returns a double value for the field specified by the parameter name.
Parameters:
name - the name of the field to access
Throws:
EventDataException - if an inappropriate call to this method is made
See Also:
getDouble(int)

getInt

public int getInt(java.lang.String name)
Deprecated. getInt(int) less expensive and recommended

Returns an int value for the field specified by the parameter name.
Parameters:
name - the name of the field to access
Throws:
EventDataException - if an inappropriate call to this method is made
See Also:
getInt(int)

getDate

public java.util.Date getDate(java.lang.String name)
Deprecated. getDate(int) less expensive and recommended

Returns a Date object for the field specified by the parameter name.
Parameters:
name - the name of the field to access
Throws:
EventDataException - if an inappropriate call to this method is made
See Also:
getDate(int)

getBoolean

public boolean getBoolean(java.lang.String name)
Deprecated. getBoolean(int) less expensive and recommended

Returns a boolean value for the field specified by the parameter name.
Parameters:
name - the name of the field to access
Throws:
EventDataException - if an inappropriate call to this method is made
See Also:
getBoolean(int)

getString

public java.lang.String getString(java.lang.String name)
Deprecated. getString(int) less expensive and recommended

Returns a String object for the field specified by the parameter name.
Parameters:
name - the name of the field to access
Throws:
EventDataException - if an inappropriate call to this method is made
See Also:
getString(int)

getObject

public java.lang.Object getObject(java.lang.String name)
Deprecated. getObject(int) less expensive and recommended

Returns an Object for the field specified by the parameter name.
Parameters:
name - the name of the field to access
Throws:
EventDataException - if an inappropriate call to this method is made
See Also:
getObject(int)

getDouble

public double getDouble(int column)
Returns a double value for the field specified by the parameter column.
Parameters:
column - the integer index for the data column, as returned from findColumn(String)
Throws:
EventDataException - if an inappropriate call to this method is made
See Also:
findColumn(String)

getInt

public int getInt(int column)
Returns an int value for the field specified by the parameter column.
Parameters:
column - the integer index for the data column, as returned from findColumn(String)
Throws:
EventDataException - if an inappropriate call to this method is made
See Also:
findColumn(String)

getDate

public java.util.Date getDate(int column)
Returns a Date object for the field specified by the parameter column.
Parameters:
column - the integer index for the data column, as returned from findColumn(String)
Throws:
EventDataException - if an inappropriate call to this method is made
See Also:
findColumn(String)

getBoolean

public boolean getBoolean(int column)
Returns a boolean value for the field specified by the parameter column.
Parameters:
column - the integer index for the data column, as returned from findColumn(String)
Throws:
EventDataException - if an inappropriate call to this method is made
See Also:
findColumn(String)

getString

public java.lang.String getString(int column)
Returns a String object for the field specified by the parameter column.
Parameters:
column - the integer index for the data column, as returned from findColumn(String)
Throws:
EventDataException - if an inappropriate call to this method is made
See Also:
findColumn(String)

getObject

public java.lang.Object getObject(int column)
Returns an Object for the field specified by the parameter column.
Parameters:
column - the integer index for the data column, as returned from findColumn(String)
Throws:
EventDataException - if an inappropriate call to this method is made
See Also:
findColumn(String)

findColumn

public int findColumn(java.lang.String name)
Returns the integer index for the column specified by name. Use the return value for the argument to the methods of the form
    XXX getXXX(int column)