Go to the documentation of this file.
17 typedef std::pair<double, double>
Range;
67 Histogram(
nullptr,
nullptr, 0, 0., 0., 0, 0., 0.);
71 void fill(
double x,
double y,
const std::vector<double>&
weight,
double norm);
74 void fill(
double x,
double y,
const std::vector<double>&
weight,
double norm,
unsigned int colour);
80 void fill(
const Range&
x,
const Range&
y,
const std::vector<double>&
weight,
double norm,
unsigned int colour);
111 position(
double f_,
double x_,
double y_) :
f(f_),
x(x_),
y(y_) {}
123 throw std::invalid_argument(
"weight: wrong number of elements");
127 #endif // XHistogram_h
std::vector< std::shared_ptr< Histogram > > m_histograms
std::pair< double, double > Range
Histogram * get(size_t h=0) const
access one of the histograms
XHistogram(size_t size, size_t bins_x, size_t bins_y, Range x, Range y, size_t zones, const std::vector< double > &max)
ColorMap * colormap(void) const
access the colormap
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Histogram * normalization(void) const
access the normalization
position(double f_, double x_, double y_)
void fill(double x, double y, const std::vector< double > &weight, double norm)
fill one point
std::shared_ptr< Histogram > m_normalization
XHistogram(void)
default CTOR
void check_weight(const std::vector< double > &weight) noexcept(false)
check the weights passed as an std::vector have the correct size
std::shared_ptr< ColorMap > m_colormap
bool operator<(const position &other) const
void normalize(void)
normalize the histograms
std::shared_ptr< Histogram > m_dummy
std::vector< position > splitSegment(Range x, Range y) const
split a segment into a vector of points