Log of /trunk/tree/tree/inc/TEventList.h
Parent Directory
Revision
22992 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Apr 5 09:43:01 2008 UTC (6 years, 9 months ago) by
pcanal
File length: 3602 byte(s)
Diff to
previous 22902
Use the DirectoryAutoAdd facility for the classes:
TTree, TH1, TEventList, TEntryList, TGraph2D
(and hence their derived classes).
The instances of those classes are now added automatically
to the current directory only when Constructe'd with arguments or Clone'd
and to the directory they are read from when their are stored
directly in a TKey. [Note: the default constructor never adds
the object to the current directory]
The directory auto add can still be disabled for instance
of TH1 and TGraph2D by setting TH1::AddDirectory.
Additionally one can disable the directory auto add for
a specific class by doing:
TClass::GetClass("myclass")->SetDirectoryAutoAdd(0)
However you might want to also be able to restore the
behavior in which case you ought to do:
TClass *cl = TClass::GetClass("myclass");
ROOT::DirAutoAdd_t func = cl->GetDirectoryAutoAdd();
cl->SetDirectoryAutoAdd(0);
TROOT::ReadingObject is marked as deprecated.. It is still
set (as it was) but is no longer used by the above mention
classes.
NOTE: One side effect of this change, is that instnace
of TTree, TH1, TEventList, TEntryList, TGraph2D that are
retrieved from a TMessage (i.e. from a socket) no longer
auto register themselves to the current ROOT directory.
Add a new optional parameter to TDirectory::Append: 'replace'
If replace is true (the default is false), the Append will
first remove from the directory any existing object and
print the message:
Replacing existing OldClass: thename (Potential memory leak).
Add a new option parameter to TDirectory::CloneObject: 'autoadd'
If autoadd is true (the default), CloneObject will call the
object 'DirectoryAutoAdd' function (if any)
In TDirectory::CloneObject add support for multiple inheritance
from TObject where TObject is not the left most base class.
Fix memory leak in TGraph2D::operator= (and add TGraph2D::Clear)
Cleanup some documentation
Revision
15455 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jun 16 11:01:17 2006 UTC (8 years, 7 months ago) by
brun
Original Path:
trunk/tree/inc/TEventList.h
File length: 3612 byte(s)
Diff to
previous 13207
Introduce two new major optimizations for the Tree cache.
-in case of a TChain, the list of branches computed during the
training phase of the first file is reused for all the other files.
-add support for TEventlist. Only the baskets referenced by the list
are added to the cache. This has requested a new function in TEventlist
Bool_t TEventList::ContainsRange(Long64_t entrymin, Long64_t entrymax)
// Return TRUE if list contains entries from entrymin to entrymax included.
Revision
3083 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Oct 22 14:26:49 2001 UTC (13 years, 3 months ago) by
brun
Original Path:
trunk/tree/inc/TEventList.h
File length: 3364 byte(s)
Diff to
previous 1205
Update by Philippe of TEventList and TTreePlayer such that one can
reproduce the results obtained at the creation of the list.
The Title of the EventList object is now fully used to store the
actual selection criteria used to produce the EventList. When
SetReapplyCut is set to true, the criteria is fed back into the
new selection criteria.
This allows for example to really make a selection of some of
the tracks of the events and continue analysis on just them.
For example:
T->Draw(">>pxlist","fPx>2.7");
creates a TEventList 'pxlist' that list all events that have one or
more tracks with fPx greater than 2.7
T->SetEventList(pxlist);
T->Draw("fPx");
will draw the fPx of ALL the tracks of the events that have at least
one track with a fPx greater than 2.7
pxlist->SetReapplyCut(kTRUE);
T->SetEventList(pxlist);
T->Draw("fPx");
will draw the fPx of ONLY the tracks that ha a fPx greater than 2.7.
Also
T->Draw(">>+pxlist","fPy>2.7");
Will have pxlist.fTitle == (fPx>2.7)||(fPx>2.5)
Whenever, a TEventList is filled, its title is properly maintained
to reflect exactly the selection(s) used to create it.
Note that as a side-effect , the TEventList will now contain each entry
only once. (it was possible to add an entry multiple times in the list).
CCVS: ----------------------------------------------------------------------
Revision
1205 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Dec 13 15:13:57 2000 UTC (14 years, 1 month ago) by
brun
Original Path:
trunk/tree/inc/TEventList.h
File length: 3112 byte(s)
Diff to
previous 980
W A R N I N G !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
==================================================================
A very long list of changes in this pre-release of version 3.00.
We have modified the signature of many functions (in particular TObject)
to introduce more constness in the system.
You must change your code if your class derives from TObject and uses
one of the modified functions such as ls, Print, Compare, Hash, etc.
The modified functions in TObject have the following signature:
virtual TObject *Clone() const;
virtual Int_t Compare(const TObject *obj) const;
virtual void Delete(Option_t *option=""); // *MENU*
virtual void DrawClass() const; // *MENU*
virtual void DrawClone(Option_t *option="") const; // *MENU*
virtual void Dump() const; // *MENU*
virtual TObject *FindObject(const TObject *obj) const;
virtual char *GetObjectInfo(Int_t px, Int_t py) const;
virtual ULong_t Hash() const;
virtual void Inspect() const; // *MENU*
virtual Bool_t IsEqual(const TObject *obj) const;
virtual void ls(Option_t *option="") const;
virtual void Print(Option_t *option="") const;
A similar operation has been done with classes such as TH1, TVirtualPad,
TTree, etc.
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.