Histo2D.cc
Go to the documentation of this file.
195 // for (double i = binByCoord(xMin(), atY).xMin(); i < highEdgeX(); i += binByCoord(i, atY).widthX()) { 208 // return Histo1D(tempBins, _axis.totalDbn().transformX(), underflow.transformX(), overflow.transformX(), path, title); 219 // for (double i = binByCoord(atX, yMin()).yMin(); i < highEdgeY(); i += binByCoord(atX, i).widthY()) { 238 // return Histo1D(tempBins, total.transformX(), underflow.transformX(), overflow.transformX(), path, title); 243 // if (!_axis.isGrid()) throw GridError("Profile1D cannot be made from a histogram that is not a grid!"); 278 // if (!_axis.isGrid()) throw GridError("Profile1D cannot be made from a histogram that is not a grid!"); 330 // Use the midpoint of the "bin" for the new central x value, in the absence of better information 336 // Use the midpoint of the "bin" for the new central y value, in the absence of better information 379 throw UserError("Attempt to calculate an efficiency when the numerator is not a subset of the denominator: " 380 + Utils::toStr(b_acc.numEntries()) + " entries / " + Utils::toStr(b_tot.numEntries()) + " entries");
bool inRange(NUM value, NUM low, NUM high, RangeBoundary lowbound=CLOSED, RangeBoundary highbound=OPEN) Determine if value is in the range low to high, for floating point numbers. Definition: MathUtils.h:156 A Bin1D specialised for handling profile-type information. Definition: ProfileBin2D.h:23 double effNumEntries(bool includeoverflows=true) const Get the effective number of fills. Definition: Histo2D.cc:95 std::vector< YODA::HistoBin2D > & bins() Access the bin vector (non-const version) Definition: Histo2D.h:300 STL namespace. double xStdErr() const Weighted standard error on the mean, , of distribution. Definition: Dbn2D.h:148 bool fuzzyEquals(double a, double b, double tolerance=1E-5) Compare two floating point numbers for equality with a degree of fuzziness. Definition: MathUtils.h:73 virtual void fillBin(size_t i, double weight=1.0, double fraction=1.0) Fill histo x-y bin i with the given weight. Definition: Histo2D.cc:78 double yStdErr(bool includeoverflows=true) const Get the standard error in y. Definition: Histo2D.cc:162 Error for problems introduced outside YODA, to put it nicely. Definition: Exceptions.h:100 std::vector< YODA::ProfileBin2D > & bins() Access the bin vector (non-const) Definition: Profile2D.h:287 Point3D & point(size_t index) Get a reference to the point with index index. Definition: Scatter3D.h:226 Errors relating to insufficient (effective) statistics. Definition: Exceptions.h:72 Definition: AnalysisObject.h:18 double yStdErr() const Weighted standard error on the mean, , of distribution. Definition: Dbn2D.h:151 virtual void fill(double x, double y, double weight=1.0, double fraction=1.0) Fill histo with weight at (x,y) Definition: Histo2D.cc:50 double numEntries(bool includeoverflows=true) const Get the number of fills (fractional fills are possible) Definition: Histo2D.cc:87 double xStdErr(bool includeoverflows=true) const Get the standard error in x. Definition: Histo2D.cc:154 Dbn2D & totalDbn() Access summary distribution, including gaps and overflows (non-const version) Definition: Histo2D.h:333 A very generic data type which is just a collection of 3D data points with errors. Definition: Scatter3D.h:25 A Bin2D specialised for handling histogram-type information. Definition: HistoBin2D.h:21 double sumW2(bool includeoverflows=true) const Get the sum of squared weights in histo. Definition: Histo2D.cc:111 AnalysisObject is the base class for histograms and scatters. Definition: AnalysisObject.h:22 double relErr() const The relative size of the error (same for either volume or height errors) Definition: HistoBin2D.h:116 Histo2D(const std::string &path="", const std::string &title="") Default constructor. Definition: Histo2D.h:50 double sumW(bool includeoverflows=true) const Get the sum of weights in histo. Definition: Histo2D.cc:103 double numEntries() const Number of entries (number of times fill was called, ignoring weights) Definition: Dbn2D.h:166 Scatter1D efficiency(const Counter &accepted, const Counter &total) Calculate an efficiency ratio of two counters. Definition: Counter.cc:40 Generated on Thu Dec 2 2021 11:55:25 for YODA - Yet more Objects for Data Analysis by ![]() |