Log of /trunk/tree/tree/inc/TFriendElement.h
Parent Directory
Revision
11681 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Apr 28 07:29:24 2005 UTC (9 years, 8 months ago) by
brun
Original Path:
trunk/tree/inc/TFriendElement.h
File length: 2675 byte(s)
Diff to
previous 10167
From Philippe:
This patch solves a couple of issue with chains friends when the
chains were also manipulated on their own (some cached TTree pointers
were not refreshed properly).
We now fully support nested and recursive friends.
To support recursive friends, we introduced TTree::TFriendLock which
is used to set and reset the kFriendLock bit in the TTree (or TChain)
object once it has been seen during a recursion handling nested
friends. Hence each objects is guaranteed to best used only once.
The current implementation is not yet thread safe but it would be
straightforward to add it (and then we should also use the same
lock in AddFriend).
Revision
10167 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Sep 24 18:22:46 2004 UTC (10 years, 4 months ago) by
brun
Original Path:
trunk/tree/inc/TFriendElement.h
File length: 2627 byte(s)
Diff to
previous 4773
From Philippe:
TFriendElement is never really the owner of the
TTree is points (in the common case, the TFile objects owns it).
In case where the TTree and its friend are in the same file, this
leads to a double deletion of the friend tree.
The solution is to just remove the deletion of the TTree from
the TFriendElement destructor.
The only downside is that in the case (should be rare!) where
the TFriendElement does not own the TFile and the TFriendElement
is deleted then the TTree will be kept in memory until the file
is deleted.
Revision
4773 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jun 25 05:47:51 2002 UTC (12 years, 7 months ago) by
brun
Original Path:
trunk/tree/inc/TFriendElement.h
File length: 2699 byte(s)
Diff to
previous 2832
Fixes by Philippe to support Tree friends with TChains.
Still some limitations.The chains have to have a list of file
which have (in parallel) the same number of event. (This is because
(for now) the length of each tree is compared with the other trees).
Also I did not test saving and reloading chains with friend.
Revision
1912 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Added
Mon Apr 9 07:52:33 2001 UTC (13 years, 9 months ago) by
brun
Original Path:
trunk/tree/inc/TFriendElement.h
File length: 2332 byte(s)
New class TFriendElement:
// //
// A TFriendElement TF describes a TTree object TF in a file. //
// When a TFriendElement TF is added to the the list of friends of an //
// existing TTree T, any variable from TF can be referenced in a query //
// to T. //
// //
// To add a TFriendElement to an existing TTree T, do: //
// T.AddFriend("friendTreename","friendTreeFilke"); //
// //
// see TTree::AddFriend for more information //
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.