Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New way to setup Event Display by XML files. #1386

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

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?

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.

2 participants