ROOT logo
ROOT » TREE » TREEPLAYER » TChainIndex

class TChainIndex: public TVirtualIndex


 A Chain Index


Function Members (Methods)

public:
TChainIndex()
TChainIndex(const TChainIndex&)
TChainIndex(const TTree* T, const char* majorname, const char* minorname)
virtual~TChainIndex()
voidTObject::AbstractMethod(const char* method) const
virtual voidAppend(const TVirtualIndex*, Bool_t delaySort = kFALSE)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
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 voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual Long64_tGetEntryNumberFriend(const TTree* parent)
virtual Long64_tGetEntryNumberWithBestIndex(Int_t major, Int_t minor) const
virtual Long64_tGetEntryNumberWithIndex(Int_t major, Int_t minor) const
virtual const char*TObject::GetIconName() const
virtual TTreeFormula*GetMajorFormulaParent(const TTree* parent)
virtual const char*GetMajorName() const
virtual TTreeFormula*GetMinorFormulaParent(const TTree* parent)
virtual const char*GetMinorName() const
virtual Long64_tGetN() const
virtual const char*TNamed::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const char*TNamed::GetTitle() const
virtual TTree*TVirtualIndex::GetTree() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
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_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::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)
TChainIndex&operator=(const TChainIndex&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTNamed::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidSetTree(const TTree* T)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp)
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& 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 voidUpdateFormulaLeaves(const TTree* parent)
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
voidDeleteIndices()
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
pair<TVirtualIndex*,Int_t>GetSubTreeIndex(Int_t major, Int_t minor) const
voidTObject::MakeZombie()
voidReleaseSubTreeIndex(TVirtualIndex* index, Int_t treeNo) const

Data Members

protected:
vector<TChainIndexEntry>fEntriesdescriptions of indices of trees in the chain.
TTreeFormula*fMajorFormulaParent! Pointer to major TreeFormula in Parent tree (if any)
TStringfMajorNameIndex major name
TTreeFormula*fMinorFormulaParent! Pointer to minor TreeFormula in Parent tree (if any)
TStringfMinorNameIndex minor name
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title
TTree*TVirtualIndex::fTree! pointer to Tree

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TChainIndex()
 Default constructor for TChainIndex
TChainIndex(const TTree* T, const char* majorname, const char* minorname)
 Normal constructor for TChainIndex. See TTreeIndex::TTreeIndex for the description of the
 parameters.
 The tree must be a TChain.
 All the index values in the first tree of the chain must be
 less then any index value in the second one, and so on.
 If any of those requirements isn't met the object becomes a zombie.
 If some subtrees don't have indices the indices are created and stored inside this
 TChainIndex.
void Append(const TVirtualIndex* , Bool_t delaySort = kFALSE)
 add an index to this chain
 if delaySort is kFALSE (default) check if the indices of different trees are in order.
void DeleteIndices()
 Delete all the indices which were built by this object
~TChainIndex()
 The destructor.
std::pair<TVirtualIndex*, Int_t> GetSubTreeIndex(Int_t major, Int_t minor) const
 Returns a TVirtualIndex for a tree which holds the entry with the specified
 major and minor values and the number of that tree.
 If the index for that tree was created by this object it's set to the tree.
 The tree index should be later released using ReleaseSubTreeIndex();
void ReleaseSubTreeIndex(TVirtualIndex* index, Int_t treeNo) const
 Releases the tree index got using GetSubTreeIndex. If the index was
 created by this object it is removed from the current tree, so that it isn't
 deleted in its destructor.
Long64_t GetEntryNumberFriend(const TTree* parent)
 see TTreeIndex::GetEntryNumberFriend for description
Long64_t GetEntryNumberWithBestIndex(Int_t major, Int_t minor) const
Long64_t GetEntryNumberWithIndex(Int_t major, Int_t minor) const
 Returns the entry number with given index values.
 See TTreeIndex::GetEntryNumberWithIndex for details.
TTreeFormula * GetMajorFormulaParent(const TTree* parent)
 return a pointer to the TreeFormula corresponding to the majorname in parent tree T
TTreeFormula * GetMinorFormulaParent(const TTree* parent)
 return a pointer to the TreeFormula corresponding to the minorname in parent tree T
void UpdateFormulaLeaves(const TTree* parent)
 Updates the parent formulae.
 Called by TChain::LoadTree when the parent chain changes it's tree.
void SetTree(const TTree* T)
TChainIndex()
const char * GetMajorName() const
{return fMajorName.Data();}
const char * GetMinorName() const
{return fMinorName.Data();}
Long64_t GetN() const
{return fEntries.size();}