library: libTree #include "TBranchClones.h"

# TBranchClones

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

## class TBranchClones : public TBranch

| Inheritance Chart:

`TObject`

<-

`TNamed`

`TAttFill`

<-

`TBranch`

<-

`TBranchClones`

        public:

                          TBranchClones()
                          TBranchClones(const char* name, void* clonesaddress, Int_t basketsize = 32000, Int_t compress = -1, Int_t splitlevel = 1)
                  virtual ~TBranchClones()
             virtual void Browse(TBrowser* b)
           static TClass* Class()
            virtual Int_t Fill()
            virtual Int_t GetEntry(Long64_t entry = 0, Int_t getall = 0)
            TClonesArray* GetList() const
            virtual Int_t GetN() const
          virtual TClass* IsA() const
           virtual Bool_t IsFolder() const
             virtual void Print(Option_t* option = "") const
             virtual void Reset(Option_t* option = "")
             virtual void SetAddress(void* add)
             virtual void SetBasketSize(Int_t buffsize)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

          TClonesArray* fList         !Pointer to the clonesarray
                  Int_t fRead         !flag = 1 if clonesarray has been read
                  Int_t fN            !Number of elements in ClonesArray
                  Int_t fNdataMax     !Maximum value of fN
                TString fClassName    name of the class of the objets in the ClonesArray
               TBranch* fBranchCount  Branch with clones count

## Class Description

     A Branch for the case of an array of clone objects                   //
     See TTree.                                                           //

TBranchClones(): TBranch()

    *-*-*-*-*-*Default constructor for BranchClones*-*-*-*-*-*-*-*-*-*
    *-*        ====================================

TBranchClones(const char *name, void *pointer, Int_t basketsize, Int_t compress, Int_t splitlevel) :TBranch()

    *-*-*-*-*-*-*-*-*-*-*-*-*Create a BranchClones*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*                      =====================

~TBranchClones()

    *-*-*-*-*-*Default destructor for a BranchClones*-*-*-*-*-*-*-*-*-*-*-*
    *-*        =====================================

void Browse(TBrowser *b)

Int_t Fill()

    *-*-*-*-*Loop on all Branches of this BranchClones to fill Basket buffer*-*
    *-*      ===============================================================

Int_t GetEntry(Long64_t entry, Int_t getall)

    *-*-*-*-*Read all branches of a BranchClones and return total number of bytes
    *-*      ====================================================================

void Print(Option_t *option) const

    *-*-*-*-*-*-*-*-*-*-*-*Print TBranch parameters*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*                    ========================

void Reset(Option_t *option)

    *-*-*-*-*-*-*-*Reset a Branch*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*            ====================

        Existing buffers are deleted
        Entries, max and min are reset

void SetAddress(void *add)

    *-*-*-*-*-*-*-*Set address of this branch*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*            ====================
    *-*

void SetBasketSize(Int_t buffsize)

    *-*-*-*-*-*-*-*Reset basket size for all subbranches of this branchclones
    *-*            ==========================================================

void Streamer(TBuffer &b)

    *-*-*-*-*-*-*-*-*Stream a class object*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*              =========================================

### Inline Functions

                    Int_t GetN() const
            TClonesArray* GetList() const
                   Bool_t IsFolder() const
                  TClass* Class()
                  TClass* IsA() const
                     void ShowMembers(TMemberInspector& insp, char* parent)
                     void StreamerNVirtual(TBuffer& b)

Author: Rene Brun 11/02/96
Last update: root/tree:$Name: $:$Id: TBranchClones.cxx,v 1.18 2005/05/25 17:23:14 pcanal Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *