ThePEG 2.3.0
|
Basic user-level interface for creating a factory of IDataPointSet. More...
#include <DataPointSetFactory.h>
Public Member Functions | |
DataPointSetFactory (Tree &t) | |
Standard constructor. | |
virtual | ~DataPointSetFactory () |
Destructor. | |
virtual IDataPointSet * | create (const std::string &path, const std::string &title, int dim) |
Create an empty IDataPointSet. | |
virtual IDataPointSet * | create (const std::string &pathAndTitle, int dim) |
Create an empty IDataPointSet. | |
virtual IDataPointSet * | createY (const std::string &path, const std::string &title, const std::vector< double > &y, const std::vector< double > &ey) |
Create a two dimensional IDataPointSet providing the data along y (the x value is the index of the y value in the array). | |
virtual IDataPointSet * | createY (const std::string &path, const std::string &title, const std::vector< double > &y, const std::vector< double > &eyp, const std::vector< double > &eym) |
Create a two dimensional IDataPointSet providing the data along y (the x value is the index of the y value in the array). | |
virtual IDataPointSet * | createY (const std::string &pathAndTitle, const std::vector< double > &y, const std::vector< double > &ey) |
Create a two dimensional IDataPointSet providing the data along y (the x value is the index of the y value in the array). | |
virtual IDataPointSet * | createY (const std::string &pathAndTitle, const std::vector< double > &y, const std::vector< double > &eyp, const std::vector< double > &eym) |
Create a two dimensional IDataPointSet providing the data along y (the x value is the index of the y value in the array). | |
virtual IDataPointSet * | createX (const std::string &path, const std::string &title, const std::vector< double > &x, const std::vector< double > &ex) |
Create a two dimensional IDataPointSet providing the data along x (the y value is the index of the x value in the array). | |
virtual IDataPointSet * | createX (const std::string &path, const std::string &title, const std::vector< double > &x, const std::vector< double > &exp, const std::vector< double > &exm) |
Create a two dimensional IDataPointSet providing the data along x (the y value is the index of the x value in the array). | |
virtual IDataPointSet * | createX (const std::string &pathAndTitle, const std::vector< double > &x, const std::vector< double > &ex) |
Create a two dimensional IDataPointSet providing the data along x (the y value is the index of the x value in the array). | |
virtual IDataPointSet * | createX (const std::string &pathAndTitle, const std::vector< double > &x, const std::vector< double > &exp, const std::vector< double > &exm) |
Create a two dimensional IDataPointSet providing the data along x (the y value is the index of the x value in the array). | |
virtual IDataPointSet * | createXY (const std::string &path, const std::string &title, const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &exp, const std::vector< double > &eyp, const std::vector< double > &exm, const std::vector< double > &eym) |
Create a two dimensional IDataPointSet providing the data. | |
virtual IDataPointSet * | createXY (const std::string &path, const std::string &title, const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &ex, const std::vector< double > &ey) |
Create a two dimensional IDataPointSet providing the data. | |
virtual IDataPointSet * | createXY (const std::string &pathAndTitle, const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &exp, const std::vector< double > &eyp, const std::vector< double > &exm, const std::vector< double > &eym) |
Create a two dimensional IDataPointSet providing the data. | |
virtual IDataPointSet * | createXY (const std::string &pathAndTitle, const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &ex, const std::vector< double > &ey) |
Create a two dimensional IDataPointSet providing the data. | |
virtual IDataPointSet * | createXYZ (const std::string &path, const std::string &title, const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &z, const std::vector< double > &exp, const std::vector< double > &eyp, const std::vector< double > &ezp, const std::vector< double > &exm, const std::vector< double > &eym, const std::vector< double > &ezm) |
Create a three dimensional IDataPointSet providing the data. | |
virtual IDataPointSet * | createXYZ (const std::string &path, const std::string &title, const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &z, const std::vector< double > &ex, const std::vector< double > &ey, const std::vector< double > &ez) |
Create a three dimensional IDataPointSet providing the data. | |
virtual IDataPointSet * | createXYZ (const std::string &pathAndTitle, const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &z, const std::vector< double > &exp, const std::vector< double > &eyp, const std::vector< double > &ezp, const std::vector< double > &exm, const std::vector< double > &eym, const std::vector< double > &ezm) |
Create a two dimensional IDataPointSet providing the data. | |
virtual IDataPointSet * | createXYZ (const std::string &pathAndTitle, const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &z, const std::vector< double > &ex, const std::vector< double > &ey, const std::vector< double > &ez) |
Create a two dimensional IDataPointSet providing the data. | |
virtual IDataPointSet * | createCopy (const std::string &path, const IDataPointSet &dataPointSet) |
Make a copy of a given IDataPointSet. | |
virtual bool | destroy (IDataPointSet *dataPointSet) |
Destroy a given IDataPointSet. | |
virtual IDataPointSet * | create (const std::string &path, const IHistogram1D &hist, const std::string &="") |
Create an IDataPointSet from an IHistogram1D. | |
virtual IDataPointSet * | create (const std::string &path, const IHistogram2D &hist, const std::string &="") |
Create an IDataPointSet from an IHistogram2D. | |
virtual IDataPointSet * | create (const std::string &, const IHistogram3D &, const std::string &="") |
LWH cannot handle a IHistogram3D. | |
virtual IDataPointSet * | create (const std::string &, const ICloud1D &, const std::string &="") |
LWH cannot handle a ICloud1. | |
virtual IDataPointSet * | create (const std::string &, const ICloud2D &, const std::string &="") |
LWH cannot handle a ICloud2D. | |
virtual IDataPointSet * | create (const std::string &, const ICloud3D &, const std::string &="") |
LWH cannot handle a ICloud3D. | |
virtual IDataPointSet * | create (const std::string &, const IProfile1D &, const std::string &="") |
LWH cannot handle a IProfile1D. | |
virtual IDataPointSet * | create (const std::string &, const IProfile2D &, const std::string &="") |
LWH cannot handle a IProfile2D. | |
virtual IDataPointSet * | add (const std::string &, const IDataPointSet &, const IDataPointSet &) |
LWH cannot handle the addition of data points. | |
virtual IDataPointSet * | subtract (const std::string &, const IDataPointSet &, const IDataPointSet &) |
LWH cannot handle the subtraction of data points. | |
virtual IDataPointSet * | multiply (const std::string &, const IDataPointSet &, const IDataPointSet &) |
LWH cannot handle the multiplication of data points. | |
virtual IDataPointSet * | divide (const std::string &, const IDataPointSet &, const IDataPointSet &) |
LWH cannot handle the division of data points. | |
virtual IDataPointSet * | weightedMean (const std::string &, const IDataPointSet &, const IDataPointSet &) |
LWH cannot handle the weighted mean of data points. | |
Static Private Member Functions | |
template<typename T > | |
static T * | error (std::string feature) |
Throw a suitable error. | |
Private Attributes | |
Tree * | tree |
The tree where the actual data sets are stored. | |
Basic user-level interface for creating a factory of IDataPointSet.
The created objects are assumed to be managed by the tree which is associated to the factory.
Definition at line 31 of file DataPointSetFactory.h.
|
inline |
Standard constructor.
Definition at line 38 of file DataPointSetFactory.h.
|
inlinevirtual |
Destructor.
Definition at line 44 of file DataPointSetFactory.h.
|
inlinevirtual |
LWH cannot handle the addition of data points.
Definition at line 655 of file DataPointSetFactory.h.
|
inlinevirtual |
LWH cannot handle a ICloud1.
Definition at line 615 of file DataPointSetFactory.h.
|
inlinevirtual |
LWH cannot handle a ICloud2D.
Definition at line 623 of file DataPointSetFactory.h.
|
inlinevirtual |
LWH cannot handle a ICloud3D.
Definition at line 631 of file DataPointSetFactory.h.
|
inlinevirtual |
LWH cannot handle a IHistogram3D.
Definition at line 607 of file DataPointSetFactory.h.
|
inlinevirtual |
LWH cannot handle a IProfile1D.
Definition at line 639 of file DataPointSetFactory.h.
|
inlinevirtual |
LWH cannot handle a IProfile2D.
Definition at line 647 of file DataPointSetFactory.h.
|
inlinevirtual |
Create an IDataPointSet from an IHistogram1D.
path | The path of the IDataPointSet. 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. |
hist | The IHistogram1D from which the data is taken. |
Definition at line 541 of file DataPointSetFactory.h.
References create().
|
inlinevirtual |
Create an IDataPointSet from an IHistogram2D.
path | The path of the IDataPointSet. 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. |
hist | The IHistogram2D from which the data is taken. |
options | Options, currently not specified |
Definition at line 573 of file DataPointSetFactory.h.
References create().
|
inlinevirtual |
Create an empty IDataPointSet.
path | The path of the IDataPointSet. 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. |
title | The title of the IDataPointSet. |
dim | The dimension of the IDataPoints that can be stored in the set. |
Definition at line 61 of file DataPointSetFactory.h.
References LWH::Tree::insert(), LWH::DataPointSet::setTitle(), and tree.
Referenced by create(), createCopy(), createX(), createXY(), createXYZ(), and createY().
|
inlinevirtual |
Create an empty IDataPointSet.
pathAndTitle | The path of the IDataPointSet. The path can either be a relative or full path. The last part of the path is used as the title. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" 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. |
dim | The dimension of the IDataPoints that can be stored in the set. |
Definition at line 86 of file DataPointSetFactory.h.
References create().
|
inlinevirtual |
Make a copy of a given IDataPointSet.
path | The path of the IDataPointSet. The path can either be a relative or full path. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" 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. |
dataPointSet | The IDataPointSet to be copied. |
Definition at line 509 of file DataPointSetFactory.h.
References create().
|
inlinevirtual |
Create a two dimensional IDataPointSet providing the data along x (the y value is the index of the x value in the array).
path | The path of the IDataPointSet. The path can either be a relative or full path. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" 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. |
title | The title of the IDataPointSet. |
x | The array of the x values |
ex | The array with the symmetric errors on x |
Definition at line 201 of file DataPointSetFactory.h.
References createX().
Referenced by createX().
|
inlinevirtual |
Create a two dimensional IDataPointSet providing the data along x (the y value is the index of the x value in the array).
path | The path of the IDataPointSet. The path can either be a relative or full path. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" 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. |
title | The title of the IDataPointSet. |
x | The array of the x values |
exp | The array with the plus errors on x |
exm | The array with the minus errors on x |
Definition at line 221 of file DataPointSetFactory.h.
References create().
|
inlinevirtual |
Create a two dimensional IDataPointSet providing the data along x (the y value is the index of the x value in the array).
pathAndTitle | The path of the IDataPointSet. The path can either be a relative or full path. The last part of the path is used as the title. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" 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. |
x | The array of the x values |
ex | The array with the symmetric errors on x |
Definition at line 253 of file DataPointSetFactory.h.
References createX().
|
inlinevirtual |
Create a two dimensional IDataPointSet providing the data along x (the y value is the index of the x value in the array).
pathAndTitle | The path of the IDataPointSet. The path can either be a relative or full path. The last part of the path is used as the title. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" 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. |
x | The array of the x values |
exp | The array with the plus errors on x |
exm | The array with the minus errors on x |
Definition at line 275 of file DataPointSetFactory.h.
References createX().
|
inlinevirtual |
Create a two dimensional IDataPointSet providing the data.
path | The path of the IDataPointSet. The path can either be a relative or full path. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" 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. |
title | The title of the IDataPointSet. |
x | The array of the x values |
y | The array of the y values |
ex | The array with the symmetric errors on x |
ey | The array with the symmetric errors on y |
Definition at line 326 of file DataPointSetFactory.h.
References createXY().
|
inlinevirtual |
Create a two dimensional IDataPointSet providing the data.
path | The path of the IDataPointSet. The path can either be a relative or full path. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" 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. |
title | The title of the IDataPointSet. |
x | The array of the x values |
y | The array of the y values |
exp | The array with the plus errors on x |
eyp | The array with the plus errors on y |
exm | The array with the minus errors on x |
eym | The array with the minus errors on y |
Definition at line 298 of file DataPointSetFactory.h.
References create().
Referenced by createXY().
|
inlinevirtual |
Create a two dimensional IDataPointSet providing the data.
pathAndTitle | The path of the IDataPointSet. The path can either be a relative or full path. The last part of the path is used as the title. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" 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. |
x | The array of the x values |
y | The array of the y values |
ex | The array with the symmetric errors on x |
ey | The array with the symmetric errors on y |
Definition at line 374 of file DataPointSetFactory.h.
References createXY().
|
inlinevirtual |
Create a two dimensional IDataPointSet providing the data.
pathAndTitle | The path of the IDataPointSet. The path can either be a relative or full path. The last part of the path is used as the title. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" 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. |
x | The array of the x values |
y | The array of the y values |
exp | The array with the plus errors on x |
eyp | The array with the plus errors on y |
exm | The array with the minus errors on x |
eym | The array with the minus errors on y |
Definition at line 350 of file DataPointSetFactory.h.
References createXY().
|
inlinevirtual |
Create a three dimensional IDataPointSet providing the data.
path | The path of the IDataPointSet. The path can either be a relative or full path. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" 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. |
title | The title of the IDataPointSet. |
x | The array of the x values |
y | The array of the y values |
z | The array of the z values |
ex | The array with the symmetric errors on x |
ey | The array with the symmetric errors on y |
ez | The array with the symmetric errors on z |
Definition at line 434 of file DataPointSetFactory.h.
References createXYZ().
|
inlinevirtual |
Create a three dimensional IDataPointSet providing the data.
path | The path of the IDataPointSet. The path can either be a relative or full path. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" 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. |
title | The title of the IDataPointSet. |
x | The array of the x values |
y | The array of the y values |
z | The array of the z values |
exp | The array with the plus errors on x |
eyp | The array with the plus errors on y |
ezp | The array with the plus errors on z |
exm | The array with the minus errors on x |
eym | The array with the minus errors on y |
ezm | The array with the minus errors on z |
Definition at line 401 of file DataPointSetFactory.h.
References create().
Referenced by createXYZ().
|
inlinevirtual |
Create a two dimensional IDataPointSet providing the data.
pathAndTitle | The path of the IDataPointSet. The path can either be a relative or full path. The last part of the path is used as the title. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" 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. |
x | The array of the x values |
y | The array of the y values |
z | The array of the z values |
ex | The array with the symmetric errors on x |
ey | The array with the symmetric errors on y |
ez | The array with the symmetric errors on z |
Definition at line 490 of file DataPointSetFactory.h.
References createXYZ().
|
inlinevirtual |
Create a two dimensional IDataPointSet providing the data.
pathAndTitle | The path of the IDataPointSet. The path can either be a relative or full path. The last part of the path is used as the title. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" 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. |
x | The array of the x values |
y | The array of the y values |
z | The array of the z values |
exp | The array with the plus errors on x |
eyp | The array with the plus errors on y |
ezp | The array with the plus errors on z |
exm | The array with the minus errors on x |
eym | The array with the minus errors on y |
ezm | The array with the minus errors on z |
Definition at line 462 of file DataPointSetFactory.h.
References createXYZ().
|
inlinevirtual |
Create a two dimensional IDataPointSet providing the data along y (the x value is the index of the y value in the array).
path | The path of the IDataPointSet. The path can either be a relative or full path. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" 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. |
title | The title of the IDataPointSet. |
y | The array of the y values |
ey | The array with the symmetric errors on y |
Definition at line 105 of file DataPointSetFactory.h.
References createY().
Referenced by createY().
|
inlinevirtual |
Create a two dimensional IDataPointSet providing the data along y (the x value is the index of the y value in the array).
path | The path of the IDataPointSet. The path can either be a relative or full path. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" 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. |
title | The title of the IDataPointSet. |
y | The array of the y values |
eyp | The array with the plus errors on y |
eym | The array with the minus errors on y |
Definition at line 125 of file DataPointSetFactory.h.
References create().
|
inlinevirtual |
Create a two dimensional IDataPointSet providing the data along y (the x value is the index of the y value in the array).
pathAndTitle | The path of the IDataPointSet. The path can either be a relative or full path. The last part of the path is used as the title. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" 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. |
y | The array of the y values |
ey | The array with the symmetric errors on y |
Definition at line 158 of file DataPointSetFactory.h.
References createY().
|
inlinevirtual |
Create a two dimensional IDataPointSet providing the data along y (the x value is the index of the y value in the array).
pathAndTitle | The path of the IDataPointSet. The path can either be a relative or full path. The last part of the path is used as the title. ("/folder1/folder2/dataTitle" and "../folder/dataTitle" 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. |
y | The array of the y values |
eyp | The array with the plus errors on y |
eym | The array with the minus errors on y |
Definition at line 180 of file DataPointSetFactory.h.
References createY().
|
inlinevirtual |
Destroy a given IDataPointSet.
dataPointSet | The IDataPointSet to be destroyed. |
Definition at line 522 of file DataPointSetFactory.h.
References LWH::Tree::findPath(), LWH::Tree::rm(), and tree.
|
inlinevirtual |
LWH cannot handle the division of data points.
Definition at line 679 of file DataPointSetFactory.h.
|
inlinestaticprivate |
Throw a suitable error.
Definition at line 697 of file DataPointSetFactory.h.
|
inlinevirtual |
LWH cannot handle the multiplication of data points.
Definition at line 671 of file DataPointSetFactory.h.
|
inlinevirtual |
LWH cannot handle the subtraction of data points.
Definition at line 663 of file DataPointSetFactory.h.
|
inlinevirtual |
LWH cannot handle the weighted mean of data points.
Definition at line 688 of file DataPointSetFactory.h.
|
private |
The tree where the actual data sets are stored.
Definition at line 702 of file DataPointSetFactory.h.