|
[yoda-svn] yoda: Add missing Point.h headerYODA Mercurial yoda at projects.hepforge.orgMon Oct 26 18:00:01 GMT 2015
details: https://yoda.hepforge.org/hg/yoda/rev/dd8c75252fc4 branches: changeset: 1168:dd8c75252fc4 user: Andy Buckley <andy at insectnation.org> date: Mon Oct 26 17:52:57 2015 +0000 description: Add missing Point.h header diffs (truncated from 98 to 50 lines): --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/YODA/Point.h Mon Oct 26 17:52:57 2015 +0000 @@ -0,0 +1,95 @@ +// -*- C++ -*- +// +// This file is part of YODA -- Yet more Objects for Data Analysis +// Copyright (C) 2008-2015 The YODA collaboration (see AUTHORS for details) +// +#ifndef YODA_POINT_H +#define YODA_POINT_H + +#include "YODA/AnalysisObject.h" + +namespace YODA { + + + /// Base class for all Point*Ds, providing generic access to their numerical properties + class Point { + public: + + typedef std::pair<double,double> ValuePair; + + + /// Virtual destructor for inheritance + virtual ~Point() {}; + + + /// Space dimension of the point + virtual size_t dim() = 0; + + + /// Get the point value for direction @a i + virtual double val(size_t i) const = 0; + /// Set the point value for direction @a i + virtual void setVal(size_t i, double val) = 0; + + /// Get error values for direction @a i + virtual const std::pair<double,double>& errs(size_t i) const = 0; + /// Set symmetric error for direction @a i + virtual void setErr(size_t i, double e) = 0; + /// Set symmetric error for direction @a i (alias) + virtual void setErrs(size_t i, double e) { return setErr(i,e); } + /// Set asymmetric error for direction @a i + virtual void setErrs(size_t i, double eminus, double eplus) = 0; + /// Set asymmetric error for direction @a i + virtual void setErrs(size_t i, std::pair<double,double>& e) = 0; + + /// Get negative error value for direction @a i + virtual double errMinus(size_t i) const = 0; + /// Set negative error for direction @a i
More information about the yoda-svn mailing list |