class TEventList: public TNamed


 A TEventList object is a list of selected events (entries) in a TTree

A TEventList is automatically generated by TTree::Draw: example
tree->Draw(">>elist1","x<0 && y> 0");
In this example, a TEventList object named "elist1" will be
generated. (Previous contents are overwritten).
tree->Draw(">>+elist1","x<0 && y> 0");
In this example, selected entries are added to the list.

The TEventList object is added to the list of objects in the current
directory.
Use TTree:SetEventList(TEventList *list) to inform TTree that you
want to use the list as input. The following code gets a pointer to
the TEventList object created in the above commands:
TEventList *list = (TEventList*)gDirectory->Get("elist1");

Use function Enter to enter an element in the list
The function Add may be used to merge two lists.
The function Subtract may be used to subtract two lists.
The function Reset may be used to reset a list.
Use TEventList::Print(option) to print the contents.
(option "all" prints all the list entries).
Operators + and - correspond to functions Add and Subtract.
A TEventList object can be saved on a file via the Write function.


Function Members (Methods)

public:
TEventList()
TEventList(const TEventList& list)
TEventList(const char* name, const char* title = "", Int_t initsize = 0, Int_t delta = 0)
virtual~TEventList()
voidTObject::AbstractMethod(const char* method) const
virtual voidAdd(const TEventList* list)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidClear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual Bool_tContains(Long64_t entry)
virtual Bool_tContainsRange(Long64_t entrymin, Long64_t entrymax)
virtual voidTNamed::Copy(TObject& named) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual voidDirectoryAutoAdd(TDirectory*)
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidEnter(Long64_t entry)
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
TDirectory*GetDirectory() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual Long64_tGetEntry(Int_t index) const
virtual const char*TObject::GetIconName() const
virtual Int_tGetIndex(Long64_t entry) const
virtual Long64_t*GetList() const
virtual Int_tGetN() const
virtual const char*TNamed::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual Bool_tGetReapplyCut() const
virtual Int_tGetSize() const
virtual const char*TNamed::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
virtual voidIntersect(const TEventList* list)
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Int_tMerge(TCollection* list)
virtual Bool_tTObject::Notify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TEventList&operator=(const TEventList& list)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual voidReset(Option_t* option = "")
voidTObject::ResetBit(UInt_t f)
virtual voidResize(Int_t delta = 0)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidSetDelta(Int_t delta = 100)
virtual voidSetDirectory(TDirectory* dir)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidSetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidSetReapplyCut(Bool_t apply = kFALSE)TOGGLE
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTNamed::Sizeof() const
virtual voidSort()
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidSubtract(const TEventList* list)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
Int_tfDeltaIncrement size
TDirectory*fDirectory! Pointer to directory holding this tree
Long64_t*fList[fN]Array of elements
Int_tfNNumber of elements in the list
TStringTNamed::fNameobject identifier
Bool_tfReapplyIf true, TTree::Draw will 'reapply' the original cut
Int_tfSizeSize of array
TStringTNamed::fTitleobject title

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TEventList(const TEventList& list)
Default constructor for a EventList*-*-*-*-*-*-*-
*-*        ==================================
TEventList(const char* name, const char* title = "", Int_t initsize = 0, Int_t delta = 0)
 Create a EventList.

 This Eventlist is added to the list of objects in current directory.
TEventList(const TEventList& list)
 Copy constructor.
~TEventList()
 Default destructor for a EventList.
void Add(const TEventList* list)
 Merge contents of alist with this list.

 Both alist and this list are assumed to be sorted prior to this call
Bool_t Contains(Long64_t entry)
 Return TRUE if list contains entry.
Bool_t ContainsRange(Long64_t entrymin, Long64_t entrymax)
 Return TRUE if list contains entries from entrymin to entrymax included.
void DirectoryAutoAdd(TDirectory* )
 Called by TKey and others to automatically add us to a directory when we are read from a file.
void Enter(Long64_t entry)
 Enter element entry into the list.
Long64_t GetEntry(Int_t index) const
 Return value of entry at index in the list.
 Return -1 if index is not in the list range.
Int_t GetIndex(Long64_t entry) const
 Return index in the list of element with value entry
 array is supposed  to be sorted prior to this call.
 If match is found, function returns position of element.
 If no match found, function returns -1.
void Intersect(const TEventList* list)
 Remove elements from this list that are NOT present in alist.
Int_t Merge(TCollection* list)
 Merge entries in all the TEventList in the collection in this event list
void Print(Option_t* option = "") const
          Print contents of this list
void Reset(Option_t* option = "")
          Reset number of entries in event list
void Resize(Int_t delta = 0)
          Resize list by delta entries
void SetDirectory(TDirectory* dir)
 Remove reference to this EventList from current directory and add
 reference to new directory dir. dir can be 0 in which case the list
 does not belong to any directory.
void SetName(const char* name)
 Change the name of this TEventList
void Sort()
          Sort list entries in increasing order
void Streamer(TBuffer& b)
 Stream an object of class TEventList.
void Subtract(const TEventList* list)
 Remove elements from this list that are present in alist.
TEventList& operator=(const TEventList& list)
 Assingment.
void Clear(Option_t* option = "")
{Reset(option);}
TDirectory * GetDirectory()
{return fDirectory;}
Long64_t * GetList()
{ return fList; }
Int_t GetN()
{ return fN; }
Bool_t GetReapplyCut()
{ return fReapply; }
Int_t GetSize()
{ return fSize; }
void SetDelta(Int_t delta = 100)
{fDelta = delta;}
void SetReapplyCut(Bool_t apply = kFALSE)
{fReapply = apply;}

Author: Rene Brun 11/02/97
Last change: root/tree:$Id: TEventList.h 22992 2008-04-05 09:43:01Z pcanal $
Last generated: 2008-06-25 08:38
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.