Herwig 7.3.0
|
A (one dimensional) histogram. More...
#include <Histogram.h>
Public Member Functions | |
Histogram () | |
Default constructor. | |
virtual | ~Histogram () |
Destructor. | |
Histogram (const std::string &newName, const std::vector< double > &newBoundaries, bool newNoUnderflow=false, bool newNoOverflow=false) | |
Constructor giving a name and bin boundaries; bin boundaries are subsequent boundaries. | |
Histogram (const std::string &newName, const std::vector< double > &newBoundaries, const std::pair< double, double > &newPeriodicity) | |
Constructor giving a name, bin boundaries and periodicity interval; bin boundaries are subsequent boundaries. | |
void | initialize () |
Initialize this histogram. | |
void | reset () |
Reset this histogram. | |
void | finalize () |
Finalize this histogram. | |
bool | count (EventContribution event, size_t id) |
Book a contribution to the current event. | |
bool | isCompatible (const Histogram &other) const |
Return true, if this histogram is compatible with another one. | |
Histogram & | operator+= (const Histogram &other) |
Add a histogram to this histogram. | |
Histogram & | operator-= (const Histogram &other) |
Subtract a histogram from this histogram. | |
const std::string & | name () const |
Return the id of the histogram. | |
const Bin & | underflow () const |
Return the underflow bin. | |
const std::vector< Bin > & | bins () const |
Return the bins. | |
const Bin & | overflow () const |
Return the overflow bin. | |
bool | noUnderflow () const |
True, if there is no underflow. | |
bool | noOverflow () const |
True, if there is no overflow. | |
bool | isPeriodic () const |
Return true, if the quantity considered is periodic. | |
const std::pair< double, double > & | periodicity () const |
Return the periodicity interval, if appropriate. | |
void | fromXML (const XML::Element &) |
Fill histogram data from an XML element. | |
XML::Element | toXML () const |
Return an XML element for the data of this histogram. | |
Private Member Functions | |
void | fillBinMap () |
Fill the bin map. | |
Bin & | binByIndex (int) |
Return a bin by index. | |
Private Attributes | |
std::string | theName |
The id of the histogram. | |
Bin | theUnderflow |
The underflow bin. | |
std::vector< Bin > | theBins |
The bins. | |
Bin | theOverflow |
The overflow bin. | |
bool | theNoUnderflow |
True, if there is no underflow. | |
bool | theNoOverflow |
True, if there is no overflow. | |
bool | theIsPeriodic |
True, if the quantity considered is periodic. | |
std::pair< double, double > | thePeriodicity |
The periodicity of the quantity considered. | |
std::map< double, int > | binMap |
Map bin upper boundaries to bins. | |
A (one dimensional) histogram.
Definition at line 25 of file Statistics/Histogram.h.
|
inline |
Return the bins.
Definition at line 122 of file Statistics/Histogram.h.
References theBins.
Referenced by Herwig::HJetsAnalysis::fourthJetYStar(), Herwig::HJetsAnalysis::higgsYStar(), Herwig::HJetsAnalysis::jeppeDeltaPhi(), Herwig::HJetsAnalysis::jet12HiggsDeltaPhi(), Herwig::JetsPlusAnalysis::jetAverageProperties(), Herwig::LeptonsJetsAnalysis::jetAverageProperties(), Herwig::JetsPlusAnalysis::jetInclusiveProperties(), Herwig::LeptonsJetsAnalysis::jetInclusiveProperties(), Herwig::JetsPlusAnalysis::jetSummedProperties(), Herwig::LeptonsJetsAnalysis::jetSummedProperties(), Herwig::JetsPlusAnalysis::nJetsExclusive(), Herwig::LeptonsJetsAnalysis::nJetsExclusive(), Herwig::JetsPlusAnalysis::nJetsInclusive(), Herwig::LeptonsJetsAnalysis::nJetsInclusive(), Herwig::LeptonsJetsAnalysis::pTmissProperties(), and Herwig::HJetsAnalysis::thirdJetYStar().
|
inline |
Return true, if the quantity considered is periodic.
Definition at line 143 of file Statistics/Histogram.h.
References theIsPeriodic.
|
inline |
Return the id of the histogram.
Definition at line 112 of file Statistics/Histogram.h.
References theName.
|
inline |
True, if there is no overflow.
Definition at line 137 of file Statistics/Histogram.h.
References theNoOverflow.
|
inline |
True, if there is no underflow.
Definition at line 132 of file Statistics/Histogram.h.
References theNoUnderflow.
|
inline |
Return the overflow bin.
Definition at line 127 of file Statistics/Histogram.h.
References theOverflow.
|
inline |
Return the periodicity interval, if appropriate.
Definition at line 148 of file Statistics/Histogram.h.
References thePeriodicity.
|
inline |
Return the underflow bin.
Definition at line 117 of file Statistics/Histogram.h.
References theUnderflow.
|
private |
Map bin upper boundaries to bins.
Definition at line 217 of file Statistics/Histogram.h.
|
private |
|
private |
True, if the quantity considered is periodic.
Definition at line 197 of file Statistics/Histogram.h.
Referenced by isPeriodic().
|
private |
The id of the histogram.
Definition at line 167 of file Statistics/Histogram.h.
Referenced by name().
|
private |
True, if there is no overflow.
Definition at line 192 of file Statistics/Histogram.h.
Referenced by noOverflow().
|
private |
True, if there is no underflow.
Definition at line 187 of file Statistics/Histogram.h.
Referenced by noUnderflow().
|
private |
|
private |
The periodicity of the quantity considered.
Definition at line 202 of file Statistics/Histogram.h.
Referenced by periodicity().
|
private |
The underflow bin.
Definition at line 172 of file Statistics/Histogram.h.
Referenced by underflow().