|
JG ROOT Tools libraries
version 5.0 - august 2014
|
#include <RGHistoTools.hh>
Public Member Functions | |
| RGHistoTools (const TGWindow *main=NULL, const string &fname="", const string &hname="", const bool autostart=true) | |
| virtual | ~RGHistoTools () |
| virtual void | Construct () |
| virtual void | ConstructMenu () |
| virtual void | ConstructActions () |
| virtual void | ConstructActionsHisto () |
| virtual void | ConstructActionsDisplay () |
| virtual void | ConstructActionsTools () |
| virtual void | MapSubwindows () |
| virtual void | RemapToolsFrame () |
| virtual void | UpdateWindowTitle () |
| virtual void | Init () |
| virtual void | Clear () |
| virtual Int_t | SetFile (const string &file="") |
| virtual Int_t | SetHisto (const string &histo="") |
| virtual void | PlotHisto () |
| virtual void | MenuActivated (Int_t menu) |
| virtual void | HistoFileReturnPressed () |
| virtual void | HistoNameReturnPressed () |
| virtual void | HistoFileBrowseButton () |
| virtual void | HistoSelectButton () |
| virtual void | HistoPrevButton () |
| virtual void | HistoNextButton () |
| virtual void | HistoAttChanged (const bool redraw=true) |
| virtual void | PlotModeChanged (const bool redraw=true) |
| virtual void | StatButtonClicked () |
| virtual void | PeakFitButtonClicked () |
| virtual void | DecayFitButtonClicked () |
| virtual void | Gaus2DFitButtonClicked () |
| ClassDef (RGHistoTools, 0) | |
Public Member Functions inherited from RGHistoWindow | |
| RGHistoWindow (const TGWindow *main=NULL, TH1 *hptr=NULL, const string plot_opt="", const UInt_t opts=0, const bool construct=true, const bool autostart=true) | |
| RGHistoWindow (const RGHistoWindow &original) | |
| RGHistoWindow & | operator= (const RGHistoWindow &original) |
| virtual | ~RGHistoWindow () |
| virtual void | ConstructLimits () |
| virtual void | Request () |
| virtual void | Quit () |
| TGCompositeFrame * | GetUpperFrame () |
| TGHorizontalFrame * | GetMiddleFrame () |
| TGCompositeFrame * | GetMiddleLeftFrame () |
| TGHorizontalFrame * | GetCenterFrame () |
| TGCompositeFrame * | GetUpperCanvasFrame () |
| TGVerticalFrame * | GetCanvasFrame () |
| TGCompositeFrame * | GetMiddleRightFrame () |
| TGCompositeFrame * | GetLowerFrame () |
| TGVerticalFrame * | GetToolsFrame () |
| TGCompositeFrame * | GetUpperToolsFrame () |
| virtual void | PadEvent (Int_t event, Int_t x, Int_t y, TObject *selected) |
| virtual void | SetPositionNul () |
| virtual void | SetPositionHisto (const Double_t xh, const Double_t yh) |
| virtual void | SetPositionXAxis (const Double_t xh) |
| virtual void | SetPositionYAxis (const Double_t yh) |
| virtual void | SetPositionZAxis (const Double_t zh) |
| virtual void | XAxisChanged () |
| virtual void | YAxisChanged () |
| virtual void | ZAxisChanged () |
| virtual void | ArrowKeyLeft () |
| virtual void | ArrowKeyRight () |
| virtual void | ArrowKeyUp () |
| virtual void | ArrowKeyDown () |
| virtual void | ZoomInKey () |
| virtual void | ZoomOutKey () |
| virtual void | Reset () |
| virtual Int_t | SetHisto (TH1 *hptr, const bool reset=false) |
| virtual Int_t | SetHisto (TH1 *hptr, const bool reset, const bool redraw) |
| virtual void | Redraw () |
| virtual void | UpdateLimits () |
| virtual bool | SetXLog (const Bool_t b=kTRUE) |
| virtual bool | SetYLog (const Bool_t b=kTRUE) |
| virtual bool | SetZLog (const Bool_t b=kTRUE) |
| virtual void | SetXFull (const Bool_t redraw) |
| virtual void | SetYFull (const Bool_t redraw) |
| virtual void | SetZFull (const Bool_t redraw) |
| virtual void | SetXFull () |
| virtual void | SetYFull () |
| virtual void | SetZFull () |
| virtual void | LogXToggled (Bool_t b) |
| virtual void | LogYToggled (Bool_t b) |
| virtual void | LogZToggled (Bool_t b) |
| virtual void | XValueChanged () |
| virtual void | YValueChanged () |
| virtual void | ZValueChanged () |
| virtual void | XFullButtonClicked () |
| virtual void | YFullButtonClicked () |
| virtual void | ZFullButtonClicked () |
| virtual void | UnzoomButtonClicked () |
| virtual void | AutoButtonClicked () |
| virtual void | AnglesChanged () |
| ClassDef (RGHistoWindow, 0) | |
Public Member Functions inherited from RGFrameEvent | |
| RGFrameEvent (TVirtualPad *pad=gPad) | |
| RGFrameEvent (const RGFrameEvent &original) | |
| RGFrameEvent & | operator= (const RGFrameEvent &original) |
| virtual | ~RGFrameEvent () |
| virtual void | PadClosed () |
| virtual void | KeyPressed (const Int_t x, const Int_t y) |
| virtual void | AltKeyPressed () |
| virtual void | CtrlKeyPressed () |
| virtual void | ShiftKeyPressed () |
| virtual void | ReturnKeyPressed () |
| virtual void | MouseButton1Up (const Double_t x, const Double_t y) |
| virtual void | MouseButton1Down (const Double_t x, const Double_t y) |
| virtual void | MouseButton1Double (const Double_t x, const Double_t y) |
| virtual void | MouseButton1Locate (const Double_t x, const Double_t y) |
| virtual void | MouseButton1Motion (const Double_t x, const Double_t y) |
| virtual void | MouseButton2Up (const Double_t x, const Double_t y) |
| virtual void | MouseButton2Down (const Double_t x, const Double_t y) |
| virtual void | MouseButton2Double (const Double_t x, const Double_t y) |
| virtual void | MouseButton2Locate (const Double_t x, const Double_t y) |
| virtual void | MouseButton2Motion (const Double_t x, const Double_t y) |
| virtual void | MouseButton3Up (const Double_t x, const Double_t y) |
| virtual void | MouseButton3Down (const Double_t x, const Double_t y) |
| virtual void | MouseButton3Double (const Double_t x, const Double_t y) |
| virtual void | MouseButton3Locate (const Double_t x, const Double_t y) |
| virtual void | MouseButton3Motion (const Double_t x, const Double_t y) |
| virtual void | Locate (const Double_t x, const Double_t y) |
| virtual void | AnyEvent (const Double_t x, const Double_t y) |
| ClassDef (RGFrameEvent, 0) | |
Public Member Functions inherited from RGHistoLimits | |
| RGHistoLimits (TH1 *hptr=NULL) | |
| RGHistoLimits (const RGHistoLimits &original) | |
| RGHistoLimits & | operator= (const RGHistoLimits &original) |
| virtual void | Affect (const RGHistoLimits &original) |
| virtual | ~RGHistoLimits () |
| virtual bool | IsDataSet () const |
| virtual void | Unzoom () |
| ClassDef (RGHistoLimits, 0) | |
Protected Member Functions | |
| RGHistoTools (const RGHistoTools &original) | |
| void | ClassInit () |
| virtual void | UpdateDisplay () |
| virtual void | FileSelected () |
| virtual void | HistoSelected (const bool redraw=true) |
| virtual TH1 * | SelectSimilarHisto (const bool current=false) |
| virtual void | PrintPad () const |
| virtual void | ExportPad () const |
Protected Member Functions inherited from RGHistoWindow | |
| void | ClassInit () |
Protected Member Functions inherited from RGHistoLimits | |
| virtual void | Set1DHisto (const TH1 *hptr) |
| virtual void | Set2DHisto (const TH1 *hptr) |
| virtual void | Set3DHisto (const TH1 *hptr) |
Protected Attributes | |
| bool | constructed |
| Flag if GUI is constructed. | |
| const TGWindow * | main_window |
| Main window of calling application. | |
| TAttLine | att_line_1d |
| 1D histograms attributes | |
| TAttFill | att_fill_1d |
| 1D histograms attributes | |
| TAttLine | att_line_2d |
| 2D histograms attributes | |
| TAttMarker | att_marker_2d |
| 2D histograms attributes | |
| TAttLine | att_fill_2d |
| 2D histograms attributes | |
| TAttMarker | att_marker_3d |
| 3D histograms attributes | |
| Int_t | previous_dim |
| Previously displayed histogram dimension. | |
| Int_t | histo_num |
| Number of histograms read in the file. | |
| Int_t | histo_sel |
| Selected histogram number (none = -1) | |
| TH1 ** | histo_list |
| Array of histogram pointers. | |
| string * | histo_names |
| Array of histogram names. | |
| RFitDataPeak * | peak_fit_data |
| Fit data. | |
| RFitDataDecay * | decay_fit_data |
| Fit data. | |
| RFitDataGaus2D * | gaus2d_fit_data |
| Fit data. | |
| TGMenuBar * | w_menu_bar |
| Application menu bar. | |
| TGPopupMenu * | w_menu_file |
| Files menu. | |
| TGPopupMenu * | w_menu_histo |
| Histogram menu. | |
| TGPopupMenu * | w_menu_histo_fit |
| Histogram fit menu. | |
| TGVerticalFrame * | w_action_frame |
| Actions frame. | |
| TGGroupFrame * | w_histo_group |
| Histogram information frame. | |
| TGVerticalFrame * | w_histo_frame_v1 |
| Labels frame. | |
| TGVerticalFrame * | w_histo_frame_v2 |
| Frame for inputs. | |
| TGTextEntry * | w_histo_file_entry |
| File name widget. | |
| TGHorizontalFrame * | w_histo_name_frame |
| Frame for histogram selection. | |
| TGTextEntry * | w_histo_name_entry |
| Histogram name widget. | |
| TGTextButton * | w_histo_prev |
| Previous histogram button. | |
| TGTextButton * | w_histo_next |
| Next histogram button. | |
| TGVerticalFrame * | w_histo_frame_v3 |
| Buttons frame. | |
| TGTextButton * | w_histo_file_browse |
| File browse button. | |
| TGTextButton * | w_histo_select |
| Histogram selection button. | |
| RGHistoPlotAttrSelect * | w_histo_1d_attr |
| 1D histogram attributes widget | |
| RGHistoPlotAttrSelect * | w_histo_2d_attr |
| 2D histogram attributes widget | |
| RGHistoPlotAttrSelect * | w_histo_3d_attr |
| 3D histogram attributes widget | |
| TGGroupFrame * | w_tools_group |
| Tools frame. | |
| TGHorizontalFrame * | w_fit_frame |
| Fit tools frams. | |
| TGCheckButton * | w_fit_error_button |
| Fit with error histogram button. | |
| TGTextButton * | w_stat_button |
| Statistics button. | |
| TGTextButton * | w_fit_peak_button |
| Fit button. | |
| TGTextButton * | w_fit_decay_button |
| Fit button. | |
| TGTextButton * | w_fit_gaus2d_button |
| Fit button. | |
| TGHorizontalFrame * | w_buttons_frame |
| Buttons frame. | |
Protected Attributes inherited from RGHistoWindow | |
| UInt_t | options |
| Window options. | |
| bool | limits_widgets |
| Flag indicating if histogram limits widgets are created. | |
| TCanvas * | canvas_ptr |
| Canvas pointer. | |
| TH1 * | histo_ptr |
| Histogram pointer. | |
| bool | histo_copy |
| Flag if the class works with a copy of the histogram. | |
| string | plot_mode |
| ROOT options for histogram display. | |
| bool | inhibit_slot |
| Prevents recursive calls. | |
| TRootEmbeddedCanvas * | w_canvas |
| Pointer to embedded canvas. | |
| TGCompositeFrame * | w_upper_frame |
| Upper base frame. | |
| TGHorizontalFrame * | w_middle_frame |
| Middle base frame. | |
| TGCompositeFrame * | w_middle_left_frame |
| Middle left frame. | |
| TGHorizontalFrame * | w_center_frame |
| Middle center frame. | |
| TGCompositeFrame * | w_upper_canvas_frame |
| Base frame on top of pad. | |
| TGCompositeFrame * | w_middle_right_frame |
| Middle right frame. | |
| TGCompositeFrame * | w_lower_frame |
| Lower base frame. | |
| TGVerticalFrame * | w_canvas_frame |
| Canvas frame. | |
| TGVSplitter * | w_splitter |
| Frames separator. | |
| TGVerticalFrame * | w_tools_frame |
| Tools frame. | |
| TGLabel * | w_position_line |
| Position information line. | |
| TGCompositeFrame * | w_upper_tools_frame |
| Upper frame for additionnal widgets. | |
| TGGroupFrame * | w_limits_frame |
| Frame for plot limits. | |
| TGHorizontalFrame * | w_axis_frame |
| Sous-cadre des axes. | |
| TGVerticalFrame * | w_axis_name_frame |
| Cadre labels des axes. | |
| TGLabel * | w_x_label |
| Labels. | |
| TGLabel * | w_y_label |
| Labels. | |
| TGLabel * | w_z_label |
| Labels. | |
| TGVerticalFrame * | w_axis_log_frame |
| Cadre boutons échelle log. | |
| TGCheckButton * | w_x_log_button |
| Bouton échelle log. | |
| TGCheckButton * | w_y_log_button |
| Bouton échelle log. | |
| TGCheckButton * | w_z_log_button |
| Bouton échelle log. | |
| TGVerticalFrame * | w_axis_min_label |
| Cadre labels valeurs min. | |
| TGLabel * | w_min_label [3] |
| Labels. | |
| TGVerticalFrame * | w_axis_min_value |
| Cadre valeurs min. | |
| TGNumberEntry * | w_x_min_entry |
| Saisie valeur mini. | |
| TGNumberEntry * | w_y_min_entry |
| Saisie valeur mini. | |
| TGNumberEntry * | w_z_min_entry |
| Saisie valeur mini. | |
| TGVerticalFrame * | w_axis_max_label |
| Cadre labels valeurs max. | |
| TGLabel * | w_max_label [3] |
| Labels. | |
| TGVerticalFrame * | w_axis_max_value |
| Cadre valeurs min. | |
| TGNumberEntry * | w_x_max_entry |
| Saisie valeur maxi. | |
| TGNumberEntry * | w_y_max_entry |
| Saisie valeur maxi. | |
| TGNumberEntry * | w_z_max_entry |
| Saisie valeur maxi. | |
| TGVerticalFrame * | w_axis_full_frame |
| Cadre boutons pleine échelle. | |
| TGTextButton * | w_x_full_button |
| Bouton pleine échelle. | |
| TGTextButton * | w_y_full_button |
| Bouton pleine échelle. | |
| TGTextButton * | w_z_full_button |
| Bouton pleine échelle. | |
| TGVerticalFrame * | w_zoom_frame |
| Cadre boutons zoom. | |
| TGTextButton * | w_unzoom_button |
| Bouton unzoom. | |
| TGTextButton * | w_auto_button |
| Bouton échelle automatique. | |
| TGHorizontalFrame * | w_angles_frame |
| Cadre des angles. | |
| TGNumberEntry * | w_theta_entry |
| Saisie de l'angle. | |
| TGNumberEntry * | w_phi_entry |
| Saisie de l'angle. | |
Protected Attributes inherited from RGFrameEvent | |
| TVirtualPad * | pad_ptr |
| Pointer to pad where events are processed. | |
Protected Attributes inherited from RGHistoLimits | |
| Int_t | dimension |
| Histogram dimension. | |
| Double_t | lim_x_min |
| Axis lower limit. | |
| Double_t | lim_x_max |
| Axis upper limit. | |
| Double_t | lim_y_min |
| Axis lower limit. | |
| Double_t | lim_y_max |
| Axis upper limit. | |
| Double_t | lim_z_min |
| Axis lower limit. | |
| Double_t | lim_z_max |
| Axis upper limit. | |
| Double_t | log_x_min |
| Lower limit for log scale. | |
| Double_t | log_y_min |
| Lower limit for log scale. | |
| Double_t | log_z_min |
| Lower limit for log scale. | |
| bool | allow_x_log |
| Test if log scale allowed. | |
| bool | allow_y_log |
| Test if log scale allowed. | |
| bool | allow_z_log |
| Test if log scale allowed. | |
| Double_t | x_min |
| Current display lower bound. | |
| Double_t | x_max |
| Current display upper bound. | |
| Double_t | y_min |
| Current display lower bound. | |
| Double_t | y_max |
| Current display upper bound. | |
| Double_t | z_min |
| Current display lower bound. | |
| Double_t | z_max |
| Current display upper bound. | |
| bool | x_log |
| Log scale status. | |
| bool | y_log |
| Log scale status. | |
| bool | z_log |
| Log scale status. | |
Static Protected Attributes | |
| static string | root_file_name = "" |
| Histogram file name. | |
| static string | export_name = "" |
| Exported file name. | |
Private Types | |
| enum | HistoToolsMenus { menuHTFileOpen = 0x00000001, menuHTFileSave = 0x00000002, menuHTFileSaveSelection = 0x00000003, menuHTFileExport = 0x00000011, menuHTFilePrint = 0x00000012, menuHTFileQuit = 0x00000015, menuHTHistoSelect = 0x00000100, menuHTHistoStat = 0x00000140, menuHTHistoFitPeak = 0x00000141, menuHTHistoFitDecay = 0x00000142, menuHTHistoFitGaus2D = 0x00000143 } |
| ! Interface menus identification | |
Private Member Functions | |
| GObject (RGHistoTools) | |
Additional Inherited Members | |
Static Public Attributes inherited from RGHistoWindow | |
| static UInt_t | canvas_width = 600 |
| Default canvas width. | |
| static UInt_t | canvas_height = 900 |
| Default canvas height. | |
This class defines a graphical user interface to display histograms from ROOT files.
It also proposes several simple tools for histograms: statistics, fitting tools,...
| RGHistoTools::RGHistoTools | ( | const TGWindow * | main = NULL, |
| const string & | fname = "", |
||
| const string & | hname = "", |
||
| const bool | autostart = true |
||
| ) |
Constructor
| main | main application window |
| fname | ROOT histograms file name |
| hname | name of histogram to display |
| autostart | start interface in constructor |
References ClassInit(), Construct(), Init(), RGHistoWindow::Request(), SetFile(), and SetHisto().
|
protected |
|
virtual |
Destructor
References Clear(), decay_fit_data, gaus2d_fit_data, and peak_fit_data.
|
private |
Macro from GCpp library that defines the following functions:
|
protected |
Initialization function, called by constructors.
References constructed, decay_fit_data, gaus2d_fit_data, histo_list, histo_names, histo_num, histo_sel, main_window, peak_fit_data, previous_dim, w_action_frame, w_buttons_frame, w_fit_decay_button, w_fit_error_button, w_fit_frame, w_fit_gaus2d_button, w_fit_peak_button, w_histo_1d_attr, w_histo_2d_attr, w_histo_3d_attr, w_histo_file_browse, w_histo_file_entry, w_histo_frame_v1, w_histo_frame_v2, w_histo_frame_v3, w_histo_group, w_histo_name_entry, w_histo_name_frame, w_histo_next, w_histo_prev, w_histo_select, w_menu_bar, w_menu_file, w_menu_histo, w_menu_histo_fit, w_stat_button, and w_tools_group.
Referenced by RGHistoTools().
|
virtual |
Construction of the interface: widgets and embedded canvas set-up.
Reimplemented from RGHistoWindow.
References RGHistoWindow::Construct(), ConstructActions(), constructed, ConstructMenu(), and UpdateDisplay().
Referenced by RGHistoTools().
|
virtual |
Construction of the interface: application menus.
References rDico, RDico::rght_menu_file, RDico::rght_menu_file_export, RDico::rght_menu_file_load, RDico::rght_menu_file_print, RDico::rght_menu_file_quit, RDico::rght_menu_file_save, RDico::rght_menu_file_save_select, RDico::rght_menu_histo, RDico::rght_menu_histo_fit, RDico::rght_menu_histo_fit_decay, RDico::rght_menu_histo_fit_gaus2d, RDico::rght_menu_histo_fit_peak, RDico::rght_menu_histo_select, RDico::rght_menu_histo_stat, w_menu_bar, w_menu_file, w_menu_histo, and w_menu_histo_fit.
Referenced by Construct().
|
virtual |
Construction of the interface: application tools.
References ConstructActionsDisplay(), ConstructActionsHisto(), and ConstructActionsTools().
Referenced by Construct().
|
virtual |
Construction of the interface: histogram information tools.
References rDico, RDico::rght_file_browse, RDico::rght_file_browse_tip, RDico::rght_histo_file, RDico::rght_histo_grp, RDico::rght_histo_name, RDico::rght_histo_next, RDico::rght_histo_next_tip, RDico::rght_histo_prev, RDico::rght_histo_prev_tip, RDico::rght_histo_select, RDico::rght_histo_select_tip, w_histo_file_browse, w_histo_file_entry, w_histo_frame_v1, w_histo_frame_v2, w_histo_frame_v3, w_histo_group, w_histo_name_entry, w_histo_name_frame, w_histo_next, w_histo_prev, w_histo_select, and RGHistoWindow::w_upper_tools_frame.
Referenced by ConstructActions().
|
virtual |
Construction of the interface: display tools.
References w_histo_1d_attr, w_histo_2d_attr, w_histo_3d_attr, and RGHistoWindow::w_limits_frame.
Referenced by ConstructActions().
|
virtual |
Construction of the interface: histogram tools.
References rDico, RDico::rght_tools_decay, RDico::rght_tools_decay_tip, RDico::rght_tools_fit_err, RDico::rght_tools_fit_err_tip, RDico::rght_tools_gaus2d, RDico::rght_tools_gaus2d_tip, RDico::rght_tools_grp, RDico::rght_tools_peak, RDico::rght_tools_peak_tip, RDico::rght_tools_stat, RDico::rght_tools_stat_tip, w_fit_decay_button, w_fit_error_button, w_fit_frame, w_fit_gaus2d_button, w_fit_peak_button, w_stat_button, RGHistoWindow::w_tools_frame, and w_tools_group.
Referenced by ConstructActions().
|
virtual |
Map the interface widgets.
Reimplemented from RGHistoWindow.
References RGHistoWindow::MapSubwindows(), and RemapToolsFrame().
|
virtual |
Display widgets according to histogram type.
Reimplemented from RGHistoWindow.
References RGHistoWindow::histo_ptr, RGHistoPlotAttrSelect::MapSubwindows(), RGFrameEvent::pad_ptr, RGHistoWindow::RemapToolsFrame(), RGHistoPlotAttrSelect::SetAngles(), RGHistoPlotAttrSelect::SetState(), RGHistoWindow::UpdateLimits(), RGHistoWindow::w_center_frame, w_fit_decay_button, w_fit_gaus2d_button, w_fit_peak_button, w_histo_1d_attr, w_histo_2d_attr, w_histo_3d_attr, RGHistoWindow::w_limits_frame, w_menu_file, w_menu_histo, w_menu_histo_fit, RGHistoWindow::w_middle_frame, w_stat_button, and RGHistoWindow::w_tools_frame.
Referenced by MapSubwindows(), and PlotModeChanged().
|
virtual |
Update window title from histogram name.
Reimplemented from RGHistoWindow.
References RGHistoWindow::histo_ptr, rDico, RDico::rghw_title, RDico::rghw_unnamed_histo, and root_file_name.
|
virtual |
Interface initialization.
References histo_list, histo_names, histo_num, RGHistoWindow::histo_ptr, histo_sel, and root_file_name.
Referenced by RGHistoTools().
|
virtual |
Clear interface data.
References histo_list, histo_names, histo_num, RGHistoWindow::histo_ptr, and RGHistoWindow::Reset().
Referenced by SetFile(), and ~RGHistoTools().
|
virtual |
Select a ROOT histogram file. If no argument file name is given, the name from file name widget is used. The function returns 0 if no error occured and the file contains histograms. The first histogram is displayed.
| file | file name |
References RDico::brq_continue, RDico::brq_error, Clear(), constructed, FileSelected(), histo_list, histo_names, histo_num, rDico, RGetHistoNames(), RDico::rght_err_no_file, RDico::rght_err_no_histo, RDico::rght_err_null_file, root_file_name, w_histo_file_entry, and RGHistoWindow::w_tools_frame.
Referenced by HistoFileBrowseButton(), HistoFileReturnPressed(), and RGHistoTools().
|
virtual |
Select histogram to display. If no argument histogram name is given, the name from histogram name widget is used. The function returns 0 if the histogram could be selected, 1 if the first histogram was selected by default, 2 if no histogram is selected.
| histo | histogram name |
References RDico::brq_continue, RDico::brq_error, constructed, histo_list, histo_num, RGHistoWindow::histo_ptr, histo_sel, HistoSelected(), previous_dim, rDico, RDico::rght_err_histo_not_found, RGHistoWindow::SetHisto(), w_histo_name_entry, and RGHistoWindow::w_tools_frame.
Referenced by FileSelected(), HistoNameReturnPressed(), HistoNextButton(), HistoPrevButton(), HistoSelectButton(), and RGHistoTools().
|
virtual |
Function called by Redraw() for effective histogram plot.
Reimplemented from RGHistoWindow.
References RGHistoWindow::canvas_ptr, RGHistoPlotAttrSelect::DrawHisto(), RGHistoWindow::histo_ptr, w_histo_1d_attr, w_histo_2d_attr, and w_histo_3d_attr.
|
protectedvirtual |
Full interface update.
References constructed, FileSelected(), RGHistoWindow::histo_ptr, HistoSelected(), root_file_name, w_histo_file_entry, and w_histo_name_entry.
Referenced by Construct().
|
protectedvirtual |
Update interface after file change.
References histo_names, histo_num, root_file_name, SetHisto(), w_histo_file_entry, w_histo_name_entry, and w_histo_select.
Referenced by SetFile(), and UpdateDisplay().
|
protectedvirtual |
Update the interface after selection of a new histogram.
| redraw | indicate if the histogram must be redrawn |
References histo_num, RGHistoWindow::histo_ptr, histo_sel, PlotModeChanged(), RGHistoWindow::Redraw(), RGHistoPlotAttrSelect::SetAttributes(), w_histo_1d_attr, w_histo_2d_attr, w_histo_3d_attr, w_histo_name_entry, w_histo_next, w_histo_prev, and w_histo_select.
Referenced by SetHisto(), and UpdateDisplay().
|
protectedvirtual |
Start a selection requester for an histogram with same characteristics than currently selected histogram.
| current | current histogram is in the selection list |
References RDico::brq_ok_cancel, RGHistoLimits::dimension, histo_list, histo_names, histo_num, RGHistoWindow::histo_ptr, rDico, RDico::rght_tools_err_select_title, and RGHistoWindow::w_tools_frame.
Referenced by DecayFitButtonClicked(), Gaus2DFitButtonClicked(), and PeakFitButtonClicked().
|
protectedvirtual |
Slot for plot print menu.
References RGHistoWindow::canvas_ptr, RDico::prrq_print_buttons, RDico::prrq_print_message, RDico::prrq_print_title, and rDico.
Referenced by MenuActivated().
|
protectedvirtual |
Slot for plot export menu.
References RGHistoWindow::canvas_ptr, export_name, and rExportFileTypes.
Referenced by MenuActivated().
|
virtual |
Menu slot.
| menu | menu identifier |
References DecayFitButtonClicked(), ExportPad(), Gaus2DFitButtonClicked(), HistoFileBrowseButton(), HistoSelectButton(), PeakFitButtonClicked(), PrintPad(), RGHistoWindow::Quit(), and StatButtonClicked().
|
virtual |
Slot called when CR (carriage return) is hit in file name widget, to validate selection.
References SetFile(), w_histo_file_entry, and w_histo_name_entry.
|
virtual |
Slot called when CR (carriage return) is hit in histogram name widget, to validate selection.
References RGHistoWindow::histo_ptr, SetHisto(), and w_histo_name_entry.
|
virtual |
Slot for file selection button.
References root_file_name, rRootFileTypes, SetFile(), w_histo_file_entry, and RGHistoWindow::w_tools_frame.
Referenced by MenuActivated().
|
virtual |
Slot for histogram selection button.
References RDico::brq_ok_cancel, histo_names, histo_num, RGHistoWindow::histo_ptr, rDico, RDico::rght_histo_select_title, SetHisto(), w_histo_name_entry, and RGHistoWindow::w_tools_frame.
Referenced by MenuActivated().
|
virtual |
Slot for previous histogram selection button.
References histo_names, histo_sel, and SetHisto().
|
virtual |
Slot for next histogram selection button.
References histo_names, histo_num, histo_sel, and SetHisto().
|
virtual |
Slot for histogram attributes changes.
| redraw | flag to redraw histogram |
References RGHistoPlotAttrSelect::AttrToHisto(), RGHistoWindow::histo_ptr, RGHistoWindow::Redraw(), w_histo_1d_attr, w_histo_2d_attr, and w_histo_3d_attr.
|
virtual |
Slot for histogram plot mode changes.
| redraw | flag to redraw histogram |
References RGHistoLimits::dimension, RGHistoPlotAttrSelect::GetPlotOption(), RGHistoWindow::plot_mode, RGHistoWindow::Redraw(), RemapToolsFrame(), w_histo_1d_attr, w_histo_2d_attr, and w_histo_3d_attr.
Referenced by HistoSelected().
|
virtual |
Slot for statistics button.
References RGHistoWindow::histo_ptr, RGHistoLimits::lim_x_max, RGHistoLimits::lim_x_min, RGHistoLimits::lim_y_max, RGHistoLimits::lim_y_min, RGHistoLimits::lim_z_max, RGHistoLimits::lim_z_min, rDico, RDico::rght_tools_stat_buttons, RDico::rght_tools_stat_title, RGHistoWindow::w_tools_frame, RGHistoLimits::x_max, RGHistoLimits::x_min, RGHistoLimits::y_max, RGHistoLimits::y_min, RGHistoLimits::z_max, and RGHistoLimits::z_min.
Referenced by MenuActivated().
|
virtual |
Slot for fit button.
References RGFitPeak::CreateFitData(), RFitData1D::GetFitXmax(), RFitData1D::GetFitXmin(), RFitData1D::GetPlotXmin(), RGFitBase1D::GetReturnValue(), RGHistoWindow::histo_ptr, RGHistoLimits::lim_x_min, peak_fit_data, RGFitPeak::Request(), SelectSimilarHisto(), RFitData1D::SetPlotLimits(), w_fit_error_button, RGHistoLimits::x_max, and RGHistoLimits::x_min.
Referenced by MenuActivated().
|
virtual |
Slot for fit button.
References RGFitDecay::CreateFitData(), decay_fit_data, RFitData1D::GetFitXmax(), RFitData1D::GetFitXmin(), RFitData1D::GetPlotXmin(), RGFitBase1D::GetReturnValue(), RGHistoWindow::histo_ptr, RGHistoLimits::lim_x_min, RGFitDecay::Request(), SelectSimilarHisto(), RFitData1D::SetPlotLimits(), w_fit_error_button, RGHistoLimits::x_max, and RGHistoLimits::x_min.
Referenced by MenuActivated().
|
virtual |
Slot for fit button.
References gaus2d_fit_data, RFitData1D::GetFitXmax(), RFitData1D::GetFitXmin(), RFitData2D::GetFitYmax(), RFitData2D::GetFitYmin(), RFitData1D::GetPlotXmin(), RFitData2D::GetPlotYmin(), RGHistoWindow::histo_ptr, RGHistoLimits::lim_x_min, RGHistoLimits::lim_y_min, RGFitGaus2D::Request(), SelectSimilarHisto(), RFitData2D::SetPlotLimits(), w_fit_error_button, RGHistoLimits::x_max, RGHistoLimits::x_min, RGHistoLimits::y_max, and RGHistoLimits::y_min.
Referenced by MenuActivated().
| RGHistoTools::ClassDef | ( | RGHistoTools | , |
| 0 | |||
| ) |
For ROOT dictionary.