npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0

#include <DualAxis.hh>

Public Member Functions

 DualAxis (const GridAxis &g)
 
 DualAxis (const UniformAxis &u)
 
 DualAxis (unsigned nCoords, double min, double max, const char *label=0)
 
 DualAxis (const std::vector< double > &coords, const bool useLogSpace=false)
 
 DualAxis (const std::vector< double > &coords, const char *label, const bool useLogSpace=false)
 
bool isUniform () const
 
unsigned nCoords () const
 
double min () const
 
double max () const
 
const std::string & label () const
 
bool usesLogSpace () const
 
std::pair< unsigned, double > getInterval (const double x) const
 
std::pair< unsigned, double > linearInterval (const double x) const
 
double coordinate (const unsigned i) const
 
double length () const
 
unsigned nIntervals () const
 
double intervalWidth (const unsigned i=0) const
 
std::vector< double > coords () const
 
bool operator== (const DualAxis &r) const
 
bool operator!= (const DualAxis &r) const
 
const GridAxisgetGridAxis () const
 
const UniformAxisgetUniformAxis () const
 
void setLabel (const char *newlabel)
 
gs::ClassId classId () const
 
bool write (std::ostream &of) const
 

Static Public Member Functions

static const char * classname ()
 
static unsigned version ()
 
static DualAxisread (const gs::ClassId &id, std::istream &in)
 

Detailed Description

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.

Member Function Documentation

◆ classId()

gs::ClassId npstat::DualAxis::classId ( ) const
inline

Method related to "geners" I/O

◆ getGridAxis()

const GridAxis* npstat::DualAxis::getGridAxis ( ) const
inline

Return a pointer to the underlying axis. This will be a null pointer if the axis does not correspond to the constructed type.

◆ setLabel()

void npstat::DualAxis::setLabel ( const char *  newlabel)
inline

Modify the axis label


The documentation for this class was generated from the following file: