199#include "RConfigure.h"
260 "",
"AXIS",
"HIST",
"SAME",
"CYL",
"POL",
"SPH",
"PSR",
"LEGO",
"LEGO1",
"LEGO2",
261 "SURF",
"SURF1",
"SURF2",
"SURF3",
"SURF4"
265 "",
"AH",
"B",
"C",
"E",
"E1",
"E2",
"E3",
"E4",
"L",
"P",
"*H"
269 "",
"ARR",
"BOX",
"COL",
"COL2",
"CONT",
"CONT0",
"CONT1",
"CONT2",
"CONT3",
270 "FB",
"BB",
"SCAT",
"PROF"
342 fDimension(0), fVarDraw(
false), fScanMode(
false),
343 fTreeIndex(0), fDefaultCursor(0), fWatchCursor(0),
344 fCounting(
false), fStopMapping(
false), fEnableCut(
false),fNexpressions(0)
349 gROOT->ProcessLine(
"#ifndef GTV_DEFINED\n\
350 TTreeViewer *gTV = 0;\n\
351 TTree *tv__tree = 0;\n\
352 TList *tv__tree_list = 0;\n\
353 TFile *tv__tree_file = 0;\n\
354 #define GTV_DEFINED\n\
359 gROOT->ProcessLine(
"tv__tree_list = new TList;");
370 fDimension(0), fVarDraw(
false), fScanMode(
false),
371 fTreeIndex(0), fDefaultCursor(0), fWatchCursor(0),
372 fCounting(
false), fStopMapping(
false), fEnableCut(
false),fNexpressions(0)
379 gROOT->ProcessLine(
"#ifndef GTV_DEFINED\n\
380 TTreeViewer *gTV = 0;\n\
381 TTree *tv__tree = 0;\n\
382 TList *tv__tree_list = 0;\n\
383 TFile *tv__tree_file = 0;\n\
384 #define GTV_DEFINED\n\
390 gROOT->ProcessLine(
"tv__tree_list = new TList;");
401 cdir = tree->GetDirectory();
459 gClient->GetPicture(
"tree_t.xpm"),
gClient->GetPicture(
"tree_t.xpm"));
478 if (
diff <= 0)
return;
523 gClient->GetPicture(
"tree_t.xpm"),
gClient->GetPicture(
"tree_t.xpm"));
548 while ((tree = (
TTree*)next())) {
588 gClient->GetPicture(
"tree_t.xpm"),
gClient->GetPicture(
"tree_t.xpm"));
612 while ((obj=next())) {
618 std::cout <<
"File name : "<<
fFilename << std::endl;
644 gClient->GetColorByName(
"blue",color);
823 fBarOption->
SetToolTipText(
"Histogram graphics option. Type option here and click <Draw> (or <ENTER> to update current histogram).");
928 fSPIDER->
Connect(
"Clicked()",
"TTreeViewer",
this,
"ExecuteSpider()");
949 fREFR->
Connect(
"Clicked()",
"TTreeViewer",
this,
"DoRefresh()");
1105 entry->SetToolTipText(
"X expression. Drag and drop expressions here");
1114 entry->SetToolTipText(
"Y expression. Drag and drop expressions here");
1123 entry->SetToolTipText(
"Z expression. Drag and drop expressions here");
1133 entry->SetToolTipText(
"Active cut. Double-click to enable/disable");
1143 entry->SetToolTipText(
"Drag and drop expressions/leaves here. Double-click to scan. Check <Scan> to redirect on file.");
1147 entry->SetTrueName(
"");
1152 pic =
gClient->GetPicture(
"expression_t.xpm");
1156 entry->SetToolTipText(
"User defined expression/cut. Double-click to edit");
1276 bool next,
bool last)
1331 return (
objstr->String()).Data();
1339 return (
objstr->String()).Data();
1358 Warning(
"Empty",
"No item selected.");
1363 Warning(
"Empty",
"Not expression type.");
1368 item->SetTrueName(
"");
1409 Int_t dimension = 0;
1447 Warning(
"ExecuteDraw",
"Nothing to draw on X,Y,Z.");
1465 auto pad =
gROOT->GetSelectedPad();
1470 gROOT->SetInterrupt(
false);
1472 const char *cut =
"";
1508 if (current == last) {
1513 std::cout <<
"Graphics option " <<
gopt <<
" not valid for 3D histograms" << std::endl;
1516 std::cout <<
" Graphics option for current histogram changed to " <<
gopt << std::endl;
1531 std::cout <<
"Graphics option " <<
gopt <<
" not valid for 3D histograms" << std::endl;
1552 for (i=0; i<3; i++) {
1553 if (
alias[i].Length()) {
1577 Int_t dimension = 0;
1608 for(
Int_t i=0;i<10;++i){
1619 Warning(
"ExecuteSpider",
"Need at least 3 variables");
1632 auto pad =
gROOT->GetSelectedPad();
1637 gROOT->SetInterrupt(
false);
1639 const char *cut =
"";
1698 Warning(
"EditExpression",
"No item selected.");
1704 Warning(
"EditExpression",
"Not expression type.");
1728 if (!
fTree)
return 0;
1737 if (!
fTree)
return 0;
1774 Warning(
"RemoveItem",
"No item selected.");
1780 Warning(
"RemoveItem",
"Not removable type.");
1961 gROOT->SetInterrupt(
true);
1995 Warning(
"ProcessMessage",
"Edit expressions first.");
1999 Warning(
"ProcessMessage",
"You have only one expression active.");
2003 Warning(
"ProcessMessage",
"1D drawing options not apply to 2D histograms.");
2012 gROOT->MakeDefCanvas();
2019 info.SetIniDir(dir);
2021 if (!
info.fFilename)
return true;
2027 std::cout <<
"Use SetTreeName() from context menu and supply a tree name" << std::endl;
2028 std::cout <<
"The context menu is activated by right-clicking the panel from right" << std::endl;
2037 event.fX =
event.fY = 1;
2047 info.SetIniDir(dir);
2049 if (!
info.fFilename)
return true;
2098 hd->Resize(
hd->GetDefaultSize());
2173 const char*
vname =
item->GetTrueName();
2183 char*
msg2 =
new char[2000];
2213 message = message(0,150);
2281 item->SetSmallPic(
gClient->GetPicture(
"cut_t.xpm"));
2283 item->SetSmallPic(
gClient->GetPicture(
"cut-disable_t.xpm"));
2333 Warning(
"ExecuteCommand",
"Command too long: aborting.");
2439 for (
id=0;
id<
branches->GetEntries();
id++) {
2443 if (
name.Contains(
"fBits") ||
name.Contains(
"fUniqueID"))
continue;
2451 TIter nextf( tree->GetTree()->GetListOfFriends() );
2456 for (
id=0;
id<
branches->GetEntries();
id++) {
2460 if (
name.Contains(
"fBits") ||
name.Contains(
"fUniqueID"))
continue;
2481 if (prefix &&
strlen(prefix) > 0) {
2483 if (!
name.EndsWith(
"."))
name +=
".";
2491 if (
name.Contains(
"fBits") ||
name.Contains(
"fUniqueID"))
return;
2495 if ((
branch->GetListOfBranches()->GetEntries()) ||
2496 (
branch->GetNleaves())) {
2497 if (
branch->GetListOfBranches()->GetEntries()) {
2499 if (
branch->InheritsFrom(
"TBranchObject")) {
2500 pic =
gClient->GetPicture(
"branch-ob_t.xpm");
2503 if (
branch->InheritsFrom(
"TBranchClones")) {
2504 pic =
gClient->GetPicture(
"branch-cl_t.xpm");
2513 if (
branch->GetNleaves() > 1) {
2551 if ((
branch->GetListOfBranches()->GetEntries()) ||
2552 (
branch->GetNleaves())) {
2554 if (
branch->GetListOfBranches()->GetEntries()) {
2555 if (
branch->InheritsFrom(
"TBranchObject")) {
2556 pic =
gClient->GetPicture(
"branch-ob_t.xpm");
2559 if (
branch->InheritsFrom(
"TBranchClones")) {
2560 pic =
gClient->GetPicture(
"branch-cl_t.xpm");
2569 entry->SetToolTipText(
"Branch with sub-branches. Can not be dragged");
2574 if (
branch->GetNleaves() > 1) {
2581 entry->SetToolTipText(
"Branch with more than one leaf. Can not be dragged");
2599 entry->SetToolTipText(
"Double-click to draw. Drag to X, Y, Z or scan box.");
2605 pic = (
gClient->GetMimeTypeList())->GetIcon(
"TLeaf",
false);
2607 spic =
gClient->GetMimeTypeList()->GetIcon(
"TLeaf",
true);
2611 entry->SetToolTipText(
"Double-click to draw. Drag to X, Y, Z or scan box.");
2663 parent =
item->GetParent();
2688 static const int buf_size = 2048;
2689 char buf[buf_size], *
bp;
2694 if (
n == -1 ||
n >= buf_size) {
2702 const char *title =
"";
2710 title =
"System Error";
2721 char *
msg =
new char[100];
2722 snprintf(
msg,100,
"First entry : %lld Last entry : %lld",
2750 fname =
new char[13];
2755 printf(
"SaveSource cannot open file : %s\n",
fname);
2762 out <<
"void open_session(void *p = 0);"<<std::endl<<std::endl;
2766 out <<
"//===This macro can be opened from a TreeViewer session after loading"<<std::endl;
2767 out <<
"//===the corresponding tree, or by running root with the macro name argument"<<std::endl<<std::endl;
2768 out <<
" open_session();"<<std::endl;
2769 out <<
"}"<<std::endl<<std::endl;
2770 out <<
"void open_session(void *p = 0) {"<<std::endl;
2772 out <<
" TTreeViewer *treeview = (TTreeViewer *) p;"<<std::endl;
2773 out <<
" if (!treeview) treeview = new TTreeViewer();"<<std::endl;
2776 out <<
" if (!tv_tree) {"<<std::endl;
2779 out <<
" if(!tv_tree) {"<<std::endl;
2781 out <<
" return;"<<std::endl;
2782 out <<
" }"<<std::endl;
2783 out <<
" }"<<std::endl<<std::endl;
2788 out <<
"// Set expressions on axis and cut"<<std::endl;
2789 out <<
" TTVLVEntry *item;"<<std::endl;
2790 for (
Int_t i=0; i<4; i++) {
2793 out <<
"// X expression"<<std::endl;
2796 out <<
"// Y expression"<<std::endl;
2799 out <<
"// Z expression"<<std::endl;
2802 out <<
"// Cut expression"<<std::endl;
2808 out <<
" item = treeview->ExpressionItem("<<i<<
");"<<std::endl;
2812 out <<
"// Scan list"<<std::endl;
2814 out <<
" item = treeview->ExpressionItem(4);"<<std::endl;
2816 <<
", "<<
quote<<
"Scan box"<<
quote<<
");"<<std::endl;
2817 out <<
"// User defined expressions"<<std::endl;
2830 out <<
"}"<<std::endl;
2832 printf(
"C++ Macro file: %s has been generated\n",
fname);
2843 Warning(
"SwitchTree",
"No tree found.");
2848 if (tree !=
fTree) {
2849 command =
"tv__tree = (TTree *) tv__tree_list->At";
EMouseButton
Button names.
R__EXTERN const char gTVHelpLayout[]
R__EXTERN const char gTVHelpStart[]
R__EXTERN const char gTVHelpDrawing[]
R__EXTERN const char gTVHelpOpenSave[]
R__EXTERN const char gTVHelpMacros[]
R__EXTERN const char gTVHelpEditExpressions[]
R__EXTERN const char gTVHelpAbout[]
R__EXTERN const char gTVHelpDraggingItems[]
R__EXTERN const char gTVHelpUserCommands[]
R__EXTERN const char gTVHelpSession[]
R__EXTERN const char gTVHelpContext[]
R__EXTERN const char gHelpAbout[]
int Int_t
Signed integer 4 bytes (int)
long Longptr_t
Integer large enough to hold a pointer (platform-dependent)
char Char_t
Character 1 byte (char)
unsigned long ULong_t
Unsigned long integer 4 bytes (unsigned long). Size depends on architecture.
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int)
double Double_t
Double 8 bytes.
constexpr Ssiz_t kNPOS
The equivalent of std::string::npos for the ROOT class TString.
long long Long64_t
Portable signed long integer 8 bytes.
const char Option_t
Option string (const char)
R__EXTERN TApplication * gApplication
const Int_t kDoNotProcess
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
constexpr Int_t kSysError
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
Option_t Option_t TPoint TPoint const char mode
Option_t Option_t TPoint TPoint percent
static const char * gOpenTypes[]
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
R__EXTERN TSystem * gSystem
TTVSession and TTVRecord - I/O classes for TreeViewer session handling.
static const char * gOpt2D[14]
static const char * gOptgen[16]
static const char * gOpenTypes[]
static const char * gOpt1D[12]
static const char * gMacroTypes[]
virtual void Terminate(Int_t status=0)
Terminate the application by call TSystem::Exit() unless application has been told to return from Run...
Class to manage histogram axis.
A TTree is a list of TBranches.
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
const char * AsString() const
Return the date & time as a string (ctime() format).
TObject * Get(const char *namecycle) override
Return pointer to object identified by namecycle.
Describe directory structure in memory.
<div class="legacybox"><h2>Legacy Code</h2> TEventList is a legacy interface: there will be no bug fi...
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
A TFriendElement TF describes a TTree object TF in a file.
virtual TTree * GetTree()
Return pointer to friend TTree.
A frame containing two scrollbars (a horizontal and a vertical) and a viewport.
virtual void SetContainer(TGFrame *f)
TGViewPort * GetViewPort() const
const TGWindow * GetRoot() const
Returns current root (i.e.
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
virtual void AddEntry(TGString *s, Int_t id)
virtual void RemoveEntries(Int_t from_ID, Int_t to_ID)
virtual void Select(Int_t id, Bool_t emit=kTRUE)
Make the selected item visible in the combo box window and emit signals according to the second param...
TGDimension GetDefaultSize() const override
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
UInt_t GetDefaultWidth() const override
void MapSubwindows() override
Map all sub windows that are part of the composite frame.
UInt_t GetDefaultHeight() const override
TGCompositeFrame(const TGCompositeFrame &)=delete
void Layout() override
Layout the elements of the composite frame.
virtual void Associate(const TGWindow *w)
virtual void RemoveItem(TGFrame *item)
Remove item from container.
virtual const TGFrame * GetNextSelected(void **current)
Return the next selected item.
virtual Int_t NumSelected() const
void RemoveAll() override
Remove all items from the container.
virtual Double_t GetMaxPositionD() const
virtual Long64_t GetMinPositionL() const
virtual Double_t GetMinPositionD() const
virtual void SetRange(Float_t min, Float_t max)
virtual Long64_t GetMaxPositionL() const
virtual void SetPosition(Float_t min, Float_t max)
Dragging the slider will generate the event:
This class creates a file selection dialog.
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
static Pixel_t GetWhitePixel()
Get white pixel value.
virtual UInt_t GetDefaultHeight() const
void SetBackgroundColor(Pixel_t back) override
Set background color (override from TGWindow base class).
void MapWindow() override
map window
virtual void DeleteWindow()
Delete window.
virtual void SetWidth(UInt_t w)
virtual void SetHeight(UInt_t h)
void ShowPosition(Bool_t set=kTRUE, Bool_t percent=kTRUE, const char *format="%.2f")
Show postion text, either in percent or formatted according format.
A horizontal 3D line is a line that typically separates a toolbar from the menubar.
A composite frame that layout their children in horizontal way.
This class handles GUI labels.
virtual void SetText(TGString *newText)
Set new text in label.
This class describes layout hints used by the layout classes.
A list tree is a widget that can contain a number of items arranged in a tree structure.
void ClearHighlighted()
Un highlight items.
void AddItem(TGListTreeItem *parent, TGListTreeItem *item)
Add given item to list tree.
void OpenItem(TGListTreeItem *item)
Open item in list tree (i.e. show child items).
TGListTreeItem * GetSelected() const
TGListTreeItem * FindChildByName(TGListTreeItem *item, const char *name)
Find child of item by name.
void HighlightItem(TGListTreeItem *item)
Highlight item.
A list view is a widget that can contain a number of items arranged in a grid or list.
void Layout() override
Layout list view components (container and contents of container).
void SetContainer(TGFrame *f) override
Set list view container.
virtual void SetViewMode(EListViewMode viewMode)
Set list view mode.
Defines top level windows that interact with the system Window Manager.
virtual void SendCloseMessage()
Send close message to self.
void SetWindowName(const char *name=nullptr) override
Set window name. This is typically done via the window manager.
TGClient * fClient
Connection to display server.
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
void SetPosition(Float_t pos)
Set progress position between [min,max].
void SetFillType(EFillType type)
Set fill type.
virtual void SetBarColor(Pixel_t color)
Set progress bar color.
This class represent a specialized expression editor for TTVLVEntry 'true name' and 'alias' data memb...
TTVLVEntry * EditedEntry()
void InsertText(const char *text)
Insert text in text entry.
void GrabPointer()
Just focus the cursor inside.
void SetLabel(const char *title)
Set label of selection box.
void SetEntry(TTVLVEntry *entry)
Connect one entry.
static TGSelectBox * GetInstance()
Return the pointer to the instantiated singleton.
Provides a StatusBar widget.
void Draw3DCorner(Bool_t corner)
virtual void SetText(TGString *text, Int_t partidx=0)
Set text in partition partidx in status bar.
TGString wraps a TString and adds some graphics routines like drawing, size of string on screen depen...
A text buffer is used in several widgets, like TGTextEntry, TGFileDialog, etc.
Yield an action as soon as it is clicked.
A TGTextEntry is a one line text input widget.
virtual void SetDefaultSize(UInt_t w, UInt_t h)
Set the default / minimal size of the widget.
void Clear(Option_t *option="") override
Clears up the text entry.
const char * GetText() const
virtual void SetCursorPosition(Int_t pos)
Set the cursor position to newPos.
virtual void AppendText(const char *text)
Appends text to the end of text entry, clears the selection and moves the cursor to the end of the li...
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
virtual void SetText(const char *text, Bool_t emit=kTRUE)
Sets text entry to text, clears the selection and moves the cursor to the end of the line.
Bool_t HandleButton(Event_t *event) override
Handle mouse button event in text entry widget.
A vertical 3D line is a line that can be used to separate groups of widgets.
A composite frame that layout their children in vertical way.
TH1 is the base class of all histogram classes in ROOT.
void SetTitle(const char *title) override
Change/set the title.
TObject * FindObject(const char *name) const override
Search object named name in the list of functions.
void Draw(Option_t *option="") override
Draw this histogram with options.
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
TObject * FindObject(const char *name) const override
Find an object in this list using its name.
void Add(TObject *obj) override
void Delete(Option_t *option="") override
Remove all objects from the list AND delete all heap based objects.
TObject * At(Int_t idx) const override
Returns the object at position idx. Returns 0 if idx is out of range.
Each ROOT class (see TClass) has a linked list of methods.
const char * GetName() const override
Returns name of object.
Collectable string class.
Mother of all ROOT objects.
virtual void DoError(int level, const char *location, const char *fmt, va_list va) const
Interface to ErrorHandler (protected).
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual TObject * FindObject(const char *name) const
Must be redefined in derived classes.
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
A TRootHelpDialog is used to display help text (or any text in a dialog window).
Sequenceable collection abstract base class.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
virtual const char * UnixPathName(const char *unixpathname)
Convert from a local pathname to a Unix pathname.
virtual const char * GetError()
Return system error string.
This class represent the list view container for the TreeView class.
void SelectItem(const char *name)
Select an item.
void SetViewer(TTreeViewer *viewer)
TList * ExpressionList()
Return the list of user-defined expressions.
const char * Cut()
Return the cut entry.
const char * Ez()
Return the expression on Z.
const char * Ey()
Return the expression on Y.
const char * ScanList()
Return the cut entry.
virtual void AddThisItem(TTVLVEntry *item)
TTVLVEntry * ExpressionItem(Int_t index)
Return the expression item at specific position.
void SetListView(TGListView *lv) override
const char * Ex()
Return the expression on X.
void EmptyAll()
Clear all names and aliases for expression type items.
void RemoveNonStatic()
Remove all non-static items from the list view, except expressions.
This class represent entries that goes into the TreeViewer listview container.
const char * ConvertAliases()
Convert all aliases into true names.
I/O classes for TreeViewer session handling.
I/O classes for TreeViewer session handling.
void SaveSource(std::ofstream &out)
Save the TTVSession in a C++ macro file.
TTVRecord * GetRecord(Int_t i)
Return record at index i.
void SetRecordName(const char *name)
Set record name.
void Show(TTVRecord *rec)
Display record rec.
TTVRecord * AddRecord(bool fromFile=false)
Add a record.
void RemoveLastRecord()
Remove current record from list.
void UpdateRecord(const char *name)
Updates current record according to new X, Y, Z settings.
Handles synchronous and a-synchronous timer events.
virtual void TurnOff()
Remove timer from system timer list.
virtual void TurnOn()
Add the timer to the system timer list.
Implement some of the functionality of the class TTree requiring access to extra libraries (Histogram...
void SetScanRedirect(bool mode)
TGLabel * fBarLbl2
Label of option text entry.
TGSelectBox * fDialogBox
Expression editor.
void SetCurrentRecord(Long64_t entry)
TGCheckButton * fBarRec
Command recording toggle.
TGHProgressBar * fProgressBar
Progress bar.
bool HandleTimer(TTimer *timer) override
Execute action in response of a timer timing out.
void SetHistogramTitle(const char *title)
void UpdateRecord(const char *name="new name")
TGTextEntry * fBarOption
Histogram drawing option entry.
TGLabel * fBLbl4
Label for input list entry.
TGTextEntry * fBarCommand
User command entry.
TGListView * fListView
ListView with branches and leaves.
TGComboBox * fCombo
Combo box with session records.
TGListTree * fLt
ListTree with file and tree items.
TList * fWidgets
List of widgets to be deleted.
void SetNexpressions(Int_t expr)
TTreeViewer(const char *treeName=nullptr)
TTreeViewer default constructor.
TGCheckButton * fBarH
Checked for drawing current histogram with different graphic option.
TGPictureButton * fBGFirst
void SetUserCode(const char *code, bool autoexec=true)
Cursor_t fDefaultCursor
Default cursor.
void MapOptions(Long_t parm1)
TGLabel * fBLbl5
Label for output list entry.
TGCanvas * fTreeView
ListTree canvas container.
Int_t fTreeIndex
Index of current tree in list.
TGPictureButton * fSTOP
Interrupt current command (not yet)
void SetSession(TTVSession *session)
void SetParentTree(TGListTreeItem *item)
const char * EmptyBrackets(const char *name)
const TGPicture * fPicStop
Pictures for Stop buttons.
void CloseWindow() override
Close and delete main frame.
const TGPicture * fPicY
Pictures for Y expressions.
TGLabel * fLbl2
Label for list view.
TTVLVEntry * ExpressionItem(Int_t index)
Cursor_t fWatchCursor
Watch cursor.
void AppendTree(TTree *tree)
TGTextEntry * fBarListIn
Tree input event list name entry.
void ActivateButtons(bool first, bool previous, bool next, bool last)
TTimer * fTimer
Tree viewer timer.
void MapTree(TTree *tree, TGListTreeItem *parent=nullptr, bool listIt=true)
Long64_t Process(const char *filename, Option_t *option="", Long64_t nentries=TTree::kMaxEntries, Long64_t firstentry=0)
TGCheckButton * fBarScan
Checked for tree scan.
const TGPicture * fPicRefr
Pictures for Refresh buttons ///<ia.
const char * fSourceFile
Name of the C++ source file - default treeviewer.C.
Int_t MakeSelector(const char *selector=nullptr)
bool fCounting
True if timer is counting.
const TGPicture * fPicX
Pictures for X expressions.
bool fScanMode
Flag activated when Scan Box is double-clicked.
void DoError(int level, const char *location, const char *fmt, va_list va) const override
Interface to ErrorHandler (protected).
void SetRecordName(const char *name)
TGPictureButton * fDRAW
DRAW button.
TString fLastOption
Last graphic option.
TList * fTreeList
List of mapped trees.
const char * fFilename
Name of the file containing the tree.
TGTextEntry * fBarHist
Histogram name entry.
TGLayoutHints * fBarLayout
TContextMenu * fContextMenu
Context menu for tree viewer.
TGHorizontalFrame * fHpb
Progress bar frame.
TGPictureButton * fBGNext
Int_t fNexpressions
Number of expression widgets.
void SetTreeName(const char *treeName)
TGVerticalFrame * fV2
List view mother.
void MapBranch(TBranch *branch, const char *prefix="", TGListTreeItem *parent=nullptr, bool listIt=true)
TGLayoutHints * fMenuBarItemLayout
void SaveSource(const char *filename="", Option_t *option="") override
Save the GUI main frame widget in a C++ macro file.
TClass * IsA() const override
TTree * fTree
Selected tree.
TGCompositeFrame * fTreeHdr
Header for list tree.
TGLabel * fBarLbl3
Label of histogram name text entry.
bool fEnableCut
True if cuts are enabled.
bool SwitchTree(Int_t index)
void SetTree(TTree *tree)
bool fVarDraw
True if an item is double-clicked.
TGDoubleVSlider * fSlider
Vertical slider to select processed tree entries;.
TTree * fMappedTree
Listed tree.
TGVerticalFrame * fV1
List tree mother.
void Message(const char *msg) override
void ExecuteCommand(const char *command, bool fast=false)
const TGPicture * fPicDraw
Pictures for Draw buttons.
TGPictureButton * fBGLast
TGPopupMenu * fOptionsMenu
TGLayoutHints * fMenuBarHelpLayout
TGPictureButton * fBGPrevious
TTVLVContainer * fLVContainer
Container for listview.
TGLabel * fLbl1
Label for list tree.
void SetGrOpt(const char *option)
TGPopupMenu * fOptionsGen
TGLayoutHints * fMenuBarLayout
TGLabel * fBarLbl1
Label of command text entry.
TGPictureButton * fREFR
REFRESH button ///<ia.
TGHorizontalFrame * fHf
Main horizontal frame.
const TGPicture * fPicZ
Pictures for Z expressions.
TGHorizontalFrame * fBFrame
Button frame.
TBranch * fMappedBranch
Listed branch.
TTVSession * fSession
Current tree-viewer session.
Int_t fDimension
Histogram dimension.
TGCompositeFrame * fListHdr
Header for list view.
bool fStopMapping
True if branch don't need remapping.
TGTextEntry * fBarListOut
Pree output event list name entry.
TGTextButton * fReset
clear expression's entries
bool ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override
TGPictureButton * fBGRecord
void SetScanFileName(const char *name="")
TGStatusBar * fStatusBar
Status bar.
TGTextButton * fSPIDER
SPIDER button.
A TTree represents a columnar dataset.
virtual void SetTimerInterval(Int_t msec=333)
virtual TBranch * GetBranch(const char *name)
Return pointer to the branch with the given name in this tree or its friends.
virtual TObjArray * GetListOfLeaves()
TVirtualTreePlayer * GetPlayer()
Load the TTreePlayer (if not already done).
virtual Long64_t Process(const char *filename, Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
Process this tree executing the TSelector code in the specified filename.
virtual void SetEventList(TEventList *list)
This function transfroms the given TEventList into a TEntryList The new TEntryList is owned by the TT...
virtual Long64_t GetEntries() const
virtual Int_t MakeSelector(const char *selector=nullptr, Option_t *option="")
Generate skeleton selector class for this tree.
virtual Long64_t GetReadEntry() const
virtual TObjArray * GetListOfBranches()
virtual void Refresh()
Refresh contents of this tree and its branches from the current status on disk.
UInt_t GetListOfMethods(TList &methods, TDirectory *dir=nullptr)
EGEventType fType
of event (see EGEventType)