12 #ifndef ROOT_TTreeViewer 13 #define ROOT_TTreeViewer 183 void DoError(
int level,
const char *location,
const char *fmt, va_list va)
const;
TGPictureButton * fBGPrevious
Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Handle menu and other commands generated.
void Empty()
Empty the content of the selected expression.
void SetNexpressions(Int_t expr)
Change the number of expression widgets.
TGPictureButton * fBGRecord
void ExecuteDraw()
Called when the DRAW button is executed.
TGLayoutHints * fBarLayout
const TGPicture * fPicRefr
void SetRecordName(const char *name)
Set record name.
void NewExpression()
Create new expression.
void PrintEntries()
Print the number of selected entries on status-bar.
void SetUserCode(const char *code, Bool_t autoexec=kTRUE)
user defined command for current record
void UpdateCombo()
Updates combo box to current session entries.
const char * Ex()
Get the expression to be drawn on X axis.
void DoRefresh()
This slot is called when button REFR is clicked.
void ActivateButtons(Bool_t first, Bool_t previous, Bool_t next, Bool_t last)
Enable/disable session buttons.
void SetParentTree(TGListTreeItem *item)
Find parent tree of a clicked item.
TGHorizontalFrame * fBFrame
void SetTreeName(const char *treeName)
Allow geting the tree from the context menu.
void SetScanMode(Bool_t mode=kTRUE)
TGHProgressBar * fProgressBar
void MapOptions(Long_t parm1)
Scan the selected options from option menu.
Int_t MakeSelector(const char *selector=0)
Get use of TTree::MakeSelector() via the context menu.
const char * EmptyBrackets(const char *name)
Empty the bracket content of a string.
void EditExpression()
Start the expression editor.
void Message(const char *msg)
Send a message on the status bar.
const TGPicture * fPicStop
TContextMenu * fContextMenu
TGPopupMenu * fOptionsGen
TGPictureButton * fBGNext
void SetCurrentRecord(Long64_t entry)
Set current record.
TGPopupMenu * fOptionsMenu
Bool_t SwitchTree(Int_t index)
Makes current the tree at a given index in the list.
void SaveSource(const char *filename="", Option_t *option="")
Save current session as a C++ macro file.
const char * Cut()
Apply Cut.
#define ClassDef(name, id)
Int_t Dimension()
Compute dimension of the histogram.
void ExecuteSpider()
Draw a spider plot for the selected entries.
A graphic user interface designed to handle ROOT trees and to take advantage of TTree class features...
const char * GetGrOpt()
Get graph option.
Bool_t HandleTimer(TTimer *timer)
This function is called by the fTimer object.
TGCompositeFrame * fListHdr
TList * ExpressionList()
Get the list of expression items.
const char * Ez()
Get the expression to be drawn on Z axis.
TGTextEntry * fBarCommand
void SetTree(TTree *tree)
Assign the fTree member from existing tree, e.g.
void SetFile()
Set file name containing the tree.
TTVLVContainer * fLVContainer
void SetCutMode(Bool_t enabled=kTRUE)
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.
void SetScanFileName(const char *name="")
Set the name of the file where to redirect <Scan> output.
TTVLVEntry * ExpressionItem(Int_t index)
Get the item from a specific position.
This class represent entries that goes into the TreeViewer listview container.
void SetSession(TTVSession *session)
Set current session.
void RemoveLastRecord()
Remove the current record.
Handles synchronous and a-synchronous timer events.
TGPictureButton * fBGLast
TTreeViewer(const char *treeName=0)
TTreeViewer default constructor.
void SetHistogramTitle(const char *title)
Set title of Histogram.
TGLayoutHints * fMenuBarHelpLayout
virtual ~TTreeViewer()
TTreeViewer destructor.
void RemoveItem()
Remove the selected item from the list.
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.
TGPictureButton * fBGFirst
TGLayoutHints * fMenuBarItemLayout
virtual void CloseWindow()
Close the viewer.
TGTextEntry * fBarListOut
void UpdateRecord(const char *name="new name")
Updates current record to new X, Y, Z items.
const TGPicture * fPicDraw
TGDoubleVSlider * fSlider
This class represent a specialized expression editor for TTVLVEntry 'true name' and 'alias' data memb...
void AppendTree(TTree *tree)
Allow geting the tree from the context menu.
void BuildInterface()
Create all viewer widgets.
void ExecuteCommand(const char *command, Bool_t fast=kFALSE)
Execute all user commands.
const char * En(Int_t n)
Get the n'th expression.
void SetGrOpt(const char *option)
Set graph option.
void SetScanRedirect(Bool_t mode)
Set the state of Scan check button.
I/O classes for TreeViewer session handling.
const char * Ey()
Get the expression to be drawn on Y axis.
void MapTree(TTree *tree, TGListTreeItem *parent=0, Bool_t listIt=kTRUE)
Map current tree and expand its content (including friends) in the lists.
TGLayoutHints * fMenuBarLayout
virtual void Delete(Option_t *)
Delete this object.
A TTree object has a header with a name and a title.
void EmptyAll()
Clear the content of all items in the list view.
void DoError(int level, const char *location, const char *fmt, va_list va) const
Put error/warning into TMsgBox and also forward to console.
const char * ScanList()
returns scanlist
TGCompositeFrame * fTreeHdr
A TTree is a list of TBranches.
Bool_t IsScanRedirected()
Return kTRUE if scan is redirected.
static constexpr Long64_t kMaxEntries
This class represent the list view container for the.