7 #ifndef AIDA_IPROFILE1D_H
8 #define AIDA_IPROFILE1D_H 1
15 #include "AIDA/IProfile.h"
38 virtual bool fill(
double x,
double y,
double weight = 1) = 0;
46 virtual double binMean(
int index)
const = 0;
58 virtual double binHeight(
int index)
const = 0;
64 virtual double binError(
int index)
const = 0;
71 virtual double binRms(
int index)
const = 0;
76 virtual double mean()
const = 0;
81 virtual double rms()
const = 0;
virtual double binMean(int index) const =0
The weighted mean of the corresponding bin.
User level interface to a 1-dimensional profile histogram.
Definition: IProfile1D.h:28
virtual double binHeight(int index) const =0
Total height of the corresponding bin (ie the sum of the weights in this bin).
virtual int binEntries(int index) const =0
Number of entries in the corresponding bin (ie the number of times fill was called for this bin)...
User level interface to a Profile histogram.
Definition: IProfile.h:26
virtual double rms() const =0
Returns the rms of the whole profile as calculated on filling-time.
An IAxis represents a binned histogram axis.
Definition: IAxis.h:26
virtual double mean() const =0
Returns the mean of the whole profile as calculated on filling-time.
virtual double binError(int index) const =0
The error on this bin.
virtual int coordToIndex(double coord) const =0
Convenience method, equivalent to axis().coordToIndex(coord).
virtual double binRms(int index) const =0
The spread (RMS) of a bin.
virtual ~IProfile1D()
Destructor.
Definition: IProfile1D.h:32
virtual const IAxis & axis() const =0
Returns the X axis.
virtual bool fill(double x, double y, double weight=1)=0
Fill the IProfile1D.