FreeHEP API
Version current

hep.io.hbook
Interface PawArray

All Known Subinterfaces:
PawBooleanArray, PawDoubleArray, PawIntegerArray, PawStringArray

public interface PawArray

Interface for accessing arrays stored in PAW ntuples. Subclasses of PawArray can be used for accessing different types (Double, Integer etc). Arrays of arbitrary dimension are supported. Note for compatibility with Fortran/PAW all arrays are indexed from 1

Source Code:
PawArray.java

Method Summary
 int getDimension(int index)
          Get the size of a particular dimension of the array.
 int getNDimensions()
          Get the number of dimensions of the array.
 

Method Detail

getDimension

public int getDimension(int index)
Get the size of a particular dimension of the array. For a PAW array declare Integer(100,200) getDimension(0) will return 100

Parameters:
index - The index of the array (0 based)
Returns:
The size of the dimension corresponding to index

getNDimensions

public int getNDimensions()
Get the number of dimensions of the array. For a PAW array declared Integer(100,200) this method will return 2


FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.