#ifndef ROOT_TTreeCloner
#define ROOT_TTreeCloner
class TBranch;
#include <vector>
#ifdef R__OLDHPACC
namespace std {
   using ::string;
   using ::vector;
}
#endif
class TTreeCloner {
   Bool_t     fIsValid;
   TTree     *fFromTree;
   TTree     *fToTree;
   Option_t  *fMethod;
   TObjArray  fFromBranches;
   TObjArray  fToBranches;
   UInt_t     fMaxBaskets;
   UInt_t    *fBasketBranchNum;  
   UInt_t    *fBasketNum;        
   Long64_t  *fBasketSeek;       
   Long64_t  *fBasketEntry;      
   Int_t     *fBasketIndex;      
   UShort_t   fPidOffset;        
   UInt_t     fCloneMethod;      
   Long64_t   fToStartEntries;   
   enum ECloneMethod {
      kDefault             = 0,
      kSortBasketsByBranch = 1,
      kSortBasketsByOffset = 2,
      kSortBasketsByEntry  = 3
   };
   
public:
   TTreeCloner(TTree *from, TTree *to, Option_t *method);
   virtual ~TTreeCloner();
   void   CloseOutWriteBaskets();
   UInt_t CollectBranches(TBranch *from, TBranch *to);
   UInt_t CollectBranches(TObjArray *from, TObjArray *to);
   UInt_t CollectBranches();
   void   CollectBaskets();
   void   CopyMemoryBaskets();
   void   CopyStreamerInfos();
   void   CopyProcessIds();
   Bool_t Exec();
   Bool_t IsValid() { return fIsValid; }
   void   SortBaskets();
   void   WriteBaskets();
   ClassDef(TTreeCloner,0); 
};
#endif
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.