ROOT » TREE » TREEVIEWER » TTreeViewer

class TTreeViewer: public TGMainFrame


 TreeViewer is a graphic user interface designed to handle ROOT trees and to
 take advantage of TTree class features.

 It uses ROOT native GUI widgets adapted for 'drag and drop' functionality.
 in the same session.
 The following capabilities are making the viewer a helpful tool for analysis:
  - several trees may be opened in the same session;
  - branches and leaves can be easily browsed or scanned;
  - fast drawing of branch expressions by double-clicking;
  - new variables/selections easy to compose with the built-in editor;
  - histograms can be composed by dragging leaves or user-defined expressions
  to X, Y and Z axis items;
  - the tree entries to be processed can be selected with a double slider;
  - selections can be defined and activated by dragging them to the 'Cut' item;
  - all expressions can be aliased and aliases can be used in composing others;
  - input/output event lists easy to handle;
  - menu with histogram drawing options;
  - user commands may be executed within the viewer and the current command
  can be echoed;
  - current 'Draw' event loop is reflected by a progress bar and may be
  interrupted by the user;
  - all widgets have self-explaining tool tips and/or context menus;
  - expressions/leaves can be dragged to a 'scan box' and scanned by
  double-clicking this item. The result can be redirected to an ASCII file;

 The layout has the following items:

  - a menu bar with entries : File, Edit, Run, Options and Help;
  - a toolbar in the upper part where you can issue user commands, change
  the drawing option and the histogram name, three check buttons Hist, Rec
  and Scan.HIST toggles histogram drawing mode, REC enables recording of the
  last command issued and SCAN enables redirecting of TTree::Scan command in
  an ASCII file (see -Scanning expressions-);
  - a button bar in the lower part with : buttons DRAW/STOP that issue histogram
  drawing and stop the current command respectively, two text widgets where
  input and output event lists can be specified, a message box and a RESET
  button on the right that clear edited expression content (see Editing...)
  - a tree-type list on the main left panel where you can select among trees or
  branches. The tree/branch will be detailed in the right panel.
  Mapped trees are provided with context menus, activated by right-clicking;
  - a view-type list on the right panel. The first column contain X, Y and
  Z expression items, an optional cut and ten optional editable expressions.
  Expressions and leaf-type items can be dragged or deleted. A right click on
  the list-box or item activates context menus.

 Opening a new tree and saving a session :

   To open a new tree in the viewer use <File/Open tree file> menu
 The content of the file (keys) will be listed. Use <SetTreeName> function
 from the context menu of the right panel, entering a tree name among those
 listed.
   To save the current session, use <File/Save> menu or the <SaveSource>
 function from the context menu of the right panel (to specify the name of the
 file - name.C)
   To open a previously saved session for the tree MyTree, first open MyTree
 in the browser, then use <File/Open session> menu.

 Dragging items:

 Items that can be dragged from the list in the right : expressions and
 leaves. Dragging an item and dropping to another will copy the content of first
 to the last (leaf->expression, expression->expression). Items far to the right
 side of the list can be easily dragged to the left (where expressions are
 placed) by dragging them to the left at least 10 pixels.

 Editing expressions

   Any editable expression from the right panel has two components : a
 true name (that will be used when TTree::Draw() commands are issued) and an
 alias. The visible name is the alias. Aliases of user defined expressions have
 a leading ~ and may be used in new expressions. Expressions containing boolean
 operators have a specific icon and may be dragged to the active cut (scissors
 item) position.
    The expression editor can be activated by double-clicking empty expression,
 using <EditExpression> from the selected expression context menu or using
 <Edit/Expression> menu.
    The editor will pop-up in the left part, but it can be moved.
 The editor usage is the following :
   - you can write C expressions made of leaf names by hand or you can insert
   any item from the right panel by clicking on it (recommandable);
   - you can click on other expressions/leaves to paste them in the editor;
   - you should write the item alias by hand since it not only make the expression
  meaningfull, but it also highly improve the layout for big expressions
   - you may redefine an old alias - the other expressions depending on it will
   be modified accordingly. An alias must not be the leading string of other aliases.
  When Draw commands are issued, the name of the corresponding histogram axes
  will become the aliases of the expressions.

 User commands can be issued directly from the textbox labeled "Command"
 from the upper-left toolbar by typing and pressing Enter at the end.
   Another way is from the right panel context menu : ExecuteCommand.
 All commands can be interrupted at any time by pressing the STOP button
 from the bottom-left
 You can toggle recording of the current command in the history file by
 checking the Rec button from the top-right

 Context menus

   You can activate context menus by right-clicking on items or inside the
 right panel.
 Context menus for mapped items from the left tree-type list :
   The items from the left that are provided with context menus are tree and
 branch items. You can directly activate the *MENU* marked methods of TTree
 from this menu.
 Context menu for the right panel :
   A general context menu is acivated if the user right-clicks the right panel.
   Commands are :
   - EmptyAll        : clears the content of all expressions;
   - ExecuteCommand  : execute a ROOT command;
   - MakeSelector    : equivalent of TTree::MakeSelector();
   - NewExpression   : add an expression item in the right panel;
   - Process         : equivalent of TTree::Process();
   - SaveSource      : save the current session as a C++ macro;
   - SetScanFileName : define a name for the file where TTree::Scan command
   is redirected when the <Scan> button is checked;
   - SetTreeName     : open a new tree whith this name in the viewer;
   A specific context menu is activated if expressions/leaves are right-clicked.
   Commands are :
   - Draw            : draw a histogram for this item;
   - EditExpression  : pops-up the expression editor;
   - Empty           : empty the name and alias of this item;
   - RemoveItem      : removes clicked item from the list;
   - Scan            : scan this expression;
   - SetExpression   : edit name and alias for this item by hand;

 Starting the viewer

   1) From the TBrowser :
  Select a tree in the TBrowser, then call the StartViewer() method from its
 context menu (right-click on the tree).
   2) From the command line :
  Start a ROOT session in the directory where you have your tree.
 You will need first to load the library for TTreeViewer and optionally other
 libraries for user defined classes (you can do this later in the session) :
    root [0] gSystem->Load(\"TTreeViewer\");
 Supposing you have the tree MyTree in the file MyFile, you can do :
    root [1] TFile file(\"Myfile\");
    root [2] new TTreeViewer(\"Mytree\");
 or :
    root [2] TreeViewer *tv = new TTreeViewer();
    root [3] tv->SetTreeName(\"Mytree\");


/* */

Function Members (Methods)

public:
virtual~TTreeViewer()
voidTObject::AbstractMethod(const char* method) const
virtual voidTGFrame::Activate(Bool_t)
voidActivateButtons(Bool_t first, Bool_t previous, Bool_t next, Bool_t last)
virtual voidTGCompositeFrame::AddFrame(TGFrame* f, TGLayoutHints* l = 0)
voidTGFrame::AddInput(UInt_t emask)
virtual voidTObject::AppendPad(Option_t* option = "")
voidAppendTree(TTree* tree)
static Bool_tTQObject::AreAllSignalsBlocked()
Bool_tTQObject::AreSignalsBlocked() const
virtual Bool_tTGMainFrame::BindKey(const TGWindow* w, Int_t keycode, Int_t modifier) const
static Bool_tTQObject::BlockAllSignals(Bool_t b)
Bool_tTQObject::BlockSignals(Bool_t b)
virtual voidTObject::Browse(TBrowser* b)
virtual voidTGFrame::ChangeBackground(Pixel_t back)
virtual voidTQObject::ChangedBy(const char* method)SIGNAL
virtual voidTGCompositeFrame::ChangeOptions(UInt_t options)
virtual voidTGCompositeFrame::ChangeSubframesBackground(Pixel_t back)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTGCompositeFrame::Cleanup()
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual voidCloseWindow()
voidTQObject::CollectClassSignalLists(TList& list, TClass* cls)
virtual Int_tTObject::Compare(const TObject* obj) const
Bool_tTQObject::Connect(const char* signal, const char* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::Connect(TQObject* sender, const char* signal, const char* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::Connect(const char* sender_class, const char* signal, const char* receiver_class, void* receiver, const char* slot)
virtual voidTQObject::Connected(const char*)
Bool_tTGFrame::Contains(Int_t x, Int_t y) const
virtual voidTObject::Copy(TObject& object) const
virtual voidDelete(Option_t*)MENU
virtual voidTGFrame::DeleteWindow()
virtual voidTQObject::Destroyed()SIGNAL
virtual voidTGWindow::DestroySubwindows()
virtual voidTGWindow::DestroyWindow()
Bool_tTQObject::Disconnect(const char* signal = 0, void* receiver = 0, const char* slot = 0)
static Bool_tTQObject::Disconnect(TQObject* sender, const char* signal = 0, void* receiver = 0, const char* slot = 0)
static Bool_tTQObject::Disconnect(const char* class_name, const char* signal, void* receiver = 0, const char* slot = 0)
virtual voidTQObject::Disconnected(const char*)
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
voidTGMainFrame::DontCallClose()
voidDoRefresh()
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTGFrame::DrawBorder()
virtual voidTGFrame::DrawClass() const
virtual TObject*TGFrame::DrawClone(Option_t* = "") const
virtual voidTGFrame::DrawCopy(Handle_t, Int_t, Int_t)
virtual voidTGFrame::Dump() const
voidEditExpression()
voidTQObject::Emit(const char* signal)
voidTQObject::Emit(const char* signal, Long_t* paramArr)
voidTQObject::Emit(const char* signal, const char* params)
voidTQObject::Emit(const char* signal, Double_t param)
voidTQObject::Emit(const char* signal, Long_t param)
voidTQObject::Emit(const char* signal, Long64_t param)
voidTQObject::Emit(const char* signal, Bool_t param)
voidTQObject::Emit(const char* signal, Char_t param)
voidTQObject::Emit(const char* signal, UChar_t param)
voidTQObject::Emit(const char* signal, Short_t param)
voidTQObject::Emit(const char* signal, UShort_t param)
voidTQObject::Emit(const char* signal, Int_t param)
voidTQObject::Emit(const char* signal, UInt_t param)
voidTQObject::Emit(const char* signal, ULong_t param)
voidTQObject::Emit(const char* signal, ULong64_t param)
voidTQObject::Emit(const char* signal, Float_t param)
voidTQObject::EmitVA(const char* signal, Int_t nargs)
voidTQObject::EmitVA(const char* signal, Int_t nargs, va_list va)
voidEmpty()
voidEmptyAll()MENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
voidExecuteCommand(const char* command, Bool_t fast = kFALSE)MENU
voidExecuteDraw()
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
voidExecuteSpider()
TTVLVEntry*ExpressionItem(Int_t index)
TList*ExpressionList()
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TGFrameElement*TGCompositeFrame::FindFrameElement(TGFrame* f) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Pixel_tTGFrame::GetBackground() const
static const TGGC&TGFrame::GetBckgndGC()
TList*TGMainFrame::GetBindList() const
static const TGGC&TGFrame::GetBlackGC()
static Pixel_tTGFrame::GetBlackPixel()
Int_tTGFrame::GetBorderWidth() const
voidTGMainFrame::GetClassHints(const char*& className, const char*& resourceName) const
TGClient*TGObject::GetClient() const
static Int_tTGWindow::GetCounter()
static Pixel_tTGFrame::GetDefaultFrameBackground()
virtual UInt_tTGCompositeFrame::GetDefaultHeight() const
static Pixel_tTGFrame::GetDefaultSelectedBackground()
virtual TGDimensionTGCompositeFrame::GetDefaultSize() const
virtual UInt_tTGCompositeFrame::GetDefaultWidth() const
virtual TDNDData*TGFrame::GetDNDData(Atom_t)
virtual Int_tTGFrame::GetDragType() const
virtual Option_t*TObject::GetDrawOption() const
virtual Int_tTGFrame::GetDropType() const
static Long_tTObject::GetDtorOnly()
virtual UInt_tTGWindow::GetEditDisabled() const
UInt_tTGFrame::GetEventMask() const
virtual Pixel_tTGFrame::GetForeground() const
TGFrameElement*TGFrame::GetFrameElement() const
virtual TGFrame*TGCompositeFrame::GetFrameFromPoint(Int_t x, Int_t y)
const char*GetGrOpt()
UInt_tTGFrame::GetHeight() const
static const TGGC&TGFrame::GetHilightGC()
virtual const char*TGMainFrame::GetIconName() const
const char*TGMainFrame::GetIconPixmap() const
Handle_tTGObject::GetId() const
virtual TGLayoutManager*TGCompositeFrame::GetLayoutManager() const
virtual TList*TGCompositeFrame::GetList() const
TList*TQObject::GetListOfClassSignals() const
TList*TQObject::GetListOfConnections() const
TList*TQObject::GetListOfSignals() const
virtual const TGWindow*TGWindow::GetMainFrame() const
UInt_tTGFrame::GetMaxHeight() const
UInt_tTGFrame::GetMaxWidth() const
UInt_tTGFrame::GetMinHeight() const
UInt_tTGFrame::GetMinWidth() const
voidTGMainFrame::GetMWMHints(UInt_t& value, UInt_t& funcs, UInt_t& input) const
virtual const char*TGWindow::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual UInt_tTGFrame::GetOptions() const
const TGWindow*TGWindow::GetParent() const
static const TGGC&TGFrame::GetShadowGC()
TGDimensionTGFrame::GetSize() const
Int_tTGCompositeFrame::GetState(TGFrame* f) const
virtual const char*TObject::GetTitle() const
TTree*GetTree()
virtual UInt_tTObject::GetUniqueID() const
static const TGGC&TGFrame::GetWhiteGC()
static Pixel_tTGFrame::GetWhitePixel()
UInt_tTGFrame::GetWidth() const
const char*TGMainFrame::GetWindowName() const
voidTGMainFrame::GetWMPosition(Int_t& x, Int_t& y) const
voidTGMainFrame::GetWMSize(UInt_t& w, UInt_t& h) const
voidTGMainFrame::GetWMSizeHints(UInt_t& wmin, UInt_t& hmin, UInt_t& wmax, UInt_t& hmax, UInt_t& winc, UInt_t& hinc) const
EInitialStateTGMainFrame::GetWMState() const
Int_tTGFrame::GetX() const
Int_tTGFrame::GetY() const
virtual Bool_tTGMainFrame::HandleButton(Event_t* event)
virtual Bool_tTGMainFrame::HandleClientMessage(Event_t* event)
virtual Bool_tTGFrame::HandleColormapChange(Event_t*)
virtual Bool_tTGFrame::HandleConfigureNotify(Event_t* event)
virtual Bool_tTGCompositeFrame::HandleCrossing(Event_t*)
virtual Bool_tTGFrame::HandleDNDDrop(TDNDData*)
virtual Atom_tTGFrame::HandleDNDEnter(Atom_t*)
virtual Bool_tTGFrame::HandleDNDFinished()
virtual Bool_tTGFrame::HandleDNDLeave()
virtual Atom_tTGFrame::HandleDNDPosition(Int_t, Int_t, Atom_t, Int_t, Int_t)
virtual Bool_tTGCompositeFrame::HandleDoubleClick(Event_t*)
virtual Bool_tTGCompositeFrame::HandleDragDrop(TGFrame* frame, Int_t x, Int_t y, TGLayoutHints* lo)
virtual Bool_tTGCompositeFrame::HandleDragEnter(TGFrame*)
virtual Bool_tTGCompositeFrame::HandleDragLeave(TGFrame*)
virtual Bool_tTGCompositeFrame::HandleDragMotion(TGFrame*)
virtual Bool_tTGFrame::HandleEvent(Event_t* event)
virtual Bool_tTGWindow::HandleExpose(Event_t* event)
virtual Bool_tTGCompositeFrame::HandleFocusChange(Event_t*)
virtual Bool_tTGWindow::HandleIdleEvent(TGIdleHandler*)
virtual Bool_tTGMainFrame::HandleKey(Event_t* event)
virtual Bool_tTGMainFrame::HandleMotion(Event_t* event)
virtual Bool_tTGMainFrame::HandleSelection(Event_t* event)
virtual Bool_tTGFrame::HandleSelectionClear(Event_t*)
virtual Bool_tTGMainFrame::HandleSelectionRequest(Event_t* event)
virtual Bool_tHandleTimer(TTimer* timer)
virtual Bool_tTQObject::HasConnection(const char* signal_name) const
virtual ULong_tTGObject::Hash() const
virtual voidTGCompositeFrame::HideFrame(TGFrame* f)
virtual voidTQObject::HighPriority(const char* signal_name, const char* slot_name = 0)
virtual voidTGWindow::IconifyWindow()
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTGFrame::Inspect() const
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTGFrame::IsActive() const
Bool_tTGCompositeFrame::IsArranged(TGFrame* f) const
Bool_tTGCompositeFrame::IsArranged(TGFrameElement* ptr) const
virtual Bool_tTGCompositeFrame::IsComposite() const
Bool_tIsCutEnabled()
Bool_tTGFrame::IsDNDSource() const
Bool_tTGFrame::IsDNDTarget() const
virtual Bool_tTGCompositeFrame::IsEditable() const
virtual Bool_tTGObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
virtual Bool_tTGCompositeFrame::IsLayoutBroken() const
virtual Bool_tTGWindow::IsMapped()
virtual Bool_tTGCompositeFrame::IsMapSubwindows() const
Bool_tTObject::IsOnHeap() const
Bool_tIsScanRedirected()
virtual Bool_tTObject::IsSortable() const
Bool_tTGCompositeFrame::IsVisible(TGFrame* f) const
Bool_tTGCompositeFrame::IsVisible(TGFrameElement* ptr) const
Bool_tTObject::IsZombie() const
virtual voidTGCompositeFrame::Layout()
virtual voidTGWindow::LowerWindow()
virtual voidTQObject::LowPriority(const char* signal_name, const char* slot_name = 0)
virtual voidTObject::ls(Option_t* option = "") const
Int_tMakeSelector(const char* selector = 0)MENU
virtual voidTGFrame::MapRaised()
virtual voidTGCompositeFrame::MapSubwindows()
virtual voidTGFrame::MapWindow()
voidTObject::MayNotUse(const char* method) const
virtual voidMessage(const char* msg)
virtual voidTGFrame::Move(Int_t x, Int_t y)
virtual voidTGFrame::MoveResize(Int_t x, Int_t y, UInt_t w = 0, UInt_t h = 0)
virtual Int_tTGCompositeFrame::MustCleanup() const
voidNewExpression()MENU
virtual Bool_tTObject::Notify()
virtual Int_tTQObject::NumberOfConnections() const
virtual Int_tTQObject::NumberOfSignals() const
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TTreeViewer&operator=(const TTreeViewer&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTGCompositeFrame::Print(Option_t* option = "") const
voidPrintEntries()
Long64_tProcess(const char* filename, Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)MENU
virtual voidTGFrame::ProcessedConfigure(Event_t* event)SIGNAL
virtual voidTGFrame::ProcessedEvent(Event_t* event)SIGNAL
virtual Bool_tProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
virtual voidTGWindow::RaiseWindow()
virtual Int_tTObject::Read(const char* name)
virtual voidTGFrame::ReallyDelete()
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual voidTGCompositeFrame::RemoveAll()
virtual voidTGMainFrame::RemoveBind(const TGWindow* w, Int_t keycode, Int_t modifier) const
virtual voidTGCompositeFrame::RemoveFrame(TGFrame* f)
voidTGFrame::RemoveInput(UInt_t emask)
voidRemoveItem()
voidRemoveLastRecord()MENU
virtual voidTGFrame::ReparentWindow(const TGWindow* p, Int_t x = 0, Int_t y = 0)
virtual voidTGWindow::RequestFocus()
voidTObject::ResetBit(UInt_t f)
virtual voidTGFrame::Resize(TGDimension size)
virtual voidTGFrame::Resize(UInt_t w = 0, UInt_t h = 0)
virtual voidTGObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual Bool_tTGMainFrame::SaveFrameAsCodeOrImage()
virtual voidTGMainFrame::SavePrimitive(ostream& out, Option_t* option = "")
virtual voidTGCompositeFrame::SavePrimitiveSubframes(ostream& out, Option_t* option = "")
virtual voidSaveSource(const char* filename = "", Option_t* option = "")MENU
voidTGFrame::SaveUserColor(ostream& out, Option_t*)
virtual voidTGMainFrame::SendCloseMessage()
virtual voidTGFrame::SendMessage(const TGWindow* w, Long_t msg, Long_t parm1, Long_t parm2)
virtual voidTGFrame::SetBackgroundColor(Pixel_t back)
virtual voidTGWindow::SetBackgroundPixmap(Pixmap_t pixmap)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidTGMainFrame::SetClassHints(const char* className, const char* resourceName)
virtual voidTGCompositeFrame::SetCleanup(Int_t mode = kLocalCleanup)
voidSetCurrentRecord(Long64_t entry)
voidSetCutMode(Bool_t enabled = kTRUE)
voidTGFrame::SetDNDSource(Bool_t onoff)
voidTGFrame::SetDNDTarget(Bool_t onoff)
virtual voidTGFrame::SetDragType(Int_t type)
virtual voidTGFrame::SetDrawOption(Option_t* = "")
virtual voidTGFrame::SetDropType(Int_t type)
static voidTObject::SetDtorOnly(void* obj)
virtual voidTGCompositeFrame::SetEditable(Bool_t on = kTRUE)
virtual voidTGCompositeFrame::SetEditDisabled(UInt_t on = 1)
virtual voidTGFrame::SetForegroundColor(Pixel_t)
voidTGFrame::SetFrameElement(TGFrameElement* fe)
voidSetGrOpt(const char* option)
virtual voidTGFrame::SetHeight(UInt_t h)
voidSetHistogramTitle(const char* title)
voidTGMainFrame::SetIconName(const char* name)
const TGPicture*TGMainFrame::SetIconPixmap(const char* iconName)
voidTGMainFrame::SetIconPixmap(char** xpm_array)
virtual voidTGCompositeFrame::SetLayoutBroken(Bool_t on = kTRUE)
virtual voidTGCompositeFrame::SetLayoutManager(TGLayoutManager* l)
virtual voidTGCompositeFrame::SetMapSubwindows(Bool_t on)
virtual voidTGFrame::SetMaxHeight(UInt_t h)
virtual voidTGFrame::SetMaxWidth(UInt_t w)
virtual voidTGFrame::SetMinHeight(UInt_t h)
virtual voidTGFrame::SetMinWidth(UInt_t w)
voidTGMainFrame::SetMWMHints(UInt_t value, UInt_t funcs, UInt_t input)
virtual voidTGWindow::SetName(const char* name)
voidSetNexpressions(Int_t expr)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetRecordName(const char* name)MENU
voidSetScanFileName(const char* name = "")MENU
voidSetScanMode(Bool_t mode = kTRUE)
voidSetScanRedirect(Bool_t mode)
voidSetSession(TTVSession* session)
virtual voidTGFrame::SetSize(const TGDimension& s)
voidSetTree(TTree* tree)
voidSetTreeName(const char* treeName)MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
voidSetUserCode(const char* code, Bool_t autoexec = kTRUE)MENU
virtual voidTGFrame::SetWidth(UInt_t w)
virtual voidTGMainFrame::SetWindowName(const char* name = 0)
voidTGMainFrame::SetWMPosition(Int_t x, Int_t y)
voidTGMainFrame::SetWMSize(UInt_t w, UInt_t h)
voidTGMainFrame::SetWMSizeHints(UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc)
voidTGMainFrame::SetWMState(EInitialState state)
virtual voidTGFrame::SetX(Int_t x)
virtual voidTGFrame::SetY(Int_t y)
virtual voidTGCompositeFrame::ShowFrame(TGFrame* f)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
Bool_tSwitchTree(Int_t index)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual Bool_tTGCompositeFrame::TranslateCoordinates(TGFrame* child, Int_t x, Int_t y, Int_t& fx, Int_t& fy)
TTreeViewer(const char* treeName = 0)
TTreeViewer(const TTree* tree)
TTreeViewer(const TTreeViewer&)
virtual voidTGFrame::UnmapWindow()
voidUpdateCombo()
voidUpdateRecord(const char* name = "new name")MENU
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
static Int_tTQObject::CheckConnectArgs(TQObject* sender, TClass* sender_class, const char* signal, TClass* receiver_class, const char* slot)
static Bool_tTQObject::ConnectToClass(TQObject* sender, const char* signal, TClass* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::ConnectToClass(const char* sender_class, const char* signal, TClass* receiver_class, void* receiver, const char* slot)
virtual voidTGFrame::DoRedraw()
virtual voidTGFrame::Draw3dRectangle(UInt_t type, Int_t x, Int_t y, UInt_t w, UInt_t h)
static Time_tTGFrame::GetLastClick()
TStringTGMainFrame::GetMWMfuncString() const
TStringTGMainFrame::GetMWMinpString() const
TStringTGMainFrame::GetMWMvalueString() const
TStringTGFrame::GetOptionString() const
const TGResourcePool*TGFrame::GetResourcePool() const
virtual void*TGFrame::GetSender()
virtual const char*TQObject::GetSenderClassName() const
voidTObject::MakeZombie()
virtual voidTGFrame::StartGuiBuilding(Bool_t on = kTRUE)
private:
voidBuildInterface()
const char*Cut()
Int_tDimension()
virtual voidDoError(int level, const char* location, const char* fmt, va_list va) const
const char*EmptyBrackets(const char* name)
const char*En(Int_t n)
const char*Ex()
const char*Ey()
const char*Ez()
voidMapBranch(TBranch* branch, const char* prefix = "", TGListTreeItem* parent = 0, Bool_t listIt = kTRUE)
voidMapOptions(Long_t parm1)
voidMapTree(TTree* tree, TGListTreeItem* parent = 0, Bool_t listIt = kTRUE)
const char*ScanList()
voidSetFile()
voidSetParentTree(TGListTreeItem* item)

Data Members

public:
static TObject::<anonymous>TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static TGWindow::EEditModeTGWindow::kEditDisable
static TGWindow::EEditModeTGWindow::kEditDisableBtnEnable
static TGWindow::EEditModeTGWindow::kEditDisableEvents
static TGWindow::EEditModeTGWindow::kEditDisableGrab
static TGWindow::EEditModeTGWindow::kEditDisableHeight
static TGWindow::EEditModeTGWindow::kEditDisableKeyEnable
static TGWindow::EEditModeTGWindow::kEditDisableLayout
static TGWindow::EEditModeTGWindow::kEditDisableResize
static TGWindow::EEditModeTGWindow::kEditDisableWidth
static TGWindow::EEditModeTGWindow::kEditEnable
static TObject::EStatusBitsTObject::kHasUUID
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::<anonymous>TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static TTreeViewer::EListItemTypekLTActionType
static TTreeViewer::EListItemTypekLTBranchType
static TTreeViewer::EListItemTypekLTCutType
static TTreeViewer::EListItemTypekLTDragType
static TTreeViewer::EListItemTypekLTExpressionType
static TTreeViewer::EListItemTypekLTLeafType
static TTreeViewer::EListItemTypekLTNoType
static TTreeViewer::EListItemTypekLTPackType
static TTreeViewer::EListItemTypekLTTreeType
static TObject::EStatusBitsTObject::kMustCleanup
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::<anonymous>TObject::kNotDeleted
static TObject::EStatusBitsTObject::kObjInCanvas
static TObject::<anonymous>TObject::kOverwrite
static TObject::<anonymous>TObject::kSingleKey
static TObject::<anonymous>TObject::kWriteDelete
static TObject::<anonymous>TObject::kZombie
protected:
Pixel_tTGFrame::fBackgroundframe background color
TList*TGMainFrame::fBindListlist with key bindings
Int_tTGFrame::fBorderWidthframe border width
TStringTGMainFrame::fClassNameWM class name
TGClient*TGObject::fClientConnection to display server
Int_tTGFrame::fDNDStateEDNDFlags
Atom_t*TGMainFrame::fDNDTypeListhandles DND types
UInt_tTGWindow::fEditDisabledflags used for "guibuilding"
UInt_tTGFrame::fEventMaskcurrenty active event mask
TGFrameElement*TGFrame::fFEpointer to frame element
UInt_tTGFrame::fHeightframe height
TStringTGMainFrame::fIconNameicon name
TStringTGMainFrame::fIconPixmapicon pixmap name
Handle_tTGObject::fIdX11/Win32 Window identifier
Bool_tTGCompositeFrame::fLayoutBrokenno layout manager is used
TGLayoutManager*TGCompositeFrame::fLayoutManagerlayout manager
TList*TGCompositeFrame::fListcontainer of frame elements
TList*TQObject::fListOfConnections! list of connections to this object
TList*TQObject::fListOfSignals! list of signals from this object
UInt_tTGMainFrame::fMWMFuncsMWM functions
UInt_tTGMainFrame::fMWMInputMWM input modes
UInt_tTGMainFrame::fMWMValueMWM decoration hints
Bool_tTGCompositeFrame::fMapSubwindowskTRUE - map subwindows
UInt_tTGFrame::fMaxHeightmaximal frame height
UInt_tTGFrame::fMaxWidthmaximal frame width
UInt_tTGFrame::fMinHeightminimal frame height
UInt_tTGFrame::fMinWidthminimal frame width
Int_tTGCompositeFrame::fMustCleanupcleanup mode (see EFrameCleanup)
TStringTGWindow::fNamename of the window used in SavePrimitive()
Bool_tTGWindow::fNeedRedrawkTRUE if window needs to be redrawn
UInt_tTGFrame::fOptionsframe options
const TGWindow*TGWindow::fParentParent window
TStringTGMainFrame::fResourceNameWM resource name
Bool_tTQObject::fSignalsBlocked! flag used for suppression of signals
UInt_tTGMainFrame::fWMHeightWM height
UInt_tTGMainFrame::fWMHeightIncWM height increments
EInitialStateTGMainFrame::fWMInitStateWM initial state
UInt_tTGMainFrame::fWMMaxHeightWM max height
UInt_tTGMainFrame::fWMMaxWidthWM max width
UInt_tTGMainFrame::fWMMinHeightWM min height
UInt_tTGMainFrame::fWMMinWidthWM min width
UInt_tTGMainFrame::fWMWidthWM width
UInt_tTGMainFrame::fWMWidthIncWM width increments
Int_tTGMainFrame::fWMXWM x position
Int_tTGMainFrame::fWMYWM y position
UInt_tTGFrame::fWidthframe width
TStringTGMainFrame::fWindowNamewindow name
Int_tTGFrame::fXframe x position
Int_tTGFrame::fYframe y position
static Bool_tTQObject::fgAllSignalsBlockedflag used for suppression of all signals
static const TGGC*TGFrame::fgBckgndGC
static const TGGC*TGFrame::fgBlackGC
static Pixel_tTGFrame::fgBlackPixel
static Int_tTGWindow::fgCountercounter of created windows in SavePrimitive
static Window_tTGFrame::fgDbw
static Int_tTGFrame::fgDbx
static Int_tTGFrame::fgDby
static Pixel_tTGFrame::fgDefaultFrameBackground
static TGLayoutHints*TGCompositeFrame::fgDefaultHintsdefault hints used by AddFrame()
static Pixel_tTGFrame::fgDefaultSelectedBackground
static const TGGC*TGFrame::fgHilightGC
static Bool_tTGFrame::fgInit
static UInt_tTGFrame::fgLastButton
static Time_tTGFrame::fgLastClick
static const TGGC*TGFrame::fgShadowGC
static UInt_tTGFrame::fgUserColor
static const TGGC*TGFrame::fgWhiteGC
static Pixel_tTGFrame::fgWhitePixel
static TGFrame::<anonymous>TGFrame::kDeleteWindowCalled
static TGMainFrame::<anonymous>TGMainFrame::kDontCallClose
private:
TGHorizontalFrame*fBFramebutton frame
TGPictureButton*fBGFirst
TGPictureButton*fBGLast
TGPictureButton*fBGNext
TGPictureButton*fBGPrevious
TGPictureButton*fBGRecord
TGLabel*fBLbl4label for input list entry
TGLabel*fBLbl5label for output list entry
TGTextEntry*fBarCommanduser command entry
TGCheckButton*fBarHchecked for drawing current histogram with different graphic option
TGTextEntry*fBarHisthistogram name entry
TGLayoutHints*fBarLayout
TGLabel*fBarLbl1label of command text entry
TGLabel*fBarLbl2label of option text entry
TGLabel*fBarLbl3label of histogram name text entry
TGTextEntry*fBarListIntree input event list name entry
TGTextEntry*fBarListOuttree output event list name entry
TGTextEntry*fBarOptionhistogram drawing option entry
TGCheckButton*fBarReccommand recording toggle
TGCheckButton*fBarScanchecked for tree scan
TGComboBox*fCombocombo box with session records
TContextMenu*fContextMenucontext menu for tree viewer
Bool_tfCountingtrue if timer is counting
TGPictureButton*fDRAWDRAW button
Cursor_tfDefaultCursordefault cursor
TGSelectBox*fDialogBoxexpression editor
Int_tfDimensionhistogram dimension
TGPopupMenu*fEditMenu
Bool_tfEnableCuttrue if cuts are enabled
TGPopupMenu*fFileMenu
const char*fFilenamename of the file containing the tree
TGPopupMenu*fHelpMenu
TGHorizontalFrame*fHfmain horizontal frame
TGHorizontalFrame*fHpbprogress bar frame
TTVLVContainer*fLVContainercontainer for listview
TStringfLastOptionlast graphic option
TGLabel*fLbl1label for list tree
TGLabel*fLbl2label for list view
TGCompositeFrame*fListHdrheader for list view
TGListView*fListViewListView with branches and leaves
TGListTree*fLtListTree with file and tree items
TBranch*fMappedBranchlisted branch
TTree*fMappedTreelisted tree
TGMenuBar*fMenuBar
TGLayoutHints*fMenuBarHelpLayout
TGLayoutHints*fMenuBarItemLayout
TGLayoutHints*fMenuBarLayout
Int_tfNexpressionsnumber of expression widgets
TGPopupMenu*fOptions1D
TGPopupMenu*fOptions2D
TGPopupMenu*fOptionsGen
TGPopupMenu*fOptionsMenu
const TGPicture*fPicDrawpictures for Draw/Stop buttons
const TGPicture*fPicRefrpictures for Refresh buttons //ia
const TGPicture*fPicStoppictures for Draw/Stop buttons
const TGPicture*fPicXpictures for X, Y and Z expressions
const TGPicture*fPicYpictures for X, Y and Z expressions
const TGPicture*fPicZpictures for X, Y and Z expressions
TGHProgressBar*fProgressBarprogress bar
TGPictureButton*fREFRREFRESH button //ia
TGTextButton*fResetclear expression's entries
TGPopupMenu*fRunMenu
TGTextButton*fSPIDERSPIDER button
TGPictureButton*fSTOPinterrupt current command (not yet)
Bool_tfScanModeflag activated when Scan Box is double-clicked
TTVSession*fSessioncurrent tree-viewer session
TGDoubleVSlider*fSlidervertical slider to select processed tree entries;
const char*fSourceFilename of the C++ source file - default treeviewer.C
TGStatusBar*fStatusBarstatus bar
Bool_tfStopMappingtrue if branch don't need remapping
TTimer*fTimertree viewer timer
TGToolBar*fToolBar
TTree*fTreeselected tree
TGCompositeFrame*fTreeHdrheader for list tree
Int_tfTreeIndexindex of current tree in list
TList*fTreeListlist of mapped trees
TGCanvas*fTreeViewListTree canvas container
TGVerticalFrame*fV1list tree mother
TGVerticalFrame*fV2list view mother
Bool_tfVarDrawtrue if an item is double-clicked
Cursor_tfWatchCursorwatch cursor
TList*fWidgetslist of widgets to be deleted

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TTreeViewer(const char* treeName = 0)
 TTreeViewer default constructor
TTreeViewer(const TTree* tree)
 TTreeViewer constructor with a pointer to a Tree
void AppendTree(TTree* tree)
 Allow geting the tree from the context menu.
void SetNexpressions(Int_t expr)
 Change the number of expression widgets.
void SetScanFileName(const char* name = "")
 Set the name of the file where to redirect <Scan> output.
void SetScanRedirect(Bool_t mode)
 Set the state of Scan check button.
void SetTree(TTree* tree)
 Assign the fTree member from existing tree, e.g. when calling
 tree->StartViewer() from the browser, or even from the command line.
void SetTreeName(const char* treeName)
 Allow geting the tree from the context menu.
void SetFile()
 Set file name containing the tree.
void BuildInterface()
 Create all viewer widgets.
~TTreeViewer()
 TTreeViewer destructor.
void ActivateButtons(Bool_t first, Bool_t previous, Bool_t next, Bool_t last)
 Enable/disable session buttons.
const char* Cut()
 Apply Cut
const char* ScanList()
 returns scanlist
void SetSession(TTVSession* session)
 Set current session
const char* EmptyBrackets(const char* name)
 Empty the bracket content of a string.
void EmptyAll()
 Clear the content of all items in the list view.
void Empty()
 Empty the content of the selected expression.
TTVLVEntry * ExpressionItem(Int_t index)
 Get the item from a specific position.
TList* ExpressionList()
 Get the list of expression items.
Int_t Dimension()
 Compute dimension of the histogram.
void ExecuteDraw()
 Called when the DRAW button is executed.
void ExecuteSpider()
 Draw a spider plot for the selected entries.
const char* Ex()
 Get the expression to be drawn on X axis.
const char* Ey()
 Get the expression to be drawn on Y axis.
const char* Ez()
 Get the expression to be drawn on Z axis.
const char* En(Int_t n)
 Get the n'th expression
void EditExpression()
 Start the expression editor.
Int_t MakeSelector(const char* selector = 0)
 Get use of TTree::MakeSelector() via the context menu.
Long64_t Process(const char* filename, Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
 Get use of TTree::Process() via the context menu.
const char * GetGrOpt()
 Get graph option
void SetGrOpt(const char* option)
 Set graph option
Bool_t IsScanRedirected()
 Return kTRUE if scan is redirected
void RemoveItem()
 Remove the selected item from the list.
void RemoveLastRecord()
 Remove the current record.
Bool_t HandleTimer(TTimer* timer)
 This function is called by the fTimer object.
Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
 Handle menu and other commands generated.
void CloseWindow()
 Close the viewer.
void ExecuteCommand(const char* command, Bool_t fast = kFALSE)
 Execute all user commands.
void MapOptions(Long_t parm1)
 Scan the selected options from option menu.
void MapTree(TTree* tree, TGListTreeItem* parent = 0, Bool_t listIt = kTRUE)
 Map current tree and expand its content (including friends) in the lists.
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 NewExpression()
 Create new expression
void SetParentTree(TGListTreeItem* item)
 Find parent tree of a clicked item.
void Message(const char* msg)
 Send a message on the status bar.
void DoError(int level, const char* location, const char* fmt, va_list va) const
 Put error/warning into TMsgBox and also forward to console.
void PrintEntries()
 Print the number of selected entries on status-bar.
void SaveSource(const char* filename = "", Option_t* option = "")
 Save current session as a C++ macro file.
Bool_t SwitchTree(Int_t index)
 Makes current the tree at a given index in the list.
void SetRecordName(const char* name)
 Set record name
void SetCurrentRecord(Long64_t entry)
 Set current record
void SetHistogramTitle(const char* title)
 Set title of Histogram
void SetUserCode(const char* code, Bool_t autoexec = kTRUE)
 user defined command for current record
void UpdateCombo()
 Updates combo box to current session entries.
void UpdateRecord(const char* name = "new name")
 Updates current record to new X, Y, Z items.
void DoRefresh()
 This slot is called when button REFR is clicked
TTreeViewer(const char* treeName = 0)
void Delete(Option_t* )
{ }
TTree * GetTree()
{return fTree;}
Bool_t IsCutEnabled()
{return fEnableCut;}
void SetCutMode(Bool_t enabled = kTRUE)
{fEnableCut = enabled;}
void SetScanMode(Bool_t mode = kTRUE)
{fScanMode = mode;}