1 #ifndef NPSTAT_GRIDAXIS_HH_ 2 #define NPSTAT_GRIDAXIS_HH_ 20 #include "Alignment/Geners/interface/ClassId.hh" 39 bool useLogSpace=
false);
40 GridAxis(
const std::vector<double>& coords,
const char*
label,
41 bool useLogSpace=
false);
80 std::pair<unsigned,double>
linearInterval(
double coordinate)
const;
101 {
return !(*
this ==
r);}
111 {
label_ = newlabel ? newlabel :
"";}
115 inline gs::ClassId
classId()
const {
return gs::ClassId(*
this);}
116 bool write(std::ostream&
of)
const;
119 static inline const char*
classname() {
return "npstat::GridAxis";}
136 #endif // NPSTAT_GRIDAXIS_HH_
gs::ClassId classId() const
static const char * classname()
std::pair< unsigned, double > getInterval(double coordinate) const
double intervalWidth(const unsigned i=0) const
const std::string & label() const
bool operator==(const GridAxis &r) const
unsigned nIntervals() const
static unsigned version()
double coordinate(const unsigned i) const
bool usesLogSpace() const
bool operator!=(const GridAxis &r) const
bool isClose(const GridAxis &r, double tol) const
std::vector< double > logs_
void setLabel(const char *newlabel)
static GridAxis * read(const gs::ClassId &id, std::istream &in)
const std::vector< double > & coords() const
bool write(std::ostream &of) const
std::pair< unsigned, double > linearInterval(double coordinate) const
std::vector< double > coords_