12 #ifndef ROOT_TTreeCloner
13 #define ROOT_TTreeCloner
TTreeCloner(const TTreeCloner &)=delete
UInt_t * fBasketIndex
[fMaxBaskets] ordered list of basket indices to be written.
void ImportClusterRanges()
Set the entries and import the cluster range of the.
void RestoreCache()
Restore the TFileCacheRead to its previous value.
Long64_t * fBasketEntry
[fMaxBaskets] list of basket start entries.
A cache when reading files over the network.
void WriteBaskets()
Transfer the basket from the input file to the output file.
Long64_t fToStartEntries
Number of entries in the target tree before any addition.
CompareEntry(TTreeCloner *obj)
TTreeCloner & operator=(const TTreeCloner &)=delete
#define ClassDef(name, id)
void CloseOutWriteBaskets()
Before we can start adding new basket, we need to flush to disk the partially filled baskets (the Wri...
void SortBaskets()
Sort the basket according to the user request.
TFileCacheRead * fPrevCache
Cache that set before the TTreeCloner ctor for the 'from' TTree if any.
void CopyProcessIds()
Make sure that all the needed TStreamerInfo are present in the output file.
void CopyStreamerInfos()
Make sure that all the needed TStreamerInfo are present in the output file.
Bool_t operator()(UInt_t i1, UInt_t i2)
void CreateCache()
Create a TFileCacheRead if it was requested.
UInt_t CollectBranches()
Fill the array of branches, matching the branches of the 'from' and 'to' TTrees Returns the total num...
Bool_t Exec()
Execute the cloning.
UInt_t * fBasketNum
[fMaxBaskets] index of the basket within the branch.
Bool_t operator()(UInt_t i1, UInt_t i2)
UInt_t FillCache(UInt_t from)
Fill the file cache with the next set of basket.
const char * GetWarning() const
UShort_t fPidOffset
Offset to be added to the copied key/basket.
TFileCacheRead * fFileCache
File Cache used to reduce the number of individual reads.
UInt_t fCloneMethod
Indicates which cloning method was selected.
void SetCacheSize(Int_t size)
Set the TFile cache size to be used.
UInt_t * fBasketBranchNum
[fMaxBaskets] Index of the branch(es) of the basket.
Class implementing or helping the various TTree cloning method.
Bool_t fNeedConversion
True if the fast merge is not possible but a slow merge might possible.
A TTree object has a header with a name and a title.
TString fWarningMsg
Text of the error message lead to an 'invalid' state.
A TTree is a list of TBranches.
CompareSeek(TTreeCloner *obj)
Long64_t * fBasketSeek
[fMaxBaskets] list of basket position to be read.
virtual ~TTreeCloner()
TTreeCloner destructor.
void CopyMemoryBaskets()
Transfer the basket from the input file to the output file.
void CollectBaskets()
Collect the information about the on-file basket that need to be copied.
Int_t fCacheSize
Requested size of the file cache.