Logo ROOT  
Reference Guide
TFileDrawMap.h
Go to the documentation of this file.
1 // @(#)root/treeplayer:$Id$
2 // Author: Rene Brun 15/01/2003
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2003, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TFileDrawMap
13 #define ROOT_TFileDrawMap
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TFileDrawMap //
19 // //
20 // Draw a 2-d map of the objects in a file //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #include "TNamed.h"
25 
26 class TH1;
27 class TFile;
28 class TDirectory;
29 class TBox;
30 class TBranch;
31 
32 class TFileDrawMap : public TNamed {
33 
34 protected:
35  TFile *fFile; //pointer to the file
36  TH1 *fFrame; //histogram used to draw the map frame
37  TString fKeys; //list of keys
38  TString fOption; //drawing options
39  Int_t fXsize; //size in bytes of X axis
40  Int_t fYsize; //size in K/Mbytes of Y axis
41 
42  virtual void DrawMarker(Int_t marker, Long64_t eseek);
43  virtual Bool_t GetObjectInfoDir(TDirectory *dir, Int_t px, Int_t py, TString &info) const;
44  virtual void PaintBox(TBox &box, Long64_t bseek, Int_t nbytes);
45  virtual void PaintDir(TDirectory *dir, const char *keys);
46  virtual TObject *GetObject();
47 
48 public:
49  TFileDrawMap();
50  TFileDrawMap(const TFile *file, const char *keys, Option_t *option);
51  virtual ~TFileDrawMap();
52 
53  virtual void AnimateTree(const char *branches=""); // *MENU*
54  virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
55  virtual void DrawObject(); // *MENU*
56  virtual void DumpObject(); // *MENU*
57  virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
58  virtual char *GetObjectInfo(Int_t px, Int_t py) const;
59  virtual void InspectObject(); // *MENU*
60  virtual void Paint(Option_t *option);
61 
62  ClassDef(TFileDrawMap,1); //Draw a 2-d map of the objects in a file
63 };
64 
65 #endif
TFileDrawMap::fFrame
TH1 * fFrame
Definition: TFileDrawMap.h:36
Option_t
const char Option_t
Definition: RtypesCore.h:66
TFileDrawMap::fKeys
TString fKeys
Definition: TFileDrawMap.h:37
TFileDrawMap::ExecuteEvent
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
Definition: TFileDrawMap.cxx:341
TFileDrawMap::AnimateTree
virtual void AnimateTree(const char *branches="")
Show sequence of baskets reads for the list of baskets involved in the list of branches (separated by...
Definition: TFileDrawMap.cxx:153
TNamed.h
Long64_t
long long Long64_t
Definition: RtypesCore.h:73
TFileDrawMap::fYsize
Int_t fYsize
Definition: TFileDrawMap.h:40
box
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Definition: fillpatterns.C:1
TFileDrawMap::GetObjectInfoDir
virtual Bool_t GetObjectInfoDir(TDirectory *dir, Int_t px, Int_t py, TString &info) const
Redefines TObject::GetObjectInfo.
Definition: TFileDrawMap.cxx:385
TFileDrawMap::InspectObject
virtual void InspectObject()
Inspect object at the mouse position.
Definition: TFileDrawMap.cxx:480
TString
Basic string class.
Definition: TString.h:136
bool
TFileDrawMap::fXsize
Int_t fXsize
Definition: TFileDrawMap.h:39
TBranch
A TTree is a list of TBranches.
Definition: TBranch.h:89
TNamed
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
TFileDrawMap::~TFileDrawMap
virtual ~TFileDrawMap()
Tree destructor.
Definition: TFileDrawMap.cxx:139
TFileDrawMap::fFile
TFile * fFile
Definition: TFileDrawMap.h:35
TFile
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
Definition: TFile.h:54
TFileDrawMap::DistancetoPrimitive
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to this TreeFileMap.
Definition: TFileDrawMap.cxx:227
TFileDrawMap
This class is automatically called by TFile::DrawMap.
Definition: TFileDrawMap.h:32
TFileDrawMap::DrawObject
virtual void DrawObject()
Draw object at the mouse position.
Definition: TFileDrawMap.cxx:281
TBox
Create a Box.
Definition: TBox.h:22
TFileDrawMap::TFileDrawMap
TFileDrawMap()
Default TreeFileMap constructor.
Definition: TFileDrawMap.cxx:81
file
Definition: file.py:1
TObject
Mother of all ROOT objects.
Definition: TObject.h:37
TFileDrawMap::DumpObject
virtual void DumpObject()
Dump object at the mouse position.
Definition: TFileDrawMap.cxx:318
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TFileDrawMap::PaintDir
virtual void PaintDir(TDirectory *dir, const char *keys)
Paint keys in a directory.
Definition: TFileDrawMap.cxx:542
TFileDrawMap::DrawMarker
virtual void DrawMarker(Int_t marker, Long64_t eseek)
Draw marker.
Definition: TFileDrawMap.cxx:243
TH1
TH1 is the base class of all histogramm classes in ROOT.
Definition: TH1.h:58
TFileDrawMap::fOption
TString fOption
Definition: TFileDrawMap.h:38
TDirectory
Describe directory structure in memory.
Definition: TDirectory.h:40
TFileDrawMap::Paint
virtual void Paint(Option_t *option)
Paint this TFileDrawMap.
Definition: TFileDrawMap.cxx:489
TFileDrawMap::GetObject
virtual TObject * GetObject()
Retrieve object at the mouse position in memory.
Definition: TFileDrawMap.cxx:349
TFileDrawMap::PaintBox
virtual void PaintBox(TBox &box, Long64_t bseek, Int_t nbytes)
Paint the object at bseek with nbytes using the box object.
Definition: TFileDrawMap.cxx:512
TFileDrawMap::GetObjectInfo
virtual char * GetObjectInfo(Int_t px, Int_t py) const
Redefines TObject::GetObjectInfo.
Definition: TFileDrawMap.cxx:371
int