FreeHEP API
Version current

hep.aida.ref.tuple
Class TupleFactory

java.lang.Object
  extended byhep.aida.ref.tuple.TupleFactory
All Implemented Interfaces:
hep.aida.ITupleFactory

public class TupleFactory
extends Object
implements hep.aida.ITupleFactory

Author:
The FreeHEP Team @ SLAC.
Source Code:
TupleFactory.java

Constructor Summary
TupleFactory(hep.aida.ITree tree)
           
 
Method Summary
 hep.aida.ITuple create(String path, String title, String columns)
           
 hep.aida.ITuple create(String path, String title, String[] columnName, Class[] columnType)
           
 hep.aida.ITuple create(String path, String title, String[] columnName, Class[] columnType, String options)
          Create an NTuple
 hep.aida.ITuple create(String path, String title, String columns, String options)
          Create an NTuple
 hep.aida.ITuple createChained(String path, String title, hep.aida.ITuple[] set)
          Create a logical chain of ITuples.
 hep.aida.ITuple createChained(String path, String title, String[] setName)
           
 hep.aida.ITuple createCopy(String path, hep.aida.ITuple tuple)
          Create a copy of an ITuple.
 hep.aida.IEvaluator createEvaluator(String expression)
          Create IEvaluator.
 hep.aida.IFilter createFilter(String expression)
          Create IFilter.
 hep.aida.IFilter createFilter(String expression, int rowsToProcess)
           
 hep.aida.IFilter createFilter(String expression, int rowsToProcess, int startingRow)
           
 hep.aida.ITuple createFiltered(String path, hep.aida.ITuple tuple, hep.aida.IFilter filter)
           
 hep.aida.ITuple createFiltered(String path, hep.aida.ITuple tuple, hep.aida.IFilter filter, String[] columns)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TupleFactory

public TupleFactory(hep.aida.ITree tree)
Method Detail

create

public hep.aida.ITuple create(String path,
                              String title,
                              String[] columnName,
                              Class[] columnType,
                              String options)
Create an NTuple

Specified by:
create in interface hep.aida.ITupleFactory
Parameters:
path - The persistency path of the n-tuple
title - The title of the n-tuple
columnName - The names of the columns
columnType - The types of the columns
options - NTuple options (currently undefined)

create

public hep.aida.ITuple create(String path,
                              String title,
                              String[] columnName,
                              Class[] columnType)
Specified by:
create in interface hep.aida.ITupleFactory

create

public hep.aida.ITuple create(String path,
                              String title,
                              String columns,
                              String options)
Create an NTuple

Specified by:
create in interface hep.aida.ITupleFactory
Parameters:
path - The persistency path of the n-tuple
title - The title of the n-tuple
columns - The names and types of the columns e.g. "float px, py, pz, float energy, int charge"
options - NTuple options (currently undefined)

create

public hep.aida.ITuple create(String path,
                              String title,
                              String columns)
Specified by:
create in interface hep.aida.ITupleFactory

createChained

public hep.aida.ITuple createChained(String path,
                                     String title,
                                     hep.aida.ITuple[] set)
Create a logical chain of ITuples. All ITuples in the set must have the same structure. Chained ITuple can not be filled.

Specified by:
createChained in interface hep.aida.ITupleFactory
Parameters:
path - The persistency name of the new n-tuple
title - The title of the new n-tuple
set - The array of ITuples to chain

createChained

public hep.aida.ITuple createChained(String path,
                                     String title,
                                     String[] setName)
Specified by:
createChained in interface hep.aida.ITupleFactory

createFiltered

public hep.aida.ITuple createFiltered(String path,
                                      hep.aida.ITuple tuple,
                                      hep.aida.IFilter filter)
Specified by:
createFiltered in interface hep.aida.ITupleFactory

createFiltered

public hep.aida.ITuple createFiltered(String path,
                                      hep.aida.ITuple tuple,
                                      hep.aida.IFilter filter,
                                      String[] columns)
Specified by:
createFiltered in interface hep.aida.ITupleFactory

createCopy

public hep.aida.ITuple createCopy(String path,
                                  hep.aida.ITuple tuple)
                           throws IllegalArgumentException
Create a copy of an ITuple.

Specified by:
createCopy in interface hep.aida.ITupleFactory
Parameters:
path - The path of the resulting ITuple. The path can either be a relative or full path. ("/folder1/folder2/dataName" and "../folder/dataName" are valid paths). All the directories in the path must exist. The characther `/` cannot be used in names; it is only used to delimit directories within paths.
tuple - The ITuple to be copied.
Returns:
The copy of the ITuple.
Throws:
IllegalArgumentException

createFilter

public hep.aida.IFilter createFilter(String expression)
Create IFilter.

Specified by:
createFilter in interface hep.aida.ITupleFactory

createFilter

public hep.aida.IFilter createFilter(String expression,
                                     int rowsToProcess,
                                     int startingRow)
Specified by:
createFilter in interface hep.aida.ITupleFactory

createFilter

public hep.aida.IFilter createFilter(String expression,
                                     int rowsToProcess)
Specified by:
createFilter in interface hep.aida.ITupleFactory

createEvaluator

public hep.aida.IEvaluator createEvaluator(String expression)
Create IEvaluator.

Specified by:
createEvaluator in interface hep.aida.ITupleFactory

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.