library: libTree #include "TVirtualTreePlayer.h"

# TVirtualTreePlayer

class description - source file - inheritance tree (.pdf)

## class TVirtualTreePlayer : public TObject

| Inheritance Chart:
`TObject`
| <- | `TVirtualTreePlayer` |
<- |
`TTreePlayer` |

This is an abstract class, constructors will not be documented.
Look at the header to check for available constructors.

        public:

                             virtual ~TVirtualTreePlayer()
              virtual TVirtualIndex* BuildIndex(const TTree* T, const char* majorname, const char* minorname)
                      static TClass* Class()
                      virtual TTree* CopyTree(const char* selection, Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
                    virtual Long64_t DrawScript(const char* wrapperPrefix, const char* macrofilename, const char* cutfilename, Option_t* option, Long64_t nentries, Long64_t firstentry)
                    virtual Long64_t DrawSelect(const char* varexp, const char* selection, Option_t* option, Long64_t nentries, Long64_t firstentry)
                    virtual Long64_t Fit(const char* formula, const char* varexp, const char* selection, Option_t* option, Option_t* goption, Long64_t nentries, Long64_t firstentry)
          static TVirtualTreePlayer* GetCurrentPlayer()
                       virtual Int_t GetDimension() const
                        virtual TH1* GetHistogram() const
                       virtual Int_t GetNfill() const
               virtual TTreeFormula* GetSelect() const
                    virtual Long64_t GetSelectedRows() const
                   virtual Double_t* GetV1() const
                   virtual Double_t* GetV2() const
                   virtual Double_t* GetV3() const
                   virtual Double_t* GetV4() const
               virtual TTreeFormula* GetVar1() const
               virtual TTreeFormula* GetVar2() const
               virtual TTreeFormula* GetVar3() const
               virtual TTreeFormula* GetVar4() const
                   virtual Double_t* GetW() const
                     virtual TClass* IsA() const
                       virtual Int_t MakeClass(const char* classname, const char* option)
                       virtual Int_t MakeCode(const char* filename)
                       virtual Int_t MakeProxy(const char* classname, const char* macrofilename = "0", const char* cutfilename = "0", const char* option = "0", Int_t maxUnrolling = 3)
                 TVirtualTreePlayer& operator=(const TVirtualTreePlayer&)
                 virtual TPrincipal* Principal(const char* varexp = "", const char* selection = "", Option_t* option = "np", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
                    virtual Long64_t Process(const char* filename, Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
                    virtual Long64_t Process(TSelector* selector, Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
                 virtual TSQLResult* Query(const char* varexp, const char* selection, Option_t* option, Long64_t nentries, Long64_t firstentry)
                    virtual Long64_t Scan(const char* varexp, const char* selection, Option_t* option, Long64_t nentries, Long64_t firstentry)
                        virtual void SetEstimate(Long64_t n)
                         static void SetPlayer(const char* player)
                        virtual void SetTree(TTree* t)
                        virtual void ShowMembers(TMemberInspector& insp, char* parent)
                        virtual void StartViewer(Int_t ww, Int_t wh)
                        virtual void Streamer(TBuffer& b)
                                void StreamerNVirtual(TBuffer& b)
          static TVirtualTreePlayer* TreePlayer(TTree* obj)
                    virtual Long64_t UnbinnedFit(const char* formula, const char* varexp, const char* selection, Option_t* option, Long64_t nentries, Long64_t firstentry)
                        virtual void UpdateFormulaLeaves()

### Data Members

        private:

                      static TClass* fgPlayer   Pointer to class of Tree player
          static TVirtualTreePlayer* fgCurrent  Pointer to current Tree player

## Class Description

TVirtualTreePlayer* TreePlayer(TTree *obj)

     Static function returning a pointer to a Tree player.
     The player will process the specified obj. If the Tree player
     does not exist a default player is created.

TVirtualTreePlayer* GetCurrentPlayer()

     Static function: return the current player (if any)

void SetPlayer(const char *player)

     Static function to set an alternative Tree player.

### Inline Functions

                           void ~TVirtualTreePlayer()
                 TVirtualIndex* BuildIndex(const TTree* T, const char* majorname, const char* minorname)
                         TTree* CopyTree(const char* selection, Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
                       Long64_t DrawScript(const char* wrapperPrefix, const char* macrofilename, const char* cutfilename, Option_t* option, Long64_t nentries, Long64_t firstentry)
                       Long64_t DrawSelect(const char* varexp, const char* selection, Option_t* option, Long64_t nentries, Long64_t firstentry)
                       Long64_t Fit(const char* formula, const char* varexp, const char* selection, Option_t* option, Option_t* goption, Long64_t nentries, Long64_t firstentry)
                          Int_t GetDimension() const
                           TH1* GetHistogram() const
                          Int_t GetNfill() const
                       Long64_t GetSelectedRows() const
                  TTreeFormula* GetSelect() const
                  TTreeFormula* GetVar1() const
                  TTreeFormula* GetVar2() const
                  TTreeFormula* GetVar3() const
                  TTreeFormula* GetVar4() const
                      Double_t* GetV1() const
                      Double_t* GetV2() const
                      Double_t* GetV3() const
                      Double_t* GetV4() const
                      Double_t* GetW() const
                          Int_t MakeClass(const char* classname, const char* option)
                          Int_t MakeCode(const char* filename)
                          Int_t MakeProxy(const char* classname, const char* macrofilename = "0", const char* cutfilename = "0", const char* option = "0", Int_t maxUnrolling = 3)
                    TPrincipal* Principal(const char* varexp = "", const char* selection = "", Option_t* option = "np", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
                       Long64_t Process(const char* filename, Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
                       Long64_t Process(TSelector* selector, Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
                       Long64_t Scan(const char* varexp, const char* selection, Option_t* option, Long64_t nentries, Long64_t firstentry)
                    TSQLResult* Query(const char* varexp, const char* selection, Option_t* option, Long64_t nentries, Long64_t firstentry)
                           void SetEstimate(Long64_t n)
                           void SetTree(TTree* t)
                           void StartViewer(Int_t ww, Int_t wh)
                       Long64_t UnbinnedFit(const char* formula, const char* varexp, const char* selection, Option_t* option, Long64_t nentries, Long64_t firstentry)
                           void UpdateFormulaLeaves()
                        TClass* Class()
                        TClass* IsA() const
                           void ShowMembers(TMemberInspector& insp, char* parent)
                           void Streamer(TBuffer& b)
                           void StreamerNVirtual(TBuffer& b)
            TVirtualTreePlayer& operator=(const TVirtualTreePlayer&)

Author: Rene Brun 30/08/99
Last update: root/tree:$Name: $:$Id: TVirtualTreePlayer.cxx,v 1.6 2005/05/02 10:57:32 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *