Skip to content
Snippets Groups Projects
Commit a9af177a authored by Olivier Couet's avatar Olivier Couet
Browse files

Doxygen

parent 551ca9f4
No related branches found
No related tags found
No related merge requests found
...@@ -9,11 +9,16 @@ ...@@ -9,11 +9,16 @@
* For the list of contributors see $ROOTSYS/README/CREDITS. * * For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/ *************************************************************************/
////////////////////////////////////////////////////////////////////////// /** \class TChainIndex
// A Chain Index.
// A Chain Index A Chain Index with majorname and minorname.
// It uses tree indices of all the trees in the chain instead of building
////////////////////////////////////////////////////////////////////////// a new index.
The index values from the first tree should be less then
all the index values from the second tree, and so on.
If a tree in the chain doesn't have an index the index will be created
and kept inside this chain index.
*/
#include "TChainIndex.h" #include "TChainIndex.h"
#include "TChain.h" #include "TChain.h"
...@@ -22,9 +27,9 @@ ...@@ -22,9 +27,9 @@
#include "TFile.h" #include "TFile.h"
#include "TError.h" #include "TError.h"
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/// \class TChainIndex::TChainIndexEntry
/// Holds a description of indices of trees in the chain.
void TChainIndex::TChainIndexEntry::SetMinMaxFrom(const TTreeIndex *index ) void TChainIndex::TChainIndexEntry::SetMinMaxFrom(const TTreeIndex *index )
{ {
...@@ -34,8 +39,6 @@ void TChainIndex::TChainIndexEntry::SetMinMaxFrom(const TTreeIndex *index ) ...@@ -34,8 +39,6 @@ void TChainIndex::TChainIndexEntry::SetMinMaxFrom(const TTreeIndex *index )
fMaxIndexValMinor = index->GetIndexValuesMinor()[index->GetN() - 1]; fMaxIndexValMinor = index->GetIndexValuesMinor()[index->GetN() - 1];
} }
ClassImp(TChainIndex) ClassImp(TChainIndex)
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
...@@ -128,7 +131,7 @@ TChainIndex::TChainIndex(const TTree *T, const char *majorname, const char *mino ...@@ -128,7 +131,7 @@ TChainIndex::TChainIndex(const TTree *T, const char *majorname, const char *mino
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/// add an index to this chain /// Add an index to this chain.
/// if delaySort is kFALSE (default) check if the indices of different trees are in order. /// if delaySort is kFALSE (default) check if the indices of different trees are in order.
void TChainIndex::Append(const TVirtualIndex *index, Bool_t delaySort ) void TChainIndex::Append(const TVirtualIndex *index, Bool_t delaySort )
...@@ -159,7 +162,7 @@ void TChainIndex::Append(const TVirtualIndex *index, Bool_t delaySort ) ...@@ -159,7 +162,7 @@ void TChainIndex::Append(const TVirtualIndex *index, Bool_t delaySort )
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/// Delete all the indices which were built by this object /// Delete all the indices which were built by this object.
void TChainIndex::DeleteIndices() void TChainIndex::DeleteIndices()
{ {
...@@ -250,7 +253,7 @@ void TChainIndex::ReleaseSubTreeIndex(TVirtualIndex* index, int treeNo) const ...@@ -250,7 +253,7 @@ void TChainIndex::ReleaseSubTreeIndex(TVirtualIndex* index, int treeNo) const
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/// see TTreeIndex::GetEntryNumberFriend for description /// See TTreeIndex::GetEntryNumberFriend for description
Long64_t TChainIndex::GetEntryNumberFriend(const TTree *parent) Long64_t TChainIndex::GetEntryNumberFriend(const TTree *parent)
{ {
...@@ -325,7 +328,7 @@ Long64_t TChainIndex::GetEntryNumberWithIndex(Long64_t major, Long64_t minor) co ...@@ -325,7 +328,7 @@ Long64_t TChainIndex::GetEntryNumberWithIndex(Long64_t major, Long64_t minor) co
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/// return a pointer to the TreeFormula corresponding to the majorname in parent tree T /// Return a pointer to the TreeFormula corresponding to the majorname in parent tree T.
TTreeFormula *TChainIndex::GetMajorFormulaParent(const TTree *parent) TTreeFormula *TChainIndex::GetMajorFormulaParent(const TTree *parent)
{ {
...@@ -342,7 +345,7 @@ TTreeFormula *TChainIndex::GetMajorFormulaParent(const TTree *parent) ...@@ -342,7 +345,7 @@ TTreeFormula *TChainIndex::GetMajorFormulaParent(const TTree *parent)
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/// return a pointer to the TreeFormula corresponding to the minorname in parent tree T /// Return a pointer to the TreeFormula corresponding to the minorname in parent tree T.
TTreeFormula *TChainIndex::GetMinorFormulaParent(const TTree *parent) TTreeFormula *TChainIndex::GetMinorFormulaParent(const TTree *parent)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment