-
Notifications
You must be signed in to change notification settings - Fork 11
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
Adding new library legacylib #230
Conversation
Just realize that not all the libs are build by default, from https://github.com/rest-for-physics/framework/blob/master/.gitlab-ci.yml I can see:
As you can see, some libraries such as
Same applies to the test, @lobis @jgalan let me know what do you think, I can do these changes and test in this PR. |
I think its fine to add all libraries. Personally I like to have them all explicitly stated instead of having a single parameter for all of them, just in case we need to turn a single one off for some issue etc. |
Well, in this case you can always do:
At least for me is more clear this way. |
Just off-topic, but when reformating XML files, it adds 2-spaces, should not be 4-spaces as C-code? Also it puts everything really compactified, I really like to allow at least 1-line space between definitions
|
Yes I agree, I also prefer 4 spaces. I made a commit to this branch that should modify this (6caf746), can you please check it works? Regarding the separation, I am not sure how to modify this. It seems that |
Just checked, it is working as expected. |
Talking about legacy, I guess the old V2.2 processes and events can be also added? If it is possible, then we can recover backward compatibility to v2.2. |
Yes, this should be possible. |
New
legacy
library has been added to the repository, check https://github.com/rest-for-physics/legacylib for more details.The new
legacy
library is meant to store deprecated libraries in order to keep backward compatibility of the data with the following conditions:legacy
class can be instanciated, in this case a warning in displayed.legacy
class doesn't implement any function e.g. "ProcessEvent", an error is displayed and the program exit in case.legacy
class is capable to print any metadata.legacy
classes inherits fromTRestLegacyProcess
, which ensure the proper handling of legacy classes.For the time being only
TRestRawZeroSuppresionProcess.h
is implemented as legacy class, however more classes can be added following this template. A base class and a template forTRestLegacyMetadata
can be provided in case of need.Also, when REST has not been compiled with all libraries, when trying to read a file that contains classes from the missing libraries, it would produce a seg.fault. This is fixed now by @jgalan
REST_StringHelper::FirstToUpper
.