#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_, std::swap(), and mitigatedMETSequence_cff::U.
|
inlineprivate |
|
inline |
Definition at line 78 of file UniformAxis.h.
References write().
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_, mps_fire::i, max_, min_, npt_, and mitigatedMETSequence_cff::U.
Referenced by npstat::DualAxis::coordinate(), and usesLogSpace().
std::vector< double > npstat::UniformAxis::coords | ( | ) | const |
Definition at line 70 of file UniformAxis.cc.
References bw_, mps_fire::i, max_, min_, npt_, and mitigatedMETSequence_cff::U.
Referenced by npstat::DualAxis::coords(), and usesLogSpace().
std::pair< unsigned, double > npstat::UniformAxis::getInterval | ( | double | coordinate | ) | const |
Definition at line 30 of file UniformAxis.cc.
References bw_, max_, min_, npt_, mitigatedMETSequence_cff::U, and w.
Referenced by npstat::DualAxis::getInterval(), and usesLogSpace().
|
inline |
Definition at line 64 of file UniformAxis.h.
References bw_, operator==(), and alignCSCRings::r.
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_.
Referenced by operator!=().
|
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_, mitigatedMETSequence_cff::U, and w.
Referenced by npstat::DualAxis::linearInterval(), and usesLogSpace().
|
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 |
Definition at line 100 of file UniformAxis.cc.
References label_, max_, min_, and npt_.
Referenced by intervalWidth().
|
static |
Definition at line 117 of file UniformAxis.cc.
References label(), max(), min(), AlCaHLTBitMon_QueryRunRegistry::string, and UniformAxis().
Referenced by edmIntegrityCheck.PublishToFileSystem::get(), npstat::DualAxis::read(), and version().
|
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.
References coordinate(), coords(), getInterval(), mps_fire::i, and linearInterval().
Referenced by npstat::DualAxis::usesLogSpace().
|
inlinestatic |
Definition at line 82 of file UniformAxis.h.
References recoMuon::in, and read().
Referenced by validation.Sample::datasetpattern(), and validation.Sample::filename().
bool npstat::UniformAxis::write | ( | std::ostream & | of | ) | const |
Definition at line 108 of file UniformAxis.cc.
References label_, max_, min_, and npt_.
Referenced by classId(), and 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 SequenceTypes.DummyModule::__repr__(), Mixins._Labelable::_findDependencies(), 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().