Estimate0D.h
Go to the documentation of this file.
136 Estimate0D& subtract(const Estimate0D& toSubtract, const std::string& pat_uncorr="^stat|^uncor" ) {
193 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:21 virtual AnalysisObject & operator=(const AnalysisObject &ao) noexcept Default copy assignment operator. Definition AnalysisObject.h:61 virtual std::string type() const Get name of the analysis object type. Definition AnalysisObject.h:268 void setAnnotation(const std::string &name, const T &value) Add or set an annotation by name (templated for remaining types) Definition AnalysisObject.h:166 std::vector< std::string > annotations() const Definition AnalysisObject.h:107 void rmAnnotation(const std::string &name) Delete an annotation by name. Definition AnalysisObject.h:198 const std::string & annotation(const std::string &name) const Get an annotation by name (as a string) Definition AnalysisObject.h:122 bool hasAnnotation(const std::string &name) const Check if an annotation is defined. Definition AnalysisObject.h:116 Estimate0D(const std::string &path="", const std::string &title="") Nullary constructor for unique pointers etc. Definition Estimate0D.h:41 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:48 Estimate0D & subtract(const Estimate0D &toSubtract, const std::string &pat_uncorr="^stat|^uncor") Subtract two Estimate0Ds. Definition Estimate0D.h:136 Estimate0D & operator-=(Estimate0D &&toSubtract) Definition Estimate0D.h:152 Estimate0D & subtract(Estimate0D &&toSubtract, const std::string &pat_uncorr="^stat|^uncor") Subtract two (rvalue) Estimate0Ds. Definition Estimate0D.h:147 Scatter1D mkScatter(const std::string &path="", const std::string &pat_match="") const noexcept Definition Estimate0D.h:250 Estimate0D & operator+=(const Estimate0D &toAdd) Definition Estimate0D.h:120 Estimate0D(BaseT &&other, const std::string &path="", const std::string &title="") Move constructor using base class. Definition Estimate0D.h:74 Estimate0D(const BaseT &other, const std::string &path="", const std::string &title="") Copy constructor using base class. Definition Estimate0D.h:70 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:266 size_t lengthContent(bool fixed_length=false) const noexcept Length of serialized content vector for MPI reduce operations. Definition Estimate0D.h:233 Estimate0D & add(const Estimate0D &toAdd, const std::string &pat_uncorr="^stat|^uncor") Add two Estimate0Ds. Definition Estimate0D.h:114 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:55 void deserializeContent(const std::vector< double > &data) Content deserialisation for MPI reduce operations. Definition Estimate0D.h:241 Estimate0D & operator=(const Estimate0D &toCopy) noexcept Definition Estimate0D.h:96 std::vector< double > serializeContent(bool fixed_length=false) const noexcept Content serialisation for MPI reduce operations. Definition Estimate0D.h:237 Estimate0D(const Estimate0D &other) Copy constructor (needed for clone functions). Definition Estimate0D.h:62 Estimate0D & operator-=(const Estimate0D &toSubtract) Definition Estimate0D.h:142 Estimate0D & add(Estimate0D &&toAdd, const std::string &pat_uncorr="^stat|^uncor") Add two (rvalue) Estimate0Ds. Definition Estimate0D.h:125 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:154 Definition Transformation.h:31 Error for problems introduced outside YODA, to put it nicely. Definition Exceptions.h:100 void transform(BinnedEstimate< AxisT... > &est, const Trf< 1 > &fn) Definition BinnedEstimate.h:1206 BinnedDbn< DbnN, AxisT... > operator+(BinnedDbn< DbnN, AxisT... > first, BinnedDbn< DbnN, AxisT... > &&second) Add two BinnedDbn objects. Definition BinnedDbn.h:1060 BinnedEstimate< AxisT... > operator/(const BinnedDbn< DbnN, AxisT... > &numer, const BinnedDbn< DbnN, AxisT... > &denom) Definition BinnedDbn.h:1133 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:1162 BinnedDbn< DbnN, AxisT... > operator-(BinnedDbn< DbnN, AxisT... > first, BinnedDbn< DbnN, AxisT... > &&second) Subtract one BinnedDbn object from another. Definition BinnedDbn.h:1076 BinnedEstimate< AxisT... > divide(const BinnedDbn< DbnN, AxisT... > &numer, const BinnedDbn< DbnN, AxisT... > &denom) Divide two BinnedDbn objects. Definition BinnedDbn.h:1092 Generated on Mon Oct 28 2024 13:47:23 for YODA - Yet more Objects for Data Analysis by 1.9.8 |