Log of /trunk/tree/tree/src/TFriendElement.cxx
Parent Directory
Revision
43993 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Apr 27 16:23:16 2012 UTC (2 years, 8 months ago) by
pcanal
File length: 7962 byte(s)
Diff to
previous 35378
Fix coverity issues
Dereference null return:
32943,32945,36325,36329: TFormLeafInfo::GetLocalValuePointer
33253: TTreeFormula::EvalObject
33763: CloneTree
33258: GetBasket
34034: In DropBuffers (in addition avoid reading the basket when the intend is to drop the content from memory!)
36307: TTree::BuildIndex
36328: DrawCopy
36332: GetStreamerInfoCache
33025: BuildStreamerInfo
42469: Clone
33436: MakeIterator
Dereference after null check.
42470: in ImportStreamerInfo
33138: in TEntryListArray::Enter
Unchecked return value:
32049, 32050: TBranchProxy::Read and Setup
Mixed enums:
32705,32706: TClass::fStreamerType (and also name the enum type).
Revision
25054 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Aug 5 14:39:21 2008 UTC (6 years, 5 months ago) by
pcanal
File length: 7872 byte(s)
Diff to
previous 22902
If the TreeFriend is entered via a TTree*, properly detect that it is in the same file and do _not_ record the filename (since we will alway know where to find it\!)
Revision
17121 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Dec 8 17:29:26 2006 UTC (8 years, 1 month ago) by
pcanal
Original Path:
trunk/tree/src/TFriendElement.cxx
File length: 7464 byte(s)
Diff to
previous 15810
From Stefan Otto:
If a TChain that has friend TChains is cloned via TTree::CloneTree(), the TFriendElements of the cloned TTrees create unowned files that are not closed by deleting the cloned TChain. Please see attached macro and proposed fix for details.
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/src/TFriendElement.cxx
File length: 6880 byte(s)
Diff to
previous 7149
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
5717 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Dec 2 18:50:12 2002 UTC (12 years, 1 month ago) by
rdm
Original Path:
trunk/tree/src/TFriendElement.cxx
File length: 6987 byte(s)
Diff to
previous 5107
mega patch to remove almost all compiler warnings on MacOS X where the
compiler is by default in pedantic mode (LHCb also like to use this option).
The following issues have been fixed:
- removal of unused arguments
- comparison between signed and unsigned integers
- not calling of base class copy ctor in copy ctor's
To be done, the TGeo classes where we get still many hundred warnings of
the above nature. List forwarded to Andrei.
Revision
5107 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Aug 9 22:35:03 2002 UTC (12 years, 5 months ago) by
brun
Original Path:
trunk/tree/src/TFriendElement.cxx
File length: 6995 byte(s)
Diff to
previous 4827
This patch prevents core dumps if the file of a tree friend is missing. This can easily happen if a friend is
attached to a tree before it is saved and then in a new session (several days later :)) the tree is reloaded
and analyzed when the original friend is missing.
Philippe.
Revision
4827 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Jul 6 06:54:35 2002 UTC (12 years, 6 months ago) by
brun
Original Path:
trunk/tree/src/TFriendElement.cxx
File length: 6907 byte(s)
Diff to
previous 4773
From Philippe
This patch solves an ownership problem (friend chains on the stack were
delete), it also fix a problem with refreshing the pointer to the leaf
when the leaf was accessed using a tree-alias name. It also enables the
befriending of chains contains series of trees of unequal size (in
parallel).
It also re-enable using string (char*) store into a TClonesArray using a
TTree::Draw command (in the current version it was reading repetitively
the string of the 1st element).
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/src/TFriendElement.cxx
File length: 6776 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/src/TFriendElement.cxx
File length: 4270 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.