8 #include <boost/shared_ptr.hpp>
18 typedef std::pair<double, double>
Range;
67 m_colormap.reset(
new ColorMap( 0, 0, bins_x, x.first, x.second, bins_y, y.first, y.second ));
74 void fill(
double x,
double y,
const std::vector<double> &
weight,
double norm );
77 void fill(
double x,
double y,
const std::vector<double> &
weight,
double norm,
unsigned int colour );
83 void fill(
const Range&
x,
const Range&
y,
const std::vector<double> &
weight,
double norm,
unsigned int colour );
124 position(
double f_,
double x_,
double y_) :
f(f_),
x(x_),
y(y_) { }
139 throw std::invalid_argument(
"weight: wrong number of elements");
144 #endif // XHistogram_h
ColorMap * colormap(void) const
access the colormap
boost::shared_ptr< Histogram > m_dummy
XHistogram(size_t size, size_t bins_x, size_t bins_y, Range x, Range y, size_t zones, const std::vector< double > &max)
boost::shared_ptr< ColorMap > m_colormap
std::vector< position > splitSegment(Range x, Range y) const
split a segment into a vector of points
const T & max(const T &a, const T &b)
void check_weight(const std::vector< double > &weight)
check the weights passed as an std::vector have the correct size
position(double f_, double x_, double y_)
bool operator<(const position &other) const
XHistogram(void)
default CTOR
std::vector< boost::shared_ptr< Histogram > > m_histograms
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
boost::shared_ptr< Histogram > m_normalization
void fill(double x, double y, const std::vector< double > &weight, double norm)
fill one point
void normalize(void)
normalize the histograms
std::pair< double, double > Range
Histogram * normalization(void) const
access the normalization
tuple size
Write out results.