Logo ROOT  
Reference Guide
TTreeViewer.h
Go to the documentation of this file.
1 // @(#)root/treeviewer:$Id$
2 //Author : Andrei Gheata 16/08/00
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TTreeViewer
13 #define ROOT_TTreeViewer
14 
15 ////////////////////////////////////////////////////
16 // //
17 // TTreeViewer - A GUI oriented tree viewer //
18 // //
19 ////////////////////////////////////////////////////
20 
21 #include "TGFrame.h"
22 
23 #include "TTree.h"
24 
25 class TTVLVContainer;
26 class TTVLVEntry;
27 class TTVSession;
28 class TGSelectBox;
29 class TBranch;
30 class TContextMenu;
31 class TList;
32 class TGPicture;
33 class TTimer;
34 class TGLayoutHints;
35 class TGMenuBar;
36 class TGPopupMenu;
37 class TGToolBar;
38 class TGLabel;
39 class TGCheckButton;
40 class TGComboBox;
41 class TGTextButton;
42 class TGTextEntry;
43 class TGDoubleVSlider;
44 class TGPictureButton;
45 class TGStatusBar;
46 class TGCanvas;
47 class TGListTree;
48 class TGListTreeItem;
49 class TGListView;
50 class TGHProgressBar;
51 class TGButton;
52 
53 
54 class TTreeViewer : public TGMainFrame {
55 
56 friend class TGClient;
57 friend class TGButton;
58 
59 public:
60  /// Item types used as user data
62  kLTNoType = 0,
70  kLTCutType = BIT(7)
71  };
72 
73 private:
74 
75 ///@{
76  TTree *fTree; ///< Selected tree
77  TTVSession *fSession; ///< Current tree-viewer session
78  const char *fFilename; ///< Name of the file containing the tree
79  const char *fSourceFile; ///< Name of the C++ source file - default treeviewer.C
80  TString fLastOption; ///< Last graphic option
81  TTree *fMappedTree; ///< Listed tree
82  TBranch *fMappedBranch; ///< Listed branch
83  Int_t fDimension; ///< Histogram dimension
84  Bool_t fVarDraw; ///< True if an item is double-clicked
85  Bool_t fScanMode; ///< Flag activated when Scan Box is double-clicked
86  TContextMenu *fContextMenu; ///< Context menu for tree viewer
87  TGSelectBox *fDialogBox; ///< Expression editor
88  TList *fTreeList; ///< List of mapped trees
89  Int_t fTreeIndex; ///< Index of current tree in list
90  const TGPicture *fPicX; ///< Pictures for X expressions
91  const TGPicture *fPicY; ///< Pictures for Y expressions
92  const TGPicture *fPicZ; ///< Pictures for Z expressions
93  const TGPicture *fPicDraw; ///< Pictures for Draw buttons
94  const TGPicture *fPicStop; ///< Pictures for Stop buttons
95  const TGPicture *fPicRefr; ///< Pictures for Refresh buttons ///<ia
96  Cursor_t fDefaultCursor; ///< Default cursor
97  Cursor_t fWatchCursor; ///< Watch cursor
98  TTimer *fTimer; ///< Tree viewer timer
99  Bool_t fCounting; ///< True if timer is counting
100  Bool_t fStopMapping; ///< True if branch don't need remapping
101  Bool_t fEnableCut; ///< True if cuts are enabled
102  Int_t fNexpressions; ///< Number of expression widgets
103 ///@}
104 
105 ///@{
106 /// @name Menu bar, menu bar entries and layouts
119 ///@}
120 
121 ///@{
122 /// @name Toolbar and hints
125 ///@}
126 
127 ///@{
128 /// @name Widgets on the toolbar
129  TGLabel *fBarLbl1; ///< Label of command text entry
130  TGLabel *fBarLbl2; ///< Label of option text entry
131  TGLabel *fBarLbl3; ///< Label of histogram name text entry
132  TGCheckButton *fBarH; ///< Checked for drawing current histogram with different graphic option
133  TGCheckButton *fBarScan; ///< Checked for tree scan
134  TGCheckButton *fBarRec; ///< Command recording toggle
135  TGTextEntry *fBarCommand; ///< User command entry
136  TGTextEntry *fBarOption; ///< Histogram drawing option entry
137  TGTextEntry *fBarHist; ///< Histogram name entry
138 ///@}
139 
140 ///@{
141 /// @name Frames
142  TGHorizontalFrame *fHf; ///< Main horizontal frame
143  TGDoubleVSlider *fSlider; ///< Vertical slider to select processed tree entries;
144  TGVerticalFrame *fV1; ///< List tree mother
145  TGVerticalFrame *fV2; ///< List view mother
146  TGCompositeFrame *fTreeHdr; ///< Header for list tree
147  TGCompositeFrame *fListHdr; ///< Header for list view
148  TGLabel *fLbl1; ///< Label for list tree
149  TGLabel *fLbl2; ///< Label for list view
150  TGHorizontalFrame *fBFrame; ///< Button frame
151  TGHorizontalFrame *fHpb; ///< Progress bar frame
152  TGHProgressBar *fProgressBar; ///< Progress bar
153  TGLabel *fBLbl4; ///< Label for input list entry
154  TGLabel *fBLbl5; ///< Label for output list entry
155  TGTextEntry *fBarListIn; ///< Tree input event list name entry
156  TGTextEntry *fBarListOut; ///< Pree output event list name entry
157  TGPictureButton *fDRAW; ///< DRAW button
158  TGTextButton *fSPIDER; ///< SPIDER button
159  TGPictureButton *fSTOP; ///< Interrupt current command (not yet)
160  TGPictureButton *fREFR; ///< REFRESH button ///<ia
161  TGStatusBar *fStatusBar; ///< Status bar
162  TGComboBox *fCombo; ///< Combo box with session records
168  TGTextButton *fReset; ///< clear expression's entries
169 ///@}
170 
171 ///@{
172 /// @name ListTree
173  TGCanvas *fTreeView; ///< ListTree canvas container
174  TGListTree *fLt; ///< ListTree with file and tree items
175 ///@}
176 
177 ///@{
178 /// @name ListView
179  TGListView *fListView; ///< ListView with branches and leaves
180  TTVLVContainer *fLVContainer; ///< Container for listview
181 
182  TList *fWidgets; ///< List of widgets to be deleted
183 ///@}
184 
185 
186 private:
187 
188  void BuildInterface();
189  const char *Cut();
190  Int_t Dimension();
191  const char *EmptyBrackets(const char* name);
192  const char *Ex();
193  const char *Ey();
194  const char *Ez();
195  const char *En(Int_t n);
196  void MapBranch(TBranch *branch, const char *prefix="", TGListTreeItem *parent = 0, Bool_t listIt = kTRUE);
197  void MapOptions(Long_t parm1);
198  void MapTree(TTree *tree, TGListTreeItem *parent = 0, Bool_t listIt = kTRUE);
199  void SetFile();
200  const char *ScanList();
201  void SetParentTree(TGListTreeItem *item);
202  void DoError(int level, const char *location, const char *fmt, va_list va) const;
203 
204 public:
205  TTreeViewer(const char* treeName = 0);
206  TTreeViewer(const TTree *tree);
207  virtual ~TTreeViewer();
208 
209  void AppendTree(TTree *tree);
210  void ActivateButtons(Bool_t first, Bool_t previous,
211  Bool_t next , Bool_t last);
212  virtual void CloseWindow();
213  virtual void Delete(Option_t *) { } // *MENU*
214  void DoRefresh();
215  void EditExpression();
216  void Empty();
217  void EmptyAll(); // *MENU*
218  void ExecuteCommand(const char* command, Bool_t fast = kFALSE); // *MENU*
219  void ExecuteDraw();
220  void ExecuteSpider();
223  const char *GetGrOpt();
224  TTree *GetTree() {return fTree;}
225  Bool_t HandleTimer(TTimer *timer);
228  Int_t MakeSelector(const char* selector = 0); // *MENU*
229  void Message(const char* msg);
230  void NewExpression(); // *MENU*
231  void PrintEntries();
232  Long64_t Process(const char* filename, Option_t *option="", Long64_t nentries=TTree::kMaxEntries, Long64_t firstentry=0); // *MENU*
233  Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
234  void RemoveItem();
235  void RemoveLastRecord(); // *MENU*
236  void SaveSource(const char* filename="", Option_t *option=""); // *MENU*
237  void SetHistogramTitle(const char *title);
238  void SetCutMode(Bool_t enabled = kTRUE) {fEnableCut = enabled;}
239  void SetCurrentRecord(Long64_t entry);
240  void SetGrOpt(const char *option);
241  void SetNexpressions(Int_t expr);
242  void SetRecordName(const char *name); // *MENU*
243  void SetScanFileName(const char *name=""); // *MENU*
244  void SetScanMode(Bool_t mode=kTRUE) {fScanMode = mode;}
245  void SetScanRedirect(Bool_t mode);
246  void SetSession(TTVSession *session);
247  void SetUserCode(const char *code, Bool_t autoexec=kTRUE); // *MENU*
248  void SetTree(TTree* tree);
249  void SetTreeName(const char* treeName); // *MENU*
250  Bool_t SwitchTree(Int_t index);
251  void UpdateCombo();
252  void UpdateRecord(const char *name="new name"); // *MENU*
253 
254  ClassDef(TTreeViewer,0) // A GUI oriented tree viewer
255 };
256 
257 #endif
TTreeViewer::fMappedBranch
TBranch * fMappedBranch
Listed branch.
Definition: TTreeViewer.h:82
TTVSession
I/O classes for TreeViewer session handling.
Definition: TTVSession.h:75
TTreeViewer::fMenuBarLayout
TGLayoutHints * fMenuBarLayout
Definition: TTreeViewer.h:107
n
const Int_t n
Definition: legend1.C:16
TGSelectBox
This class represent a specialized expression editor for TTVLVEntry 'true name' and 'alias' data memb...
Definition: TTVLVContainer.h:157
first
Definition: first.py:1
TTreeViewer::fBarLayout
TGLayoutHints * fBarLayout
Definition: TTreeViewer.h:124
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:100
TTreeViewer::fREFR
TGPictureButton * fREFR
REFRESH button ///<ia.
Definition: TTreeViewer.h:160
TTreeViewer::kLTPackType
@ kLTPackType
Definition: TTreeViewer.h:63
TTreeViewer::SetScanMode
void SetScanMode(Bool_t mode=kTRUE)
Definition: TTreeViewer.h:244
TTreeViewer::ScanList
const char * ScanList()
returns scanlist
Definition: TTreeViewer.cxx:1276
TGMainFrame
Defines top level windows that interact with the system Window Manager.
Definition: TGFrame.h:398
TGPicture
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
Definition: TGPicture.h:25
TTreeViewer::ProcessMessage
Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Handle menu and other commands generated.
Definition: TTreeViewer.cxx:1792
TTreeViewer::fBarRec
TGCheckButton * fBarRec
Command recording toggle.
Definition: TTreeViewer.h:134
Option_t
const char Option_t
Definition: RtypesCore.h:66
TTreeViewer::fStatusBar
TGStatusBar * fStatusBar
Status bar.
Definition: TTreeViewer.h:161
TTreeViewer::fSession
TTVSession * fSession
Current tree-viewer session.
Definition: TTreeViewer.h:77
TTreeViewer::EmptyBrackets
const char * EmptyBrackets(const char *name)
Empty the bracket content of a string.
Definition: TTreeViewer.cxx:1295
TTreeViewer::EditExpression
void EditExpression()
Start the expression editor.
Definition: TTreeViewer.cxx:1669
TTreeViewer::fNexpressions
Int_t fNexpressions
Number of expression widgets.
Definition: TTreeViewer.h:102
TTreeViewer::fBLbl5
TGLabel * fBLbl5
Label for output list entry.
Definition: TTreeViewer.h:154
TTreeViewer::fBarH
TGCheckButton * fBarH
Checked for drawing current histogram with different graphic option.
Definition: TTreeViewer.h:132
TTreeViewer::SetUserCode
void SetUserCode(const char *code, Bool_t autoexec=kTRUE)
user defined command for current record
Definition: TTreeViewer.cxx:2885
TTreeViewer::DoRefresh
void DoRefresh()
This slot is called when button REFR is clicked.
Definition: TTreeViewer.cxx:2915
TTreeViewer::SetParentTree
void SetParentTree(TGListTreeItem *item)
Find parent tree of a clicked item.
Definition: TTreeViewer.cxx:2637
tree
Definition: tree.py:1
TTreeViewer::fBFrame
TGHorizontalFrame * fBFrame
Button frame.
Definition: TTreeViewer.h:150
TTreeViewer::fSPIDER
TGTextButton * fSPIDER
SPIDER button.
Definition: TTreeViewer.h:158
TTreeViewer::fOptionsGen
TGPopupMenu * fOptionsGen
Definition: TTreeViewer.h:115
TTreeViewer::SetTreeName
void SetTreeName(const char *treeName)
Allow geting the tree from the context menu.
Definition: TTreeViewer.cxx:516
TTreeViewer::SetRecordName
void SetRecordName(const char *name)
Set record name.
Definition: TTreeViewer.cxx:2856
TTVLVContainer
This class represent the list view container for the TreeView class.
Definition: TTVLVContainer.h:110
TTreeViewer::kLTBranchType
@ kLTBranchType
Definition: TTreeViewer.h:65
TTreeViewer::SwitchTree
Bool_t SwitchTree(Int_t index)
Makes current the tree at a given index in the list.
Definition: TTreeViewer.cxx:2823
Long64_t
long long Long64_t
Definition: RtypesCore.h:80
TTreeViewer::fEditMenu
TGPopupMenu * fEditMenu
Definition: TTreeViewer.h:112
TTreeViewer::GetTree
TTree * GetTree()
Definition: TTreeViewer.h:224
TGLabel
This class handles GUI labels.
Definition: TGLabel.h:24
TTree
A TTree represents a columnar dataset.
Definition: TTree.h:79
TGToolBar
A toolbar is a composite frame that contains TGPictureButtons.
Definition: TGToolBar.h:33
TTreeViewer::ExecuteSpider
void ExecuteSpider()
Draw a spider plot for the selected entries.
Definition: TTreeViewer.cxx:1551
TTreeViewer::Message
void Message(const char *msg)
Send a message on the status bar.
Definition: TTreeViewer.cxx:2656
TTreeViewer::fTreeList
TList * fTreeList
List of mapped trees.
Definition: TTreeViewer.h:88
TTreeViewer::fTimer
TTimer * fTimer
Tree viewer timer.
Definition: TTreeViewer.h:98
TGTextButton
Yield an action as soon as it is clicked.
Definition: TGButton.h:142
Int_t
int Int_t
Definition: RtypesCore.h:45
TTreeViewer::ActivateButtons
void ActivateButtons(Bool_t first, Bool_t previous, Bool_t next, Bool_t last)
Enable/disable session buttons.
Definition: TTreeViewer.cxx:1252
TTreeViewer::ExecuteDraw
void ExecuteDraw()
Called when the DRAW button is executed.
Definition: TTreeViewer.cxx:1382
TGListTree
A list tree is a widget that can contain a number of items arranged in a tree structure.
Definition: TGListTree.h:195
TTreeViewer::kLTLeafType
@ kLTLeafType
Definition: TTreeViewer.h:66
TTreeViewer::fFileMenu
TGPopupMenu * fFileMenu
Definition: TTreeViewer.h:111
TTreeViewer::fPicRefr
const TGPicture * fPicRefr
Pictures for Refresh buttons ///<ia.
Definition: TTreeViewer.h:95
TTreeViewer::fListHdr
TGCompositeFrame * fListHdr
Header for list view.
Definition: TTreeViewer.h:147
TTreeViewer::fBGNext
TGPictureButton * fBGNext
Definition: TTreeViewer.h:166
TTreeViewer::fProgressBar
TGHProgressBar * fProgressBar
Progress bar.
Definition: TTreeViewer.h:152
TTreeViewer::NewExpression
void NewExpression()
Create new expression.
Definition: TTreeViewer.cxx:2616
TTreeViewer::fOptionsMenu
TGPopupMenu * fOptionsMenu
Definition: TTreeViewer.h:114
TTreeViewer
A graphic user interface designed to handle ROOT trees and to take advantage of TTree class features.
Definition: TTreeViewer.h:54
nentries
int nentries
Definition: THbookFile.cxx:91
TTreeViewer::fPicStop
const TGPicture * fPicStop
Pictures for Stop buttons.
Definition: TTreeViewer.h:94
TTreeViewer::Cut
const char * Cut()
Apply Cut.
Definition: TTreeViewer.cxx:1268
TTreeViewer::SaveSource
void SaveSource(const char *filename="", Option_t *option="")
Save current session as a C++ macro file.
Definition: TTreeViewer.cxx:2713
TTreeViewer::fCombo
TGComboBox * fCombo
Combo box with session records.
Definition: TTreeViewer.h:162
TTreeViewer::fLt
TGListTree * fLt
ListTree with file and tree items.
Definition: TTreeViewer.h:174
TTreeViewer::PrintEntries
void PrintEntries()
Print the number of selected entries on status-bar.
Definition: TTreeViewer.cxx:2700
TGHorizontalFrame
A composite frame that layout their children in horizontal way.
Definition: TGFrame.h:386
TTreeViewer::fLbl2
TGLabel * fLbl2
Label for list view.
Definition: TTreeViewer.h:149
TTree.h
TTreeViewer::fBarLbl1
TGLabel * fBarLbl1
Label of command text entry.
Definition: TTreeViewer.h:129
TTreeViewer::fWidgets
TList * fWidgets
List of widgets to be deleted.
Definition: TTreeViewer.h:182
TString
Basic string class.
Definition: TString.h:136
TTreeViewer::fMenuBar
TGMenuBar * fMenuBar
Definition: TTreeViewer.h:110
TTreeViewer::fListView
TGListView * fListView
ListView with branches and leaves.
Definition: TTreeViewer.h:179
TTreeViewer::UpdateCombo
void UpdateCombo()
Updates combo box to current session entries.
Definition: TTreeViewer.cxx:2894
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
TTreeViewer::Ex
const char * Ex()
Get the expression to be drawn on X axis.
Definition: TTreeViewer.cxx:1635
TGListView
A list view is a widget that can contain a number of items arranged in a grid or list.
Definition: TGListView.h:115
TTreeViewer::fBLbl4
TGLabel * fBLbl4
Label for input list entry.
Definition: TTreeViewer.h:153
TTreeViewer::fBarLbl2
TGLabel * fBarLbl2
Label of option text entry.
Definition: TTreeViewer.h:130
TTreeViewer::GetGrOpt
const char * GetGrOpt()
Get graph option.
Definition: TTreeViewer.cxx:1721
bool
TTreeViewer::fLastOption
TString fLastOption
Last graphic option.
Definition: TTreeViewer.h:80
Cursor_t
Handle_t Cursor_t
Cursor handle.
Definition: GuiTypes.h:34
TTreeViewer::SetCurrentRecord
void SetCurrentRecord(Long64_t entry)
Set current record.
Definition: TTreeViewer.cxx:2864
TTreeViewer::fVarDraw
Bool_t fVarDraw
True if an item is double-clicked.
Definition: TTreeViewer.h:84
TTreeViewer::ExpressionList
TList * ExpressionList()
Get the list of expression items.
Definition: TTreeViewer.cxx:1362
TTreeViewer::fFilename
const char * fFilename
Name of the file containing the tree.
Definition: TTreeViewer.h:78
TTreeViewer::MapOptions
void MapOptions(Long_t parm1)
Scan the selected options from option menu.
Definition: TTreeViewer.cxx:2335
TTreeViewer::Ez
const char * Ez()
Get the expression to be drawn on Z axis.
Definition: TTreeViewer.cxx:1651
TTreeViewer::Dimension
Int_t Dimension()
Compute dimension of the histogram.
Definition: TTreeViewer.cxx:1370
TTreeViewer::SetScanFileName
void SetScanFileName(const char *name="")
Set the name of the file where to redirect <Scan> output.
Definition: TTreeViewer.cxx:462
TTreeViewer::MakeSelector
Int_t MakeSelector(const char *selector=0)
Get use of TTree::MakeSelector() via the context menu.
Definition: TTreeViewer.cxx:1703
TGStatusBar
Provides a StatusBar widget.
Definition: TGStatusBar.h:21
TContextMenu
This class provides an interface to context sensitive popup menus.
Definition: TContextMenu.h:44
TGCheckButton
Selects different options.
Definition: TGButton.h:264
TBranch
A TTree is a list of TBranches.
Definition: TBranch.h:89
TTreeViewer::fReset
TGTextButton * fReset
clear expression's entries
Definition: TTreeViewer.h:168
TTreeViewer::SetCutMode
void SetCutMode(Bool_t enabled=kTRUE)
Definition: TTreeViewer.h:238
TTreeViewer::RemoveLastRecord
void RemoveLastRecord()
Remove the current record.
Definition: TTreeViewer.cxx:1767
TTimer
Handles synchronous and a-synchronous timer events.
Definition: TTimer.h:51
TTreeViewer::fContextMenu
TContextMenu * fContextMenu
Context menu for tree viewer.
Definition: TTreeViewer.h:86
TGHProgressBar
Definition: TGProgressBar.h:94
TTreeViewer::TTreeViewer
TTreeViewer(const char *treeName=0)
TTreeViewer default constructor.
Definition: TTreeViewer.cxx:317
TTreeViewer::fSourceFile
const char * fSourceFile
Name of the C++ source file - default treeviewer.C.
Definition: TTreeViewer.h:79
TTreeViewer::fBarOption
TGTextEntry * fBarOption
Histogram drawing option entry.
Definition: TTreeViewer.h:136
TTreeViewer::kLTExpressionType
@ kLTExpressionType
Definition: TTreeViewer.h:69
TTreeViewer::fBarCommand
TGTextEntry * fBarCommand
User command entry.
Definition: TTreeViewer.h:135
TTreeViewer::ExpressionItem
TTVLVEntry * ExpressionItem(Int_t index)
Get the item from a specific position.
Definition: TTreeViewer.cxx:1354
TTreeViewer::fTree
TTree * fTree
Selected tree.
Definition: TTreeViewer.h:76
TGVerticalFrame
A composite frame that layout their children in vertical way.
Definition: TGFrame.h:375
TTreeViewer::fPicX
const TGPicture * fPicX
Pictures for X expressions.
Definition: TTreeViewer.h:90
TTreeViewer::fCounting
Bool_t fCounting
True if timer is counting.
Definition: TTreeViewer.h:99
TTreeViewer::fHf
TGHorizontalFrame * fHf
Main horizontal frame.
Definition: TTreeViewer.h:142
TTreeViewer::SetTree
void SetTree(TTree *tree)
Assign the fTree member from existing tree, e.g.
Definition: TTreeViewer.cxx:480
TGTextEntry
A TGTextEntry is a one line text input widget.
Definition: TGTextEntry.h:24
TTreeViewer::SetFile
void SetFile()
Set file name containing the tree.
Definition: TTreeViewer.cxx:581
TTreeViewer::fLVContainer
TTVLVContainer * fLVContainer
Container for listview.
Definition: TTreeViewer.h:180
TTreeViewer::fTreeView
TGCanvas * fTreeView
ListTree canvas container.
Definition: TTreeViewer.h:173
TTreeViewer::fToolBar
TGToolBar * fToolBar
Definition: TTreeViewer.h:123
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:101
TTreeViewer::fStopMapping
Bool_t fStopMapping
True if branch don't need remapping.
Definition: TTreeViewer.h:100
TTreeViewer::fPicDraw
const TGPicture * fPicDraw
Pictures for Draw buttons.
Definition: TTreeViewer.h:93
TTreeViewer::fHpb
TGHorizontalFrame * fHpb
Progress bar frame.
Definition: TTreeViewer.h:151
TGFrame.h
TTreeViewer::fBGLast
TGPictureButton * fBGLast
Definition: TTreeViewer.h:167
Long_t
long Long_t
Definition: RtypesCore.h:54
TTreeViewer::fPicY
const TGPicture * fPicY
Pictures for Y expressions.
Definition: TTreeViewer.h:91
TTreeViewer::fMappedTree
TTree * fMappedTree
Listed tree.
Definition: TTreeViewer.h:81
TTreeViewer::HandleTimer
Bool_t HandleTimer(TTimer *timer)
This function is called by the fTimer object.
Definition: TTreeViewer.cxx:1775
TGLayoutHints
This class describes layout hints used by the layout classes.
Definition: TGLayout.h:50
BIT
#define BIT(n)
Definition: Rtypes.h:85
TTreeViewer::BuildInterface
void BuildInterface()
Create all viewer widgets.
Definition: TTreeViewer.cxx:607
TTreeViewer::kLTCutType
@ kLTCutType
Definition: TTreeViewer.h:70
TTreeViewer::kLTTreeType
@ kLTTreeType
Definition: TTreeViewer.h:64
TTreeViewer::fWatchCursor
Cursor_t fWatchCursor
Watch cursor.
Definition: TTreeViewer.h:97
TTreeViewer::fDefaultCursor
Cursor_t fDefaultCursor
Default cursor.
Definition: TTreeViewer.h:96
TTreeViewer::fOptions2D
TGPopupMenu * fOptions2D
Definition: TTreeViewer.h:117
TTreeViewer::SetSession
void SetSession(TTVSession *session)
Set current session.
Definition: TTreeViewer.cxx:1284
TTreeViewer::SetGrOpt
void SetGrOpt(const char *option)
Set graph option.
Definition: TTreeViewer.cxx:1729
TTreeViewer::fBarListOut
TGTextEntry * fBarListOut
Pree output event list name entry.
Definition: TTreeViewer.h:156
TTreeViewer::UpdateRecord
void UpdateRecord(const char *name="new name")
Updates current record to new X, Y, Z items.
Definition: TTreeViewer.cxx:2907
TTreeViewer::fSlider
TGDoubleVSlider * fSlider
Vertical slider to select processed tree entries;.
Definition: TTreeViewer.h:143
TGComboBox
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
Definition: TGComboBox.h:47
TGDoubleVSlider
Dragging the slider will generate the event:
Definition: TGDoubleSlider.h:170
TTreeViewer::IsCutEnabled
Bool_t IsCutEnabled()
Definition: TTreeViewer.h:226
TTreeViewer::~TTreeViewer
virtual ~TTreeViewer()
TTreeViewer destructor.
Definition: TTreeViewer.cxx:1166
TTreeViewer::fRunMenu
TGPopupMenu * fRunMenu
Definition: TTreeViewer.h:113
TTreeViewer::Process
Long64_t Process(const char *filename, Option_t *option="", Long64_t nentries=TTree::kMaxEntries, Long64_t firstentry=0)
Get use of TTree::Process() via the context menu.
Definition: TTreeViewer.cxx:1712
TTreeViewer::AppendTree
void AppendTree(TTree *tree)
Allow geting the tree from the context menu.
Definition: TTreeViewer.cxx:387
TTreeViewer::fBarLbl3
TGLabel * fBarLbl3
Label of histogram name text entry.
Definition: TTreeViewer.h:131
TTreeViewer::RemoveItem
void RemoveItem()
Remove the selected item from the list.
Definition: TTreeViewer.cxx:1745
TTreeViewer::MapBranch
void MapBranch(TBranch *branch, const char *prefix="", TGListTreeItem *parent=0, Bool_t listIt=kTRUE)
Map current branch and expand its content in the list view.
Definition: TTreeViewer.cxx:2459
TTreeViewer::fBGFirst
TGPictureButton * fBGFirst
Definition: TTreeViewer.h:163
TTreeViewer::EListItemType
EListItemType
Item types used as user data.
Definition: TTreeViewer.h:61
TTreeViewer::kLTActionType
@ kLTActionType
Definition: TTreeViewer.h:67
TTreeViewer::En
const char * En(Int_t n)
Get the n'th expression.
Definition: TTreeViewer.cxx:1659
TTreeViewer::kLTNoType
@ kLTNoType
Definition: TTreeViewer.h:62
TTreeViewer::fMenuBarItemLayout
TGLayoutHints * fMenuBarItemLayout
Definition: TTreeViewer.h:108
TTreeViewer::fDRAW
TGPictureButton * fDRAW
DRAW button.
Definition: TTreeViewer.h:157
TTreeViewer::fLbl1
TGLabel * fLbl1
Label for list tree.
Definition: TTreeViewer.h:148
TTreeViewer::EmptyAll
void EmptyAll()
Clear the content of all items in the list view.
Definition: TTreeViewer.cxx:1322
TTreeViewer::CloseWindow
virtual void CloseWindow()
Close the viewer.
Definition: TTreeViewer.cxx:2298
TTreeViewer::DoError
void DoError(int level, const char *location, const char *fmt, va_list va) const
Put error/warning into TMsgBox and also forward to console.
Definition: TTreeViewer.cxx:2664
TTreeViewer::SetScanRedirect
void SetScanRedirect(Bool_t mode)
Set the state of Scan check button.
Definition: TTreeViewer.cxx:469
TGPictureButton
Yield an action as soon as it is clicked.
Definition: TGButton.h:228
TTreeViewer::fHelpMenu
TGPopupMenu * fHelpMenu
Definition: TTreeViewer.h:118
TTVLVEntry
This class represent entries that goes into the TreeViewer listview container.
Definition: TTVLVContainer.h:56
TTreeViewer::IsScanRedirected
Bool_t IsScanRedirected()
Return kTRUE if scan is redirected.
Definition: TTreeViewer.cxx:1737
TTreeViewer::fScanMode
Bool_t fScanMode
Flag activated when Scan Box is double-clicked.
Definition: TTreeViewer.h:85
TTreeViewer::SetHistogramTitle
void SetHistogramTitle(const char *title)
Set title of Histogram.
Definition: TTreeViewer.cxx:2872
TTreeViewer::fMenuBarHelpLayout
TGLayoutHints * fMenuBarHelpLayout
Definition: TTreeViewer.h:109
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TTreeViewer::Ey
const char * Ey()
Get the expression to be drawn on Y axis.
Definition: TTreeViewer.cxx:1643
TTreeViewer::fDimension
Int_t fDimension
Histogram dimension.
Definition: TTreeViewer.h:83
TTreeViewer::fOptions1D
TGPopupMenu * fOptions1D
Definition: TTreeViewer.h:116
TGPopupMenu
This class creates a popup menu object.
Definition: TGMenu.h:110
TTreeViewer::kLTDragType
@ kLTDragType
Definition: TTreeViewer.h:68
TTreeViewer::ExecuteCommand
void ExecuteCommand(const char *command, Bool_t fast=kFALSE)
Execute all user commands.
Definition: TTreeViewer.cxx:2306
name
char name[80]
Definition: TGX11.cxx:110
TTreeViewer::fBarScan
TGCheckButton * fBarScan
Checked for tree scan.
Definition: TTreeViewer.h:133
TTreeViewer::Delete
virtual void Delete(Option_t *)
Delete this object.
Definition: TTreeViewer.h:213
TTreeViewer::fDialogBox
TGSelectBox * fDialogBox
Expression editor.
Definition: TTreeViewer.h:87
TTreeViewer::fBarHist
TGTextEntry * fBarHist
Histogram name entry.
Definition: TTreeViewer.h:137
TTreeViewer::fV2
TGVerticalFrame * fV2
List view mother.
Definition: TTreeViewer.h:145
TTreeViewer::fTreeHdr
TGCompositeFrame * fTreeHdr
Header for list tree.
Definition: TTreeViewer.h:146
TTreeViewer::fSTOP
TGPictureButton * fSTOP
Interrupt current command (not yet)
Definition: TTreeViewer.h:159
TGMenuBar
This class creates a menu bar.
Definition: TGMenu.h:289
TTreeViewer::fBGPrevious
TGPictureButton * fBGPrevious
Definition: TTreeViewer.h:164
TGButton
A button abstract base class.
Definition: TGButton.h:68
TTreeViewer::Empty
void Empty()
Empty the content of the selected expression.
Definition: TTreeViewer.cxx:1330
TTreeViewer::MapTree
void MapTree(TTree *tree, TGListTreeItem *parent=0, Bool_t listIt=kTRUE)
Map current tree and expand its content (including friends) in the lists.
Definition: TTreeViewer.cxx:2413
TTreeViewer::SetNexpressions
void SetNexpressions(Int_t expr)
Change the number of expression widgets.
Definition: TTreeViewer.cxx:452
TGCompositeFrame
The base class for composite widgets (menu bars, list boxes, etc.).
Definition: TGFrame.h:287
TTree::kMaxEntries
static constexpr Long64_t kMaxEntries
Definition: TTree.h:225
TGCanvas
A frame containing two scrollbars (a horizontal and a vertical) and a viewport.
Definition: TGCanvas.h:192
TTreeViewer::fBarListIn
TGTextEntry * fBarListIn
Tree input event list name entry.
Definition: TTreeViewer.h:155
TGListTreeItem
Definition: TGListTree.h:27
TTreeViewer::fBGRecord
TGPictureButton * fBGRecord
Definition: TTreeViewer.h:165
TTreeViewer::fPicZ
const TGPicture * fPicZ
Pictures for Z expressions.
Definition: TTreeViewer.h:92
TTreeViewer::fTreeIndex
Int_t fTreeIndex
Index of current tree in list.
Definition: TTreeViewer.h:89
TTreeViewer::fEnableCut
Bool_t fEnableCut
True if cuts are enabled.
Definition: TTreeViewer.h:101
TTreeViewer::fV1
TGVerticalFrame * fV1
List tree mother.
Definition: TTreeViewer.h:144
TGClient
Window client.
Definition: TGClient.h:37
TList
A doubly linked list.
Definition: TList.h:44
int