#ifndef ROOT_TChainIndex
#define ROOT_TChainIndex
#ifndef ROOT_TVirtualIndex
#include "TVirtualIndex.h"
#endif
#ifndef ROOT_TTreeIndex
#include "TTreeIndex.h"
#endif
#ifndef ROOT_TTreeFormula
#include "TTreeFormula.h"
#endif
#include <vector>
class TChain;
class TChainIndex : public TVirtualIndex {
public:
class TChainIndexEntry {
public:
Long64_t fMinIndexValue;
Long64_t fMaxIndexValue;
TVirtualIndex* fTreeIndex;
};
protected:
TString fMajorName;
TString fMinorName;
TTreeFormula *fMajorFormulaParent;
TTreeFormula *fMinorFormulaParent;
std::vector<TChainIndexEntry> fEntries;
std::pair<TVirtualIndex*, Int_t> GetSubTreeIndex(Int_t major, Int_t minor) const;
void ReleaseSubTreeIndex(TVirtualIndex* index, Int_t treeNo) const;
void DeleteIndices();
public:
TChainIndex();
TChainIndex(const TTree *T, const char *majorname, const char *minorname);
virtual ~TChainIndex();
virtual Int_t GetEntryNumberFriend(const TTree *T);
virtual Long64_t GetEntryNumberWithIndex(Int_t major, Int_t minor) const;
virtual Long64_t GetEntryNumberWithBestIndex(Int_t major, Int_t minor) const;
const char *GetMajorName() const {return fMajorName.Data();}
const char *GetMinorName() const {return fMinorName.Data();}
virtual Long64_t GetN() const {return fEntries.size();}
virtual TTreeFormula *GetMajorFormulaParent(const TTree *T);
virtual TTreeFormula *GetMinorFormulaParent(const TTree *T);
virtual void UpdateFormulaLeaves();
virtual void SetTree(const TTree *T);
ClassDef(TChainIndex,1)
};
#endif
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.