Herwig 7.3.0
|
A (one dimensional) distribution. More...
#include <Distribution.h>
Classes | |
struct | DistributionBin |
A bin in a distribution. More... | |
Public Member Functions | |
Distribution () | |
Default constructor. | |
Distribution (const Histogram &histo, double nPoints) | |
Construct from a histogram. | |
virtual | ~Distribution () |
Destructor. | |
const std::string & | name () const |
Return the name of the distribution. | |
const std::vector< DistributionBin > & | bins () const |
Return the bins in the distribution. | |
bool | isCompatible (const Distribution &other) const |
Return true, if this distribution is compatible with another one. | |
Distribution & | operator+= (const Distribution &other) |
Add two distributions. | |
Distribution & | operator-= (const Distribution &other) |
Subtract two distributions. | |
Distribution & | operator*= (const Distribution &other) |
Multiply two distributions. | |
Distribution & | operator/= (const Distribution &other) |
Divide two distributions. | |
void | fromXML (const XML::Element &) |
Fill distribution data from an XML element. | |
XML::Element | toXML () const |
Return an XML element for the data of this distribution. | |
void | toMakePlots (const std::string &analysis, const std::string &options="") const |
Write out data ready for make-plots, given an analysis name and plot options. | |
void | toMakePlots (const std::string &analysis, const Distribution &lower, const Distribution &upper, const std::string &options="") const |
Write out data ready for make-plots, given an analysis name and plot options. | |
void | appendToMakePlots (std::ostream &os, const std::string &analysis, const std::string &options="") const |
Write out data ready for make-plots, given an analysis name and plot options. | |
void | appendToMakePlots (std::ostream &os, const std::string &analysis, const Distribution &lower, const Distribution &upper, const std::string &options="") const |
Write out data ready for make-plots, given an analysis name and plot options. | |
Private Attributes | |
std::string | theName |
The name of the distribution. | |
std::vector< DistributionBin > | theBins |
The bins in the distribution. | |
|
inline |
Return the bins in the distribution.
Definition at line 117 of file Distribution.h.
References theBins.
|
inline |
Return the name of the distribution.
Definition at line 112 of file Distribution.h.
References theName.
|
private |
|
private |