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

TRestMetadata::InitFromConfigFile is now implemented #143

Merged
merged 3 commits into from
Mar 4, 2022
Merged

Conversation

jgalan
Copy link
Member

@jgalan jgalan commented Feb 22, 2022

jgalan 16

The first use case will be at rest-for-physics/axionlib#13 thats why the branch is named generic_optics.

List of changes:

  • TRestMetadata::InitFromConfigFile has now been implemented to automatically read basic parameters.
  • Images at the documentation have been removed from framework repository. They will be moved to each dedicated library.
  • REST.conf was updated to include the libraries images path.

@nkx111
Copy link
Member

nkx111 commented Feb 23, 2022

But then TRestMetadata would not be an abstract class anymore, with so abstract name it has.

@jgalan
Copy link
Member Author

jgalan commented Feb 23, 2022

Yes, it can be kept abstract by protecting the constructors. Thats what I did also at the commit

@jgalan jgalan requested a review from a team February 23, 2022 10:42
@nkx111
Copy link
Member

nkx111 commented Feb 23, 2022

We can remove the repeated code in TRestEventProcess::InitFromConfigFile()

@jgalan
Copy link
Member Author

jgalan commented Feb 23, 2022

There is a difference between both, that TRestEventProcess has access to fRunInfo, and processes are able to use [TRestMdClass::fMember]

@jgalan jgalan merged commit 96d7319 into master Mar 4, 2022
@jgalan jgalan deleted the generic_optics branch March 4, 2022 17:12
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.

Extending InitFromConfigFile scheme used in REST processes to any metadata class
2 participants