diff --git a/src/Point1D.cc b/src/Point1D.cc new file mode 100644 --- /dev/null +++ b/src/Point1D.cc @@ -0,0 +1,10 @@ +#include "YODA/Point1D.h" +#include "YODA/Scatter1D.h" + +namespace YODA { + + + void Point1D::getVariationsFromParent() const{ + if (this->getParentAO()) ((Scatter1D*) this->getParentAO())->parseVariations(); + } +} diff --git a/src/Point2D.cc b/src/Point2D.cc new file mode 100644 --- /dev/null +++ b/src/Point2D.cc @@ -0,0 +1,16 @@ +#include "YODA/Point2D.h" +#include "YODA/Scatter2D.h" + +namespace YODA { + + + /// Get error map for direction @a i + const std::map< std::string, std::pair> & Point2D::errMap() const { + getVariationsFromParent(); + return _ey; + } + + void Point2D::getVariationsFromParent() const{ + if (this->getParentAO()) ((Scatter2D*) this->getParentAO())->parseVariations(); + } +} diff --git a/src/Point3D.cc b/src/Point3D.cc new file mode 100644 --- /dev/null +++ b/src/Point3D.cc @@ -0,0 +1,11 @@ +#include "YODA/Point3D.h" +#include "YODA/Scatter3D.h" + +namespace YODA { + + + + void Point3D::getVariationsFromParent() const{ + if (this->getParentAO()) ((Scatter3D*) this->getParentAO())->parseVariations(); + } +}