[root] / trunk / tree / tree / inc / TEventList.h Repository:
ViewVC logotype

Log of /trunk/tree/tree/inc/TEventList.h

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

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 22902 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 31 09:48:42 2008 UTC (6 years, 9 months ago) by rdm
File length: 3549 byte(s)
Diff to previous 20882
move tree, treeplayer and treeviewer under tree meta directory.

Revision 20882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:31:26 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/tree/inc/TEventList.h
File length: 3549 byte(s)
Diff to previous 19826
Set property svn:eol-style LF on all source and Makefiles. This should avoid
problems with Win32 line endings ending up in the repository. All MS tools
support LF eols fine.

Revision 19826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:56:11 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/tree/inc/TEventList.h
File length: 3549 byte(s)
Diff to previous 19825
imported svn:keywords Id property

Revision 19825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:49:10 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/tree/inc/TEventList.h
File length: 3602 byte(s)
Diff to previous 15455
remove :$ from tag line

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 13207 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 11 22:16:04 2005 UTC (9 years, 2 months ago) by pcanal
Original Path: trunk/tree/inc/TEventList.h
File length: 3536 byte(s)
Diff to previous 11957
Update the spacing and documentation to match the coding rule

Revision 11957 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 3 07:37:06 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/tree/inc/TEventList.h
File length: 3685 byte(s)
Diff to previous 9970
TEventList stores Long64_t instead of Int_t types.
The number of entries in a TEventlist is still limited by Int_t.

Revision 9970 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 10 12:16:50 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/tree/inc/TEventList.h
File length: 3652 byte(s)
Diff to previous 8475
Implement
   virtual void     Intersect(const TEventList *list);
   TEventList  operator*(const TEventList &list1, const TEventList &list2)

Revision 8475 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 22 15:57:56 2004 UTC (10 years, 10 months ago) by rdm
Original Path: trunk/tree/inc/TEventList.h
File length: 3512 byte(s)
Diff to previous 7826
make SetRapplyCut() a *TOGGLE* context menu item.

Revision 7826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 2 09:27:40 2004 UTC (11 years ago) by brun
Original Path: trunk/tree/inc/TEventList.h
File length: 3503 byte(s)
Diff to previous 3740
Implement TEventList::Clear. This function calls TEventList::Reset

Revision 3740 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 23 15:48:05 2002 UTC (13 years ago) by rdm
Original Path: trunk/tree/inc/TEventList.h
File length: 3435 byte(s)
Diff to previous 3716
add TList.h where needed (so these classes compile fine if we decide to
remove TList.h from TNamed.h).

Revision 3716 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jan 20 10:22:43 2002 UTC (13 years ago) by brun
Original Path: trunk/tree/inc/TEventList.h
File length: 3415 byte(s)
Diff to previous 3083
Add new function
 Int_t Merge(TCollection *list)
to merge the TEventList objects in the collection.

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.

Revision 980 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 21 20:47:45 2000 UTC (14 years, 2 months ago) by brun
Original Path: trunk/tree/inc/TEventList.h
File length: 3103 byte(s)
Diff to previous 3
Increment class version number from 1 to 2.
Declare fDirectory not persistent.
Declare dimension of fList in the comment field.

Revision 3 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: trunk/tree/inc/TEventList.h
File length: 3035 byte(s)
Copied from: branches/rdm/tree/inc/TEventList.h revision 2
Diff to previous 2
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.

Revision 2 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: branches/rdm/tree/inc/TEventList.h
File length: 3035 byte(s)
Initial import of ROOT into CVS

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.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9