Skip to content

Conversation

@DanielWielanek
Copy link
Contributor

Hi,
again I'm trying to use XML to remove configuration of tracks/detectors from FairRoot Event Display

Mention any issue this PR resolves or is related to.


Checklist:

Copy link
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.

Hi!

As I already noted, this changeset is too big for me, to really review it quickly. Some ideas to split this up into digestable pieces:

  • FairEveTracks.* looks like a nice, general cleanup. Easy for a dedicated PR.
  • FairXMLPdgColor and its base class also look quite digestable. It could be used to perform a temporary refactoring of FairEventManager in a non-API breaking manor?

Comment on lines +31 to +33
FairXMLPdgColor(FairXMLNode* node = nullptr);
Int_t GetColor(Int_t pdg) const;
~FairXMLPdgColor() override;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
FairXMLPdgColor(FairXMLNode* node = nullptr);
Int_t GetColor(Int_t pdg) const;
~FairXMLPdgColor() override;
explicit FairXMLPdgColor(FairXMLNode* node = nullptr);
Int_t GetColor(Int_t pdg) const;
~FairXMLPdgColor() override = default;

We haven't official adopted CPPCG::C.46, but I think, it would be a good idea.

I think, the destructor is completely empty in the .cxx, so let's go for a = default one here, maybe?

@github-actions
Copy link

This PR has been automatically marked as stale because it has not had recent activity. It will not be closed.

@github-actions github-actions bot added the Stale label Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants