CepGen 1.2.5
Central exclusive processes event generator
|
Generic text-based plotting utility. More...
#include <CepGen/Utils/Histogram.h>
Public Types | |
enum | BinMode { low = 0 , high , both } |
Public Member Functions | |
Histogram ()=default | |
virtual | ~Histogram ()=default |
virtual void | clear ()=0 |
Reset the histogram. | |
virtual void | scale (double)=0 |
Rescale all histogram bins by a constant factor. | |
virtual double | integral (bool include_out_of_range=false) const =0 |
Compute the histogram integral. | |
virtual double | minimum () const =0 |
Retrieve the maximum bin value. | |
virtual double | maximum () const =0 |
Retrieve the minimum bin value. | |
void | normalise (double integ=1.) |
Normalise the histogram to a given constant. | |
Protected Member Functions | |
std::set< double > | extractBins (BinMode mode, size_t num_bins, const std::function< Limits(size_t)> &bins_extractor) const |
Extract the list of bin limits. | |
Definition at line 41 of file Histogram.h.
enum BinMode |
Enumerator | |
---|---|
low | |
high | |
both |
Definition at line 46 of file Histogram.h.
|
default |
|
virtualdefault |
|
protected |
[in] | mode | type of extraction (low/high/low-high) |
[in] | num_bins | total number of bins |
[in] | bins_extractor | method used to extract range of one single bin |
Definition at line 26 of file Histogram.cpp.
|
pure virtual |
void normalise | ( | double | integ = 1. | ) |
Definition at line 24 of file Histogram.cpp.