12#ifndef ROOT_TChainIndex
13#define ROOT_TChainIndex
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
Holds a description of indices of trees in the chain.
std::pair< Long64_t, Long64_t > IndexValPair_t
IndexValPair_t GetMaxIndexValPair() const
void Swap(TChainIndexEntry &other)
TVirtualIndex * fTreeIndex
TChainIndexEntry & operator=(TChainIndexEntry other)
Long64_t fMinIndexValMinor
Long64_t fMaxIndexValMinor
void SetMinMaxFrom(const TTreeIndex *index)
IndexValPair_t GetMinIndexValPair() const
std::vector< TChainIndexEntry > fEntries
Pointer to minor TreeFormula in Parent tree (if any)
const char * GetMinorName() const override
TTreeFormula * fMinorFormulaParent
Pointer to major TreeFormula in Parent tree (if any)
~TChainIndex() override
The destructor.
bool IsValidFor(const TTree *parent) override
Return true if index can be applied to the TTree.
TObject * Clone(const char *newname="") const override
Create a deep copy of the TChainIndex.
void Append(const TVirtualIndex *, bool delaySort=false) override
Add an index to this chain.
const char * GetMajorName() const override
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...
Long64_t GetEntryNumberWithIndex(Long64_t major, Long64_t minor) const override
Returns the entry number with given index values.
void ReleaseSubTreeIndex(TVirtualIndex *index, Int_t treeNo) const
Releases the tree index got using GetSubTreeIndex.
Long64_t GetN() const override
Long64_t GetEntryNumberWithBestIndex(Long64_t major, Long64_t minor) const override
See TTreeIndex::GetEntryNumberWithBestIndex for details.
void UpdateFormulaLeaves(const TTree *parent) override
Updates the parent formulae.
TChainIndex()
Default constructor for TChainIndex.
void DeleteIndices()
Delete all the indices which were built by this object.
TTreeFormula * fMajorFormulaParent
Long64_t GetEntryNumberFriend(const TTree *parent) override
See TTreeIndex::GetEntryNumberFriend for description.
TTreeFormula * GetMajorFormulaParent(const TTree *parent)
Return a pointer to the TreeFormula corresponding to the majorname in parent tree T.
void SetTree(TTree *T) override
See TTreeIndex::SetTree.
TTreeFormula * GetMinorFormulaParent(const TTree *parent)
Return a pointer to the TreeFormula corresponding to the minorname in parent tree T.
A chain is a collection of files containing TTree objects.
Mother of all ROOT objects.
const char * Data() const
A Tree Index with majorname and minorname.
A TTree represents a columnar dataset.
Abstract interface for Tree Index.