82 if (initsize > 100)
fSize = initsize;
84 if (delta > 100)
fDelta = delta;
129 for (i=0;i<an;i++)
fList[i] = alst[i];
139 while (alpos < an &&
fList[i] > alst[alpos]) {
140 newlist[newpos] = alst[alpos];
144 if (alpos < an &&
fList[i] == alst[alpos]) alpos++;
145 newlist[newpos] =
fList[i];
149 newlist[newpos] = alst[alpos];
160 TCut updated = orig || added;
169 if (
GetIndex(entry) < 0)
return false;
181 if (
fList[imax] < entrymin)
return false;
214 if(pos>=0 && entry==
fList[pos])
229 if (!
fList)
return -1;
230 if (index < 0 || index >=
fN)
return -1;
245 while(nabove-nbelow > 1) {
246 middle = (nabove+nbelow)/2;
247 if (entry ==
fList[middle-1])
return middle-1;
248 if (entry <
fList[middle-1]) nabove = middle;
249 else nbelow = middle;
267 newlist[newpos] =
fList[i];
277 TCut updated = orig && removed;
286 if (!list)
return -1;
294 Error(
"Add",
"Attempt to add object of class: %s to a %s",el->
ClassName(),this->ClassName());
298 nevents += el->
GetN();
310 if (!strstr(
option,
"all"))
return;
314 char *
line =
new char[100];
324 strlcat(
line,element,100);
326 if (nbuf) printf(
"%s\n",
line);
343 if (!delta) delta =
fDelta;
387 newlist[i] =
fList[ind];
418 b.ReadFastArray(tlist,
fN);
445 newlist[newpos] =
fList[i];
455 TCut updated = orig && !removed;
TEventList operator-(const TEventList &list1, const TEventList &list2)
Subtraction.
TEventList operator+(const TEventList &list1, const TEventList &list2)
Addition.
TEventList operator*(const TEventList &list1, const TEventList &list2)
Intersection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
Buffer base class used for serializing objects.
Collection abstract base class.
A specialized string object used for TTree selections.
Describe directory structure in memory.
virtual void Append(TObject *obj, Bool_t replace=kFALSE)
Append object to this directory.
virtual TObject * Remove(TObject *)
Remove an object from the in-memory list.
<div class="legacybox"><h2>Legacy Code</h2> TEventList is a legacy interface: there will be no bug fi...
Long64_t * fList
[fN]Array of elements
~TEventList() override
Default destructor for a EventList.
void Streamer(TBuffer &) override
Stream an object of class TEventList.
bool fReapply
If true, TTree::Draw will 'reapply' the original cut.
TEventList()
Default constructor for a EventList.
virtual void Reset(Option_t *option="")
Reset number of entries in event list.
virtual bool ContainsRange(Long64_t entrymin, Long64_t entrymax)
Return TRUE if list contains entries from entrymin to entrymax included.
TDirectory * fDirectory
! Pointer to directory holding this tree
virtual Long64_t GetEntry(Int_t index) const
Return value of entry at index in the list.
virtual 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 cal...
virtual Int_t GetN() const
virtual Long64_t * GetList() const
TClass * IsA() const override
virtual Int_t Merge(TCollection *list)
Merge entries in all the TEventList in the collection in this event list.
virtual void DirectoryAutoAdd(TDirectory *)
Called by TKey and others to automatically add us to a directory when we are read from a file.
virtual void Subtract(const TEventList *list)
Remove elements from this list that are present in alist.
void Print(Option_t *option="") const override
Print contents of this list.
virtual void SetDirectory(TDirectory *dir)
Remove reference to this EventList from current directory and add reference to new directory dir.
virtual void Add(const TEventList *list)
Merge contents of alist with this list.
Int_t fN
Number of elements in the list.
virtual void Resize(Int_t delta=0)
Resize list by delta entries.
virtual void Enter(Long64_t entry)
Enter element entry into the list.
Int_t fSize
Size of array.
virtual void Sort()
Sort list entries in increasing order.
virtual bool Contains(Long64_t entry)
Return TRUE if list contains entry.
TEventList & operator=(const TEventList &list)
Assingment.
virtual void Intersect(const TEventList *list)
Remove elements from this list that are NOT present in alist.
Int_t fDelta
Increment size.
void SetName(const char *name) override
Change the name of this TEventList.
The TNamed class is the base class for all named ROOT classes.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
const char * GetName() const override
Returns name of object.
void Streamer(TBuffer &) override
Stream an object of class TObject.
const char * GetTitle() const override
Returns title of object.
TNamed & operator=(const TNamed &rhs)
TNamed assignment operator.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
@ kMustCleanup
if object destructor must call RecursiveRemove()
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.
void Sort(Index n, const Element *a, Index *index, Bool_t down=kTRUE)
Sort the n elements of the array a of generic templated type Element.
Long64_t BinarySearch(Long64_t n, const T *array, T value)
Binary search in an array of n values to locate value.