jhplot.io
Class FileAida

java.lang.Object
  extended by jhplot.io.FileAida

public class FileAida
extends Object

Open an AIDA file and retrieve objects for plotting. Used to read AIDA files


Constructor Summary
FileAida()
          Create FileAida
FileAida(String file)
          Create object to read AIDA file.
FileAida(String file, boolean readOnly)
          Create object to read AIDA file.
 
Method Summary
 void cd(String dir)
          Navigate to a directory inside the file
 void close()
          Close the file
 void doc()
          Show online documentation.
 Object get(String skey)
          Get object associated with the key name
 ArrayList<hep.aida.IManagedObject> getAll()
          Get list of all objects
 ArrayList<String> getAllNames()
          Get list of all objects
 ArrayList<String> getAllNames(String a)
          Get list of all objects
 ArrayList<String> getAllTypes()
          Get list of all types
 ArrayList<String> getAllTypes(String a)
          Get list of all types
 hep.aida.ITree getITree()
          Return ITree for further manipulations
 String[] listObjectNames()
          List name of the objects inside trees
 void load(String file, boolean readOnly)
          Load a AIDA file
 String pwd()
          Print the current directory
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileAida

public FileAida(String file)
Create object to read AIDA file. Read only mode.

Parameters:
file - Input AIDA file

FileAida

public FileAida(String file,
                boolean readOnly)
Create object to read AIDA file. Read only mode.

Parameters:
file - Input AIDA file
readOnly -

FileAida

public FileAida()
Create FileAida

Method Detail

load

public void load(String file,
                 boolean readOnly)
Load a AIDA file

Parameters:
f - input file
readOnly - - only read

get

public Object get(String skey)
Get object associated with the key name

Parameters:
skey - key name
Returns:
Object

listObjectNames

public String[] listObjectNames()
List name of the objects inside trees

Returns:
object types

getAllNames

public ArrayList<String> getAllNames(String a)
Get list of all objects

Parameters:
a - path
Returns:
list of all objects

getAllNames

public ArrayList<String> getAllNames()
Get list of all objects

Returns:
list of all objects

getAllTypes

public ArrayList<String> getAllTypes()
Get list of all types

Returns:
list of all types

getAllTypes

public ArrayList<String> getAllTypes(String a)
Get list of all types

Parameters:
a - path
Returns:
list of all types

cd

public void cd(String dir)
Navigate to a directory inside the file


pwd

public String pwd()
Print the current directory

Parameters:
show - current directory

close

public void close()
           throws IOException
Close the file

Throws:
IOException

getAll

public ArrayList<hep.aida.IManagedObject> getAll()
Get list of all objects

Returns:
list of all objects

getITree

public hep.aida.ITree getITree()
Return ITree for further manipulations

Returns:
ITree

doc

public void doc()
Show online documentation.



jHepWork 3.1 ©