ROOT logo
ROOT » TREE » TREE » TTreeCloner

class TTreeCloner


TTreeCloner

Class implementing or helping  the various TTree cloning method


Function Members (Methods)

public:
TTreeCloner(TTree* from, TTree* to, Option_t* method, UInt_t options = kNone)
virtual~TTreeCloner()
static TClass*Class()
voidCloseOutWriteBaskets()
voidCollectBaskets()
UInt_tCollectBranches()
UInt_tCollectBranches(TBranch* from, TBranch* to)
UInt_tCollectBranches(TObjArray* from, TObjArray* to)
voidCopyMemoryBaskets()
voidCopyProcessIds()
voidCopyStreamerInfos()
Bool_tExec()
const char*GetWarning() const
virtual TClass*IsA() const
Bool_tIsValid()
Bool_tNeedConversion()
virtual voidShowMembers(TMemberInspector&)
voidSortBaskets()
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
voidWriteBaskets()

Data Members

public:
enum ECloneMethod { kDefault
kSortBasketsByBranch
kSortBasketsByOffset
kSortBasketsByEntry
};
enum EClonerOptions { kNone
kNoWarnings
kIgnoreMissingTopLevel
};
private:
UInt_t*fBasketBranchNum[fMaxBaskets] Index of the branch(es) of the basket.
Long64_t*fBasketEntry[fMaxBaskets] list of basket start entries.
UInt_t*fBasketIndex[fMaxBaskets] ordered list of basket indices to be written.
UInt_t*fBasketNum[fMaxBaskets] index of the basket within the branch.
Long64_t*fBasketSeek[fMaxBaskets] list of basket position to be read.
UInt_tfCloneMethodIndicates which cloning method was selected.
TObjArrayfFromBranches
TTree*fFromTree
Bool_tfIsValid
UInt_tfMaxBaskets
Option_t*fMethod
Bool_tfNeedConversionTrue if the fast merge is not possible but a slow merge might possible.
UInt_tfOptions
UShort_tfPidOffsetOffset to be added to the copied key/basket.
TObjArrayfToBranches
Long64_tfToStartEntriesNumber of entries in the target tree before any addition.
TTree*fToTree
TStringfWarningMsgText of the error message lead to an 'invalid' state

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

void ImportClusterRanges()
TTreeCloner(const TTreeCloner& )
TTreeCloner & operator=(const TTreeCloner& )
TTreeCloner(TTree* from, TTree* to, Option_t* method, UInt_t options = kNone)
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()
const char * GetWarning() const
{ return fWarningMsg; }
Bool_t Exec()
Bool_t IsValid()
{ return fIsValid; }
Bool_t NeedConversion()
{ return fNeedConversion; }
void SortBaskets()
void WriteBaskets()