TChainIndex Class Reference

#include <TChainIndex.h>

Inheritance diagram for TChainIndex:

TVirtualIndex TVirtualIndex TNamed TNamed TNamed TNamed TObject TObject TObject TObject TObject TObject TObject TObject List of all members.

Public Member Functions

 TChainIndex ()
 TChainIndex (const TTree *T, const char *majorname, const char *minorname)
virtual ~TChainIndex ()
virtual void Append (const TVirtualIndex *, Bool_t delaySort=kFALSE)
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
const char * GetMinorName () const
virtual Long64_t GetN () const
virtual TTreeFormulaGetMajorFormulaParent (const TTree *T)
virtual TTreeFormulaGetMinorFormulaParent (const TTree *T)
virtual void UpdateFormulaLeaves (const TTree *parent)
virtual void SetTree (const TTree *T)
 TChainIndex ()
 TChainIndex (const TTree *T, const char *majorname, const char *minorname)
virtual ~TChainIndex ()
virtual void Append (const TVirtualIndex *, Bool_t delaySort=kFALSE)
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
const char * GetMinorName () const
virtual Long64_t GetN () const
virtual TTreeFormulaGetMajorFormulaParent (const TTree *T)
virtual TTreeFormulaGetMinorFormulaParent (const TTree *T)
virtual void UpdateFormulaLeaves (const TTree *parent)
virtual void SetTree (const TTree *T)

Protected Member Functions

std::pair< TVirtualIndex *,
Int_t
GetSubTreeIndex (Int_t major, Int_t minor) const
void ReleaseSubTreeIndex (TVirtualIndex *index, Int_t treeNo) const
void DeleteIndices ()
std::pair< TVirtualIndex *,
Int_t
GetSubTreeIndex (Int_t major, Int_t minor) const
void ReleaseSubTreeIndex (TVirtualIndex *index, Int_t treeNo) const
void DeleteIndices ()

Protected Attributes

TString fMajorName
TString fMinorName
TTreeFormulafMajorFormulaParent
TTreeFormulafMinorFormulaParent
 Pointer to major TreeFormula in Parent tree (if any).
std::vector< TChainIndexEntryfEntries
 Pointer to minor TreeFormula in Parent tree (if any).
TTreeFormulafMajorFormulaParent
TTreeFormulafMinorFormulaParent
 Pointer to major TreeFormula in Parent tree (if any).
std::vector< TChainIndexEntryfEntries
 Pointer to minor TreeFormula in Parent tree (if any).

Classes

class  TChainIndexEntry

Detailed Description

Definition at line 40 of file TChainIndex.h.


Constructor & Destructor Documentation

TChainIndex::TChainIndex (  ) 

TChainIndex::TChainIndex ( const TTree T,
const char *  majorname,
const char *  minorname 
)

Definition at line 37 of file TChainIndex.cxx.

References TTree::BuildIndex(), chain, DeleteIndices(), entry, TObject::Error(), fEntries, fMajorFormulaParent, fMajorName, fMinorFormulaParent, fMinorName, TVirtualIndex::fTree, TTree::GetCurrentFile(), TTreeIndex::GetIndexValues(), TNamed::GetName(), TChain::GetNtrees(), TChain::GetTree(), TTree::GetTreeIndex(), TChain::GetTreeOffset(), i, TChain::LoadTree(), TObject::MakeZombie(), TTree::SetTreeIndex(), and T.

TChainIndex::~TChainIndex (  )  [virtual]

Definition at line 165 of file TChainIndex.cxx.

References DeleteIndices(), TVirtualIndex::fTree, TTree::GetTreeIndex(), and TTree::SetTreeIndex().

TChainIndex::TChainIndex (  ) 

TChainIndex::TChainIndex ( const TTree T,
const char *  majorname,
const char *  minorname 
)

virtual TChainIndex::~TChainIndex (  )  [virtual]


Member Function Documentation

std::pair< TVirtualIndex *, Int_t > TChainIndex::GetSubTreeIndex ( Int_t  major,
Int_t  minor 
) const [protected]

Definition at line 174 of file TChainIndex.cxx.

References chain, fEntries, TVirtualIndex::fTree, TTree::GetTree(), TTree::GetTreeIndex(), TChain::GetTreeOffset(), i, TChain::LoadTree(), Long64_t, R__ASSERT, TTree::SetTreeIndex(), and TObject::Warning().

Referenced by GetEntryNumberWithBestIndex(), and GetEntryNumberWithIndex().

void TChainIndex::ReleaseSubTreeIndex ( TVirtualIndex index,
Int_t  treeNo 
) const [protected]

Definition at line 222 of file TChainIndex.cxx.

References fEntries, TVirtualIndex::fTree, TTree::GetTree(), TTree::GetTreeIndex(), R__ASSERT, and TTree::SetTreeIndex().

Referenced by GetEntryNumberWithBestIndex(), and GetEntryNumberWithIndex().

void TChainIndex::DeleteIndices (  )  [protected]

Definition at line 150 of file TChainIndex.cxx.

References fEntries, TVirtualIndex::fTree, TTree::GetTree(), TTree::GetTreeIndex(), i, SafeDelete, and TTree::SetTreeIndex().

Referenced by Append(), TChainIndex(), and ~TChainIndex().

void TChainIndex::Append ( const TVirtualIndex ,
Bool_t  delaySort = kFALSE 
) [virtual]

Implements TVirtualIndex.

Definition at line 119 of file TChainIndex.cxx.

References DeleteIndices(), entry, TObject::Error(), fEntries, TTreeIndex::GetIndexValues(), i, and TObject::MakeZombie().

Int_t TChainIndex::GetEntryNumberFriend ( const TTree T  )  [virtual]

Implements TVirtualIndex.

Definition at line 235 of file TChainIndex.cxx.

References TTreeFormula::EvalInstance(), fMajorFormulaParent, fMinorFormulaParent, TVirtualIndex::fTree, TTree::GetEntries(), TTree::GetEntryNumberWithIndex(), GetMajorFormulaParent(), GetMinorFormulaParent(), TFormula::GetNdim(), TTree::GetReadEntry(), Long64_t, and T.

Long64_t TChainIndex::GetEntryNumberWithIndex ( Int_t  major,
Int_t  minor 
) const [virtual]

Implements TVirtualIndex.

Definition at line 286 of file TChainIndex.cxx.

References chain, TObject::Error(), TVirtualIndex::fTree, GetSubTreeIndex(), TChain::GetTreeOffset(), Long64_t, R__ASSERT, and ReleaseSubTreeIndex().

Long64_t TChainIndex::GetEntryNumberWithBestIndex ( Int_t  major,
Int_t  minor 
) const [virtual]

Implements TVirtualIndex.

Definition at line 267 of file TChainIndex.cxx.

References chain, TObject::Error(), TVirtualIndex::fTree, GetSubTreeIndex(), TChain::GetTreeOffset(), Long64_t, R__ASSERT, and ReleaseSubTreeIndex().

const char* TChainIndex::GetMajorName (  )  const [inline, virtual]

Implements TVirtualIndex.

Definition at line 73 of file TChainIndex.h.

References TString::Data(), and fMajorName.

const char* TChainIndex::GetMinorName (  )  const [inline, virtual]

Implements TVirtualIndex.

Definition at line 74 of file TChainIndex.h.

References TString::Data(), and fMinorName.

virtual Long64_t TChainIndex::GetN (  )  const [inline, virtual]

Implements TVirtualIndex.

Definition at line 75 of file TChainIndex.h.

References fEntries.

TTreeFormula * TChainIndex::GetMajorFormulaParent ( const TTree T  )  [virtual]

Definition at line 306 of file TChainIndex.cxx.

References TString::Data(), fMajorFormulaParent, fMajorName, TTreeFormula::GetTree(), kTRUE, TTreeFormula::SetQuickLoad(), TTreeFormula::SetTree(), T, and TTreeFormula::UpdateFormulaLeaves().

Referenced by GetEntryNumberFriend().

TTreeFormula * TChainIndex::GetMinorFormulaParent ( const TTree T  )  [virtual]

Definition at line 322 of file TChainIndex.cxx.

References TString::Data(), fMinorFormulaParent, fMinorName, TTreeFormula::GetTree(), kTRUE, TTreeFormula::SetQuickLoad(), TTreeFormula::SetTree(), T, and TTreeFormula::UpdateFormulaLeaves().

Referenced by GetEntryNumberFriend().

void TChainIndex::UpdateFormulaLeaves ( const TTree parent  )  [virtual]

Implements TVirtualIndex.

Definition at line 339 of file TChainIndex.cxx.

References fMajorFormulaParent, fMinorFormulaParent, TTreeFormula::SetTree(), and TTreeFormula::UpdateFormulaLeaves().

void TChainIndex::SetTree ( const TTree T  )  [virtual]

Implements TVirtualIndex.

Definition at line 354 of file TChainIndex.cxx.

References TVirtualIndex::fTree, R__ASSERT, and T.

std::pair<TVirtualIndex*, Int_t> TChainIndex::GetSubTreeIndex ( Int_t  major,
Int_t  minor 
) const [protected]

void TChainIndex::ReleaseSubTreeIndex ( TVirtualIndex index,
Int_t  treeNo 
) const [protected]

void TChainIndex::DeleteIndices (  )  [protected]

virtual void TChainIndex::Append ( const TVirtualIndex ,
Bool_t  delaySort = kFALSE 
) [virtual]

Implements TVirtualIndex.

virtual Int_t TChainIndex::GetEntryNumberFriend ( const TTree T  )  [virtual]

Implements TVirtualIndex.

virtual Long64_t TChainIndex::GetEntryNumberWithIndex ( Int_t  major,
Int_t  minor 
) const [virtual]

Implements TVirtualIndex.

virtual Long64_t TChainIndex::GetEntryNumberWithBestIndex ( Int_t  major,
Int_t  minor 
) const [virtual]

Implements TVirtualIndex.

const char* TChainIndex::GetMajorName (  )  const [inline, virtual]

Implements TVirtualIndex.

Definition at line 73 of file TChainIndex.h.

References TString::Data(), and fMajorName.

const char* TChainIndex::GetMinorName (  )  const [inline, virtual]

Implements TVirtualIndex.

Definition at line 74 of file TChainIndex.h.

References TString::Data(), and fMinorName.

virtual Long64_t TChainIndex::GetN (  )  const [inline, virtual]

Implements TVirtualIndex.

Definition at line 75 of file TChainIndex.h.

References fEntries.

virtual TTreeFormula* TChainIndex::GetMajorFormulaParent ( const TTree T  )  [virtual]

virtual TTreeFormula* TChainIndex::GetMinorFormulaParent ( const TTree T  )  [virtual]

virtual void TChainIndex::UpdateFormulaLeaves ( const TTree parent  )  [virtual]

Implements TVirtualIndex.

virtual void TChainIndex::SetTree ( const TTree T  )  [virtual]

Implements TVirtualIndex.


Member Data Documentation

TString TChainIndex::fMajorName [protected]

Definition at line 55 of file TChainIndex.h.

Referenced by GetMajorFormulaParent(), GetMajorName(), and TChainIndex().

TString TChainIndex::fMinorName [protected]

Definition at line 56 of file TChainIndex.h.

Referenced by GetMinorFormulaParent(), GetMinorName(), and TChainIndex().

TTreeFormula* TChainIndex::fMajorFormulaParent [protected]

Definition at line 57 of file TChainIndex.h.

Referenced by GetEntryNumberFriend(), GetMajorFormulaParent(), TChainIndex(), and UpdateFormulaLeaves().

TTreeFormula* TChainIndex::fMinorFormulaParent [protected]

Pointer to major TreeFormula in Parent tree (if any).

Definition at line 58 of file TChainIndex.h.

Referenced by GetEntryNumberFriend(), GetMinorFormulaParent(), TChainIndex(), and UpdateFormulaLeaves().

std::vector<TChainIndexEntry> TChainIndex::fEntries [protected]

Pointer to minor TreeFormula in Parent tree (if any).

Definition at line 59 of file TChainIndex.h.

Referenced by Append(), DeleteIndices(), GetN(), GetSubTreeIndex(), ReleaseSubTreeIndex(), and TChainIndex().

TTreeFormula* TChainIndex::fMajorFormulaParent [protected]

Definition at line 57 of file TChainIndex.h.

TTreeFormula* TChainIndex::fMinorFormulaParent [protected]

Pointer to major TreeFormula in Parent tree (if any).

Definition at line 58 of file TChainIndex.h.

std::vector<TChainIndexEntry> TChainIndex::fEntries [protected]

Pointer to minor TreeFormula in Parent tree (if any).

Definition at line 59 of file TChainIndex.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:35:14 2011 for ROOT_528-00b_version by  doxygen 1.5.1