FreeHEP API
Version current

hep.aida.ref.histogram
Class DataPointSetFactory

java.lang.Object
  extended byhep.aida.ref.histogram.DataPointSetFactory
All Implemented Interfaces:
hep.aida.IDataPointSetFactory

public class DataPointSetFactory
extends Object
implements hep.aida.IDataPointSetFactory

Basic user-level interface for creating a factory of IDataPointSet.

Author:
The AIDA team @ SLAC.
Source Code:
DataPointSetFactory.java

Constructor Summary
DataPointSetFactory()
           
DataPointSetFactory(hep.aida.ITree t)
          Create an IDataPointSetFactory.
 
Method Summary
 hep.aida.IDataPointSet add(String path, hep.aida.IDataPointSet dataPointSet1, hep.aida.IDataPointSet dataPointSet2)
           
 hep.aida.IDataPointSet create(String path, hep.aida.ICloud1D cloud)
           
 hep.aida.IDataPointSet create(String path, hep.aida.ICloud1D cloud, String options)
           
 hep.aida.IDataPointSet create(String path, hep.aida.ICloud2D cloud)
           
 hep.aida.IDataPointSet create(String path, hep.aida.ICloud2D cloud, String options)
           
 hep.aida.IDataPointSet create(String path, hep.aida.ICloud3D cloud)
           
 hep.aida.IDataPointSet create(String path, hep.aida.ICloud3D cloud, String options)
           
 hep.aida.IDataPointSet create(String path, hep.aida.IHistogram1D hist)
           
 hep.aida.IDataPointSet create(String path, hep.aida.IHistogram1D hist, String options)
           
 hep.aida.IDataPointSet create(String path, hep.aida.IHistogram2D hist)
           
 hep.aida.IDataPointSet create(String path, hep.aida.IHistogram2D hist, String options)
           
 hep.aida.IDataPointSet create(String path, hep.aida.IHistogram3D hist)
           
 hep.aida.IDataPointSet create(String path, hep.aida.IHistogram3D hist, String options)
           
 hep.aida.IDataPointSet create(String pathAndTitle, int dimOfPoints)
           
 hep.aida.IDataPointSet create(String pathAndTitle, int dimOfPoints, String options)
           
 hep.aida.IDataPointSet create(String path, hep.aida.IProfile1D profile)
           
 hep.aida.IDataPointSet create(String path, hep.aida.IProfile1D profile, String options)
           
 hep.aida.IDataPointSet create(String path, hep.aida.IProfile2D profile)
           
 hep.aida.IDataPointSet create(String path, hep.aida.IProfile2D profile, String options)
           
 hep.aida.IDataPointSet create(String path, String title, int dimOfPoints)
           
 hep.aida.IDataPointSet create(String path, String title, int dimOfPoints, String options)
           
 hep.aida.IDataPointSet createCopy(String path, hep.aida.IDataPointSet dataPointSet)
           
 hep.aida.IDataPointSet createX(String path, double[] xVal, double[] xErr)
           
 hep.aida.IDataPointSet createX(String path, double[] xVal, double[] xErrPlus, double[] xErrMinus)
           
 hep.aida.IDataPointSet createX(String path, String title, double[] xVal, double[] xErr)
           
 hep.aida.IDataPointSet createX(String path, String title, double[] xVal, double[] xErrPlus, double[] xErrMinus)
           
 hep.aida.IDataPointSet createXY(String path, double[] xVal, double[] yVal, double[] xErr, double[] yErr)
           
 hep.aida.IDataPointSet createXY(String path, double[] xVal, double[] yVal, double[] xErrPlus, double[] yErrPlus, double[] xErrMinus, double[] yErrMinus)
           
 hep.aida.IDataPointSet createXY(String path, String title, double[] xVal, double[] yVal, double[] xErr, double[] yErr)
           
 hep.aida.IDataPointSet createXY(String path, String title, double[] xVal, double[] yVal, double[] xErrPlus, double[] yErrPlus, double[] xErrMinus, double[] yErrMinus)
           
 hep.aida.IDataPointSet createXYZ(String path, double[] xVal, double[] yVal, double[] zVal, double[] xErr, double[] yErr, double[] zErr)
           
 hep.aida.IDataPointSet createXYZ(String path, double[] xVal, double[] yVal, double[] zVal, double[] xErrPlus, double[] yErrPlus, double[] zErrPlus, double[] xErrMinus, double[] yErrMinus, double[] zErrMinus)
           
 hep.aida.IDataPointSet createXYZ(String path, String title, double[] xVal, double[] yVal, double[] zVal, double[] xErr, double[] yErr, double[] zErr)
           
 hep.aida.IDataPointSet createXYZ(String path, String title, double[] xVal, double[] yVal, double[] zVal, double[] xErrPlus, double[] yErrPlus, double[] zErrPlus, double[] xErrMinus, double[] yErrMinus, double[] zErrMinus)
           
 hep.aida.IDataPointSet createY(String path, double[] yVal, double[] yErr)
           
 hep.aida.IDataPointSet createY(String path, double[] yVal, double[] yErrPlus, double[] yErrMinus)
           
 hep.aida.IDataPointSet createY(String path, String title, double[] yVal, double[] yErr)
           
 hep.aida.IDataPointSet createY(String path, String title, double[] yVal, double[] yErrPlus, double[] yErrMinus)
           
 void destroy(hep.aida.IDataPointSet dataPointSet)
           
 hep.aida.IDataPointSet divide(String path, hep.aida.IDataPointSet dataPointSet1, hep.aida.IDataPointSet dataPointSet2)
           
 hep.aida.IDataPointSet multiply(String path, hep.aida.IDataPointSet dataPointSet1, hep.aida.IDataPointSet dataPointSet2)
           
 hep.aida.IDataPointSet subtract(String path, hep.aida.IDataPointSet dataPointSet1, hep.aida.IDataPointSet dataPointSet2)
           
 hep.aida.IDataPointSet weightedMean(String path, hep.aida.IDataPointSet dataPointSet1, hep.aida.IDataPointSet dataPointSet2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataPointSetFactory

public DataPointSetFactory(hep.aida.ITree t)
Create an IDataPointSetFactory.

Parameters:
t - The ITree which created IDataPointSet will be associated to.
Throws:
IllegalArgumentException - if tree is null.

DataPointSetFactory

public DataPointSetFactory()
Method Detail

create

public hep.aida.IDataPointSet create(String path,
                                     String title,
                                     int dimOfPoints)
Specified by:
create in interface hep.aida.IDataPointSetFactory

create

public hep.aida.IDataPointSet create(String path,
                                     String title,
                                     int dimOfPoints,
                                     String options)
Specified by:
create in interface hep.aida.IDataPointSetFactory

create

public hep.aida.IDataPointSet create(String pathAndTitle,
                                     int dimOfPoints,
                                     String options)
Specified by:
create in interface hep.aida.IDataPointSetFactory

create

public hep.aida.IDataPointSet create(String pathAndTitle,
                                     int dimOfPoints)
Specified by:
create in interface hep.aida.IDataPointSetFactory

createCopy

public hep.aida.IDataPointSet createCopy(String path,
                                         hep.aida.IDataPointSet dataPointSet)
Specified by:
createCopy in interface hep.aida.IDataPointSetFactory

destroy

public void destroy(hep.aida.IDataPointSet dataPointSet)
             throws IllegalArgumentException
Specified by:
destroy in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

create

public hep.aida.IDataPointSet create(String path,
                                     hep.aida.IHistogram1D hist)
                              throws IllegalArgumentException
Specified by:
create in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

create

public hep.aida.IDataPointSet create(String path,
                                     hep.aida.IHistogram1D hist,
                                     String options)
                              throws IllegalArgumentException
Specified by:
create in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

create

public hep.aida.IDataPointSet create(String path,
                                     hep.aida.IHistogram2D hist)
                              throws IllegalArgumentException
Specified by:
create in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

create

public hep.aida.IDataPointSet create(String path,
                                     hep.aida.IHistogram2D hist,
                                     String options)
                              throws IllegalArgumentException
Specified by:
create in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

create

public hep.aida.IDataPointSet create(String path,
                                     hep.aida.IHistogram3D hist)
                              throws IllegalArgumentException
Specified by:
create in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

create

public hep.aida.IDataPointSet create(String path,
                                     hep.aida.IHistogram3D hist,
                                     String options)
                              throws IllegalArgumentException
Specified by:
create in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

create

public hep.aida.IDataPointSet create(String path,
                                     hep.aida.ICloud1D cloud)
                              throws IllegalArgumentException
Specified by:
create in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

create

public hep.aida.IDataPointSet create(String path,
                                     hep.aida.ICloud1D cloud,
                                     String options)
                              throws IllegalArgumentException
Specified by:
create in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

create

public hep.aida.IDataPointSet create(String path,
                                     hep.aida.ICloud2D cloud)
                              throws IllegalArgumentException
Specified by:
create in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

create

public hep.aida.IDataPointSet create(String path,
                                     hep.aida.ICloud2D cloud,
                                     String options)
                              throws IllegalArgumentException
Specified by:
create in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

create

public hep.aida.IDataPointSet create(String path,
                                     hep.aida.ICloud3D cloud)
                              throws IllegalArgumentException
Specified by:
create in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

create

public hep.aida.IDataPointSet create(String path,
                                     hep.aida.ICloud3D cloud,
                                     String options)
                              throws IllegalArgumentException
Specified by:
create in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

create

public hep.aida.IDataPointSet create(String path,
                                     hep.aida.IProfile1D profile)
                              throws IllegalArgumentException
Specified by:
create in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

create

public hep.aida.IDataPointSet create(String path,
                                     hep.aida.IProfile1D profile,
                                     String options)
                              throws IllegalArgumentException
Specified by:
create in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

create

public hep.aida.IDataPointSet create(String path,
                                     hep.aida.IProfile2D profile)
                              throws IllegalArgumentException
Specified by:
create in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

create

public hep.aida.IDataPointSet create(String path,
                                     hep.aida.IProfile2D profile,
                                     String options)
                              throws IllegalArgumentException
Specified by:
create in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

add

public hep.aida.IDataPointSet add(String path,
                                  hep.aida.IDataPointSet dataPointSet1,
                                  hep.aida.IDataPointSet dataPointSet2)
                           throws IllegalArgumentException
Specified by:
add in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

subtract

public hep.aida.IDataPointSet subtract(String path,
                                       hep.aida.IDataPointSet dataPointSet1,
                                       hep.aida.IDataPointSet dataPointSet2)
                                throws IllegalArgumentException
Specified by:
subtract in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

multiply

public hep.aida.IDataPointSet multiply(String path,
                                       hep.aida.IDataPointSet dataPointSet1,
                                       hep.aida.IDataPointSet dataPointSet2)
                                throws IllegalArgumentException
Specified by:
multiply in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

divide

public hep.aida.IDataPointSet divide(String path,
                                     hep.aida.IDataPointSet dataPointSet1,
                                     hep.aida.IDataPointSet dataPointSet2)
                              throws IllegalArgumentException
Specified by:
divide in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

weightedMean

public hep.aida.IDataPointSet weightedMean(String path,
                                           hep.aida.IDataPointSet dataPointSet1,
                                           hep.aida.IDataPointSet dataPointSet2)
                                    throws IllegalArgumentException
Specified by:
weightedMean in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

createX

public hep.aida.IDataPointSet createX(String path,
                                      double[] xVal,
                                      double[] xErr)
                               throws IllegalArgumentException
Specified by:
createX in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

createX

public hep.aida.IDataPointSet createX(String path,
                                      String title,
                                      double[] xVal,
                                      double[] xErr)
                               throws IllegalArgumentException
Specified by:
createX in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

createX

public hep.aida.IDataPointSet createX(String path,
                                      double[] xVal,
                                      double[] xErrPlus,
                                      double[] xErrMinus)
                               throws IllegalArgumentException
Specified by:
createX in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

createX

public hep.aida.IDataPointSet createX(String path,
                                      String title,
                                      double[] xVal,
                                      double[] xErrPlus,
                                      double[] xErrMinus)
                               throws IllegalArgumentException
Specified by:
createX in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

createY

public hep.aida.IDataPointSet createY(String path,
                                      double[] yVal,
                                      double[] yErr)
                               throws IllegalArgumentException
Specified by:
createY in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

createY

public hep.aida.IDataPointSet createY(String path,
                                      double[] yVal,
                                      double[] yErrPlus,
                                      double[] yErrMinus)
                               throws IllegalArgumentException
Specified by:
createY in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

createY

public hep.aida.IDataPointSet createY(String path,
                                      String title,
                                      double[] yVal,
                                      double[] yErr)
                               throws IllegalArgumentException
Specified by:
createY in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

createY

public hep.aida.IDataPointSet createY(String path,
                                      String title,
                                      double[] yVal,
                                      double[] yErrPlus,
                                      double[] yErrMinus)
                               throws IllegalArgumentException
Specified by:
createY in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

createXY

public hep.aida.IDataPointSet createXY(String path,
                                       double[] xVal,
                                       double[] yVal,
                                       double[] xErr,
                                       double[] yErr)
                                throws IllegalArgumentException
Specified by:
createXY in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

createXY

public hep.aida.IDataPointSet createXY(String path,
                                       String title,
                                       double[] xVal,
                                       double[] yVal,
                                       double[] xErr,
                                       double[] yErr)
                                throws IllegalArgumentException
Specified by:
createXY in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

createXY

public hep.aida.IDataPointSet createXY(String path,
                                       double[] xVal,
                                       double[] yVal,
                                       double[] xErrPlus,
                                       double[] yErrPlus,
                                       double[] xErrMinus,
                                       double[] yErrMinus)
                                throws IllegalArgumentException
Specified by:
createXY in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

createXY

public hep.aida.IDataPointSet createXY(String path,
                                       String title,
                                       double[] xVal,
                                       double[] yVal,
                                       double[] xErrPlus,
                                       double[] yErrPlus,
                                       double[] xErrMinus,
                                       double[] yErrMinus)
                                throws IllegalArgumentException
Specified by:
createXY in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

createXYZ

public hep.aida.IDataPointSet createXYZ(String path,
                                        double[] xVal,
                                        double[] yVal,
                                        double[] zVal,
                                        double[] xErr,
                                        double[] yErr,
                                        double[] zErr)
                                 throws IllegalArgumentException
Specified by:
createXYZ in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

createXYZ

public hep.aida.IDataPointSet createXYZ(String path,
                                        String title,
                                        double[] xVal,
                                        double[] yVal,
                                        double[] zVal,
                                        double[] xErr,
                                        double[] yErr,
                                        double[] zErr)
                                 throws IllegalArgumentException
Specified by:
createXYZ in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

createXYZ

public hep.aida.IDataPointSet createXYZ(String path,
                                        double[] xVal,
                                        double[] yVal,
                                        double[] zVal,
                                        double[] xErrPlus,
                                        double[] yErrPlus,
                                        double[] zErrPlus,
                                        double[] xErrMinus,
                                        double[] yErrMinus,
                                        double[] zErrMinus)
                                 throws IllegalArgumentException
Specified by:
createXYZ in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

createXYZ

public hep.aida.IDataPointSet createXYZ(String path,
                                        String title,
                                        double[] xVal,
                                        double[] yVal,
                                        double[] zVal,
                                        double[] xErrPlus,
                                        double[] yErrPlus,
                                        double[] zErrPlus,
                                        double[] xErrMinus,
                                        double[] yErrMinus,
                                        double[] zErrMinus)
                                 throws IllegalArgumentException
Specified by:
createXYZ in interface hep.aida.IDataPointSetFactory
Throws:
IllegalArgumentException

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.