12 #ifndef ROOT_TChainIndex 13 #define ROOT_TChainIndex TVirtualIndex * fTreeIndex
Abstract interface for Tree Index.
virtual Long64_t GetEntryNumberFriend(const TTree *parent)
See TTreeIndex::GetEntryNumberFriend for description.
IndexValPair_t GetMaxIndexValPair() const
std::pair< Long64_t, Long64_t > IndexValPair_t
virtual ~TChainIndex()
The destructor.
virtual void SetTree(const TTree *T)
See TTreeIndex::SetTree.
IndexValPair_t GetMinIndexValPair() const
void SetMinMaxFrom(const TTreeIndex *index)
A Tree Index with majorname and minorname.
virtual Long64_t GetEntryNumberWithBestIndex(Long64_t major, Long64_t minor) const
See TTreeIndex::GetEntryNumberWithBestIndex for details.
#define ClassDef(name, id)
const char * GetMajorName() const
Long64_t fMinIndexValMinor
const char * GetMinorName() const
Long64_t fMaxIndexValMinor
virtual TTreeFormula * GetMinorFormulaParent(const TTree *parent)
Return a pointer to the TreeFormula corresponding to the minorname in parent tree T...
virtual void Append(const TVirtualIndex *, Bool_t delaySort=kFALSE)
Add an index to this chain.
std::vector< TChainIndexEntry > fEntries
Pointer to minor TreeFormula in Parent tree (if any)
TTreeFormula * fMajorFormulaParent
void ReleaseSubTreeIndex(TVirtualIndex *index, Int_t treeNo) const
Releases the tree index got using GetSubTreeIndex.
virtual TTreeFormula * GetMajorFormulaParent(const TTree *parent)
Return a pointer to the TreeFormula corresponding to the majorname in parent tree T...
TChainIndex()
Default constructor for TChainIndex.
void DeleteIndices()
Delete all the indices which were built by this object.
A chain is a collection of files containing TTree objects.
std::pair< TVirtualIndex *, Int_t > GetSubTreeIndex(Long64_t major, Long64_t minor) const
Returns a TVirtualIndex for a tree which holds the entry with the specified major and minor values an...
virtual void UpdateFormulaLeaves(const TTree *parent)
Updates the parent formulae.
TTreeFormula * fMinorFormulaParent
Pointer to major TreeFormula in Parent tree (if any)
A TTree object has a header with a name and a title.
virtual Long64_t GetN() const
virtual Long64_t GetEntryNumberWithIndex(Long64_t major, Long64_t minor) const
Returns the entry number with given index values.
Holds a description of indices of trees in the chain.
const char * Data() const