13 Int_t an = alist->GetN();
16 Long64_t *alst = alist->GetList();
18 fList =
new Long64_t[an];
19 for (i = 0; i < an; i++)
25 Int_t newsize =
fN + an;
26 Long64_t *newlist =
new Long64_t[newsize];
29 for (i = 0; i <
fN; i++) {
30 while (alpos < an &&
fList[i] > alst[alpos]) {
31 newlist[newpos] = alst[alpos];
35 if (alpos < an &&
fList[i] == alst[alpos])
37 newlist[newpos] =
fList[
i];
41 newlist[newpos] = alst[alpos];
50 TCut orig = GetTitle();
51 TCut added = alist->GetTitle();
52 TCut updated = orig || added;
53 SetTitle(updated.GetTitle());
61 fList =
new Long64_t[fSize];
70 Resize(newsize - fSize);
76 Int_t
pos = TMath::BinarySearch(
fN,
fList, entry);
77 if (pos >= 0 && entry ==
fList[pos])
80 memmove(&(
fList[pos + 1]), &(
fList[pos]), 8 * (
fN - pos));
void Enter(Long64_t entry) override
void Add(const TEventList *list) override