Log of /trunk/tree/treeplayer/inc/TChainIndex.h
Parent Directory
Revision
12187 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Added
Fri Jun 24 20:25:11 2005 UTC (9 years, 7 months ago) by
pcanal
Original Path:
trunk/treeplayer/inc/TChainIndex.h
File length: 3488 byte(s)
From Marek:
hen a user creates a TChainIndex (by invoking e.g. TChain::BuildIndex())
1. The TChainIndex constructor reads all the trees one by one
and for each:
a. checks if there is an index if not or if that one is built on
different formaulae it builds an index and keeps it (can't leave an
index in a tree because when the next tree is loaded the index
will be deleted).
b. takes the min and max values of the index (perhaps only min is
needed - I'll see later on).
2. checks if the min and max values of all the tree indices are sorted.
If not it turns itself into z Zombie.
When the index is accessed:
1. using the min and max values finds a tree which should be accessed
2. loads the tree using Load(the first entry number in that tree)
3. If there is no index in that tree (it means it was created inside
TChainIndex constructor) the index is set to that tree.
4. the entry is loaded using the tree index.
5. if the tree didn't have an index before its index is set back to 0
(needed because otherwise the index would have been deleted in the
tree destructor called when loading another tree in the chain).
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.