1 #ifndef NPSTAT_NUHISTOAXIS_HH_
2 #define NPSTAT_NUHISTOAXIS_HH_
17 #include "Alignment/Geners/interface/ClassId.hh"
21 template <
typename Numeric,
class Axis>
class HistoND;
36 const char*
label = 0);
71 {
label_ = newlabel ? newlabel :
"";}
83 double fltBinNumber(
double x,
bool mapLeftEdgeTo0=
true)
const;
99 inline gs::ClassId
classId()
const {
return gs::ClassId(*
this);}
100 bool write(std::ostream& of)
const;
103 static inline const char*
classname() {
return "npstat::NUHistoAxis";}
112 const char*
label = 0);
121 template <
typename Numeric,
class Axis>
friend class HistoND;
125 const double x,
unsigned* binNum)
const
141 #endif // NPSTAT_NUHISTOAXIS_HH_
unsigned closestValidBin(double x) const
std::vector< double > binEdges_
double rightBinEdge(const int binNum) const
int binNumber(double x) const
unsigned overflowIndex(const double x, unsigned *binNum) const
void setLabel(const char *newlabel)
bool write(std::ostream &of) const
bool operator!=(const NUHistoAxis &) const
double leftBinEdge(const int binNum) const
double binCenter(const int binNum) const
gs::ClassId classId() const
static unsigned version()
Interval< double > interval() const
static NUHistoAxis * read(const gs::ClassId &id, std::istream &in)
bool isClose(const NUHistoAxis &, double tol) const
double fltBinNumber(double x, bool mapLeftEdgeTo0=true) const
Interval< double > binInterval(const int binNum) const
static const char * classname()
bool operator==(const NUHistoAxis &) const
double binWidth(const int binNum) const
const std::string & label() const