14 #include "TGTextEntry.h"
55 set<string>::const_iterator iter;
56 for (iter = aliases.begin(); iter != aliases.end(); ++iter) {
60 for (iter = leaves.begin(); iter != leaves.end(); ++iter) {
72 string windowName =
"Diana GUI: ";
73 windowName += histogram->
GetName();
78 if (histogram->IsXMinSet()) {
81 if (histogram->IsXMaxSet()) {
84 if (histogram->IsBinWidthSet()) {
87 if (histogram->IsNumberOfBinsSet()) {
92 if (histogram->GetCanvasWindow()) {
97 cout <<
"QGHistogramEditWindow::SetPlot(QGPlot *plot) Warning: dynamic_cast<QGHistogram*> failed" << endl;
QGFileHandler * GetFileHandler() const
Get pointer to file handler.
TGListBox * GetCutsListBox()
Get pointer to cuts list box.
QGDropDownBox * GetDropDownBox()
Get drop down box.
void SetCuts(const std::vector< std::string > &cuts)
Set cuts.
void AddEntryS(const std::string &entry)
Add entry.
std::set< std::string > GetSetOfLeaves()
Get the names of the leaves of the tree.
std::set< std::string > GetSetOfAliases()
Get the aliases defined in the tree.
Class for histogram edit window.
QGHistogramEditWindow(const TGWindow *p=0, UInt_t w=280, UInt_t h=450)
Constructor.
QGHistogramParametersFrame * fHistogramParametersFrame
Histogram parameters frame.
QGHistogram * fHistogram
Pointer to QGHistogram.
virtual ~QGHistogramEditWindow()
Destructor.
void ShowHistogramParametersFrame()
Show parameters frame.
void FillVariablesDropDownBoxes()
Fill drop down boxes with variables from the chain.
void SetPlot(QGPlot *plot)
Set pointer to plot.
Part of a histogram edit window for inputting parameters.
void SetNumberOfBins(Int_t n)
Set the number of bins.
void SetXMin(Double_t min)
Set the x-axis minimum.
void AutoSetBinWidth()
Set bin width automatically.
void SetXVariable(const std::string &x)
Set the x-axis variable.
void SetSuperimpose(bool flag=true)
Set whether the superimpose box is checked.
void SetBinWidth(Double_t width)
Set the bin width.
void SetXUnits(const std::string &units)
Set the x-axis units.
QGDropDownBox * GetXDropDownBox()
Get pointer to x-axis variable drop down box.
void SetXMax(Double_t max)
Set the x-axis maximum.
std::string GetXVariable()
Get x-axis variable.
Class for GUI histograms.
const char * GetName() const
Get name of histogram.
Base class for plot edit windows.
void ShowPlotStyleFrame()
Show plot style frame.
void ShowCutsFrame()
Show cuts frame.
QGCutsFrame * fCutsFrame
Cuts frame.
QGPlotEditButtonsFrame * fButtonsFrame
Buttons frame.
void ShowButtonsFrame()
Show buttons frame.
Base class for GUI plots including histograms, scatter plots, pulses, and graphical cuts.
virtual QGCanvasWindow * GetCanvasWindow() const
Get pointer to the canvas window to which the plot is associated.
virtual void SetPlotEditWindow(QGPlotEditWindow *window)
Set plot edit window.
virtual void SetWindowName(const char *name=0)
Set name of window.
std::string Resize(const std::string &s, size_t len)
resize a string to len, adding spaces if necessary