Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

TBranchClones.h

Go to the documentation of this file.
00001 // @(#)root/tree:$Name:  $:$Id: TBranchClones.h,v 1.4 2000/12/13 15:13:54 brun Exp $
00002 // Author: Rene Brun   11/02/96
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TBranchClones
00013 #define ROOT_TBranchClones
00014 
00015 
00017 //                                                                      //
00018 // TBranchClones                                                        //
00019 //                                                                      //
00020 // A Branch for the case of an array of clone objects.                  //
00022 
00023 
00024 #ifndef ROOT_TBranch
00025 #include "TBranch.h"
00026 #endif
00027 
00028 #ifndef ROOT_TClonesArray
00029 #include "TClonesArray.h"
00030 #endif
00031 
00032 class TBranchClones : public TBranch {
00033 
00034 protected:
00035     TClonesArray     *fList;           
00036     Int_t            fRead;            
00037     Int_t            fN;               
00038     Int_t            fNdataMax;        
00039     TString          fClassName;       //name of the class of the objets in the ClonesArray
00040     TBranch          *fBranchCount;    //Branch with clones count
00041 
00042 public:
00043     TBranchClones();
00044     TBranchClones(const char *name, void *clonesaddress, Int_t basketsize=32000,Int_t compress=-1, Int_t splitlevel=1);
00045     virtual ~TBranchClones();
00046 
00047     virtual void    Browse(TBrowser *b);
00048     virtual Int_t   Fill();
00049     virtual Int_t   GetEntry(Int_t entry=0, Int_t getall = 0);
00050     virtual Int_t   GetN() const {return fN;}
00051     TClonesArray    *GetList() const {return fList;}
00052     Bool_t          IsFolder() const {return kTRUE;}
00053     virtual void    Print(Option_t *option="") const;
00054     virtual void    Reset(Option_t *option="");
00055     virtual void    SetAddress(void *add);
00056     virtual void    SetBasketSize(Int_t buffsize);
00057 
00058     ClassDef(TBranchClones,2)  //Branch in case of an array of clone objects
00059 };
00060 
00061 #endif

Generated on Thu Dec 18 14:52:16 2003 for ROOT by doxygen1.2.16