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

Update TRestMetadata classes default title and name #280

Merged
merged 5 commits into from
Aug 30, 2022

Conversation

lobis
Copy link
Member

@lobis lobis commented Aug 3, 2022

lobis Ok: 57

Before this PR all TRestMetadata classes were using defaultName and defaultTitle for the default value of said parameters. This was causing an issue when multiple metadata classes were left with the default name values, as the name needs to be unique in the root file.

This PR updates the name of these parameters so that it depends on the class name (defaultName -> defaultTRestGeant4Metadata etc.). This way if the metadata classes are unique in the root file there won't be a problem even if they are not explicitly named (such is the case in restG4 simulations).

I also updated the REST_StringHelper::StringToBool to also support std::to_string(true) as argument and normalized the usage of std:: in the source file.

I had to add 5e78026 to fix compilation issues related to reflection, perhaps @nkx111 could take a look and prevent these from happening in the future.

@lobis lobis requested review from nkx111, jgalan and juanangp and removed request for nkx111 August 3, 2022 09:12
@lobis lobis added the development To define issues with development proposals label Aug 3, 2022
@lobis lobis self-assigned this Aug 3, 2022
@lobis lobis marked this pull request as ready for review August 3, 2022 09:12
@lobis lobis requested a review from DavidDiezIb August 29, 2022 12:02
@lobis lobis merged commit 80dcaa9 into master Aug 30, 2022
@lobis lobis deleted the lobis-metadata-defaults branch August 30, 2022 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development To define issues with development proposals
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants