#include <DualAxis.h>
Public Member Functions | |
gs::ClassId | classId () const |
double | coordinate (const unsigned i) const |
std::vector< double > | coords () const |
DualAxis (const GridAxis &g) | |
DualAxis (const std::vector< double > &coords, const bool useLogSpace=false) | |
DualAxis (const std::vector< double > &coords, const char *label, const bool useLogSpace=false) | |
DualAxis (const UniformAxis &u) | |
DualAxis (unsigned nCoords, double min, double max, const char *label=nullptr) | |
const GridAxis * | getGridAxis () const |
std::pair< unsigned, double > | getInterval (const double x) const |
const UniformAxis * | getUniformAxis () const |
double | intervalWidth (const unsigned i=0) const |
bool | isUniform () const |
const std::string & | label () const |
double | length () const |
std::pair< unsigned, double > | linearInterval (const double x) const |
double | max () const |
double | min () const |
unsigned | nCoords () const |
unsigned | nIntervals () const |
bool | operator!= (const DualAxis &r) const |
bool | operator== (const DualAxis &r) const |
void | setLabel (const char *newlabel) |
bool | usesLogSpace () const |
bool | write (std::ostream &of) const |
Static Public Member Functions | |
static const char * | classname () |
static DualAxis * | read (const gs::ClassId &id, std::istream &in) |
static unsigned | version () |
Private Member Functions | |
DualAxis () | |
Static Private Member Functions | |
static std::vector< double > | dummy_vec () |
Private Attributes | |
GridAxis | a_ |
UniformAxis | u_ |
bool | uniform_ |
Rectangular grid axis which can be either uniform or non-uniform. Will work a little bit slower than either GridAxis or UniformAxis, but can be used in place of either one of them.
Definition at line 24 of file DualAxis.h.
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inlineprivate |
|
inline |
Method related to "geners" I/O
Definition at line 95 of file DualAxis.h.
|
inlinestatic |
Definition at line 99 of file DualAxis.h.
|
inline |
Definition at line 61 of file DualAxis.h.
References a_, npstat::UniformAxis::coordinate(), npstat::GridAxis::coordinate(), mps_fire::i, u_, and uniform_.
|
inline |
Definition at line 71 of file DualAxis.h.
References a_, npstat::GridAxis::coords(), npstat::UniformAxis::coords(), u_, and uniform_.
|
inlinestaticprivate |
Definition at line 108 of file DualAxis.h.
|
inline |
|
inline |
Definition at line 53 of file DualAxis.h.
References a_, npstat::UniformAxis::getInterval(), npstat::GridAxis::getInterval(), u_, and uniform_.
|
inline |
|
inline |
Definition at line 67 of file DualAxis.h.
References a_, mps_fire::i, npstat::UniformAxis::intervalWidth(), npstat::GridAxis::intervalWidth(), u_, and uniform_.
|
inline |
|
inline |
Definition at line 49 of file DualAxis.h.
References a_, npstat::UniformAxis::label(), npstat::GridAxis::label(), u_, and uniform_.
|
inline |
Definition at line 63 of file DualAxis.h.
References a_, npstat::UniformAxis::length(), npstat::GridAxis::length(), u_, and uniform_.
|
inline |
Definition at line 57 of file DualAxis.h.
References a_, npstat::UniformAxis::linearInterval(), npstat::GridAxis::linearInterval(), u_, and uniform_.
|
inline |
Definition at line 47 of file DualAxis.h.
References a_, npstat::UniformAxis::max(), npstat::GridAxis::max(), u_, and uniform_.
|
inline |
Definition at line 45 of file DualAxis.h.
References a_, npstat::UniformAxis::min(), npstat::GridAxis::min(), u_, and uniform_.
|
inline |
Definition at line 43 of file DualAxis.h.
References a_, npstat::UniformAxis::nCoords(), npstat::GridAxis::nCoords(), u_, and uniform_.
|
inline |
Definition at line 65 of file DualAxis.h.
References a_, npstat::UniformAxis::nIntervals(), npstat::GridAxis::nIntervals(), u_, and uniform_.
|
inline |
|
inline |
|
static |
Definition at line 17 of file DualAxis.cc.
References c, DualAxis(), recoMuon::in, npstat::UniformAxis::read(), and npstat::GridAxis::read().
Referenced by edmIntegrityCheck.PublishToFileSystem::get().
|
inline |
Modify the axis label
Definition at line 91 of file DualAxis.h.
References a_, npstat::UniformAxis::setLabel(), npstat::GridAxis::setLabel(), u_, and uniform_.
|
inline |
Definition at line 51 of file DualAxis.h.
References a_, u_, uniform_, npstat::UniformAxis::usesLogSpace(), and npstat::GridAxis::usesLogSpace().
|
inlinestatic |
Definition at line 100 of file DualAxis.h.
Referenced by validation.Sample::datasetpattern(), and validation.Sample::filename().
bool npstat::DualAxis::write | ( | std::ostream & | of | ) | const |
Definition at line 8 of file DualAxis.cc.
References a_, c, npstat::UniformAxis::classId(), npstat::GridAxis::classId(), u_, uniform_, npstat::UniformAxis::write(), and npstat::GridAxis::write().
|
private |
Definition at line 104 of file DualAxis.h.
Referenced by coordinate(), coords(), getGridAxis(), getInterval(), intervalWidth(), label(), length(), linearInterval(), max(), min(), nCoords(), nIntervals(), operator==(), setLabel(), usesLogSpace(), and write().
|
private |
Definition at line 105 of file DualAxis.h.
Referenced by coordinate(), coords(), getInterval(), getUniformAxis(), intervalWidth(), label(), length(), linearInterval(), max(), min(), nCoords(), nIntervals(), operator==(), setLabel(), usesLogSpace(), and write().
|
private |
Definition at line 106 of file DualAxis.h.
Referenced by coordinate(), coords(), getGridAxis(), getInterval(), getUniformAxis(), intervalWidth(), isUniform(), label(), length(), linearInterval(), max(), min(), nCoords(), nIntervals(), operator==(), setLabel(), usesLogSpace(), and write().