#include <ClusterizingHistogram.h>
Public Member Functions | |
int | bin (float x) const |
int | bin (double x) const |
float | bin_pos (int i) const |
std::vector< float > | clusterize (float resolution) |
ClusterizingHistogram (int nb, float xmi, float xma) | |
void | dump () const |
void | dump (int i1, int i2) const |
void | dump (float x1, float x2) const |
void | dump (double x1, double x2) const |
void | dump (float x1, double x2) const |
void | dump (double x1, float x2) const |
int | entries () const |
void | fill (float x) |
float | max_x () const |
float | min_x () const |
int | nbins () const |
int | overflows () const |
void | reset () |
int | underflows () const |
~ClusterizingHistogram () | |
Private Member Functions | |
ClusterizingHistogram () | |
Private Attributes | |
int * | bin_entries |
float * | bin_means |
float | binsiz |
int | my_entries |
int | my_nbins |
int | my_overflows |
int | my_underflows |
float | xmax |
float | xmin |
A very simple 1D equidistant bin histogram that has the ability to clusterize it's contents. The bin entries are averaged in X, giving more accurate indication of where the bin contents are than the center of the bin.
Definition at line 13 of file ClusterizingHistogram.h.
ClusterizingHistogram::ClusterizingHistogram | ( | int | nb, |
float | xmi, | ||
float | xma | ||
) |
Definition at line 6 of file ClusterizingHistogram.cc.
References bin_entries, bin_means, binsiz, mps_fire::i, my_nbins, xmax, and xmin.
ClusterizingHistogram::~ClusterizingHistogram | ( | ) |
|
inlineprivate |
Definition at line 39 of file ClusterizingHistogram.h.
int ClusterizingHistogram::bin | ( | float | x | ) | const |
Definition at line 21 of file ClusterizingHistogram.cc.
References binsiz, createfilelist::int, my_nbins, x, xmax, and xmin.
Referenced by dump(), and fill().
int ClusterizingHistogram::bin | ( | double | x | ) | const |
Definition at line 29 of file ClusterizingHistogram.cc.
References binsiz, createfilelist::int, my_nbins, x, xmax, and xmin.
|
inline |
Definition at line 25 of file ClusterizingHistogram.h.
References bin_entries, bin_means, and mps_fire::i.
Referenced by clusterize(), and dump().
vector< float > ClusterizingHistogram::clusterize | ( | float | resolution | ) |
Definition at line 54 of file ClusterizingHistogram.cc.
References bin_entries, bin_means, bin_pos(), mps_fire::i, my_nbins, DeadROCCounter::nclust, pfClustersFromCombinedCaloHF_cfi::resol, and xmin.
Referenced by magneticfield::bRod::bRod(), magneticfield::bSector::bSector(), magneticfield::MagGeoBuilder::build(), MagGeoBuilderFromDDD::build(), and magneticfield::eSector::eSector().
void ClusterizingHistogram::dump | ( | void | ) | const |
void ClusterizingHistogram::dump | ( | int | i1, |
int | i2 | ||
) | const |
Definition at line 86 of file ClusterizingHistogram.cc.
References bin_entries, bin_pos(), gather_cfg::cout, mps_fire::i, testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, SiStripPI::max, SiStripPI::min, my_entries, my_nbins, my_overflows, and my_underflows.
void ClusterizingHistogram::dump | ( | float | x1, |
float | x2 | ||
) | const |
Definition at line 96 of file ClusterizingHistogram.cc.
References bin(), dump(), testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.
void ClusterizingHistogram::dump | ( | double | x1, |
double | x2 | ||
) | const |
Definition at line 97 of file ClusterizingHistogram.cc.
References bin(), dump(), testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.
void ClusterizingHistogram::dump | ( | float | x1, |
double | x2 | ||
) | const |
Definition at line 98 of file ClusterizingHistogram.cc.
References bin(), dump(), testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.
void ClusterizingHistogram::dump | ( | double | x1, |
float | x2 | ||
) | const |
Definition at line 99 of file ClusterizingHistogram.cc.
References bin(), dump(), testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.
|
inline |
void ClusterizingHistogram::fill | ( | float | x | ) |
Definition at line 38 of file ClusterizingHistogram.cc.
References bin(), bin_entries, bin_means, binsiz, createfilelist::int, my_entries, my_nbins, my_overflows, my_underflows, x, xmax, and xmin.
Referenced by magneticfield::bRod::bRod(), magneticfield::bSector::bSector(), magneticfield::MagGeoBuilder::build(), MagGeoBuilderFromDDD::build(), and magneticfield::eSector::eSector().
|
inline |
|
inline |
|
inline |
|
inline |
void ClusterizingHistogram::reset | ( | void | ) |
Definition at line 101 of file ClusterizingHistogram.cc.
References bin_entries, bin_means, mps_fire::i, my_entries, my_nbins, my_overflows, and my_underflows.
|
inline |
|
private |
Definition at line 46 of file ClusterizingHistogram.h.
Referenced by bin_pos(), clusterize(), ClusterizingHistogram(), dump(), fill(), reset(), and ~ClusterizingHistogram().
|
private |
Definition at line 47 of file ClusterizingHistogram.h.
Referenced by bin_pos(), clusterize(), ClusterizingHistogram(), fill(), reset(), and ~ClusterizingHistogram().
|
private |
Definition at line 48 of file ClusterizingHistogram.h.
Referenced by bin(), ClusterizingHistogram(), and fill().
|
private |
|
private |
Definition at line 40 of file ClusterizingHistogram.h.
Referenced by bin(), clusterize(), ClusterizingHistogram(), dump(), fill(), nbins(), and reset().
|
private |
Definition at line 45 of file ClusterizingHistogram.h.
Referenced by dump(), fill(), overflows(), and reset().
|
private |
Definition at line 44 of file ClusterizingHistogram.h.
Referenced by dump(), fill(), reset(), and underflows().
|
private |
Definition at line 42 of file ClusterizingHistogram.h.
Referenced by svgfig.XAxis::__repr__(), bin(), ClusterizingHistogram(), fill(), and max_x().
|
private |
Definition at line 41 of file ClusterizingHistogram.h.
Referenced by svgfig.XAxis::__repr__(), svgfig.Axes::__repr__(), svgfig.HGrid::__repr__(), svgfig.Grid::__repr__(), bin(), clusterize(), ClusterizingHistogram(), fill(), min_x(), and svgfig.Axes::SVG().