1 #ifndef NPSTAT_GRIDAXIS_HH_
2 #define NPSTAT_GRIDAXIS_HH_
20 #include "Alignment/Geners/interface/ClassId.hh"
38 GridAxis(
const std::vector<double>&
coords,
bool useLogSpace=
false);
39 GridAxis(
const std::vector<double>& coords,
const char*
label,
40 bool useLogSpace=
false);
100 {
return !(*
this ==
r);}
110 {
label_ = newlabel ? newlabel :
"";}
114 inline gs::ClassId
classId()
const {
return gs::ClassId(*
this);}
115 bool write(std::ostream& of)
const;
118 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)
volatile std::atomic< bool > shutdown_flag false
const std::vector< double > & coords() const
bool write(std::ostream &of) const
std::pair< unsigned, double > linearInterval(double coordinate) const
std::vector< double > coords_