1 #ifndef _QG_HISTOGRAM_HH_
2 #define _QG_HISTOGRAM_HH_
97 void SetName(
const char *name = 0);
103 void SetProperty(
const std::string& key,
const std::string& value);
Class for histogram edit window.
Class for GUI histograms.
bool IsXMinSet()
Return true if x-axis minimum is set.
void SetNumberOfBins(Int_t numberOfBins)
Set number of bins.
virtual ~QGHistogram()
Destructor.
bool fAutoSetNumberOfBins
Flag to automatically set the number of bins.
void DrawStyleHistogram()
Draw a mini-histogram showing the style of this histogram.
void Erase()
Erase histogram.
Int_t fNumberOfUniqueDataPoints
Number of unique values among the data points, up to max 100.
Double_t GetXMax() const
Get x-max.
void AutoSetStyle()
Automatically set the histogram style.
Int_t GetNumberOfBins() const
Get number of bins.
Double_t GetXMin() const
Get x-min.
QGHistogram()
Default constructor.
void SetProperty(const std::string &key, const std::string &value)
Set property (used for opening a session)
std::string fDrawOption
Draw option.
bool fAutoSetXMin
Flag to automatically set the x-axis minimum.
void Duplicate()
Duplicate the histogram.
void Display()
Display histogram.
bool IsBinWidthSet()
Return true if bin width is set.
TH1D * fStyleHistogram
Mini-histogram to show style of this histogram.
void SetXMax(Double_t xMax)
Set x-max.
void MakeStylePlot()
Make style plot.
TH1D * GetStyleHistogram()
Get style histogram.
Double_t fBinWidth
Bin width.
const char * GetName() const
Get name of histogram.
bool fAutoSetXMax
Flag to automatically set the x-axis maximum.
std::vector< Double_t > fDataPoints
Collection of points underlying the histogram, useful for instant rebinning.
void DisplayEditWindow()
Display edit window for the histogram.
static const std::list< QGHistogram * > & GetHistograms()
Get collection of histograms.
void SetName(const char *name=0)
Set name of histogram.
Double_t GetBinWidth(Int_t bin=0) const
Get bin width.
void Generate(QChain *chain=0)
Generate histogram.
void SetXMin(Double_t xMin)
Set x-min.
bool IsXMaxSet()
Return true if x-axis maximum is set.
void AutoSetAxisParameters()
Automatically set axis parameters.
void GetParametersFromEditWindow()
Get parameters from edit window.
bool IsNumberOfBinsSet()
Return true if number of bins is set.
bool fIsBinWidthSet
Whether or not bin width is set.
void SetBinWidth(Double_t binWidth)
Set bin width.
static std::list< QGHistogram * > fHistograms
Collection of pointers to all QGHistograms.
Base class for GUI plots including histograms, scatter plots, pulses, and graphical cuts.