YODA is hosted by Hepforge, IPPP Durham
YODA::Point3D Class Reference

A 3D data point to be contained in a Scatter3D. More...

#include <Point3D.h>

Public Types

typedef std::pair< double, double > ValuePair
 

Public Member Functions

Constructors
 Point3D ()
 
 Point3D (double x, double y, double z, double ex=0.0, double ey=0.0, double ez=0.0)
 Constructor from values with optional symmetric errors. More...
 
 Point3D (double x, double y, double z, double exminus, double explus, double eyminus, double eyplus, double ezminus, double ezplus)
 Constructor from values with explicit asymmetric errors. More...
 
 Point3D (double x, double y, double z, const std::pair< double, double > &ex, const std::pair< double, double > &ey, const std::pair< double, double > &ez)
 Constructor from asymmetric errors given as vectors. More...
 
 Point3D (const Point3D &p)
 Copy constructor. More...
 
Point3Doperator= (const Point3D &p)
 Copy assignment. More...
 
Value and error accessors
double x () const
 Get x value. More...
 
void setX (double x)
 Set x value. More...
 
double y () const
 Get y value. More...
 
void setY (double y)
 Set y value. More...
 
double z () const
 Get z value. More...
 
void setZ (double z)
 Set z value. More...
 
void setXYZ (double x, double y, double z)
 Set x, y and z values. More...
 
x error accessors
const std::pair< double, double > & xErrs () const
 Get x-error values. More...
 
double xErrMinus () const
 Get negative x-error value. More...
 
double xErrPlus () const
 Get positive x-error value. More...
 
double xErrAvg () const
 Get average x-error value. More...
 
void setXErrMinus (double exminus)
 Set negative x error. More...
 
void setXErrPlus (double explus)
 Set positive x error. More...
 
void setXErr (double ex)
 Set symmetric x error. More...
 
void setXErr (double exminus, double explus)
 Set asymmetric x error. More...
 
void setXErr (std::pair< double, double > ex)
 Set asymmetric x error. More...
 
double xMin () const
 Get value minus negative x-error. More...
 
double xMax () const
 Get value plus positive x-error. More...
 
y error accessors
const std::pair< double, double > & yErrs () const
 Get y-error values. More...
 
double yErrMinus () const
 Get negative y-error value. More...
 
double yErrPlus () const
 Get positive y-error value. More...
 
double yErrAvg () const
 Get average y-error value. More...
 
void setYErrMinus (double eyminus)
 Set negative y error. More...
 
void setYErrPlus (double eyplus)
 Set positive y error. More...
 
void setYErr (double ey)
 Set symmetric y error. More...
 
void setYErr (double eyminus, double eyplus)
 Set asymmetric y error. More...
 
void setYErr (std::pair< double, double > ey)
 Set asymmetric y error. More...
 
double yMin () const
 Get value minus negative y-error. More...
 
double yMax () const
 Get value plus positive y-error. More...
 
z error accessors
const std::pair< double, double > & zErrs () const
 Get z-error values. More...
 
double zErrMinus () const
 Get negative z-error value. More...
 
double zErrPlus () const
 Get positive z-error value. More...
 
double zErrAvg () const
 Get average z-error value. More...
 
void setZErrMinus (double ezminus)
 Set negative z error. More...
 
void setZErrPlus (double ezplus)
 Set positive z error. More...
 
void setZErr (double ez)
 Set symmetric z error. More...
 
void setZErr (double ezminus, double ezplus)
 Set asymmetric z error. More...
 
void setZErr (std::pair< double, double > ez)
 Set asymmetric z error. More...
 
double zMin () const
 Get value minus negative z-error. More...
 
double zMax () const
 Get value plus positive z-error. More...
 
Combined x/y value and error setters
void setX (double x, double ex)
 Set x value and symmetric error. More...
 
void setX (double x, double exminus, double explus)
 Set x value and asymmetric error. More...
 
void setX (double x, std::pair< double, double > ex)
 Set x value and asymmetric error. More...
 
void setY (double y, double ey)
 Set y value and symmetric error. More...
 
void setY (double y, double eyminus, double eyplus)
 Set y value and asymmetric error. More...
 
void setY (double y, std::pair< double, double > ey)
 Set y value and asymmetric error. More...
 
void setZ (double z, double ez)
 Set z value and symmetric error. More...
 
void setZ (double z, double ezminus, double ezplus)
 Set z value and asymmetric error. More...
 
void setZ (double z, std::pair< double, double > ez)
 Set z value and asymmetric error. More...
 
void scaleX (double scalex)
 Scaling of x axis. More...
 
void scaleY (double scaley)
 Scaling of y axis. More...
 
void scaleZ (double scalez)
 Scaling of z axis. More...
 
void scaleXYZ (double scalex, double scaley, double scalez)
 Scaling of all three axes. More...
 
void scale (double scalex, double scaley, double scalez)
 

Detailed Description

A 3D data point to be contained in a Scatter3D.

Definition at line 17 of file Point3D.h.

Member Typedef Documentation

typedef std::pair<double,double> YODA::Point3D::ValuePair

Definition at line 20 of file Point3D.h.

Constructor & Destructor Documentation

YODA::Point3D::Point3D ( )
inline

Definition at line 27 of file Point3D.h.

27 { }
YODA::Point3D::Point3D ( double  x,
double  y,
double  z,
double  ex = 0.0,
double  ey = 0.0,
double  ez = 0.0 
)
inline

Constructor from values with optional symmetric errors.

Definition at line 31 of file Point3D.h.

32  : _x(x), _y(y), _z(z)
33  {
34  _ex = std::make_pair(ex, ex);
35  _ey = std::make_pair(ey, ey);
36  _ez = std::make_pair(ez, ez);
37  }
double x() const
Get x value.
Definition: Point3D.h:93
double y() const
Get y value.
Definition: Point3D.h:99
double z() const
Get z value.
Definition: Point3D.h:105
YODA::Point3D::Point3D ( double  x,
double  y,
double  z,
double  exminus,
double  explus,
double  eyminus,
double  eyplus,
double  ezminus,
double  ezplus 
)
inline

Constructor from values with explicit asymmetric errors.

Definition at line 41 of file Point3D.h.

48  : _x(x), _y(y), _z(z)
49  {
50  _ex = std::make_pair(exminus, explus);
51  _ey = std::make_pair(eyminus, eyplus);
52  _ez = std::make_pair(ezminus, ezplus);
53  }
double x() const
Get x value.
Definition: Point3D.h:93
double y() const
Get y value.
Definition: Point3D.h:99
double z() const
Get z value.
Definition: Point3D.h:105
YODA::Point3D::Point3D ( double  x,
double  y,
double  z,
const std::pair< double, double > &  ex,
const std::pair< double, double > &  ey,
const std::pair< double, double > &  ez 
)
inline

Constructor from asymmetric errors given as vectors.

Definition at line 56 of file Point3D.h.

60  : _x(x), _y(y), _z(z),
61  _ex(ex), _ey(ey), _ez(ez)
62  { }
double x() const
Get x value.
Definition: Point3D.h:93
double y() const
Get y value.
Definition: Point3D.h:99
double z() const
Get z value.
Definition: Point3D.h:105
YODA::Point3D::Point3D ( const Point3D p)
inline

Copy constructor.

Definition at line 66 of file Point3D.h.

67  : _x(p._x), _y(p._y), _z(p._z),
68  _ex(p._ex), _ey(p._ey), _ez(p._ez)
69  { }

Member Function Documentation

Point3D& YODA::Point3D::operator= ( const Point3D p)
inline

Copy assignment.

Definition at line 73 of file Point3D.h.

73  {
74  _x = p._x;
75  _y = p._y;
76  _z = p._z;
77  _ex = p._ex;
78  _ey = p._ey;
79  _ez = p._ez;
80  return *this;
81  }
void YODA::Point3D::scale ( double  scalex,
double  scaley,
double  scalez 
)
inline

Scaling of both axes

Deprecated:
Use scaleXYZ

Definition at line 405 of file Point3D.h.

References scaleXYZ().

405  {
406  scaleXYZ(scalex, scaley, scalez);
407  }
void scaleXYZ(double scalex, double scaley, double scalez)
Scaling of all three axes.
Definition: Point3D.h:397
void YODA::Point3D::scaleX ( double  scalex)
inline

Scaling of x axis.

Definition at line 379 of file Point3D.h.

References setX(), setXErr(), x(), xErrMinus(), and xErrPlus().

Referenced by YODA::Scatter3D::scaleX(), and scaleXYZ().

379  {
380  setX(x()*scalex);
381  setXErr(xErrMinus()*scalex, xErrPlus()*scalex);
382  }
double xErrPlus() const
Get positive x-error value.
Definition: Point3D.h:138
double x() const
Get x value.
Definition: Point3D.h:93
double xErrMinus() const
Get negative x-error value.
Definition: Point3D.h:133
void setX(double x)
Set x value.
Definition: Point3D.h:96
void setXErr(double ex)
Set symmetric x error.
Definition: Point3D.h:158
void YODA::Point3D::scaleXYZ ( double  scalex,
double  scaley,
double  scalez 
)
inline

Scaling of all three axes.

Definition at line 397 of file Point3D.h.

References scaleX(), scaleY(), and scaleZ().

Referenced by scale(), and YODA::Scatter3D::scaleXYZ().

397  {
398  scaleX(scalex);
399  scaleY(scaley);
400  scaleZ(scalez);
401  }
void scaleY(double scaley)
Scaling of y axis.
Definition: Point3D.h:385
void scaleZ(double scalez)
Scaling of z axis.
Definition: Point3D.h:391
void scaleX(double scalex)
Scaling of x axis.
Definition: Point3D.h:379
void YODA::Point3D::scaleY ( double  scaley)
inline

Scaling of y axis.

Definition at line 385 of file Point3D.h.

References setY(), setYErr(), y(), yErrMinus(), and yErrPlus().

Referenced by scaleXYZ(), and YODA::Scatter3D::scaleY().

385  {
386  setY(y()*scaley);
387  setYErr(yErrMinus()*scaley, yErrPlus()*scaley);
388  }
void setYErr(double ey)
Set symmetric y error.
Definition: Point3D.h:221
double yErrPlus() const
Get positive y-error value.
Definition: Point3D.h:201
double y() const
Get y value.
Definition: Point3D.h:99
double yErrMinus() const
Get negative y-error value.
Definition: Point3D.h:196
void setY(double y)
Set y value.
Definition: Point3D.h:102
void YODA::Point3D::scaleZ ( double  scalez)
inline

Scaling of z axis.

Definition at line 391 of file Point3D.h.

References setZ(), setZErr(), z(), zErrMinus(), and zErrPlus().

Referenced by scaleXYZ(), and YODA::Scatter3D::scaleZ().

391  {
392  setZ(z()*scalez);
393  setZErr(zErrMinus()*scalez, zErrPlus()*scalez);
394  }
double zErrMinus() const
Get negative z-error value.
Definition: Point3D.h:259
double zErrPlus() const
Get positive z-error value.
Definition: Point3D.h:264
void setZErr(double ez)
Set symmetric z error.
Definition: Point3D.h:284
double z() const
Get z value.
Definition: Point3D.h:105
void setZ(double z)
Set z value.
Definition: Point3D.h:108
void YODA::Point3D::setX ( double  x)
inline

Set x value.

Definition at line 96 of file Point3D.h.

References x().

Referenced by scaleX(), setX(), setXYZ(), and YODA::transformX().

96 { _x = x; }
double x() const
Get x value.
Definition: Point3D.h:93
void YODA::Point3D::setX ( double  x,
double  ex 
)
inline

Set x value and symmetric error.

Definition at line 317 of file Point3D.h.

References setX(), and setXErr().

317  {
318  setX(x);
319  setXErr(ex);
320  }
double x() const
Get x value.
Definition: Point3D.h:93
void setX(double x)
Set x value.
Definition: Point3D.h:96
void setXErr(double ex)
Set symmetric x error.
Definition: Point3D.h:158
void YODA::Point3D::setX ( double  x,
double  exminus,
double  explus 
)
inline

Set x value and asymmetric error.

Definition at line 323 of file Point3D.h.

References setX(), and setXErr().

323  {
324  setX(x);
325  setXErr(exminus, explus);
326  }
double x() const
Get x value.
Definition: Point3D.h:93
void setX(double x)
Set x value.
Definition: Point3D.h:96
void setXErr(double ex)
Set symmetric x error.
Definition: Point3D.h:158
void YODA::Point3D::setX ( double  x,
std::pair< double, double >  ex 
)
inline

Set x value and asymmetric error.

Definition at line 329 of file Point3D.h.

References setX(), and setXErr().

329  {
330  setX(x);
331  setXErr(ex);
332  }
double x() const
Get x value.
Definition: Point3D.h:93
void setX(double x)
Set x value.
Definition: Point3D.h:96
void setXErr(double ex)
Set symmetric x error.
Definition: Point3D.h:158
void YODA::Point3D::setXErr ( double  ex)
inline

Set symmetric x error.

Definition at line 158 of file Point3D.h.

References setXErrMinus(), and setXErrPlus().

Referenced by scaleX(), and setX().

158  {
159  setXErrMinus(ex);
160  setXErrPlus(ex);
161  }
void setXErrPlus(double explus)
Set positive x error.
Definition: Point3D.h:153
void setXErrMinus(double exminus)
Set negative x error.
Definition: Point3D.h:148
void YODA::Point3D::setXErr ( double  exminus,
double  explus 
)
inline

Set asymmetric x error.

Definition at line 164 of file Point3D.h.

References setXErrMinus(), and setXErrPlus().

164  {
165  setXErrMinus(exminus);
166  setXErrPlus(explus);
167  }
void setXErrPlus(double explus)
Set positive x error.
Definition: Point3D.h:153
void setXErrMinus(double exminus)
Set negative x error.
Definition: Point3D.h:148
void YODA::Point3D::setXErr ( std::pair< double, double >  ex)
inline

Set asymmetric x error.

Definition at line 170 of file Point3D.h.

170  {
171  _ex = ex;
172  }
void YODA::Point3D::setXErrMinus ( double  exminus)
inline

Set negative x error.

Definition at line 148 of file Point3D.h.

Referenced by setXErr(), and YODA::transformX().

148  {
149  _ex.first = exminus;
150  }
void YODA::Point3D::setXErrPlus ( double  explus)
inline

Set positive x error.

Definition at line 153 of file Point3D.h.

Referenced by setXErr(), and YODA::transformX().

153  {
154  _ex.second = explus;
155  }
void YODA::Point3D::setXYZ ( double  x,
double  y,
double  z 
)
inline

Set x, y and z values.

Todo:
Uniform "coords" accessor across all Scatters: returning fixed-size tuple?

Definition at line 116 of file Point3D.h.

References setX(), setY(), and setZ().

116 { setX(x); setY(y); setZ(z); }
double x() const
Get x value.
Definition: Point3D.h:93
double y() const
Get y value.
Definition: Point3D.h:99
double z() const
Get z value.
Definition: Point3D.h:105
void setX(double x)
Set x value.
Definition: Point3D.h:96
void setY(double y)
Set y value.
Definition: Point3D.h:102
void setZ(double z)
Set z value.
Definition: Point3D.h:108
void YODA::Point3D::setY ( double  y)
inline

Set y value.

Definition at line 102 of file Point3D.h.

References y().

Referenced by scaleY(), setXYZ(), setY(), and YODA::transformY().

102 { _y = y; }
double y() const
Get y value.
Definition: Point3D.h:99
void YODA::Point3D::setY ( double  y,
double  ey 
)
inline

Set y value and symmetric error.

Definition at line 336 of file Point3D.h.

References setY(), and setYErr().

336  {
337  setY(y);
338  setYErr(ey);
339  }
void setYErr(double ey)
Set symmetric y error.
Definition: Point3D.h:221
double y() const
Get y value.
Definition: Point3D.h:99
void setY(double y)
Set y value.
Definition: Point3D.h:102
void YODA::Point3D::setY ( double  y,
double  eyminus,
double  eyplus 
)
inline

Set y value and asymmetric error.

Definition at line 342 of file Point3D.h.

References setY(), and setYErr().

342  {
343  setY(y);
344  setYErr(eyminus, eyplus);
345  }
void setYErr(double ey)
Set symmetric y error.
Definition: Point3D.h:221
double y() const
Get y value.
Definition: Point3D.h:99
void setY(double y)
Set y value.
Definition: Point3D.h:102
void YODA::Point3D::setY ( double  y,
std::pair< double, double >  ey 
)
inline

Set y value and asymmetric error.

Definition at line 348 of file Point3D.h.

References setY(), and setYErr().

348  {
349  setY(y);
350  setYErr(ey);
351  }
void setYErr(double ey)
Set symmetric y error.
Definition: Point3D.h:221
double y() const
Get y value.
Definition: Point3D.h:99
void setY(double y)
Set y value.
Definition: Point3D.h:102
void YODA::Point3D::setYErr ( double  ey)
inline

Set symmetric y error.

Definition at line 221 of file Point3D.h.

References setYErrMinus(), and setYErrPlus().

Referenced by scaleY(), and setY().

221  {
222  setYErrMinus(ey);
223  setYErrPlus(ey);
224  }
void setYErrMinus(double eyminus)
Set negative y error.
Definition: Point3D.h:211
void setYErrPlus(double eyplus)
Set positive y error.
Definition: Point3D.h:216
void YODA::Point3D::setYErr ( double  eyminus,
double  eyplus 
)
inline

Set asymmetric y error.

Definition at line 227 of file Point3D.h.

References setYErrMinus(), and setYErrPlus().

227  {
228  setYErrMinus(eyminus);
229  setYErrPlus(eyplus);
230  }
void setYErrMinus(double eyminus)
Set negative y error.
Definition: Point3D.h:211
void setYErrPlus(double eyplus)
Set positive y error.
Definition: Point3D.h:216
void YODA::Point3D::setYErr ( std::pair< double, double >  ey)
inline

Set asymmetric y error.

Definition at line 233 of file Point3D.h.

233  {
234  _ey = ey;
235  }
void YODA::Point3D::setYErrMinus ( double  eyminus)
inline

Set negative y error.

Definition at line 211 of file Point3D.h.

Referenced by setYErr(), and YODA::transformY().

211  {
212  _ey.first = eyminus;
213  }
void YODA::Point3D::setYErrPlus ( double  eyplus)
inline

Set positive y error.

Definition at line 216 of file Point3D.h.

Referenced by setYErr(), and YODA::transformY().

216  {
217  _ey.second = eyplus;
218  }
void YODA::Point3D::setZ ( double  z)
inline

Set z value.

Definition at line 108 of file Point3D.h.

References z().

Referenced by YODA::efficiency(), scaleZ(), setXYZ(), setZ(), and YODA::transformZ().

108 { _z = z;}
double z() const
Get z value.
Definition: Point3D.h:105
void YODA::Point3D::setZ ( double  z,
double  ez 
)
inline

Set z value and symmetric error.

Definition at line 355 of file Point3D.h.

References setZ(), and setZErr().

355  {
356  setZ(z);
357  setZErr(ez);
358  }
void setZErr(double ez)
Set symmetric z error.
Definition: Point3D.h:284
double z() const
Get z value.
Definition: Point3D.h:105
void setZ(double z)
Set z value.
Definition: Point3D.h:108
void YODA::Point3D::setZ ( double  z,
double  ezminus,
double  ezplus 
)
inline

Set z value and asymmetric error.

Definition at line 361 of file Point3D.h.

References setZ(), and setZErr().

361  {
362  setZ(z);
363  setZErr(ezminus, ezplus);
364  }
void setZErr(double ez)
Set symmetric z error.
Definition: Point3D.h:284
double z() const
Get z value.
Definition: Point3D.h:105
void setZ(double z)
Set z value.
Definition: Point3D.h:108
void YODA::Point3D::setZ ( double  z,
std::pair< double, double >  ez 
)
inline

Set z value and asymmetric error.

Definition at line 367 of file Point3D.h.

References setZ(), and setZErr().

367  {
368  setZ(z);
369  setZErr(ez);
370  }
void setZErr(double ez)
Set symmetric z error.
Definition: Point3D.h:284
double z() const
Get z value.
Definition: Point3D.h:105
void setZ(double z)
Set z value.
Definition: Point3D.h:108
void YODA::Point3D::setZErr ( double  ez)
inline

Set symmetric z error.

Definition at line 284 of file Point3D.h.

References setZErrMinus(), and setZErrPlus().

Referenced by scaleZ(), and setZ().

284  {
285  setZErrMinus(ez);
286  setZErrPlus(ez);
287  }
void setZErrPlus(double ezplus)
Set positive z error.
Definition: Point3D.h:279
void setZErrMinus(double ezminus)
Set negative z error.
Definition: Point3D.h:274
void YODA::Point3D::setZErr ( double  ezminus,
double  ezplus 
)
inline

Set asymmetric z error.

Definition at line 290 of file Point3D.h.

References setZErrMinus(), and setZErrPlus().

290  {
291  setZErrMinus(ezminus);
292  setZErrPlus(ezplus);
293  }
void setZErrPlus(double ezplus)
Set positive z error.
Definition: Point3D.h:279
void setZErrMinus(double ezminus)
Set negative z error.
Definition: Point3D.h:274
void YODA::Point3D::setZErr ( std::pair< double, double >  ez)
inline

Set asymmetric z error.

Definition at line 296 of file Point3D.h.

296  {
297  _ez = ez;
298  }
void YODA::Point3D::setZErrMinus ( double  ezminus)
inline

Set negative z error.

Definition at line 274 of file Point3D.h.

Referenced by setZErr(), and YODA::transformZ().

274  {
275  _ez.first = ezminus;
276  }
void YODA::Point3D::setZErrPlus ( double  ezplus)
inline

Set positive z error.

Definition at line 279 of file Point3D.h.

Referenced by setZErr(), and YODA::transformZ().

279  {
280  _ez.second = ezplus;
281  }
double YODA::Point3D::x ( ) const
inline
double YODA::Point3D::xErrAvg ( ) const
inline

Get average x-error value.

Definition at line 143 of file Point3D.h.

143  {
144  return (_ex.first + _ex.second)/2.0;
145  }
double YODA::Point3D::xErrMinus ( ) const
inline

Get negative x-error value.

Definition at line 133 of file Point3D.h.

Referenced by YODA::operator<(), YODA::operator==(), scaleX(), YODA::WriterYODA::writeScatter3D(), and YODA::WriterFLAT::writeScatter3D().

133  {
134  return _ex.first;
135  }
double YODA::Point3D::xErrPlus ( ) const
inline

Get positive x-error value.

Definition at line 138 of file Point3D.h.

Referenced by YODA::operator<(), YODA::operator==(), scaleX(), and YODA::WriterFLAT::writeScatter3D().

138  {
139  return _ex.second;
140  }
const std::pair<double,double>& YODA::Point3D::xErrs ( ) const
inline

Get x-error values.

Definition at line 128 of file Point3D.h.

128  {
129  return _ex;
130  }
double YODA::Point3D::xMax ( ) const
inline

Get value plus positive x-error.

Definition at line 180 of file Point3D.h.

Referenced by YODA::divide(), YODA::Histo2D::Histo2D(), YODA::Profile2D::Profile2D(), and YODA::transformX().

180  {
181  return _x + _ex.second;
182  }
double YODA::Point3D::xMin ( ) const
inline

Get value minus negative x-error.

Definition at line 175 of file Point3D.h.

Referenced by YODA::divide(), YODA::Histo2D::Histo2D(), YODA::Profile2D::Profile2D(), and YODA::transformX().

175  {
176  return _x - _ex.first;
177  }
double YODA::Point3D::y ( ) const
inline
double YODA::Point3D::yErrAvg ( ) const
inline

Get average y-error value.

Definition at line 206 of file Point3D.h.

Referenced by YODA::divide().

206  {
207  return (_ey.first + _ey.second)/2.0;
208  }
double YODA::Point3D::yErrMinus ( ) const
inline

Get negative y-error value.

Definition at line 196 of file Point3D.h.

Referenced by YODA::operator<(), YODA::operator==(), scaleY(), YODA::WriterYODA::writeScatter3D(), and YODA::WriterFLAT::writeScatter3D().

196  {
197  return _ey.first;
198  }
double YODA::Point3D::yErrPlus ( ) const
inline

Get positive y-error value.

Definition at line 201 of file Point3D.h.

Referenced by YODA::operator<(), YODA::operator==(), scaleY(), and YODA::WriterFLAT::writeScatter3D().

201  {
202  return _ey.second;
203  }
const std::pair<double,double>& YODA::Point3D::yErrs ( ) const
inline

Get y-error values.

Definition at line 191 of file Point3D.h.

191  {
192  return _ey;
193  }
double YODA::Point3D::yMax ( ) const
inline

Get value plus positive y-error.

Definition at line 243 of file Point3D.h.

Referenced by YODA::divide(), YODA::Histo2D::Histo2D(), YODA::Profile2D::Profile2D(), and YODA::transformY().

243  {
244  return _y + _ey.second;
245  }
double YODA::Point3D::yMin ( ) const
inline

Get value minus negative y-error.

Definition at line 238 of file Point3D.h.

Referenced by YODA::divide(), YODA::Histo2D::Histo2D(), YODA::Profile2D::Profile2D(), and YODA::transformY().

238  {
239  return _y - _ey.first;
240  }
double YODA::Point3D::z ( ) const
inline

Get z value.

Definition at line 105 of file Point3D.h.

Referenced by YODA::divide(), scaleZ(), setZ(), YODA::transformZ(), YODA::WriterYODA::writeScatter3D(), and YODA::WriterFLAT::writeScatter3D().

105 { return _z;}
double YODA::Point3D::zErrAvg ( ) const
inline

Get average z-error value.

Definition at line 269 of file Point3D.h.

269  {
270  return (_ez.first + _ez.second)/2.0;
271  }
double YODA::Point3D::zErrMinus ( ) const
inline

Get negative z-error value.

Definition at line 259 of file Point3D.h.

Referenced by scaleZ(), YODA::WriterYODA::writeScatter3D(), and YODA::WriterFLAT::writeScatter3D().

259  {
260  return _ez.first;
261  }
double YODA::Point3D::zErrPlus ( ) const
inline

Get positive z-error value.

Definition at line 264 of file Point3D.h.

Referenced by scaleZ(), and YODA::WriterFLAT::writeScatter3D().

264  {
265  return _ez.second;
266  }
const std::pair<double,double>& YODA::Point3D::zErrs ( ) const
inline

Get z-error values.

Definition at line 254 of file Point3D.h.

254  {
255  return _ez;
256  }
double YODA::Point3D::zMax ( ) const
inline

Get value plus positive z-error.

Definition at line 306 of file Point3D.h.

Referenced by YODA::transformZ().

306  {
307  return _z + _ez.second;
308  }
double YODA::Point3D::zMin ( ) const
inline

Get value minus negative z-error.

Definition at line 301 of file Point3D.h.

Referenced by YODA::transformZ().

301  {
302  return _z - _ez.first;
303  }

The documentation for this class was generated from the following file: