14 #include "TGTextEntry.h"
62 set<string>::const_iterator iter;
63 for (iter = aliases.begin(); iter != aliases.end(); ++iter) {
69 for (iter = qvectoraliases.begin(); iter != qvectoraliases.end(); ++iter) {
72 for (iter = leaves.begin(); iter != leaves.end(); ++iter) {
77 for (iter = qvectorleaves.begin(); iter != qvectorleaves.end(); ++iter) {
80 && samplesLabel.empty()) samplesLabel = *iter;
91 string windowName =
"Diana GUI: ";
102 if (pulse->GetCanvasWindow()) {
107 cout <<
"QGPulseEditWindow::SetPlot(QGPlot *plot) Warning: dynamic_cast<QGPulse*> failed" << endl;
114 AddFrame(
fEventDataFrame,
new TGLayoutHints(kLHintsExpandX | kLHintsExpandY, 2, 2, 5, 0));
QGFileHandler * GetFileHandler() const
Get pointer to file handler.
Frame to handle editing of cuts.
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 SetLabel(const std::string &label)
Set label.
void AddEntryS(const std::string &entry)
Add entry.
std::set< std::string > GetSetOfQVectorAliases()
Get the aliases defined in the tree.
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.
std::string GetDefaultPulseLabel() const
Get the names of the leaves of the tree.
std::set< std::string > GetSetOfQVectorLeaves()
Get the names of the leaves of the tree.
virtual const char * GetName() const
Get graph name.
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.
Class for pulse edit window.
QGCutsFrame * fEventDataFrame
Event data frame.
void FillVariablesDropDownBoxes()
Fill drop down boxes with variables from the chain.
void ShowEventDataFrame()
Show event data frame.
void ShowPulseParametersFrame()
Show parameters frame.
virtual ~QGPulseEditWindow()
Destructor.
void SetPlot(QGPlot *plot)
Set pointer to the pulse.
void UpdateEventData()
Update event data.
QGPulseParametersFrame * fPulseParametersFrame
Pulse parameters frame.
QGPulseEditWindow(const TGWindow *p=0, UInt_t w=280, UInt_t h=600)
Constructor.
QGPulse * fPulse
Pointer to the QGPulse.
Part of a pulse edit window for inputting parameters.
std::string GetOrderVariable() const
Get ordered-by variable.
void SetSuperimpose(bool flag=true)
Set whether the superimpose box is checked.
QGDropDownBox * GetSamplesLabelDropDownBox()
Get pointer to the samples label drop down box.
void SetOrderVariable(std::string orderVariable)
Set ordered-by variable.
QGDropDownBox * GetOrderedByDropDownBox()
Get pointer to the ordered-by drop down box.
void SetNumberOfEvents(Long_t number)
Set number of events.
void SetEventIndex(Long_t index)
Set event index.
void SetUseADCUnits(bool flag=true)
Set whether the use ADC units box is checked.
std::string GetSamplesLabel() const
Get samples label.
void SetSamplesLabel(std::string samplesVariable)
Set samples label.
Class for GUI pulse plots.
Int_t GetNumberOfEvents()
Get number of events that pass the cuts.
const std::vector< std::string > & GetEventData() const
Get event data for displayed pulse.
Int_t GetEventIndex()
Get event index of displayed pulse.
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