KaliVeda
Toolkit for HIC analysis

Detailed Description

Graphical interface tool for managing, creating, testing and fitting identification grids.

Definition at line 29 of file KVIDGridManagerGUI.h.

#include <KVIDGridManagerGUI.h>

Inheritance diagram for KVIDGridManagerGUI:

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

KVListViewfCUTInfoList
 list of lines in currently selected grid More...
 
KVListViewfCUTList
 list of lines in currently selected grid More...
 
TString fFileName
 
Int_t fFirstGrid
 
TGTab * fGridListTabs
 tabs with lists of grids More...
 
TGHorizontalFrame * fHframe
 
KVIDGridEditorfIDGridEditor
 ID grid editor. More...
 
KVListViewfIDGridList
 list of grids in current tab More...
 
KVListViewfIDLineList
 list of lines in currently selected grid More...
 
Int_t fLastGrid
 
KVIDGraphfLastSelectedGrid
 
TGMenuBar * fMenuBar
 
TGLayoutHints * fMenuBarHelpLayout
 
TGLayoutHints * fMenuBarItemLayout
 
TGPopupMenu * fMenuEdit
 
TGPopupMenu * fMenuFile
 TGMainFrame* fMain;. More...
 
TGPopupMenu * fMenuHelp
 
Int_t fNbButtons
 
std::unique_ptr< TList > fSelectedEntries
 
KVIDGraphfSelectedGrid
 
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
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
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 

Definition at line 35 of file KVIDGridManagerGUI.h.

Constructor & Destructor Documentation

◆ KVIDGridManagerGUI()

KVIDGridManagerGUI::KVIDGridManagerGUI ( )

Definition at line 33 of file KVIDGridManagerGUI.cpp.

◆ ~ KVIDGridManagerGUI()

virtual KVIDGridManagerGUI::~ KVIDGridManagerGUI ( )
virtual

Member Function Documentation

◆ ActivateToolbarButtons()

void KVIDGridManagerGUI::ActivateToolbarButtons ( )

disable all buttons

Definition at line 1197 of file KVIDGridManagerGUI.cpp.

◆ ClassDef()

KVIDGridManagerGUI::ClassDef ( KVIDGridManagerGUI  ,
 
)

◆ ClearGrid()

void KVIDGridManagerGUI::ClearGrid ( )

deletes all lines in currently selected grid(s)

Definition at line 704 of file KVIDGridManagerGUI.cpp.

◆ CloseWindow()

void KVIDGridManagerGUI::CloseWindow ( )

close viewer

Definition at line 304 of file KVIDGridManagerGUI.cpp.

◆ CopyGrid()

void KVIDGridManagerGUI::CopyGrid ( )

Definition at line 730 of file KVIDGridManagerGUI.cpp.

◆ CreateAndFillTabs()

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.

◆ DeleteAllGridsInTab()

void KVIDGridManagerGUI::DeleteAllGridsInTab ( )

delete the all grids in currently selected tab

Definition at line 667 of file KVIDGridManagerGUI.cpp.

◆ DeleteGrids()

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.

◆ DeleteSelectedGrids()

void KVIDGridManagerGUI::DeleteSelectedGrids ( )

warning message and confirmation

Definition at line 519 of file KVIDGridManagerGUI.cpp.

◆ FitGrid()

void KVIDGridManagerGUI::FitGrid ( )

Definition at line 1550 of file KVIDGridManagerGUI.cpp.

◆ GetAllGridsInTab()

TCollection* KVIDGridManagerGUI::GetAllGridsInTab ( )
inlineprivate

list of all grids (selected or not) in current tab

Definition at line 93 of file KVIDGridManagerGUI.h.

◆ GetNSelected()

Int_t KVIDGridManagerGUI::GetNSelected ( )

returns current number of selected items in grid list

Definition at line 629 of file KVIDGridManagerGUI.cpp.

◆ HandleGridsMenu()

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.

◆ MergeGrids()

void KVIDGridManagerGUI::MergeGrids ( )

merge 2 grids KVIDGraph *g1 = (KVIDGraph *) fSelectedEntries->At(1); KVIDGraph *g2 = (KVIDGraph *) fSelectedEntries->First(); new KVMergeGridsDialog(g1, g2, fClient->GetDefaultRoot(), this, 10, 10);

Definition at line 805 of file KVIDGridManagerGUI.cpp.

◆ NewCut()

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]

  • ... [class_name].DefaultCutClass: [cut class]

Definition at line 1289 of file KVIDGridManagerGUI.cpp.

◆ NewGrid()

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.

◆ NewIDContour()

void KVIDGridManagerGUI::NewIDContour ( )
inline

Definition at line 145 of file KVIDGridManagerGUI.h.

◆ NewIDLine()

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]

  • ... [class_name].DefaultIDClass: [id class]

Definition at line 1237 of file KVIDGridManagerGUI.cpp.

◆ OpenFile()

void KVIDGridManagerGUI::OpenFile ( )

Definition at line 535 of file KVIDGridManagerGUI.cpp.

◆ OpenRootFile()

void KVIDGridManagerGUI::OpenRootFile ( )

Definition at line 341 of file KVIDGridManagerGUI.cpp.

◆ Quit()

void KVIDGridManagerGUI::Quit ( )
inline

Definition at line 151 of file KVIDGridManagerGUI.h.

◆ RemoveEmptyTabs()

void KVIDGridManagerGUI::RemoveEmptyTabs ( )

Recursively remove any empty tabs.

Definition at line 1090 of file KVIDGridManagerGUI.cpp.

◆ SaveCurrent()

void KVIDGridManagerGUI::SaveCurrent ( )
inline

Definition at line 140 of file KVIDGridManagerGUI.h.

◆ SaveGridsAs()

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.

◆ SelectionChanged()

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.

◆ SetIDTelescopes()

void KVIDGridManagerGUI::SetIDTelescopes ( )

Set ID telescopes for selected grid.

Definition at line 686 of file KVIDGridManagerGUI.cpp.

◆ SetStatus()

void KVIDGridManagerGUI::SetStatus ( const Char_t *  text = "")
inlineprivate

set status bar message

Definition at line 100 of file KVIDGridManagerGUI.h.

◆ ShowListOfLines()

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.

◆ StartEditor() [1/2]

void KVIDGridManagerGUI::StartEditor ( )

Definition at line 314 of file KVIDGridManagerGUI.cpp.

◆ StartEditor() [2/2]

void KVIDGridManagerGUI::StartEditor ( TObject *  o)

Info("StartEditor(TObject*)", "obj=%p", o);.

Definition at line 331 of file KVIDGridManagerGUI.cpp.

◆ TabSelect()

void KVIDGridManagerGUI::TabSelect ( Int_t  )

called when a new tab is selected

Definition at line 940 of file KVIDGridManagerGUI.cpp.

◆ TestGrid()

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.

◆ TestTreeGrid()

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.

◆ UpdateListOfGrids()

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.

◆ UpdateListOfLines()

void KVIDGridManagerGUI::UpdateListOfLines ( )

called when a previously selected grid is modified updates lists of lines

Definition at line 1128 of file KVIDGridManagerGUI.cpp.

◆ UpdateTabs()

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.

Member Data Documentation

◆ fCUTInfoList

KVListView* KVIDGridManagerGUI::fCUTInfoList
private

list of lines in currently selected grid

Definition at line 61 of file KVIDGridManagerGUI.h.

◆ fCUTList

KVListView* KVIDGridManagerGUI::fCUTList
private

list of lines in currently selected grid

Definition at line 60 of file KVIDGridManagerGUI.h.

◆ fFileName

TString KVIDGridManagerGUI::fFileName
private

Definition at line 90 of file KVIDGridManagerGUI.h.

◆ fFirstGrid

Int_t KVIDGridManagerGUI::fFirstGrid
private

Definition at line 86 of file KVIDGridManagerGUI.h.

◆ fGridListTabs

TGTab* KVIDGridManagerGUI::fGridListTabs
private

tabs with lists of grids

Definition at line 57 of file KVIDGridManagerGUI.h.

◆ fHframe

TGHorizontalFrame* KVIDGridManagerGUI::fHframe
private

Definition at line 56 of file KVIDGridManagerGUI.h.

◆ fIDGridEditor

KVIDGridEditor* KVIDGridManagerGUI::fIDGridEditor
private

ID grid editor.

Definition at line 63 of file KVIDGridManagerGUI.h.

◆ fIDGridList

KVListView* KVIDGridManagerGUI::fIDGridList
private

list of grids in current tab

Definition at line 58 of file KVIDGridManagerGUI.h.

◆ fIDLineList

KVListView* KVIDGridManagerGUI::fIDLineList
private

list of lines in currently selected grid

Definition at line 59 of file KVIDGridManagerGUI.h.

◆ fLastGrid

Int_t KVIDGridManagerGUI::fLastGrid
private

Definition at line 87 of file KVIDGridManagerGUI.h.

◆ fLastSelectedGrid

KVIDGraph* KVIDGridManagerGUI::fLastSelectedGrid
private

Definition at line 89 of file KVIDGridManagerGUI.h.

◆ fMenuBar

TGMenuBar* KVIDGridManagerGUI::fMenuBar
private

Definition at line 55 of file KVIDGridManagerGUI.h.

◆ fMenuBarHelpLayout

TGLayoutHints* KVIDGridManagerGUI::fMenuBarHelpLayout
private

Definition at line 54 of file KVIDGridManagerGUI.h.

◆ fMenuBarItemLayout

TGLayoutHints* KVIDGridManagerGUI::fMenuBarItemLayout
private

Definition at line 53 of file KVIDGridManagerGUI.h.

◆ fMenuEdit

TGPopupMenu* KVIDGridManagerGUI::fMenuEdit
private

Definition at line 33 of file KVIDGridManagerGUI.h.

◆ fMenuFile

TGPopupMenu* KVIDGridManagerGUI::fMenuFile
private

TGMainFrame* fMain;.

Definition at line 32 of file KVIDGridManagerGUI.h.

◆ fMenuHelp

TGPopupMenu* KVIDGridManagerGUI::fMenuHelp
private

Definition at line 34 of file KVIDGridManagerGUI.h.

◆ fNbButtons

Int_t KVIDGridManagerGUI::fNbButtons
private

Definition at line 67 of file KVIDGridManagerGUI.h.

◆ fSelectedEntries

std::unique_ptr<TList> KVIDGridManagerGUI::fSelectedEntries
private

Definition at line 91 of file KVIDGridManagerGUI.h.

◆ fSelectedGrid

KVIDGraph* KVIDGridManagerGUI::fSelectedGrid
private

Definition at line 88 of file KVIDGridManagerGUI.h.

◆ fStatusBar

TGStatusBar* KVIDGridManagerGUI::fStatusBar
private

Definition at line 84 of file KVIDGridManagerGUI.h.

◆ fTBbuttons

TGButton* KVIDGridManagerGUI::fTBbuttons[50]
private

Definition at line 66 of file KVIDGridManagerGUI.h.

◆ fTBCopyG

TGButton* KVIDGridManagerGUI::fTBCopyG
private

Definition at line 71 of file KVIDGridManagerGUI.h.

◆ fTBDelG

TGButton* KVIDGridManagerGUI::fTBDelG
private

Definition at line 78 of file KVIDGridManagerGUI.h.

◆ fTBFit

TGButton* KVIDGridManagerGUI::fTBFit
private

Definition at line 75 of file KVIDGridManagerGUI.h.

◆ fTBNewCut

TGButton* KVIDGridManagerGUI::fTBNewCut
private

Definition at line 74 of file KVIDGridManagerGUI.h.

◆ fTBNewG

TGButton* KVIDGridManagerGUI::fTBNewG
private

Definition at line 70 of file KVIDGridManagerGUI.h.

◆ fTBNewIDC

TGButton* KVIDGridManagerGUI::fTBNewIDC
private

Definition at line 73 of file KVIDGridManagerGUI.h.

◆ fTBNewIDL

TGButton* KVIDGridManagerGUI::fTBNewIDL
private

Definition at line 72 of file KVIDGridManagerGUI.h.

◆ fTBOpen

TGButton* KVIDGridManagerGUI::fTBOpen
private

Definition at line 68 of file KVIDGridManagerGUI.h.

◆ fTBOpenRoot

TGButton* KVIDGridManagerGUI::fTBOpenRoot
private

Definition at line 82 of file KVIDGridManagerGUI.h.

◆ fTBRefresh

TGButton* KVIDGridManagerGUI::fTBRefresh
private

Definition at line 80 of file KVIDGridManagerGUI.h.

◆ fTBSave

TGButton* KVIDGridManagerGUI::fTBSave
private

Definition at line 69 of file KVIDGridManagerGUI.h.

◆ fTBSetIDG

TGButton* KVIDGridManagerGUI::fTBSetIDG
private

Definition at line 79 of file KVIDGridManagerGUI.h.

◆ fTBStartEditor

TGButton* KVIDGridManagerGUI::fTBStartEditor
private

Definition at line 81 of file KVIDGridManagerGUI.h.

◆ fTBTest

TGButton* KVIDGridManagerGUI::fTBTest
private

Definition at line 76 of file KVIDGridManagerGUI.h.

◆ fTBTestTree

TGButton* KVIDGridManagerGUI::fTBTestTree
private

Definition at line 77 of file KVIDGridManagerGUI.h.

◆ fToolBar

TGToolBar* KVIDGridManagerGUI::fToolBar
private

Definition at line 65 of file KVIDGridManagerGUI.h.

◆ name_of_data_histo

const Char_t* KVIDGridManagerGUI::name_of_data_histo

Definition at line 159 of file KVIDGridManagerGUI.h.