Counter.h
Go to the documentation of this file.
230 // void setState(const Dbn0D& dbn, const AnalysisObject::Annotations& anns=AnalysisObject::Annotations()) {
302 inline Estimate0D mkEstimate(const std::string& path = "", const std::string& source = "") const {
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 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 Counter & operator/=(double s) Inverse-scale by a double (syntactic sugar for scaleW(1/s)) Definition Counter.h:291 Counter(double w, const std::string &path="", const std::string &title="") Constructor accepting a double (treated as the weight of a single fill). Definition Counter.h:61 Scatter1D mkScatter(const std::string &path="") const Definition Counter.h:316 Counter(Dbn0D &&dbn, const std::string &path="", const std::string &title="") Constructor accepting an explicit rvalue Dbn0D. Definition Counter.h:53 std::vector< double > serializeContent(bool=false) const noexcept Content serialisation for MPI reduce operations. Definition Counter.h:342 Estimate0D mkEstimate(const std::string &path="", const std::string &source="") const Definition Counter.h:302 Counter & operator*=(double s) Scale by a double (syntactic sugar for scaleW(s)) Definition Counter.h:284 AnalysisObject * mkInert(const std::string &path="", const std::string &source="") const noexcept Return an inert version of the analysis object (e.g. scatter, estimate) Definition Counter.h:328 void set(const double numEntries, const double sumW, const double sumW2) Set the internal distribution object: CAREFUL! Definition Counter.h:225 Counter(Counter &&c, const std::string &path="") Move constructor with optional new path. Definition Counter.h:73 Counter(const std::string &path="", const std::string &title="") Default constructor. Definition Counter.h:38 virtual int fill(double weight=1.0, double fraction=1.0) Fill histo by value and weight. Definition Counter.h:147 void deserializeContent(const std::vector< double > &data) Content deserialisation for MPI reduce operations. Definition Counter.h:346 virtual int fill(FillType &&, double weight=1.0, double fraction=1.0) Definition Counter.h:152 Counter(const Dbn0D &dbn, const std::string &path="", const std::string &title="") Constructor accepting an explicit Dbn0D. Definition Counter.h:45 Counter & operator-=(const Counter &toSubtract) Subtract another counter from this. Definition Counter.h:255 void scaleW(double scalefactor) Rescale as if all fill weights had been different by factor scalefactor. Definition Counter.h:165 size_t lengthContent(bool=false) const noexcept Length of serialized content vector for MPI reduce operations. Definition Counter.h:338 void setErr(const std::pair< double, double > &err, const std::string &source="") Set a signed uncertainty component. Definition Estimate.h:165 A generic data type which is just a collection of n-dim data points with errors. Definition Scatter.h:154 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 |