Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:46

0001 // @(#)root/treeplayer:$Id$
0002 // Author: Rene Brun   15/01/2003
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2003, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TFileDrawMap
0013 #define ROOT_TFileDrawMap
0014 
0015 
0016 //////////////////////////////////////////////////////////////////////////
0017 //                                                                      //
0018 // TFileDrawMap                                                         //
0019 //                                                                      //
0020 // Draw a 2-d map of the objects in a file                              //
0021 //                                                                      //
0022 //////////////////////////////////////////////////////////////////////////
0023 
0024 #include "TNamed.h"
0025 
0026 class TH1;
0027 class TFile;
0028 class TDirectory;
0029 class TBox;
0030 class TBranch;
0031 
0032 class TFileDrawMap : public TNamed {
0033 
0034 protected:
0035    TFile         *fFile;           ///< Pointer to the file
0036    TH1           *fFrame;          ///< Histogram used to draw the map frame
0037    TString        fKeys;           ///< List of keys
0038    TString        fOption;         ///< Drawing options
0039    Int_t          fXsize;          ///< Size in bytes of X axis
0040    Int_t          fYsize;          ///< Size in K/Mbytes of Y axis
0041 
0042    virtual void     DrawMarker(Int_t marker, Long64_t eseek);
0043    virtual bool     GetObjectInfoDir(TDirectory *dir, Int_t px, Int_t py, TString &info) const;
0044    virtual void     PaintBox(TBox &box, Long64_t bseek, Int_t nbytes);
0045    virtual void     PaintDir(TDirectory *dir, const char *keys);
0046    virtual TObject *GetObject();
0047 
0048 public:
0049    TFileDrawMap();
0050    TFileDrawMap(const TFile *file, const char *keys, Option_t *option);
0051    ~TFileDrawMap() override;
0052 
0053    virtual void  AnimateTree(const char *branches=""); // *MENU*
0054    Int_t DistancetoPrimitive(Int_t px, Int_t py) override;
0055    virtual void  DrawObject(); // *MENU*
0056    virtual void  DumpObject(); // *MENU*
0057    void  ExecuteEvent(Int_t event, Int_t px, Int_t py) override;
0058    char *GetObjectInfo(Int_t px, Int_t py) const override;
0059    virtual void  InspectObject(); // *MENU*
0060    void  Paint(Option_t *option) override;
0061 
0062    ClassDefOverride(TFileDrawMap,1);  //Draw a 2-d map of the objects in a file
0063 };
0064 
0065 #endif