Estimate0D.h
Go to the documentation of this file.
140 Estimate0D& subtract(const Estimate0D& toSubtract, const std::string& pat_uncorr="^stat|^uncor" ) {
197 const int errwidth = std::max(int(std::to_string(labels.size()).size()+7), width); // "errDn(" + src + ")"
AnalysisObject is the base class for histograms and scatters. Definition AnalysisObject.h:26 virtual AnalysisObject & operator=(const AnalysisObject &ao) noexcept Default copy assignment operator. Definition AnalysisObject.h:66 virtual std::string type() const Get name of the analysis object type. Definition AnalysisObject.h:284 void setAnnotation(const std::string &name, const T &value) Add or set an annotation by name (templated for remaining types) Definition AnalysisObject.h:182 std::vector< std::string > annotations() const Definition AnalysisObject.h:123 void rmAnnotation(const std::string &name) Delete an annotation by name. Definition AnalysisObject.h:214 const std::string & annotation(const std::string &name) const Get an annotation by name (as a string) Definition AnalysisObject.h:138 bool hasAnnotation(const std::string &name) const Check if an annotation is defined. Definition AnalysisObject.h:132 Estimate0D(const std::string &path="", const std::string &title="") Nullary constructor for unique pointers etc. Definition Estimate0D.h:45 Estimate0D(double v, std::map< std::string, std::pair< double, double > > &errors, const std::string &path="", const std::string &title="") Constructor to set an Estimate0D with a pre-filled state. Definition Estimate0D.h:52 Estimate0D & subtract(const Estimate0D &toSubtract, const std::string &pat_uncorr="^stat|^uncor") Subtract two Estimate0Ds. Definition Estimate0D.h:140 Estimate0D & operator-=(Estimate0D &&toSubtract) Definition Estimate0D.h:156 Estimate0D & subtract(Estimate0D &&toSubtract, const std::string &pat_uncorr="^stat|^uncor") Subtract two (rvalue) Estimate0Ds. Definition Estimate0D.h:151 Scatter1D mkScatter(const std::string &path="", const std::string &pat_match="") const noexcept Definition Estimate0D.h:292 Estimate0D & operator+=(const Estimate0D &toAdd) Definition Estimate0D.h:124 Estimate0D(BaseT &&other, const std::string &path="", const std::string &title="") Move constructor using base class. Definition Estimate0D.h:78 Estimate0D(const BaseT &other, const std::string &path="", const std::string &title="") Copy constructor using base class. Definition Estimate0D.h:74 AnalysisObject * mkInert(const std::string &path="", const std::string &source="") const noexcept Method returns clone of the estimate with streamlined error source. Definition Estimate0D.h:308 size_t lengthContent(bool fixed_length=false) const noexcept Length of serialized content vector for MPI reduce operations. Definition Estimate0D.h:275 Estimate0D & add(const Estimate0D &toAdd, const std::string &pat_uncorr="^stat|^uncor") Add two Estimate0Ds. Definition Estimate0D.h:118 Estimate0D(const double v, const std::pair< double, double > &e, const std::string &source="", const std::string &path="", const std::string &title="") Alternative constructor to set an Estimate0D with value and uncertainty. Definition Estimate0D.h:59 void deserializeContent(const std::vector< double > &data) Content deserialisation for MPI reduce operations. Definition Estimate0D.h:283 Estimate0D & operator=(const Estimate0D &toCopy) noexcept Definition Estimate0D.h:100 std::vector< double > serializeContent(bool fixed_length=false) const noexcept Content serialisation for MPI reduce operations. Definition Estimate0D.h:279 Estimate0D(const Estimate0D &other) Copy constructor (needed for clone functions). Definition Estimate0D.h:66 Estimate0D & operator-=(const Estimate0D &toSubtract) Definition Estimate0D.h:146 Estimate0D & add(Estimate0D &&toAdd, const std::string &pat_uncorr="^stat|^uncor") Add two (rvalue) Estimate0Ds. Definition Estimate0D.h:129 Estimate & add(const Estimate &toAdd, const std::string &pat_uncorr="^stat|^uncor") Add two Estimates. Definition Estimate.h:95 size_t numErrs() const noexcept The number of error sources in the error map. Definition Estimate.h:499 double totalErrPos(const std::string &pat_match="") const noexcept The positive total uncertainty. Definition Estimate.h:423 std::vector< std::string > sources() const noexcept The list of error source names. Definition Estimate.h:487 void transform(const Trf< 1 > &trf) Generalised transformations with functors. Definition Estimate.h:214 Estimate & operator=(const Estimate &toCopy) noexcept Definition Estimate.h:69 void renameSource(const std::string &old_label, const std::string &new_label) Replace a source label in the error breakdown. Definition Estimate.h:219 std::pair< double, double > err(const std::string &source="") const Convenience alias for errorDownUp(source) Definition Estimate.h:263 Estimate & subtract(const Estimate &toSubtract, const std::string &pat_uncorr="^stat|^uncor") Subtract one Estimate from another. Definition Estimate.h:125 bool hasSource(const std::string &key) const noexcept Returns true/false if the error map contains key. Definition Estimate.h:494 A generic data type which is just a collection of n-dim data points with errors. Definition Scatter.h:153 Definition Transformation.h:29 Error for problems introduced outside YODA, to put it nicely. Definition Exceptions.h:86 void transform(BinnedEstimate< AxisT... > &est, const Trf< 1 > &fn) Definition BinnedEstimate.h:1274 BinnedDbn< DbnN, AxisT... > operator+(BinnedDbn< DbnN, AxisT... > first, BinnedDbn< DbnN, AxisT... > &&second) Add two BinnedDbn objects. Definition BinnedDbn.h:1142 BinnedEstimate< AxisT... > operator/(const BinnedDbn< DbnN, AxisT... > &numer, const BinnedDbn< DbnN, AxisT... > &denom) Definition BinnedDbn.h:1215 BinnedEstimate< AxisT... > efficiency(const BinnedDbn< DbnN, AxisT... > &accepted, const BinnedDbn< DbnN, AxisT... > &total) Calculate a binned efficiency ratio of two BinnedDbn objects. Definition BinnedDbn.h:1244 BinnedDbn< DbnN, AxisT... > operator-(BinnedDbn< DbnN, AxisT... > first, BinnedDbn< DbnN, AxisT... > &&second) Subtract one BinnedDbn object from another. Definition BinnedDbn.h:1158 BinnedEstimate< AxisT... > divide(const BinnedDbn< DbnN, AxisT... > &numer, const BinnedDbn< DbnN, AxisT... > &denom) Divide two BinnedDbn objects. Definition BinnedDbn.h:1174 Generated on Fri Mar 7 2025 09:06:40 for YODA - Yet more Objects for Data Analysis by |