library: libTreePlayer #include "TFileDrawMap.h" |
TFileDrawMap
class description - header file - source file - inheritance tree (.pdf)
protected:
virtual void DrawMarker(Int_t marker, Long64_t eseek)
virtual TObject* GetObject()
virtual Bool_t GetObjectInfoDir(TDirectory* dir, Int_t px, Int_t py, char* info) const
virtual void PaintBox(TBox& box, Long64_t bseek, Int_t nbytes)
virtual void PaintDir(TDirectory* dir, const char* keys)
public:
TFileDrawMap()
TFileDrawMap(const TFile* file, const char* keys, Option_t* option)
TFileDrawMap(const TFileDrawMap&)
virtual ~TFileDrawMap()
virtual void AnimateTree(const char* branches = "")
static TClass* Class()
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
virtual void DrawObject()
virtual void DumpObject()
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual char* GetObjectInfo(Int_t px, Int_t py) const
virtual void InspectObject()
virtual TClass* IsA() const
TFileDrawMap& operator=(const TFileDrawMap&)
virtual void Paint(Option_t* option)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
TFile* fFile pointer to the file
TH1* fFrame histogram used to draw the map frame
TString fKeys list of keys
TString fOption drawing options
Int_t fXsize size in bytes of X axis
Int_t fYsize size in K/Mbytes of Y axis
TFileDrawMap
This class is automatically called by TFile::DrawMap
It draws a canvas showing the internal structure of a ROOT file.
Each key or basket in a file is shown with a fill area drawn
at the byte position of the key/basket in the file.
The Y axis of the canvas shows the number of Kbytes/Mbytes.
The X axis shows the bytes between y(i) and y(i+1).
A color corresponding to the class in the key/basket is automatically
selected using the class unique identifier.
When moving the mouse in the canvas, the "Event Status" panels
shows the object corresponding to the mouse position.
if the object is a key, it shows the class and object name as well as
the file directory name if the file has sub-directories.
if the object is a basket, it shows:
-the name of the Tree
-the name of the branch
-the basket number
-the entry number in the basket
Special keys like the StreamerInfo record, the Keys List Record
and the Free Blocks Record are also shown.
When clicking the right mouse button, a pop-up menu is shown
with its title identifying the picked object and with the items:
-DrawObject: in case of a key, the Draw function of the object is called
in case of a basket, the branch is drawn for all entries
-DumpObject: in case of a key, the Dump function of the object is called
in case of a basket, tree->Show(entry) is called
-InspectObject: the Inspect function is called for the object.
The normal axis zoom functionality can be used to zoom or unzoom
One can also use the TCanvas context menu SetCanvasSize to make
a larger canvas and use the canvas scroll bars.
When the class is built, it is possible to identify a subset of the
objects to be shown. For example, to view only the keys with
names starting with "abc", set the argument keys to "abc*".
The default is to view all the objects.
The argument options can also be used (only one option currently)
When the option "same" is given, the new picture is suprimposed.
The option "same" is useful, eg:
to draw all keys with names = "abc" in a first pass
then all keys with names = "uv*" in a second pass, etc.
=============================================================================
~TFileDrawMap()
*-*-*-*-*-*-*-*-*-*-*Tree destructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-* =================
void AnimateTree(const char *branches)
Show sequence of baskets reads for the list of baskets involved
in the list of branches (separated by ",")
if branches="", the branch pointed by the mouse is taken.
if branches="*", all branches are taken
Example:
AnimateTree("x,y,u");
Author: Rene Brun 15/01/2003
Last update: root/treeplayer:$Name: $:$Id: TFileDrawMap.cxx,v 1.7 2006/02/03 21:55:39 pcanal Exp $
Copyright (C) 1995-2003, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.