Skip to content

Remove unused FairRunOnline::InitContainers() function#1396

Merged
ChristianTackeGSI merged 2 commits intoFairRootGroup:devfrom
karabowi:pr/FairRunOnline_NoInitContainers
May 15, 2023
Merged

Remove unused FairRunOnline::InitContainers() function#1396
ChristianTackeGSI merged 2 commits intoFairRootGroup:devfrom
karabowi:pr/FairRunOnline_NoInitContainers

Conversation

@karabowi
Copy link
Copy Markdown
Collaborator

The function is not being invoked, and was not used.

Addresses issue #1346.


Checklist:

Copy link
Copy Markdown
Member

@ChristianTackeGSI ChristianTackeGSI left a comment

Choose a reason for hiding this comment

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

Very good catch!

I have a few notes.

Comment thread fairroot/online/steer/FairRunOnline.cxx Outdated
Comment thread fairroot/online/steer/FairRunOnline.h
The function is not being invoked, and was not used.
Tested with R3BRoot.

Adjusted the LOG() messages.
Added corresponding CHANGELOG notice.

Addresses issue FairRootGroup#1346.
@karabowi karabowi force-pushed the pr/FairRunOnline_NoInitContainers branch 2 times, most recently from 41b5b23 to 47081ea Compare May 8, 2023 07:54
Copy link
Copy Markdown
Member

@ChristianTackeGSI ChristianTackeGSI left a comment

Choose a reason for hiding this comment

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

I also wonder, whether we should refactor this a bit into some common FairRun feature?

Or should FairRunAna and FairRunOnline have common helper base class?

Just pondering! I haven't thought this through, really!

Comment thread fairroot/online/steer/FairRunOnline.cxx Outdated
Comment thread fairroot/online/steer/FairRunOnline.cxx Outdated
@karabowi karabowi force-pushed the pr/FairRunOnline_NoInitContainers branch from 47081ea to 98c2cf6 Compare May 9, 2023 08:03
Comment thread fairroot/online/steer/FairRunOnline.cxx Outdated
Comment thread fairroot/online/steer/FairRunOnline.cxx
@karabowi karabowi force-pushed the pr/FairRunOnline_NoInitContainers branch from 98c2cf6 to d5626f0 Compare May 9, 2023 11:02
Added check for `fStatic` in the `FairRunOnline::EventLoop()`.
When `fStatic` is set to true by `SetContainerStatic()`,
`ReInit()` will not be called when changed `RunId` detected.
@karabowi karabowi force-pushed the pr/FairRunOnline_NoInitContainers branch from d5626f0 to d4a8417 Compare May 15, 2023 07:03
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