Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Root
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
cxwx
Root
Commits
a9af177a
Commit
a9af177a
authored
9 years ago
by
Olivier Couet
Browse files
Options
Downloads
Patches
Plain Diff
Doxygen
parent
551ca9f4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tree/treeplayer/src/TChainIndex.cxx
+17
-14
17 additions, 14 deletions
tree/treeplayer/src/TChainIndex.cxx
with
17 additions
and
14 deletions
tree/treeplayer/src/TChainIndex.cxx
+
17
−
14
View file @
a9af177a
...
@@ -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
}
}
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
///
a
dd an index to this chain
///
A
dd 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
}
}
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
///
s
ee TTreeIndex::GetEntryNumberFriend for description
///
S
ee 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
}
}
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
///
r
eturn a pointer to the TreeFormula corresponding to the majorname in parent tree T
///
R
eturn 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)
}
}
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
///
r
eturn a pointer to the TreeFormula corresponding to the minorname in parent tree T
///
R
eturn 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
)
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment