[root] / trunk / tree / tree / src / TEventList.cxx Repository:
ViewVC logotype

Log of /trunk/tree/tree/src/TEventList.cxx

Parent Directory Parent Directory


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

Revision 35993 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 1 10:58:32 2010 UTC (4 years, 3 months ago) by pcanal
File length: 15167 byte(s)
Diff to previous 35939
fix cov 13258

Revision 35939 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 30 15:51:26 2010 UTC (4 years, 3 months ago) by brun
File length: 15162 byte(s)
Diff to previous 31738
use snprintf

Revision 31738 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 9 16:41:56 2009 UTC (5 years, 1 month ago) by brun
File length: 15148 byte(s)
Diff to previous 31727
From Eddy and Matevz,
A better fix

Revision 31727 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 9 14:09:00 2009 UTC (5 years, 1 month ago) by brun
File length: 15164 byte(s)
Diff to previous 29582
From Matevz:
While running extensive tests on Fireworks we found a problem in TEventList:Add() -- in some rare cases access past the end of entry-array was observed (valgrind), sometimes also leading to a crash.

Revision 29582 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 25 15:30:51 2009 UTC (5 years, 6 months ago) by pcanal
File length: 15134 byte(s)
Diff to previous 22992
avoid out-of-bounds read

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: 15117 byte(s)
Diff to previous 22972
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 22972 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 3 19:58:33 2008 UTC (6 years, 9 months ago) by pcanal
File length: 15118 byte(s)
Diff to previous 22902
Introduce a new member function TDirectory::Remove which is the reverse of
TDirectory::Append.  This allows more 'hiding' of the internal list as
well as simplifying code (now) using Append/Remove.

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: 15167 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/src/TEventList.cxx
File length: 15167 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/src/TEventList.cxx
File length: 15167 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/src/TEventList.cxx
File length: 15220 byte(s)
Diff to previous 17731
remove :$ from tag line

Revision 17731 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 6 15:30:25 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/tree/src/TEventList.cxx
File length: 15230 byte(s)
Diff to previous 15455
In the Streamer functions replace the lines like
         TPad::Class()->ReadBuffer(b, this, v, R__s, R__c);
         TPad::Class()->WriteBuffer(b,this);
by
         b.ReadClassBuffer(TPad::Class(), this, v, R__s, R__c);
         b.WriteClassBuffer(TPad::Class(),this);

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/src/TEventList.cxx
File length: 15224 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/src/TEventList.cxx
File length: 14734 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/src/TEventList.cxx
File length: 14635 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/src/TEventList.cxx
File length: 14444 byte(s)
Diff to previous 9380
Implement
   virtual void     Intersect(const TEventList *list);
   TEventList  operator*(const TEventList &list1, const TEventList &list2)

Revision 9380 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 2 21:51:29 2004 UTC (10 years, 6 months ago) by brun
Original Path: trunk/tree/src/TEventList.cxx
File length: 13556 byte(s)
Diff to previous 9230
From Philippe:
Attached is a new format to eventlist->Print("all") in response to
http://root.cern.ch/phpBB2/viewtopic.php?t=838

Revision 9230 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 17 09:20:19 2004 UTC (10 years, 7 months ago) by brun
Original Path: trunk/tree/src/TEventList.cxx
File length: 13553 byte(s)
Diff to previous 4709
From Helmut Gerhard SCHMUECKER
Speed improvement in TEventList::Enter

Revision 4709 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 14 10:29:06 2002 UTC (12 years, 7 months ago) by rdm
Original Path: trunk/tree/src/TEventList.cxx
File length: 13319 byte(s)
Diff to previous 4566
Add TDSet::Process() which internally calls TProof->Process() via
interpreter. Several other small PROOF updates.

Revision 4566 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 18 08:51:49 2002 UTC (12 years, 8 months ago) by brun
Original Path: trunk/tree/src/TEventList.cxx
File length: 13315 byte(s)
Diff to previous 3716
Add explicit calls to the base classes copy constructors in the copy constructors.
This is required by gcc on MacOS X

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/src/TEventList.cxx
File length: 13300 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/src/TEventList.cxx
File length: 12659 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/src/TEventList.cxx
File length: 12272 byte(s)
Diff to previous 1185
      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 1185 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 11 22:17:19 2000 UTC (14 years, 1 month ago) by brun
Original Path: trunk/tree/src/TEventList.cxx
File length: 12266 byte(s)
Diff to previous 985
Correct TEventList::Streamer.
The statement ReadVersion was left by mistake in the blok reading the old versions.

Revision 985 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 21 20:51:23 2000 UTC (14 years, 2 months ago) by brun
Original Path: trunk/tree/src/TEventList.cxx
File length: 12301 byte(s)
Diff to previous 495
Function Streamer now in the implementation file.
Add code for the new automatic schema evolution algorithm

Revision 495 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 18 09:33:00 2000 UTC (14 years, 5 months ago) by brun
Original Path: trunk/tree/src/TEventList.cxx
File length: 12140 byte(s)
Diff to previous 3
Implement a suggestion by Walter Mueller to optimize the resizing
of the list. The mod is in the Enter function.

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/src/TEventList.cxx
File length: 12003 byte(s)
Copied from: branches/rdm/tree/src/TEventList.cxx 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/src/TEventList.cxx
File length: 12003 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