ROOT logo
ROOT » TREE » TREE » TNtuple

class TNtuple: public TTree


TNtuple

A simple tree restricted to a list of float variables only.

Each variable goes to a separate branch.

A Ntuple is created via
TNtuple(name,title,varlist,bufsize)
It is filled via:
TNtuple::Fill(*x)  or
TNtuple::Fill(v1,v2,v3.....)


Function Members (Methods)

public:
TNtuple()
TNtuple(const char* name, const char* title, const char* varlist, Int_t bufsize = 32000)
virtual~TNtuple()
voidTObject::AbstractMethod(const char* method) const
virtual voidTTree::AddBranchToCache(const char* bname, Bool_t subbranches = kFALSE)
virtual voidTTree::AddBranchToCache(TBranch* branch, Bool_t subbranches = kFALSE)
virtual TFriendElement*TTree::AddFriend(const char* treename, const char* filename = "")
virtual TFriendElement*TTree::AddFriend(const char* treename, TFile* file)
virtual TFriendElement*TTree::AddFriend(TTree* tree, const char* alias = "", Bool_t warn = kFALSE)
virtual voidTTree::AddTotBytes(Int_t tot)
virtual voidTTree::AddZipBytes(Int_t zip)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual Long64_tTTree::AutoSave(Option_t* option = "")
virtual Int_tTTree::Branch(TList* list, Int_t bufsize = 32000, Int_t splitlevel = 99)
virtual Int_tTTree::Branch(const char* folder, Int_t bufsize = 32000, Int_t splitlevel = 99)
TBranch*TTree::Branch(const char* name, void** obj, Int_t bufsize = 32000, Int_t splitlevel = 99)
virtual Int_tTTree::Branch(TCollection* list, Int_t bufsize = 32000, Int_t splitlevel = 99, const char* name = "")
virtual TBranch*TTree::Branch(const char* name, void* address, const char* leaflist, Int_t bufsize = 32000)
TBranch*TTree::Branch(const char* name, char* address, const char* leaflist, Int_t bufsize = 32000)
TBranch*TTree::Branch(const char* name, Long_t address, const char* leaflist, Int_t bufsize = 32000)
TBranch*TTree::Branch(const char* name, int address, const char* leaflist, Int_t bufsize = 32000)
TBranch*TTree::Branch(const char* name, const char* classname, void** obj, Int_t bufsize = 32000, Int_t splitlevel = 99)
virtual TBranch*TTree::BranchOld(const char* name, const char* classname, void* addobj, Int_t bufsize = 32000, Int_t splitlevel = 1)
virtual TBranch*TTree::BranchRef()
virtual TBranch*TTree::Bronch(const char* name, const char* classname, void* addobj, Int_t bufsize = 32000, Int_t splitlevel = 99)
virtual voidBrowse(TBrowser* b)
virtual Int_tTTree::BuildIndex(const char* majorname, const char* minorname = "0")
TStreamerInfo*TTree::BuildStreamerInfo(TClass* cl, void* pointer = 0, Bool_t canOptimize = kTRUE)
virtual TFile*TTree::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 voidTTree::CopyAddresses(TTree*, Bool_t undo = kFALSE)
virtual Long64_tTTree::CopyEntries(TTree* tree, Long64_t nentries = -1, Option_t* option = "")
virtual TTree*TTree::CopyTree(const char* selection, Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
virtual TBasket*TTree::CreateBasket(TBranch*)
Int_tTTree::Debug() const
virtual voidTTree::Delete(Option_t* option = "")MENU
virtual voidTTree::DirectoryAutoAdd(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 voidTTree::Draw(Option_t* opt)
virtual Long64_tTTree::Draw(const char* varexp, const TCut& selection, Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
virtual Long64_tTTree::Draw(const char* varexp, const char* selection, Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)MENU
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTTree::DropBaskets()
virtual voidTTree::DropBranchFromCache(const char* bname, Bool_t subbranches = kFALSE)
virtual voidTTree::DropBranchFromCache(TBranch* branch, Bool_t subbranches = kFALSE)
virtual voidTTree::DropBuffers(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(const Float_t* x)
Int_tFill(Int_t x0)
Int_tFill(Double_t x0)
virtual Int_tFill(Float_t x0, Float_t x1 = 0, Float_t x2 = 0, Float_t x3 = 0, Float_t x4 = 0, Float_t x5 = 0, Float_t x6 = 0, Float_t x7 = 0, Float_t x8 = 0, Float_t x9 = 0, Float_t x10 = 0, Float_t x11 = 0, Float_t x12 = 0, Float_t x13 = 0, Float_t x14 = 0)
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TBranch*TTree::FindBranch(const char* name)
virtual TLeaf*TTree::FindLeaf(const char* name)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Int_tTTree::Fit(const char* funcname, const char* varexp, const char* selection = "", Option_t* option = "", Option_t* goption = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)MENU
virtual Int_tTTree::FlushBaskets() const
virtual const char*TTree::GetAlias(const char* aliasName) const
Float_t*GetArgs() const
virtual Long64_tTTree::GetAutoFlush() const
virtual Long64_tTTree::GetAutoSave() const
virtual TBranch*TTree::GetBranch(const char* name)
virtual TBranchRef*TTree::GetBranchRef() const
virtual Bool_tTTree::GetBranchStatus(const char* branchname) const
static Int_tTTree::GetBranchStyle()
virtual Long64_tTTree::GetCacheSize() const
virtual Long64_tTTree::GetChainEntryNumber(Long64_t entry) const
virtual Long64_tTTree::GetChainOffset() const
virtual TTree::TClusterIteratorTTree::GetClusterIterator(Long64_t firstentry)
TFile*TTree::GetCurrentFile() const
Long64_tTTree::GetDebugMax() const
Long64_tTTree::GetDebugMin() const
Int_tTTree::GetDefaultEntryOffsetLen() const
TDirectory*TTree::GetDirectory() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual Long64_tTTree::GetEntries() const
virtual Long64_tTTree::GetEntries(const char* selection)
virtual Long64_tTTree::GetEntriesFast() const
virtual Long64_tTTree::GetEntriesFriend() const
virtual Int_tTTree::GetEntry(Long64_t entry = 0, Int_t getall = 0)
virtual TEntryList*TTree::GetEntryList()
virtual Long64_tTTree::GetEntryNumber(Long64_t entry) const
virtual Long64_tTTree::GetEntryNumberWithBestIndex(Long64_t major, Long64_t minor = 0) const
virtual Long64_tTTree::GetEntryNumberWithIndex(Long64_t major, Long64_t minor = 0) const
virtual Int_tTTree::GetEntryWithIndex(Int_t major, Int_t minor = 0)
virtual Long64_tTTree::GetEstimate() const
Int_tTTree::GetEvent(Long64_t entry = 0, Int_t getall = 0)
TEventList*TTree::GetEventList() const
virtual Int_tTTree::GetFileNumber() const
virtual Color_tTAttFill::GetFillColor() const
virtual Style_tTAttFill::GetFillStyle() const
virtual TTree*TTree::GetFriend(const char*) const
virtual const char*TTree::GetFriendAlias(TTree*) const
TH1*TTree::GetHistogram()
virtual const char*TObject::GetIconName() const
virtual Int_t*TTree::GetIndex()
virtual Double_t*TTree::GetIndexValues()
virtual TIterator*TTree::GetIteratorOnAllLeaves(Bool_t dir = kIterForward)
virtual TLeaf*TTree::GetLeaf(const char* name)
virtual TLeaf*TTree::GetLeaf(const char* branchname, const char* leafname)
virtual Color_tTAttLine::GetLineColor() const
virtual Style_tTAttLine::GetLineStyle() const
virtual Width_tTAttLine::GetLineWidth() const
virtual TList*TTree::GetListOfAliases() const
virtual TObjArray*TTree::GetListOfBranches()
virtual TList*TTree::GetListOfClones()
virtual TList*TTree::GetListOfFriends() const
virtual TObjArray*TTree::GetListOfLeaves()
Int_tTTree::GetMakeClass() const
virtual Color_tTAttMarker::GetMarkerColor() const
virtual Size_tTAttMarker::GetMarkerSize() const
virtual Style_tTAttMarker::GetMarkerStyle() const
virtual Long64_tTTree::GetMaxEntryLoop() const
virtual Double_tTTree::GetMaximum(const char* columname)
static Long64_tTTree::GetMaxTreeSize()
virtual Long64_tTTree::GetMaxVirtualSize() const
virtual Double_tTTree::GetMinimum(const char* columname)
virtual const char*TNamed::GetName() const
virtual Int_tTTree::GetNbranches()
TObject*TTree::GetNotify() const
virtual Int_tGetNvar() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual Int_tTTree::GetPacketSize() const
virtual TVirtualPerfStats*TTree::GetPerfStats() const
TVirtualTreePlayer*TTree::GetPlayer()
virtual Long64_tTTree::GetReadEntry() const
virtual Long64_tTTree::GetReadEvent() const
virtual Int_tTTree::GetScanField() const
TTreeFormula*TTree::GetSelect()
virtual Long64_tTTree::GetSelectedRows()
virtual Int_tTTree::GetTimerInterval() const
virtual const char*TNamed::GetTitle() const
virtual Long64_tTTree::GetTotBytes() const
TBuffer*TTree::GetTransientBuffer(Int_t size)
virtual TTree*TTree::GetTree() const
virtual TVirtualIndex*TTree::GetTreeIndex() const
virtual Int_tTTree::GetTreeNumber() const
virtual UInt_tTObject::GetUniqueID() const
virtual Int_tTTree::GetUpdate() const
virtual TList*TTree::GetUserInfo()
virtual Double_t*TTree::GetV1()
virtual Double_t*TTree::GetV2()
virtual Double_t*TTree::GetV3()
virtual Double_t*TTree::GetV4()
virtual Double_t*TTree::GetVal(Int_t i)
TTreeFormula*TTree::GetVar(Int_t i)
TTreeFormula*TTree::GetVar1()
TTreeFormula*TTree::GetVar2()
TTreeFormula*TTree::GetVar3()
TTreeFormula*TTree::GetVar4()
virtual Double_t*TTree::GetW()
virtual Double_tTTree::GetWeight() const
virtual Long64_tTTree::GetZipBytes() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual voidTTree::IncrementTotalBuffers(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_tTTree::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
virtual Bool_tTAttFill::IsTransparent() const
Bool_tTObject::IsZombie() const
virtual Int_tTTree::LoadBaskets(Long64_t maxmemory = 2000000000)
virtual Long64_tTTree::LoadTree(Long64_t entry)
virtual Long64_tTTree::LoadTreeFriend(Long64_t entry, TTree* T)
virtual voidTNamed::ls(Option_t* option = "") const
virtual Int_tTTree::MakeClass(const char* classname = 0, Option_t* option = "")
virtual Int_tTTree::MakeCode(const char* filename = 0)
virtual Int_tTTree::MakeProxy(const char* classname, const char* macrofilename = 0, const char* cutfilename = 0, const char* option = 0, Int_t maxUnrolling = 3)
virtual Int_tTTree::MakeSelector(const char* selector = 0)
voidTObject::MayNotUse(const char* method) const
Bool_tTTree::MemoryFull(Int_t nbytes)
virtual Long64_tTTree::Merge(TCollection* list, Option_t* option = "")
virtual Long64_tTTree::Merge(TCollection* list, TFileMergeInfo* info)
static TTree*TTree::MergeTrees(TList* list, Option_t* option = "")
virtual voidTAttLine::Modify()
virtual Bool_tTTree::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static 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 voidTTree::OptimizeBaskets(ULong64_t maxMemory = 10000000, Float_t minComp = 1.1, Option_t* option = "")
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
TPrincipal*TTree::Principal(const char* varexp = "", const char* selection = "", Option_t* option = "np", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
virtual voidTTree::Print(Option_t* option = "") constMENU
virtual voidTTree::PrintCacheStats(Option_t* option = "") const
virtual Long64_tTTree::Process(void* selector, Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
virtual Long64_tTTree::Process(const char* filename, Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)MENU
virtual Long64_tTTree::Project(const char* hname, const char* varexp, const char* selection = "", Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
virtual TSQLResult*TTree::Query(const char* varexp = "", const char* selection = "", Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
virtual Int_tTObject::Read(const char* name)
virtual Long64_tTTree::ReadFile(const char* filename, const char* branchDescriptor = "", char delimiter = ' ')
virtual Long64_tReadStream(istream& inputStream, const char* branchDescriptor = "", char delimiter = ' ')
virtual voidTTree::RecursiveRemove(TObject* obj)
virtual voidTTree::Refresh()
virtual voidTTree::RemoveFriend(TTree*)
virtual voidTTree::Reset(Option_t* option = "")
virtual voidTTree::ResetAfterMerge(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_tTTree::Scan(const char* varexp = "", const char* selection = "", Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)MENU
virtual Bool_tTTree::SetAlias(const char* aliasName, const char* aliasFormula)
virtual voidTTree::SetAutoFlush(Long64_t autof = -30000000)
virtual voidTTree::SetAutoSave(Long64_t autos = 300000000)
virtual voidTTree::SetBasketSize(const char* bname, Int_t buffsize = 16000)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
Int_tTTree::SetBranchAddress(const char* bname, void** add, TBranch** ptr = 0)
virtual Int_tTTree::SetBranchAddress(const char* bname, void* add, TClass* realClass, EDataType datatype, Bool_t isptr)
virtual Int_tTTree::SetBranchAddress(const char* bname, void* add, TBranch** ptr, TClass* realClass, EDataType datatype, Bool_t isptr)
virtual voidTTree::SetBranchStatus(const char* bname, Bool_t status = 1, UInt_t* found = 0)
static voidTTree::SetBranchStyle(Int_t style = 1)
virtual voidTTree::SetCacheEntryRange(Long64_t first, Long64_t last)
virtual voidTTree::SetCacheLearnEntries(Int_t n = 10)
virtual voidTTree::SetCacheSize(Long64_t cachesize = -1)
virtual voidTTree::SetChainOffset(Long64_t offset = 0)
virtual voidTTree::SetCircular(Long64_t maxEntries)
virtual voidTTree::SetDebug(Int_t level = 1, Long64_t min = 0, Long64_t max = 9999999)MENU
virtual voidTTree::SetDefaultEntryOffsetLen(Int_t newdefault, Bool_t updateExisting = kFALSE)
virtual voidTTree::SetDirectory(TDirectory* dir)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual Long64_tTTree::SetEntries(Long64_t n = -1)
virtual voidTTree::SetEntryList(TEntryList* list, Option_t* opt = "")
virtual voidTTree::SetEstimate(Long64_t nentries = 1000000)
virtual voidTTree::SetEventList(TEventList* list)
virtual voidTTree::SetFileNumber(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 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 voidTTree::SetMakeClass(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 voidTTree::SetMaxEntryLoop(Long64_t maxev = 1000000000)MENU
static voidTTree::SetMaxTreeSize(Long64_t maxsize = 1900000000)
virtual voidTTree::SetMaxVirtualSize(Long64_t size = 0)MENU
virtual voidTTree::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
virtual voidTTree::SetNotify(TObject* obj)
virtual voidTTree::SetObject(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTTree::SetParallelUnzip(Bool_t opt = kTRUE, Float_t RelSize = -1)
virtual voidTTree::SetPerfStats(TVirtualPerfStats* perf)
virtual voidTTree::SetScanField(Int_t n = 50)MENU
virtual voidTTree::SetTimerInterval(Int_t msec = 333)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTTree::SetTreeIndex(TVirtualIndex* index)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidTTree::SetUpdate(Int_t freq = 0)
virtual voidTTree::SetWeight(Double_t w = 1, Option_t* option = "")
virtual voidTTree::Show(Long64_t entry = -1, Int_t lenmax = 20)
virtual voidShowMembers(TMemberInspector&)
virtual Int_tTNamed::Sizeof() const
virtual voidTTree::StartViewer()MENU
virtual voidTTree::StopCacheLearningPhase()
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
virtual Int_tTTree::UnbinnedFit(const char* funcname, const char* varexp, const char* selection = "", Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
virtual voidTTree::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTTree::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTTree::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
voidTTree::AddClone(TTree*)
virtual TBranch*TTree::BranchImp(const char* branchname, TClass* ptrClass, void* addobj, Int_t bufsize, Int_t splitlevel)
virtual TBranch*TTree::BranchImp(const char* branchname, const char* classname, TClass* ptrClass, void* addobj, Int_t bufsize, Int_t splitlevel)
virtual TBranch*TTree::BranchImpRef(const char* branchname, const char* classname, TClass* ptrClass, void* addobj, Int_t bufsize, Int_t splitlevel)
virtual TBranch*TTree::BranchImpRef(const char* branchname, TClass* ptrClass, EDataType datatype, void* addobj, Int_t bufsize, Int_t splitlevel)
virtual TBranch*TTree::BronchExec(const char* name, const char* classname, void* addobj, Bool_t isptrptr, Int_t bufsize, Int_t splitlevel)
virtual Int_tTTree::CheckBranchAddressType(TBranch* branch, TClass* ptrClass, EDataType datatype, Bool_t ptr)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
virtual Int_tFill()
Long64_tTTree::GetCacheAutoSize(Bool_t withDefault = kFALSE) const
virtual TLeaf*TTree::GetLeafImpl(const char* branchname, const char* leafname)
charTTree::GetNewlineValue(istream& inputStream)
TTreeCache*TTree::GetReadCache(TFile* file, Bool_t create = kFALSE)
voidTTree::ImportClusterRanges(TTree* fromtree)
virtual voidTTree::KeepCircular()
voidTObject::MakeZombie()
voidTTree::MoveReadCache(TFile* src, TDirectory* dir)
Int_tTTree::SetBranchAddressImp(TBranch* branch, void* addr, TBranch** ptr)
voidTTree::SetCacheSizeAux(Bool_t autocache = kTRUE, Long64_t cacheSize = 0)
private:
TNtuple(const TNtuple&)
TNtuple&operator=(const TNtuple&)

Data Members

protected:
TList*TTree::fAliasesList of aliases for expressions based on the tree branches.
Float_t*fArgs! [fNvar] Array of variables
Long64_tTTree::fAutoFlushAutoflush tree when fAutoFlush entries written
Long64_tTTree::fAutoSaveAutosave tree when fAutoSave bytes produced
TBranchRef*TTree::fBranchRefBranch supporting the TRefTable (if any)
TObjArrayTTree::fBranchesList of Branches
Bool_tTTree::fCacheDoAutoInit! true if cache auto creation or resize check is needed
Long64_tTTree::fCacheSize! Maximum size of file buffers
Bool_tTTree::fCacheUserSet! true if the cache setting was explicitly given by user
Long64_tTTree::fChainOffset! Offset of 1st entry of this Tree in a TChain
TList*TTree::fClones! List of cloned trees which share our addresses
Long64_t*TTree::fClusterRangeEnd[fNClusterRange] Last entry of a cluster range.
Long64_t*TTree::fClusterSize[fNClusterRange] Number of entries in each cluster for a given range.
Int_tTTree::fDebug! Debug level
Long64_tTTree::fDebugMax! Last entry number to debug
Long64_tTTree::fDebugMin! First entry number to debug
Int_tTTree::fDefaultEntryOffsetLenInitial Length of fEntryOffset table in the basket buffers
TDirectory*TTree::fDirectory! Pointer to directory holding this tree
Long64_tTTree::fEntriesNumber of entries
TEntryList*TTree::fEntryList! Pointer to event selection list (if one)
Long64_tTTree::fEstimateNumber of entries to estimate histogram limits
TEventList*TTree::fEventList! Pointer to event selection list (if one)
Int_tTTree::fFileNumber! current file number (if file extensions)
Color_tTAttFill::fFillColorfill area color
Style_tTAttFill::fFillStylefill area style
Long64_tTTree::fFlushedBytesNumber of autoflushed bytes
UInt_tTTree::fFriendLockStatus! Record which method is locking the friend recursion
TList*TTree::fFriendspointer to list of friend elements
TArrayITTree::fIndexIndex of sorted values
TArrayDTTree::fIndexValuesSorted index values
TObjArrayTTree::fLeavesDirect pointers to individual branch leaves
Color_tTAttLine::fLineColorline color
Style_tTAttLine::fLineStyleline style
Width_tTAttLine::fLineWidthline width
Int_tTTree::fMakeClass! not zero when processing code generated by MakeClass
Color_tTAttMarker::fMarkerColorMarker color index
Size_tTAttMarker::fMarkerSizeMarker size
Style_tTAttMarker::fMarkerStyleMarker style
Int_tTTree::fMaxClusterRange! Memory allocated for the cluster range.
Long64_tTTree::fMaxEntriesMaximum number of entries in case of circular buffers
Long64_tTTree::fMaxEntryLoopMaximum number of entries to process
Long64_tTTree::fMaxVirtualSizeMaximum total size of buffers kept in memory
Int_tTTree::fNClusterRangeNumber of Cluster range in addition to the one defined by 'AutoFlush'
TStringTNamed::fNameobject identifier
Int_tTTree::fNfill! Local for EntryLoop
TObject*TTree::fNotify! Object to be notified when loading a Tree
Int_tfNvarNumber of columns
Int_tTTree::fPacketSize! Number of entries in one packet for parallel root
TVirtualPerfStats*TTree::fPerfStats! pointer to the current perf stats object
TVirtualTreePlayer*TTree::fPlayer! Pointer to current Tree player
Long64_tTTree::fReadEntry! Number of the entry being processed
Long64_tTTree::fSavedBytesNumber of autosaved bytes
Int_tTTree::fScanFieldNumber of runs before prompting in Scan
Int_tTTree::fTimerIntervalTimer interval in milliseconds
TStringTNamed::fTitleobject title
Long64_tTTree::fTotBytesTotal number of bytes in all branches before compression
Long64_tTTree::fTotalBuffers! Total number of bytes in branch buffers
TBuffer*TTree::fTransientBuffer! Pointer to the current transient buffer.
TVirtualIndex*TTree::fTreeIndexPointer to the tree Index (if any)
Int_tTTree::fUpdateUpdate frequency for EntryLoop
TList*TTree::fUserInfopointer to a list of user objects associated to this Tree
Double_tTTree::fWeightTree weight (see TTree::SetWeight)
Long64_tTTree::fZipBytesTotal number of bytes in all branches after compression
static Int_tTTree::fgBranchStyleOld/New branch style
static Long64_tTTree::fgMaxTreeSizeMaximum size of a file containg a Tree

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TNtuple()
Default constructor for Ntuple*-*-*-*-*-*-*-*-
*-*        ==============================
TNtuple(const char* name, const char* title, const char* varlist, Int_t bufsize = 32000)
Create an Ntuple*-*-
*-*                      ================
       The parameter varlist describes the list of the ntuple variables
       separated by a colon:
         example:  "x:y:z:energy"
       For each variable in the list a separate branch is created.

      NOTE:
       -Use TTree to create branches with variables of different data types.
       -Use TTree when the number of branches is large (> 100).
-
~TNtuple()
Default destructor for an Ntuple*-*-*-*-*-*-
*-*        ================================
TTree* CloneTree(Long64_t nentries = -1, Option_t* option = "")
 Create a clone of this tree and copy nentries.

 By default copy all entries.
 Note that only active branches are copied.
 The compression level of the cloned tree is set to the destination file's
 compression level.

 See TTree::CloneTree for more details.
void ResetBranchAddress(TBranch* )
 Reset the branch addresses to the internal fArgs array. Use this
 method when the addresses were changed via calls to SetBranchAddress().
void ResetBranchAddresses()
 Reset the branch addresses to the internal fArgs array. Use this
 method when the addresses were changed via calls to SetBranchAddress().
void Browse(TBrowser* b)
 Browse content of the ntuple
Int_t Fill()
-*-*Fill a Ntuple with current values in fArgs
*-*              ==========================================
 Note that this function is protected.
 Currently called only by TChain::Merge
Int_t Fill(const Float_t* x)
 Fill a Ntuple with an array of floats
Int_t Fill(Float_t x0, Float_t x1 = 0, Float_t x2 = 0, Float_t x3 = 0, Float_t x4 = 0, Float_t x5 = 0, Float_t x6 = 0, Float_t x7 = 0, Float_t x8 = 0, Float_t x9 = 0, Float_t x10 = 0, Float_t x11 = 0, Float_t x12 = 0, Float_t x13 = 0, Float_t x14 = 0)
 Fill a Ntuple: Each Ntuple item is an argument
Long64_t ReadStream(istream& inputStream, const char* branchDescriptor = "", char delimiter = ' ')
 Read from filename as many columns as variables in the ntuple
 the function returns the number of rows found in the file
 The second argument "branchDescriptor" is currently not used.
 Lines in the input file starting with "#" are ignored.

   Long64_t nlines = 0;
   char newline = GetNewlineValue(inputStream);
   while (1) {
      if ( inputStream.peek() != '#' ) {
         for (Int_t i=0;i<fNvar;i++) {
            inputStream >> fArgs[i];
            if (inputStream.peek() == delimiter) {
               inputStream.get(); // skip delimiter.
            }
         }
         if (!inputStream.good()) break;
         TTree::Fill();
         ++nlines;
      }
      inputStream.ignore(8192,newline);
   }
   return nlines;

void Streamer(TBuffer& )
Stream a class object*-*-*-*-*-*-*-
*-*              =========================================
Int_t Fill()
TNtuple(const TNtuple& )
TNtuple& operator=(const TNtuple& )
Int_t Fill(const Float_t* x)
Int_t GetNvar() const
{ return fNvar; }
Float_t * GetArgs() const
{ return fArgs; }