Log of /trunk/core/cont/inc/TSeqCollection.h
Parent Directory
Revision
33807 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jun 10 07:23:32 2010 UTC (4 years, 7 months ago) by
brun
File length: 3194 byte(s)
Diff to
previous 22961
From Jason Detwiler:
I put together several functions useful for me in the context of event building.
I have an event structure containing several TClonesArrays, and during event
building I have the need to merge events and sort their data. So I developed the
following two functions to deal with the events' TClonesArrays during those
procedures:
void TClonesArray::AbsorbObjects(TClonesArray* tc)
//Directly move the object pointers from tc to "this" without cloning (copying).
// "this" takes over ownership of all of tc's object pointers. tc is left empty
//upon return. I preferred this to copying / cloning from one TClonesArray to
//the other in order to save the copying time.
void TClonesArray::MultiSort(Int_t nTCs, TClonesArray** tcs, Int_t upto = kMaxInt)
// Sort multiple TClonesArrays simultaneously with "this".
These new functions make use of a new function in TSeqCollection:
void TClonesArray::QSort(TObject *a, Int_t nBs, TObject **b, Int_t first, Int_t last)
//Utility function for MultiSort
Revision
22961 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Apr 3 13:32:57 2008 UTC (6 years, 9 months ago) by
rdm
File length: 3066 byte(s)
Diff to
previous 20986
move the directories:
base clib cont meta metautils newdelete pcre rint thread unix utils
winnt zip
under the new core meta directory.
Revision
612 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Sep 8 16:11:03 2000 UTC (14 years, 4 months ago) by
rdm
Original Path:
trunk/cont/inc/TSeqCollection.h
File length: 3034 byte(s)
Diff to
previous 408
introduced the concept of ownership for all collections. By calling
TCollection::SetOwner() a collection becomes the owner of its elements.
In those cases the dtor and Clear() method will delete the items and not
just free the container space. Also all collections now make their
TObject part persistent (so the TObject bits are saved). Version numbers
were properly increased.
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.