![]() |
KaliVeda
Toolkit for HIC analysis
|
Graphical interface tool for managing, creating, testing and fitting identification grids.
Definition at line 29 of file KVIDGridManagerGUI.h.
#include <KVIDGridManagerGUI.h>
Public Member Functions | |
KVIDGridManagerGUI () | |
virtual | ~ KVIDGridManagerGUI () |
void | ActivateToolbarButtons () |
disable all buttons More... | |
ClassDef (KVIDGridManagerGUI, 0) TFile *TestIdentificationWithTree(KVIDGraph *gr | |
void | ClearGrid () |
deletes all lines in currently selected grid(s) More... | |
void | CloseWindow () |
close viewer More... | |
void | CopyGrid () |
void | CreateAndFillTabs () |
void | DeleteAllGridsInTab () |
delete the all grids in currently selected tab More... | |
void | DeleteGrids () |
delete the current selected grid, or all currently selected grids if there are more than one More... | |
void | DeleteSelectedGrids () |
warning message and confirmation More... | |
void | FitGrid () |
Int_t | GetNSelected () |
returns current number of selected items in grid list More... | |
void | HandleGridsMenu (Int_t id) |
Receive signals emitted by items selected in Grids menu. More... | |
void | MergeGrids () |
void | NewCut () |
void | NewGrid () |
void | NewIDContour () |
void | NewIDLine () |
void | OpenFile () |
void | OpenRootFile () |
void | Quit () |
void | RemoveEmptyTabs () |
Recursively remove any empty tabs. More... | |
void | SaveCurrent () |
void | SaveGridsAs (const TCollection *=0) |
void | SelectionChanged () |
void | SetIDTelescopes () |
Set ID telescopes for selected grid. More... | |
void | ShowListOfLines () |
void | StartEditor () |
void | StartEditor (TObject *) |
Info("StartEditor(TObject*)", "obj=%p", o);. More... | |
void | TabSelect (Int_t) |
called when a new tab is selected More... | |
void | TestGrid () |
void | TestTreeGrid () |
void | UpdateListOfGrids () |
void | UpdateListOfLines () |
void | UpdateTabs () |
Public Attributes | |
const Char_t * | name_of_data_histo |
Private Types | |
enum | { M_GRIDS_NEW , M_GRIDS_READ , M_GRIDS_SAVE_SEL , M_GRIDS_SAVE_TAB , M_GRIDS_SAVE_ALL , M_GRIDS_DEL_SEL , M_GRIDS_DEL_TAB , M_GRIDS_DEL_ALL , M_GRIDS_SET_RUNLIST , M_GRIDS_SET_VARX , M_GRIDS_SET_VARY , M_GRIDS_SET_MASSFORM , M_GRIDS_SET_ZID , M_GRIDS_CLEAR , ID_LIST_BOX , M_QUIT } |
Private Member Functions | |
TCollection * | GetAllGridsInTab () |
void | SetStatus (const Char_t *text="") |
Private Attributes | |
KVListView * | fCUTInfoList |
list of lines in currently selected grid More... | |
KVListView * | fCUTList |
list of lines in currently selected grid More... | |
TString | fFileName |
Int_t | fFirstGrid |
TGTab * | fGridListTabs |
tabs with lists of grids More... | |
TGHorizontalFrame * | fHframe |
KVIDGridEditor * | fIDGridEditor |
ID grid editor. More... | |
KVListView * | fIDGridList |
list of grids in current tab More... | |
KVListView * | fIDLineList |
list of lines in currently selected grid More... | |
Int_t | fLastGrid |
KVIDGraph * | fLastSelectedGrid |
TGMenuBar * | fMenuBar |
TGLayoutHints * | fMenuBarHelpLayout |
TGLayoutHints * | fMenuBarItemLayout |
TGPopupMenu * | fMenuEdit |
TGPopupMenu * | fMenuFile |
TGMainFrame* fMain;. More... | |
TGPopupMenu * | fMenuHelp |
Int_t | fNbButtons |
std::unique_ptr< TList > | fSelectedEntries |
KVIDGraph * | fSelectedGrid |
TGStatusBar * | fStatusBar |
TGButton * | fTBbuttons [50] |
TGButton * | fTBCopyG |
TGButton * | fTBDelG |
TGButton * | fTBFit |
TGButton * | fTBNewCut |
TGButton * | fTBNewG |
TGButton * | fTBNewIDC |
TGButton * | fTBNewIDL |
TGButton * | fTBOpen |
TGButton * | fTBOpenRoot |
TGButton * | fTBRefresh |
TGButton * | fTBSave |
TGButton * | fTBSetIDG |
TGButton * | fTBStartEditor |
TGButton * | fTBTest |
TGButton * | fTBTestTree |
TGToolBar * | fToolBar |
|
private |
Definition at line 35 of file KVIDGridManagerGUI.h.
KVIDGridManagerGUI::KVIDGridManagerGUI | ( | ) |
Definition at line 33 of file KVIDGridManagerGUI.cpp.
|
virtual |
void KVIDGridManagerGUI::ActivateToolbarButtons | ( | ) |
disable all buttons
Definition at line 1197 of file KVIDGridManagerGUI.cpp.
KVIDGridManagerGUI::ClassDef | ( | KVIDGridManagerGUI | , |
0 | |||
) |
void KVIDGridManagerGUI::ClearGrid | ( | ) |
deletes all lines in currently selected grid(s)
Definition at line 704 of file KVIDGridManagerGUI.cpp.
void KVIDGridManagerGUI::CloseWindow | ( | ) |
close viewer
Definition at line 304 of file KVIDGridManagerGUI.cpp.
void KVIDGridManagerGUI::CopyGrid | ( | ) |
Definition at line 730 of file KVIDGridManagerGUI.cpp.
void KVIDGridManagerGUI::CreateAndFillTabs | ( | ) |
create a tab for each type of ID telescope put a list box for ID grid names on each tab
Definition at line 864 of file KVIDGridManagerGUI.cpp.
void KVIDGridManagerGUI::DeleteAllGridsInTab | ( | ) |
delete the all grids in currently selected tab
Definition at line 667 of file KVIDGridManagerGUI.cpp.
void KVIDGridManagerGUI::DeleteGrids | ( | ) |
delete the current selected grid, or all currently selected grids if there are more than one
Definition at line 640 of file KVIDGridManagerGUI.cpp.
void KVIDGridManagerGUI::DeleteSelectedGrids | ( | ) |
warning message and confirmation
Definition at line 519 of file KVIDGridManagerGUI.cpp.
void KVIDGridManagerGUI::FitGrid | ( | ) |
Definition at line 1550 of file KVIDGridManagerGUI.cpp.
|
inlineprivate |
list of all grids (selected or not) in current tab
Definition at line 93 of file KVIDGridManagerGUI.h.
Int_t KVIDGridManagerGUI::GetNSelected | ( | ) |
returns current number of selected items in grid list
Definition at line 629 of file KVIDGridManagerGUI.cpp.
void KVIDGridManagerGUI::HandleGridsMenu | ( | Int_t | id | ) |
Receive signals emitted by items selected in Grids menu.
reset filename to avoid hitting Save and overwriting previous file
Definition at line 367 of file KVIDGridManagerGUI.cpp.
void KVIDGridManagerGUI::MergeGrids | ( | ) |
void KVIDGridManagerGUI::NewCut | ( | ) |
GUI method to draw a new cut and add it to graph. A dialog box with drop-down list pops up for the user to choose the class of the new cut, unless only one choice is possible, in which case it is used automatically. For each KVIDGraph-derived class, the list of possible cut classes and the default class are define in .kvrootrc by the variables:
[class_name].CutClass: [cut class 1] +[class_name].CutClass: [cut class 2]
Definition at line 1289 of file KVIDGridManagerGUI.cpp.
void KVIDGridManagerGUI::NewGrid | ( | ) |
Create a new identification grid. First we ask the user to select the identification telescope(s) for which this grid will be used. For a given type of ID telescope, several types of grid may be applicable. If so, we ask the user to choose one.
Definition at line 755 of file KVIDGridManagerGUI.cpp.
|
inline |
Definition at line 145 of file KVIDGridManagerGUI.h.
void KVIDGridManagerGUI::NewIDLine | ( | ) |
GUI method to draw a new identifier and add it to graph. A dialog box with drop-down list pops up for the user to choose the class of the new identifier, unless only one choice is possible, in which case it is used automatically. For each KVIDGraph-derived class, the list of possible identifier classes and the default class are define in .kvrootrc by the variables:
[class_name].IDClass: [id class 1] +[class_name].IDClass: [id class 2]
Definition at line 1237 of file KVIDGridManagerGUI.cpp.
void KVIDGridManagerGUI::OpenFile | ( | ) |
Definition at line 535 of file KVIDGridManagerGUI.cpp.
void KVIDGridManagerGUI::OpenRootFile | ( | ) |
Definition at line 341 of file KVIDGridManagerGUI.cpp.
|
inline |
Definition at line 151 of file KVIDGridManagerGUI.h.
void KVIDGridManagerGUI::RemoveEmptyTabs | ( | ) |
Recursively remove any empty tabs.
Definition at line 1090 of file KVIDGridManagerGUI.cpp.
|
inline |
Definition at line 140 of file KVIDGridManagerGUI.h.
void KVIDGridManagerGUI::SaveGridsAs | ( | const TCollection * | selection = 0 | ) |
Opens dialog to choose filename in which to save grids. If selection=0 (default), all grids are saved If selection!=0 only grids in list are saved
Definition at line 820 of file KVIDGridManagerGUI.cpp.
void KVIDGridManagerGUI::SelectionChanged | ( | ) |
called any time the selection of grids changes each time, we update: fSelectedEntries : the list of all selected entries GetNSelected() : the number of selected entries fSelectedGrid : the last selected grid (=the only grid selected if GeTNSelected==1) get number of selected items
Definition at line 604 of file KVIDGridManagerGUI.cpp.
void KVIDGridManagerGUI::SetIDTelescopes | ( | ) |
Set ID telescopes for selected grid.
Definition at line 686 of file KVIDGridManagerGUI.cpp.
|
inlineprivate |
set status bar message
Definition at line 100 of file KVIDGridManagerGUI.h.
void KVIDGridManagerGUI::ShowListOfLines | ( | ) |
Called when a grid is selected in list of grids We fill list of all lines in grid If only one grid is selected, we display its lines in the line list If more than one grid is selected, we clear the line list
Definition at line 1157 of file KVIDGridManagerGUI.cpp.
void KVIDGridManagerGUI::StartEditor | ( | ) |
Definition at line 314 of file KVIDGridManagerGUI.cpp.
void KVIDGridManagerGUI::StartEditor | ( | TObject * | o | ) |
Info("StartEditor(TObject*)", "obj=%p", o);.
Definition at line 331 of file KVIDGridManagerGUI.cpp.
void KVIDGridManagerGUI::TabSelect | ( | Int_t | ) |
called when a new tab is selected
Definition at line 940 of file KVIDGridManagerGUI.cpp.
void KVIDGridManagerGUI::TestGrid | ( | ) |
test the identification with selected grid we search in current pad for the data histogram
Definition at line 1337 of file KVIDGridManagerGUI.cpp.
void KVIDGridManagerGUI::TestTreeGrid | ( | ) |
test the identification with selected grid we search in current pad for the data histogram
Definition at line 1374 of file KVIDGridManagerGUI.cpp.
void KVIDGridManagerGUI::UpdateListOfGrids | ( | ) |
remove all existing entries, then fill list from gIDGridManager we update the current pad, in case the displayed grid no longer exists grid buttons are disabled, as any selected grid is deselected cout << "DEBUG: KVIDGridManagerGUI::UpdateListOfGrids(): starting..." << endl;
Definition at line 577 of file KVIDGridManagerGUI.cpp.
void KVIDGridManagerGUI::UpdateListOfLines | ( | ) |
called when a previously selected grid is modified updates lists of lines
Definition at line 1128 of file KVIDGridManagerGUI.cpp.
void KVIDGridManagerGUI::UpdateTabs | ( | ) |
create a tab for each type of ID telescope put a list box for ID grid names on each tab cout << "DEBUG: KVIDGridManagerGUI::UpdateTabs() : starting..." << endl;
Definition at line 958 of file KVIDGridManagerGUI.cpp.
|
private |
list of lines in currently selected grid
Definition at line 61 of file KVIDGridManagerGUI.h.
|
private |
list of lines in currently selected grid
Definition at line 60 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 90 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 86 of file KVIDGridManagerGUI.h.
|
private |
tabs with lists of grids
Definition at line 57 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 56 of file KVIDGridManagerGUI.h.
|
private |
ID grid editor.
Definition at line 63 of file KVIDGridManagerGUI.h.
|
private |
list of grids in current tab
Definition at line 58 of file KVIDGridManagerGUI.h.
|
private |
list of lines in currently selected grid
Definition at line 59 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 87 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 89 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 55 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 54 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 53 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 33 of file KVIDGridManagerGUI.h.
|
private |
TGMainFrame* fMain;.
Definition at line 32 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 34 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 67 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 91 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 88 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 84 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 66 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 71 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 78 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 75 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 74 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 70 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 73 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 72 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 68 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 82 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 80 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 69 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 79 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 81 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 76 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 77 of file KVIDGridManagerGUI.h.
|
private |
Definition at line 65 of file KVIDGridManagerGUI.h.
const Char_t* KVIDGridManagerGUI::name_of_data_histo |
Definition at line 159 of file KVIDGridManagerGUI.h.