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