A++ » INCLUDE » TTree

class TTree: public TNamed, public TAttLine, public TAttFill, public TAttMarker


TTree

A TTree object is a list of TBranch.
To Create a TTree object one must:
- Create the TTree header via the TTree constructor
- Call the TBranch constructor for every branch.

To Fill this object, use member function Fill with no parameters.
The Fill function loops on all defined TBranch.


Function Members (Methods)

public:
virtual~TTree()
voidTObject::AbstractMethod(const char* method) const
virtual Int_tAddBranchToCache(const char* bname, Bool_t subbranches = kFALSE)
virtual Int_tAddBranchToCache(TBranch* branch, Bool_t subbranches = kFALSE)
virtual TFriendElement*AddFriend(const char* treename, const char* filename = "")
virtual TFriendElement*AddFriend(const char* treename, TFile* file)
virtual TFriendElement*AddFriend(TTree* tree, const char* alias = "", Bool_t warn = kFALSE)
virtual voidAddTotBytes(Int_t tot)
virtual voidAddZipBytes(Int_t zip)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual Long64_tAutoSave(Option_t* option = "")
virtual Int_tBranch(TList* list, Int_t bufsize = 32000, Int_t splitlevel = 99)
virtual Int_tBranch(const char* folder, Int_t bufsize = 32000, Int_t splitlevel = 99)
virtual Int_tBranch(TCollection* list, Int_t bufsize = 32000, Int_t splitlevel = 99, const char* name = "")
virtual TBranch*Branch(const char* name, void* address, const char* leaflist, Int_t bufsize = 32000)
TBranch*Branch(const char* name, char* address, const char* leaflist, Int_t bufsize = 32000)
TBranch*Branch(const char* name, Long_t address, const char* leaflist, Int_t bufsize = 32000)
TBranch*Branch(const char* name, int address, const char* leaflist, Int_t bufsize = 32000)
virtual TBranch*Branch(const char* name, const char* classname, void* addobj, Int_t bufsize = 32000, Int_t splitlevel = 99)
TBranch*Branch<const char>(const char* name, const char* classname, const char* obj, Int_t bufsize = 32000, Int_t splitlevel = 99)
TBranch*Branch<void>(const char* name, void* obj, Int_t bufsize = 32000, Int_t splitlevel = 99)
virtual TBranch*BranchOld(const char* name, const char* classname, void* addobj, Int_t bufsize = 32000, Int_t splitlevel = 1)
virtual TBranch*BranchRef()
virtual TBranch*Bronch(const char* name, const char* classname, void* addobj, Int_t bufsize = 32000, Int_t splitlevel = 99)
virtual voidBrowse(TBrowser*)
virtual Int_tBuildIndex(const char* majorname, const char* minorname = "0")
TStreamerInfo*BuildStreamerInfo(TClass* cl, void* pointer = 0, Bool_t canOptimize = kTRUE)
virtual TFile*ChangeFile(TFile* file)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual TTree*CloneTree(Long64_t nentries = -1, Option_t* option = "")
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
virtual voidCopyAddresses(TTree*, Bool_t undo = kFALSE)
virtual Long64_tCopyEntries(TTree* tree, Long64_t nentries = -1, Option_t* option = "")
virtual TTree*CopyTree(const char* selection, Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0)
virtual TBasket*CreateBasket(TBranch*)
Int_tDebug() const
virtual voidDelete(Option_t* option = "")MENU
virtual voidDirectoryAutoAdd(TDirectory*)
Int_tTAttLine::DistancetoLine(Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidDraw(Option_t* opt)
virtual Long64_tDraw(const char* varexp, const TCut& selection, Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0)
virtual Long64_tDraw(const char* varexp, const char* selection, Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0)MENU
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidDropBaskets()
virtual Int_tDropBranchFromCache(const char* bname, Bool_t subbranches = kFALSE)
virtual Int_tDropBranchFromCache(TBranch* branch, Bool_t subbranches = kFALSE)
virtual voidDropBuffers(Int_t nbytes)
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual Int_tFill()
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TBranch*FindBranch(const char* name)
virtual TLeaf*FindLeaf(const char* name)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Int_tFit(const char* funcname, const char* varexp, const char* selection = "", Option_t* option = "", Option_t* goption = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0)MENU
virtual Int_tFlushBaskets() const
virtual const char*GetAlias(const char* aliasName) const
virtual Long64_tGetAutoFlush() const
virtual Long64_tGetAutoSave() const
virtual TBranch*GetBranch(const char* name)
virtual TBranchRef*GetBranchRef() const
virtual Bool_tGetBranchStatus(const char* branchname) const
static Int_tGetBranchStyle()
virtual Long64_tGetCacheSize() const
virtual Long64_tGetChainEntryNumber(Long64_t entry) const
virtual Long64_tGetChainOffset() const
virtual TTree::TClusterIteratorGetClusterIterator(Long64_t firstentry)
TFile*GetCurrentFile() const
Long64_tGetDebugMax() const
Long64_tGetDebugMin() const
Int_tGetDefaultEntryOffsetLen() const
TDirectory*GetDirectory() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual Long64_tGetEntries() const
virtual Long64_tGetEntries(const char* selection)
virtual Long64_tGetEntriesFast() const
virtual Long64_tGetEntriesFriend() const
virtual Int_tGetEntry(Long64_t entry = 0, Int_t getall = 0)
virtual TEntryList*GetEntryList()
virtual Long64_tGetEntryNumber(Long64_t entry) const
virtual Long64_tGetEntryNumberWithBestIndex(Long64_t major, Long64_t minor = 0) const
virtual Long64_tGetEntryNumberWithIndex(Long64_t major, Long64_t minor = 0) const
virtual Int_tGetEntryWithIndex(Int_t major, Int_t minor = 0)
virtual Long64_tGetEstimate() const
Int_tGetEvent(Long64_t entry = 0, Int_t getall = 0)
TEventList*GetEventList() const
virtual Int_tGetFileNumber() const
virtual Color_tTAttFill::GetFillColor() const
virtual Style_tTAttFill::GetFillStyle() const
virtual TTree*GetFriend(const char*) const
virtual const char*GetFriendAlias(TTree*) const
TH1*GetHistogram()
virtual const char*TObject::GetIconName() const
virtual Bool_tGetImplicitMT()
virtual Int_t*GetIndex()
virtual Double_t*GetIndexValues()
virtual TIterator*GetIteratorOnAllLeaves(Bool_t dir = kIterForward)
virtual TLeaf*GetLeaf(const char* name)
virtual TLeaf*GetLeaf(const char* branchname, const char* leafname)
virtual Color_tTAttLine::GetLineColor() const
virtual Style_tTAttLine::GetLineStyle() const
virtual Width_tTAttLine::GetLineWidth() const
virtual TList*GetListOfAliases() const
virtual TObjArray*GetListOfBranches()
virtual TList*GetListOfClones()
virtual TList*GetListOfFriends() const
virtual TObjArray*GetListOfLeaves()
Int_tGetMakeClass() const
virtual Color_tTAttMarker::GetMarkerColor() const
virtual Size_tTAttMarker::GetMarkerSize() const
virtual Style_tTAttMarker::GetMarkerStyle() const
virtual Long64_tGetMaxEntryLoop() const
virtual Double_tGetMaximum(const char* columname)
static Long64_tGetMaxTreeSize()
virtual Long64_tGetMaxVirtualSize() const
virtual Double_tGetMinimum(const char* columname)
virtual const char*TNamed::GetName() const
virtual Int_tGetNbranches()
TObject*GetNotify() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual Int_tGetPacketSize() const
virtual TVirtualPerfStats*GetPerfStats() const
TVirtualTreePlayer*GetPlayer()
virtual Long64_tGetReadEntry() const
virtual Long64_tGetReadEvent() const
virtual Int_tGetScanField() const
TTreeFormula*GetSelect()
virtual Long64_tGetSelectedRows()
virtual Int_tGetTimerInterval() const
virtual const char*TNamed::GetTitle() const
virtual Long64_tGetTotBytes() const
TBuffer*GetTransientBuffer(Int_t size)
virtual TTree*GetTree() const
virtual TVirtualIndex*GetTreeIndex() const
virtual Int_tGetTreeNumber() const
virtual UInt_tTObject::GetUniqueID() const
virtual Int_tGetUpdate() const
virtual TList*GetUserInfo()
virtual Double_t*GetV1()
virtual Double_t*GetV2()
virtual Double_t*GetV3()
virtual Double_t*GetV4()
virtual Double_t*GetVal(Int_t i)
TTreeFormula*GetVar(Int_t i)
TTreeFormula*GetVar1()
TTreeFormula*GetVar2()
TTreeFormula*GetVar3()
TTreeFormula*GetVar4()
virtual Double_t*GetW()
virtual Double_tGetWeight() const
virtual Long64_tGetZipBytes() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual voidIncrementTotalBuffers(Int_t nbytes)
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tIsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
virtual Bool_tTAttFill::IsTransparent() const
Bool_tTObject::IsZombie() const
virtual Int_tLoadBaskets(Long64_t maxmemory = 2000000000)
virtual Long64_tLoadTree(Long64_t entry)
virtual Long64_tLoadTreeFriend(Long64_t entry, TTree* T)
virtual voidTNamed::ls(Option_t* option = "") const
virtual Int_tMakeClass(const char* classname = 0, Option_t* option = "")
virtual Int_tMakeCode(const char* filename = 0)
virtual Int_tMakeProxy(const char* classname, const char* macrofilename = 0, const char* cutfilename = 0, const char* option = 0, Int_t maxUnrolling = 3)
virtual Int_tMakeSelector(const char* selector = 0, Option_t* option = "")
voidTObject::MayNotUse(const char* method) const
Bool_tMemoryFull(Int_t nbytes)
virtual Long64_tMerge(TCollection* list, Option_t* option = "")
virtual Long64_tMerge(TCollection* list, TFileMergeInfo* info)
static TTree*MergeTrees(TList* list, Option_t* option = "")
virtual voidTAttLine::Modify()
virtual Bool_tNotify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidOptimizeBaskets(ULong64_t maxMemory = 10000000, Float_t minComp = 1.1000000000000001, Option_t* option = "")
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
TPrincipal*Principal(const char* varexp = "", const char* selection = "", Option_t* option = "np", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0)
virtual voidPrint(Option_t* option = "") constMENU
virtual voidPrintCacheStats(Option_t* option = "") const
virtual Long64_tProcess(const char* filename, Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0)MENU
virtual Long64_tProcess(TSelector* selector, Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0)
virtual Long64_tProject(const char* hname, const char* varexp, const char* selection = "", Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0)
virtual TSQLResult*Query(const char* varexp = "", const char* selection = "", Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0)
virtual Int_tTObject::Read(const char* name)
virtual Long64_tReadFile(const char* filename, const char* branchDescriptor = "", char delimiter = ' ')
virtual Long64_tReadStream(istream& inputStream, const char* branchDescriptor = "", char delimiter = ' ')
virtual voidRecursiveRemove(TObject* obj)
virtual voidRefresh()
virtual voidRemoveFriend(TTree*)
virtual voidReset(Option_t* option = "")
virtual voidResetAfterMerge(TFileMergeInfo*)
virtual voidTAttFill::ResetAttFill(Option_t* option = "")
virtual voidTAttLine::ResetAttLine(Option_t* option = "")
virtual voidTAttMarker::ResetAttMarker(Option_t* toption = "")
voidTObject::ResetBit(UInt_t f)
virtual voidResetBranchAddress(TBranch*)
virtual voidResetBranchAddresses()
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTAttFill::SaveFillAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1001)
virtual voidTAttLine::SaveLineAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1, Int_t widdef = 1)
virtual voidTAttMarker::SaveMarkerAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1, Int_t sizdef = 1)
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
virtual Long64_tScan(const char* varexp = "", const char* selection = "", Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0)MENU
virtual Bool_tSetAlias(const char* aliasName, const char* aliasFormula)
virtual voidSetAutoFlush(Long64_t autof = -30000000)
virtual voidSetAutoSave(Long64_t autos = -300000000)
virtual voidSetBasketSize(const char* bname, Int_t buffsize = 16000)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual Int_tSetBranchAddress(const char* bname, void* add, TBranch** ptr = 0)
virtual Int_tSetBranchAddress(const char* bname, void* add, TClass* realClass, EDataType datatype, Bool_t isptr)
virtual Int_tSetBranchAddress(const char* bname, void* add, TBranch** ptr, TClass* realClass, EDataType datatype, Bool_t isptr)
virtual voidSetBranchStatus(const char* bname, Bool_t status = 1, UInt_t* found = 0)
static voidSetBranchStyle(Int_t style = 1)
virtual Int_tSetCacheEntryRange(Long64_t first, Long64_t last)
virtual voidSetCacheLearnEntries(Int_t n = 10)
virtual Int_tSetCacheSize(Long64_t cachesize = -1)
virtual voidSetChainOffset(Long64_t offset = 0)
virtual voidSetCircular(Long64_t maxEntries)
virtual voidSetDebug(Int_t level = 1, Long64_t min = 0, Long64_t max = 9999999)MENU
virtual voidSetDefaultEntryOffsetLen(Int_t newdefault, Bool_t updateExisting = kFALSE)
virtual voidSetDirectory(TDirectory* dir)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual Long64_tSetEntries(Long64_t n = -1)
virtual voidSetEntryList(TEntryList* list, Option_t* opt = "")
virtual voidSetEstimate(Long64_t nentries = 1000000)
virtual voidSetEventList(TEventList* list)
virtual voidSetFileNumber(Int_t number = 0)
virtual voidTAttFill::SetFillAttributes()MENU
virtual voidTAttFill::SetFillColor(Color_t fcolor)
virtual voidTAttFill::SetFillColorAlpha(Color_t fcolor, Float_t falpha)
virtual voidTAttFill::SetFillStyle(Style_t fstyle)
virtual voidSetImplicitMT(Bool_t enabled)
virtual voidTAttLine::SetLineAttributes()MENU
virtual voidTAttLine::SetLineColor(Color_t lcolor)
virtual voidTAttLine::SetLineColorAlpha(Color_t lcolor, Float_t lalpha)
virtual voidTAttLine::SetLineStyle(Style_t lstyle)
virtual voidTAttLine::SetLineWidth(Width_t lwidth)
virtual voidSetMakeClass(Int_t make)
virtual voidTAttMarker::SetMarkerAttributes()MENU
virtual voidTAttMarker::SetMarkerColor(Color_t mcolor = 1)
virtual voidTAttMarker::SetMarkerColorAlpha(Color_t mcolor, Float_t malpha)
virtual voidTAttMarker::SetMarkerSize(Size_t msize = 1)
virtual voidTAttMarker::SetMarkerStyle(Style_t mstyle = 1)
virtual voidSetMaxEntryLoop(Long64_t maxev = kMaxEntries)MENU
static voidSetMaxTreeSize(Long64_t maxsize = 1900000000)
virtual voidSetMaxVirtualSize(Long64_t size = 0)MENU
virtual voidSetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
virtual voidSetNotify(TObject* obj)
virtual voidSetObject(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidSetParallelUnzip(Bool_t opt = kTRUE, Float_t RelSize = -1)
virtual voidSetPerfStats(TVirtualPerfStats* perf)
virtual voidSetScanField(Int_t n = 50)MENU
virtual voidSetTimerInterval(Int_t msec = 333)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidSetTreeIndex(TVirtualIndex* index)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidSetUpdate(Int_t freq = 0)
virtual voidSetWeight(Double_t w = 1, Option_t* option = "")
virtual voidShow(Long64_t entry = -1, Int_t lenmax = 20)
virtual voidShowMembers(TMemberInspector& insp) const
virtual Int_tTNamed::Sizeof() const
virtual voidStartViewer()MENU
virtual Int_tStopCacheLearningPhase()
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
TTree()
TTree(const char* name, const char* title, Int_t splitlevel = 99)
virtual Int_tUnbinnedFit(const char* funcname, const char* varexp, const char* selection = "", Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0)
virtual voidUseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tWrite(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tWrite(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
voidAddClone(TTree*)
virtual TBranch*BranchImp(const char* branchname, TClass* ptrClass, void* addobj, Int_t bufsize, Int_t splitlevel)
virtual TBranch*BranchImp(const char* branchname, const char* classname, TClass* ptrClass, void* addobj, Int_t bufsize, Int_t splitlevel)
virtual TBranch*BranchImpRef(const char* branchname, const char* classname, TClass* ptrClass, void* addobj, Int_t bufsize, Int_t splitlevel)
virtual TBranch*BranchImpRef(const char* branchname, TClass* ptrClass, EDataType datatype, void* addobj, Int_t bufsize, Int_t splitlevel)
virtual TBranch*BronchExec(const char* name, const char* classname, void* addobj, Bool_t isptrptr, Int_t bufsize, Int_t splitlevel)
virtual Int_tCheckBranchAddressType(TBranch* branch, TClass* ptrClass, EDataType datatype, Bool_t ptr)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
Long64_tGetCacheAutoSize(Bool_t withDefault = kFALSE) const
virtual TLeaf*GetLeafImpl(const char* branchname, const char* leafname)
charGetNewlineValue(istream& inputStream)
TTreeCache*GetReadCache(TFile* file, Bool_t create = kFALSE)
voidImportClusterRanges(TTree* fromtree)
virtual voidKeepCircular()
voidTObject::MakeZombie()
voidMoveReadCache(TFile* src, TDirectory* dir)
Int_tSetBranchAddressImp(TBranch* branch, void* addr, TBranch** ptr)
Int_tSetCacheSizeAux(Bool_t autocache = kTRUE, Long64_t cacheSize = 0)
private:
voidInitializeSortedBranches()
TTree&operator=(const TTree& tt)
voidSortBranchesByTime()
TTree(const TTree& tt)

Data Members

public:
static TObject::(anonymous)TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static TTree::(anonymous)kCircular
static TTree::ESetBranchAddressStatuskClassMismatch
static TTree::(anonymous)kForceRead
static TObject::EStatusBitsTObject::kHasUUID
static TTree::ESetBranchAddressStatuskInternalError
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::(anonymous)TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static TTree::ESetBranchAddressStatuskMakeClass
static TTree::ESetBranchAddressStatuskMatch
static TTree::ESetBranchAddressStatuskMatchConversion
static TTree::ESetBranchAddressStatuskMatchConversionCollection
static const Long64_tkMaxEntries
static TTree::ESetBranchAddressStatuskMismatch
static TTree::ESetBranchAddressStatuskMissingBranch
static TTree::ESetBranchAddressStatuskMissingCompiledCollectionProxy
static TObject::EStatusBitsTObject::kMustCleanup
static TTree::ESetBranchAddressStatuskNoCheck
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::(anonymous)TObject::kNotDeleted
static TObject::EStatusBitsTObject::kObjInCanvas
static TObject::(anonymous)TObject::kOverwrite
static TObject::(anonymous)TObject::kSingleKey
static TTree::(anonymous)kSplitCollectionOfPointers
static TTree::ESetBranchAddressStatuskVoidPtr
static TObject::(anonymous)TObject::kWriteDelete
static TObject::(anonymous)TObject::kZombie
protected:
TList*fAliasesList of aliases for expressions based on the tree branches.
Long64_tfAutoFlushAuto-flush tree when fAutoFlush entries written or -fAutoFlush (compressed) bytes produced
Long64_tfAutoSaveAutosave tree when fAutoSave entries written or -fAutoSave (compressed) bytes produced
TBranchRef*fBranchRefBranch supporting the TRefTable (if any)
TObjArrayfBranchesList of Branches
Bool_tfCacheDoAutoInit! true if cache auto creation or resize check is needed
Long64_tfCacheSize! Maximum size of file buffers
Bool_tfCacheUserSet! true if the cache setting was explicitly given by user
Long64_tfChainOffset! Offset of 1st entry of this Tree in a TChain
TList*fClones! List of cloned trees which share our addresses
Long64_t*fClusterRangeEnd[fNClusterRange] Last entry of a cluster range.
Long64_t*fClusterSize[fNClusterRange] Number of entries in each cluster for a given range.
Int_tfDebug! Debug level
Long64_tfDebugMax! Last entry number to debug
Long64_tfDebugMin! First entry number to debug
Int_tfDefaultEntryOffsetLenInitial Length of fEntryOffset table in the basket buffers
TDirectory*fDirectory! Pointer to directory holding this tree
Long64_tfEntriesNumber of entries
TEntryList*fEntryList! Pointer to event selection list (if one)
Long64_tfEstimateNumber of entries to estimate histogram limits
TEventList*fEventList! Pointer to event selection list (if one)
Int_tfFileNumber! current file number (if file extensions)
Color_tTAttFill::fFillColorFill area color
Style_tTAttFill::fFillStyleFill area style
Long64_tfFlushedBytesNumber of auto-flushed bytes
UInt_tfFriendLockStatus! Record which method is locking the friend recursion
TList*fFriendspointer to list of friend elements
Bool_tfIMTEnabled! true if implicit multi-threading is enabled for this tree
TArrayIfIndexIndex of sorted values
TArrayDfIndexValuesSorted index values
TObjArrayfLeavesDirect pointers to individual branch leaves
Color_tTAttLine::fLineColorLine color
Style_tTAttLine::fLineStyleLine style
Width_tTAttLine::fLineWidthLine width
Int_tfMakeClass! not zero when processing code generated by MakeClass
Color_tTAttMarker::fMarkerColorMarker color
Size_tTAttMarker::fMarkerSizeMarker size
Style_tTAttMarker::fMarkerStyleMarker style
Int_tfMaxClusterRange! Memory allocated for the cluster range.
Long64_tfMaxEntriesMaximum number of entries in case of circular buffers
Long64_tfMaxEntryLoopMaximum number of entries to process
Long64_tfMaxVirtualSizeMaximum total size of buffers kept in memory
Int_tfNClusterRangeNumber of Cluster range in addition to the one defined by 'AutoFlush'
UInt_tfNEntriesSinceSorting! Number of entries processed since the last re-sorting of branches
TStringTNamed::fNameobject identifier
Int_tfNfill! Local for EntryLoop
TObject*fNotify! Object to be notified when loading a Tree
Int_tfPacketSize! Number of entries in one packet for parallel root
TVirtualPerfStats*fPerfStats! pointer to the current perf stats object
TVirtualTreePlayer*fPlayer! Pointer to current Tree player
Long64_tfReadEntry! Number of the entry being processed
Long64_tfSavedBytesNumber of autosaved bytes
Int_tfScanFieldNumber of runs before prompting in Scan
vector<pair<Long64_t,TBranch*> >fSortedBranches! Branches sorted by average task time
Int_tfTimerIntervalTimer interval in milliseconds
TStringTNamed::fTitleobject title
Long64_tfTotBytesTotal number of bytes in all branches before compression
atomic<Long64_t>fTotalBuffers! Total number of bytes in branch buffers
TBuffer*fTransientBuffer! Pointer to the current transient buffer.
TVirtualIndex*fTreeIndexPointer to the tree Index (if any)
Int_tfUpdateUpdate frequency for EntryLoop
TList*fUserInfopointer to a list of user objects associated to this Tree
Double_tfWeightTree weight (see TTree::SetWeight)
Long64_tfZipBytesTotal number of bytes in all branches after compression
static Int_tfgBranchStyleOld/New branch style
static Long64_tfgMaxTreeSizeMaximum size of a file containing a Tree
static TTree::ELockStatusBitskFindBranch
static TTree::ELockStatusBitskFindLeaf
static TTree::ELockStatusBitskGetAlias
static TTree::ELockStatusBitskGetBranch
static TTree::ELockStatusBitskGetEntry
static TTree::ELockStatusBitskGetEntryWithIndex
static TTree::ELockStatusBitskGetFriend
static TTree::ELockStatusBitskGetFriendAlias
static TTree::ELockStatusBitskGetLeaf
static TTree::ELockStatusBitskLoadTree
static TTree::ELockStatusBitskPrint
static TTree::ELockStatusBitskRemoveFriend
static TTree::ELockStatusBitskSetBranchStatus

Class Charts

Inheritance Chart:
TObject
TNamed
TAttLine
TAttFill
TAttMarker
TTree
TChain
TNtuple
TNtupleD
TTreeSQL

Function documentation

TTree(const TTree& tt)
TTree& operator=(const TTree& tt)
void InitializeSortedBranches()
void SortBranchesByTime()
void AddClone(TTree* )
void KeepCircular()
TBranch * BranchImp(const char* branchname, const char* classname, TClass* ptrClass, void* addobj, Int_t bufsize, Int_t splitlevel)
TBranch * BranchImp(const char* branchname, TClass* ptrClass, void* addobj, Int_t bufsize, Int_t splitlevel)
TBranch * BranchImpRef(const char* branchname, const char* classname, TClass* ptrClass, void* addobj, Int_t bufsize, Int_t splitlevel)
TBranch * BranchImpRef(const char* branchname, TClass* ptrClass, EDataType datatype, void* addobj, Int_t bufsize, Int_t splitlevel)
Int_t CheckBranchAddressType(TBranch* branch, TClass* ptrClass, EDataType datatype, Bool_t ptr)
TBranch * BronchExec(const char* name, const char* classname, void* addobj, Bool_t isptrptr, Int_t bufsize, Int_t splitlevel)
Int_t SetBranchAddressImp(TBranch* branch, void* addr, TBranch** ptr)
TLeaf * GetLeafImpl(const char* branchname, const char* leafname)
Long64_t GetCacheAutoSize(Bool_t withDefault = kFALSE) const
char GetNewlineValue(istream& inputStream)
TTreeCache * GetReadCache(TFile* file, Bool_t create = kFALSE)
void ImportClusterRanges(TTree* fromtree)
void MoveReadCache(TFile* src, TDirectory* dir)
Int_t SetCacheSizeAux(Bool_t autocache = kTRUE, Long64_t cacheSize = 0)
TTree()
TTree(const char* name, const char* title, Int_t splitlevel = 99)
virtual ~TTree()
Int_t AddBranchToCache(const char* bname, Bool_t subbranches = kFALSE)
Int_t AddBranchToCache(TBranch* branch, Bool_t subbranches = kFALSE)
Int_t DropBranchFromCache(const char* bname, Bool_t subbranches = kFALSE)
Int_t DropBranchFromCache(TBranch* branch, Bool_t subbranches = kFALSE)
TFriendElement * AddFriend(const char* treename, const char* filename = "")
TFriendElement * AddFriend(const char* treename, TFile* file)
TFriendElement * AddFriend(TTree* tree, const char* alias = "", Bool_t warn = kFALSE)
void AddTotBytes(Int_t tot)
{ fTotBytes += tot; }
void AddZipBytes(Int_t zip)
{ fZipBytes += zip; }
Long64_t AutoSave(Option_t* option = "")
Int_t Branch(TCollection* list, Int_t bufsize = 32000, Int_t splitlevel = 99, const char* name = "")
Int_t Branch(TList* list, Int_t bufsize = 32000, Int_t splitlevel = 99)
Int_t Branch(const char* folder, Int_t bufsize = 32000, Int_t splitlevel = 99)
return Branch(const char* name, void* address, const char* leaflist, Int_t bufsize = 32000)
 Overload to avoid confusion between this signature and the template instance.
return Branch(const char* name, void* address, const char* leaflist, Int_t bufsize = 32000)
 Overload to avoid confusion between this signature and the template instance.
return Branch(const char* name, Long_t address, const char* leaflist, Int_t bufsize = 32000)
 Overload to avoid confusion between this signature and the template instance.
TBranch * Bronch(const char* name, const char* classname, void* addobj, Int_t bufsize = 32000, Int_t splitlevel = 99)
TBranch * BranchOld(const char* name, const char* classname, void* addobj, Int_t bufsize = 32000, Int_t splitlevel = 1)
TBranch * BranchRef()
void Browse(TBrowser* )
Int_t BuildIndex(const char* majorname, const char* minorname = "0")
TStreamerInfo * BuildStreamerInfo(TClass* cl, void* pointer = 0, Bool_t canOptimize = kTRUE)
TFile * ChangeFile(TFile* file)
TTree * CloneTree(Long64_t nentries = -1, Option_t* option = "")
void CopyAddresses(TTree* , Bool_t undo = kFALSE)
Long64_t CopyEntries(TTree* tree, Long64_t nentries = -1, Option_t* option = "")
TTree * CopyTree(const char* selection, Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0)
TBasket * CreateBasket(TBranch* )
void DirectoryAutoAdd(TDirectory* )
Int_t Debug() const
{ return fDebug; }
void Delete(Option_t* option = "")
void Draw(Option_t* opt)
{ Draw(opt, "", "", kMaxEntries, 0); }
Long64_t Draw(const char* varexp, const TCut& selection, Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0)
Long64_t Draw(const char* varexp, const char* selection, Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0)
void DropBaskets()
void DropBuffers(Int_t nbytes)
Int_t Fill()
TBranch * FindBranch(const char* name)
TLeaf * FindLeaf(const char* name)
Int_t Fit(const char* funcname, const char* varexp, const char* selection = "", Option_t* option = "", Option_t* goption = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0)
Int_t FlushBaskets() const
const char * GetAlias(const char* aliasName) const
Long64_t GetAutoFlush() const
{return fAutoFlush;}
Long64_t GetAutoSave() const
{return fAutoSave;}
TBranch * GetBranch(const char* name)
TBranchRef * GetBranchRef() const
{ return fBranchRef; }
Bool_t GetBranchStatus(const char* branchname) const
Int_t GetBranchStyle()
Long64_t GetCacheSize() const
{ return fCacheSize; }
TClusterIterator GetClusterIterator(Long64_t firstentry)
Long64_t GetChainEntryNumber(Long64_t entry) const
{ return entry; }
Long64_t GetChainOffset() const
{ return fChainOffset; }
TFile * GetCurrentFile() const
Int_t GetDefaultEntryOffsetLen() const
Long64_t GetDebugMax() const
{ return fDebugMax; }
Long64_t GetDebugMin() const
{ return fDebugMin; }
TDirectory * GetDirectory() const
{ return fDirectory; }
Long64_t GetEntries() const
{ return fEntries; }
Long64_t GetEntries(const char* selection)
Long64_t GetEntriesFast() const
{ return fEntries; }
Long64_t GetEntriesFriend() const
Long64_t GetEstimate() const
{ return fEstimate; }
Int_t GetEntry(Long64_t entry = 0, Int_t getall = 0)
Int_t GetEvent(Long64_t entry = 0, Int_t getall = 0)
{ return GetEntry(entry, getall); }
Int_t GetEntryWithIndex(Int_t major, Int_t minor = 0)
Long64_t GetEntryNumberWithBestIndex(Long64_t major, Long64_t minor = 0) const
Long64_t GetEntryNumberWithIndex(Long64_t major, Long64_t minor = 0) const
TEventList * GetEventList() const
{ return fEventList; }
TEntryList * GetEntryList()
Long64_t GetEntryNumber(Long64_t entry) const
Int_t GetFileNumber() const
{ return fFileNumber; }
TTree * GetFriend(const char* ) const
const char * GetFriendAlias(TTree* ) const
TH1 * GetHistogram()
{ return GetPlayer()->GetHistogram(); }
Bool_t GetImplicitMT()
{ return fIMTEnabled; }
Int_t * GetIndex()
{ return &fIndex.fArray[0]; }
Double_t * GetIndexValues()
{ return &fIndexValues.fArray[0]; }
TIterator * GetIteratorOnAllLeaves(Bool_t dir = kIterForward)
TLeaf * GetLeaf(const char* branchname, const char* leafname)
TLeaf * GetLeaf(const char* name)
TList * GetListOfClones()
{ return fClones; }
TObjArray * GetListOfBranches()
{ return &fBranches; }
TObjArray * GetListOfLeaves()
{ return &fLeaves; }
TList * GetListOfFriends() const
{ return fFriends; }
TList * GetListOfAliases() const
{ return fAliases; }
Int_t GetMakeClass() const
 GetMakeClass is left non-virtual for efficiency reason.
 Making it virtual affects the performance of the I/O
{ return fMakeClass; }
Long64_t GetMaxEntryLoop() const
{ return fMaxEntryLoop; }
Double_t GetMaximum(const char* columname)
Long64_t GetMaxTreeSize()
Long64_t GetMaxVirtualSize() const
{ return fMaxVirtualSize; }
Double_t GetMinimum(const char* columname)
Int_t GetNbranches()
TObject * GetNotify() const
{ return fNotify; }
TVirtualTreePlayer * GetPlayer()
Int_t GetPacketSize() const
{ return fPacketSize; }
TVirtualPerfStats * GetPerfStats() const
{ return fPerfStats; }
Long64_t GetReadEntry() const
{ return fReadEntry; }
Long64_t GetReadEvent() const
{ return fReadEntry; }
Int_t GetScanField() const
{ return fScanField; }
TTreeFormula * GetSelect()
{ return GetPlayer()->GetSelect(); }
Long64_t GetSelectedRows()
{ return GetPlayer()->GetSelectedRows(); }
Int_t GetTimerInterval() const
{ return fTimerInterval; }
TBuffer* GetTransientBuffer(Int_t size)
Long64_t GetTotBytes() const
{ return fTotBytes; }
TTree * GetTree() const
{ return const_cast<TTree*>(this); }
TVirtualIndex * GetTreeIndex() const
{ return fTreeIndex; }
Int_t GetTreeNumber() const
{ return 0; }
Int_t GetUpdate() const
{ return fUpdate; }
TList * GetUserInfo()
TTreeFormula * GetVar(Int_t i)
{ return GetPlayer()->GetVar(i); }
TTreeFormula * GetVar1()
{ return GetPlayer()->GetVar1(); }
TTreeFormula * GetVar2()
{ return GetPlayer()->GetVar2(); }
TTreeFormula * GetVar3()
{ return GetPlayer()->GetVar3(); }
TTreeFormula * GetVar4()
{ return GetPlayer()->GetVar4(); }
Double_t * GetVal(Int_t i)
{ return GetPlayer()->GetVal(i); }
Double_t * GetV1()
{ return GetPlayer()->GetV1(); }
Double_t * GetV2()
{ return GetPlayer()->GetV2(); }
Double_t * GetV3()
{ return GetPlayer()->GetV3(); }
Double_t * GetV4()
{ return GetPlayer()->GetV4(); }
Double_t * GetW()
{ return GetPlayer()->GetW(); }
Double_t GetWeight() const
{ return fWeight; }
Long64_t GetZipBytes() const
{ return fZipBytes; }
void IncrementTotalBuffers(Int_t nbytes)
{ fTotalBuffers += nbytes; }
Bool_t IsFolder() const
{ return kTRUE; }
Int_t LoadBaskets(Long64_t maxmemory = 2000000000)
Long64_t LoadTree(Long64_t entry)
Long64_t LoadTreeFriend(Long64_t entry, TTree* T)
Int_t MakeClass(const char* classname = 0, Option_t* option = "")
Int_t MakeCode(const char* filename = 0)
Int_t MakeProxy(const char* classname, const char* macrofilename = 0, const char* cutfilename = 0, const char* option = 0, Int_t maxUnrolling = 3)
Int_t MakeSelector(const char* selector = 0, Option_t* option = "")
Bool_t MemoryFull(Int_t nbytes)
Long64_t Merge(TCollection* list, Option_t* option = "")
Long64_t Merge(TCollection* list, TFileMergeInfo* info)
TTree * MergeTrees(TList* list, Option_t* option = "")
Bool_t Notify()
void OptimizeBaskets(ULong64_t maxMemory = 10000000, Float_t minComp = 1.1000000000000001, Option_t* option = "")
void Print(Option_t* option = "") const
void PrintCacheStats(Option_t* option = "") const
Long64_t Process(const char* filename, Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0)
Long64_t Process(TSelector* selector, Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0)
Long64_t Project(const char* hname, const char* varexp, const char* selection = "", Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0)
TSQLResult * Query(const char* varexp = "", const char* selection = "", Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0)
Long64_t ReadFile(const char* filename, const char* branchDescriptor = "", char delimiter = ' ')
Long64_t ReadStream(istream& inputStream, const char* branchDescriptor = "", char delimiter = ' ')
void Refresh()
void RecursiveRemove(TObject* obj)
void RemoveFriend(TTree* )
void Reset(Option_t* option = "")
void ResetAfterMerge(TFileMergeInfo* )
void ResetBranchAddress(TBranch* )
void ResetBranchAddresses()
Long64_t Scan(const char* varexp = "", const char* selection = "", Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0)
Bool_t SetAlias(const char* aliasName, const char* aliasFormula)
void SetAutoSave(Long64_t autos = -300000000)
void SetAutoFlush(Long64_t autof = -30000000)
void SetBasketSize(const char* bname, Int_t buffsize = 16000)
Int_t SetBranchAddress(const char* bname, void* add, TBranch** ptr = 0)
Int_t SetBranchAddress(const char* bname, void* add, TClass* realClass, EDataType datatype, Bool_t isptr)
Int_t SetBranchAddress(const char* bname, void* add, TBranch** ptr, TClass* realClass, EDataType datatype, Bool_t isptr)
void SetBranchStatus(const char* bname, Bool_t status = 1, UInt_t* found = 0)
void SetBranchStyle(Int_t style = 1)
Int_t SetCacheSize(Long64_t cachesize = -1)
Int_t SetCacheEntryRange(Long64_t first, Long64_t last)
void SetCacheLearnEntries(Int_t n = 10)
void SetChainOffset(Long64_t offset = 0)
{ fChainOffset=offset; }
void SetCircular(Long64_t maxEntries)
void SetDebug(Int_t level = 1, Long64_t min = 0, Long64_t max = 9999999)
void SetDefaultEntryOffsetLen(Int_t newdefault, Bool_t updateExisting = kFALSE)
void SetDirectory(TDirectory* dir)
Long64_t SetEntries(Long64_t n = -1)
void SetEstimate(Long64_t nentries = 1000000)
void SetFileNumber(Int_t number = 0)
void SetEventList(TEventList* list)
void SetEntryList(TEntryList* list, Option_t* opt = "")
void SetImplicitMT(Bool_t enabled)
{ fIMTEnabled = enabled; }
void SetMakeClass(Int_t make)
void SetMaxEntryLoop(Long64_t maxev = kMaxEntries)
{ fMaxEntryLoop = maxev; }
void SetMaxTreeSize(Long64_t maxsize = 1900000000)
void SetMaxVirtualSize(Long64_t size = 0)
{ fMaxVirtualSize = size; }
void SetName(const char* name)
void SetNotify(TObject* obj)
{ fNotify = obj; }
void SetObject(const char* name, const char* title)
void SetParallelUnzip(Bool_t opt = kTRUE, Float_t RelSize = -1)
void SetPerfStats(TVirtualPerfStats* perf)
void SetScanField(Int_t n = 50)
{ fScanField = n; }
void SetTimerInterval(Int_t msec = 333)
{ fTimerInterval=msec; }
void SetTreeIndex(TVirtualIndex* index)
void SetWeight(Double_t w = 1, Option_t* option = "")
void SetUpdate(Int_t freq = 0)
{ fUpdate = freq; }
void Show(Long64_t entry = -1, Int_t lenmax = 20)
void StartViewer()
Int_t StopCacheLearningPhase()
Int_t UnbinnedFit(const char* funcname, const char* varexp, const char* selection = "", Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0)
void UseCurrentStyle()
Int_t Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
Int_t Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const