Skip to content

Cleanups across ROOT before disabling the auto registration of TEventList#22896

Open
hageboeck wants to merge 4 commits into
root-project:masterfrom
hageboeck:TEventList_cleanup
Open

Cleanups across ROOT before disabling the auto registration of TEventList#22896
hageboeck wants to merge 4 commits into
root-project:masterfrom
hageboeck:TEventList_cleanup

Conversation

@hageboeck

Copy link
Copy Markdown
Member

As part of working on the auto-registration of TEventList (#22817), several cleanups were possible:

  • Remove several unnecessary includes of TEventList across ROOT
  • Remove commented-out code that mentioned TEventList
  • Use member initialisers and clean up includes inside TEventList

@github-actions

github-actions Bot commented Jul 23, 2026

Copy link
Copy Markdown

Test Results

    23 files      23 suites   3d 18h 6m 13s ⏱️
 3 874 tests  3 872 ✅ 0 💤 2 ❌
79 789 runs  79 786 ✅ 1 💤 2 ❌

For more details on these failures, see this check.

Results for commit adbe15b.

♻️ This comment has been updated with latest results.

@hageboeck
hageboeck force-pushed the TEventList_cleanup branch from d7ed9e0 to 5d7c569 Compare July 23, 2026 12:03
Fixtures run even when the setup test is not selected,
whereas dependencies only have an effect when setup and main test are selected.
Also remove further includes that were unused.
- Remove unused headers.
- Use member initialisers to clean up constructors.
- Apply clang-tidy/clang-format fixes for member init.
@hageboeck
hageboeck force-pushed the TEventList_cleanup branch from 5d7c569 to adbe15b Compare July 24, 2026 07:46
Comment on lines 63 to 66
if (initsize > 100) fSize = initsize;
else fSize = 100;
if (delta > 100) fDelta = delta;
else fDelta = 100;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this become

   fSize = std::max(fSize, initsize);
   fDelta = std::max(fDelta, delta);

else fSize = 100;
if (delta > 100) fDelta = delta;
else fDelta = 100;
fList = nullptr;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove

for (Int_t i=0; i<fN; i++)
fList[i] = list.fList[i];
fReapply = list.fReapply;
fDirectory = nullptr;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove?


for (Int_t i=0; i<fN; i++)
fList[i] = list.fList[i];
fReapply = list.fReapply;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add to initializer list?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants