#include <UniformAxis.h>
Public Member Functions | |
gs::ClassId | classId () const |
double | coordinate (unsigned i) const |
std::vector< double > | coords () const |
std::pair< unsigned, double > | getInterval (double coordinate) const |
double | intervalWidth (unsigned) const |
bool | isClose (const UniformAxis &r, double tol) const |
bool | isUniform () const |
const std::string & | label () const |
double | length () const |
std::pair< unsigned, double > | linearInterval (double coordinate) const |
double | max () const |
double | min () const |
unsigned | nCoords () const |
unsigned | nIntervals () const |
bool | operator!= (const UniformAxis &r) const |
bool | operator== (const UniformAxis &r) const |
void | setLabel (const char *newlabel) |
UniformAxis (unsigned nCoords, double min, double max, const char *label=0) | |
bool | usesLogSpace () const |
bool | write (std::ostream &of) const |
Static Public Member Functions | |
static const char * | classname () |
static UniformAxis * | read (const gs::ClassId &id, std::istream &in) |
static unsigned | version () |
Private Member Functions | |
UniformAxis () | |
Private Attributes | |
double | bw_ |
std::string | label_ |
double | max_ |
double | min_ |
unsigned | npt_ |
This class contains the info needed to define an axis of a rectangular grid. The distance between grid points is uniform.
Definition at line 27 of file UniformAxis.h.
npstat::UniformAxis::UniformAxis | ( | unsigned | nCoords, |
double | min, | ||
double | max, | ||
const char * | label = 0 |
||
) |
Definition at line 13 of file UniformAxis.cc.
References bw_, max_, min_, npt_, and std::swap().
|
inlineprivate |
|
inline |
Definition at line 78 of file UniformAxis.h.
Referenced by npstat::DualAxis::write().
|
inlinestatic |
Definition at line 81 of file UniformAxis.h.
double npstat::UniformAxis::coordinate | ( | unsigned | i | ) | const |
Definition at line 81 of file UniformAxis.cc.
References bw_, i, max_, min_, and npt_.
Referenced by npstat::DualAxis::coordinate().
std::vector< double > npstat::UniformAxis::coords | ( | ) | const |
Definition at line 70 of file UniformAxis.cc.
References bw_, i, max_, min_, and npt_.
Referenced by npstat::DualAxis::coords().
std::pair< unsigned, double > npstat::UniformAxis::getInterval | ( | double | coordinate | ) | const |
Definition at line 30 of file UniformAxis.cc.
References bw_, max_, min_, npt_, and w.
Referenced by npstat::DualAxis::getInterval().
|
inline |
Definition at line 64 of file UniformAxis.h.
References bw_.
Referenced by npstat::DualAxis::intervalWidth().
bool npstat::UniformAxis::isClose | ( | const UniformAxis & | r, |
double | tol | ||
) | const |
Definition at line 92 of file UniformAxis.cc.
References npstat::closeWithinTolerance(), label_, max_, min_, and npt_.
|
inline |
Definition at line 62 of file UniformAxis.h.
|
inline |
Definition at line 38 of file UniformAxis.h.
References label_.
Referenced by npstat::convertToHistoAxis(), npstat::DualAxis::label(), and read().
|
inline |
std::pair< unsigned, double > npstat::UniformAxis::linearInterval | ( | double | coordinate | ) | const |
Definition at line 50 of file UniformAxis.cc.
References bw_, max_, min_, npt_, w, and x.
Referenced by npstat::DualAxis::linearInterval().
|
inline |
Definition at line 37 of file UniformAxis.h.
References max_.
Referenced by npstat::convertToHistoAxis(), npstat::DualAxis::max(), and read().
|
inline |
Definition at line 36 of file UniformAxis.h.
References min_.
Referenced by npstat::convertToHistoAxis(), npstat::DualAxis::min(), and read().
|
inline |
Definition at line 35 of file UniformAxis.h.
References npt_.
Referenced by npstat::convertToHistoAxis(), and npstat::DualAxis::nCoords().
|
inline |
Definition at line 63 of file UniformAxis.h.
References npt_.
Referenced by npstat::DualAxis::nIntervals().
|
inline |
bool npstat::UniformAxis::operator== | ( | const UniformAxis & | r | ) | const |
|
static |
Definition at line 117 of file UniformAxis.cc.
References cond::rpcobimon::current, label(), max(), min(), AlCaHLTBitMon_QueryRunRegistry::string, and UniformAxis().
Referenced by npstat::DualAxis::read().
|
inline |
Definition at line 74 of file UniformAxis.h.
References label_.
Referenced by npstat::DualAxis::setLabel().
|
inline |
Definition at line 39 of file UniformAxis.h.
Referenced by npstat::DualAxis::usesLogSpace().
|
inlinestatic |
Definition at line 82 of file UniformAxis.h.
bool npstat::UniformAxis::write | ( | std::ostream & | of | ) | const |
Definition at line 108 of file UniformAxis.cc.
References label_, max_, min_, and npt_.
Referenced by npstat::DualAxis::write().
|
private |
Definition at line 88 of file UniformAxis.h.
Referenced by coordinate(), coords(), getInterval(), intervalWidth(), linearInterval(), and UniformAxis().
|
private |
Definition at line 89 of file UniformAxis.h.
Referenced by Mixins._Labelable::_findDependencies(), Mixins._TypedParameterizable::dumpPython(), isClose(), label(), operator==(), setLabel(), Mixins._Labelable::setLabel(), and write().
|
private |
Definition at line 87 of file UniformAxis.h.
Referenced by coordinate(), coords(), getInterval(), isClose(), length(), linearInterval(), max(), operator==(), UniformAxis(), and write().
|
private |
Definition at line 86 of file UniformAxis.h.
Referenced by coordinate(), coords(), getInterval(), isClose(), length(), linearInterval(), min(), operator==(), UniformAxis(), and write().
|
private |
Definition at line 90 of file UniformAxis.h.
Referenced by coordinate(), coords(), getInterval(), isClose(), linearInterval(), nCoords(), nIntervals(), operator==(), UniformAxis(), and write().