-
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
Avoid code duplication for signal processing #353
Comments
Probably the methods on Actually, even if it is named signal, the The reason why those methods are there is because of very old times (around 2016), when we didn't have a final definition of In practice, |
This is already done inside Of course, this does not prevent us from having another method inside |
However, those methods are clearly to be used with a |
Agnostic? I imagine these methods will receive as argument a The existing methods are in some sense generic, but they operate on any |
Perhaps some of the methods inside |
I can see some other functions such as
The idea is to use a template
Not necesary, one can think into perform the analysis of the smoothed signal, which is actually my problem. I would like to perform the analysis after signal smoothing and it is not straightforward rigth now. In fact, I would like to save the smoothed signal as a
We can keep the same funcions as before for signal processing, but I think we should add generic methods (functions) rather than processes. |
We discussed this already with @lobis at some point. It is true this fact is missing. We discussed the idea about having another vector inside We should try to find a solution that stays on the domain of |
The generic methods are implemented inside Perhaps, a separate class |
I think that to populate
If you want to keep generic methods inside |
I also think that in general data classes should be decoupled from analysis methods as much as possible (and especially from drawing methods). I also don't think we need classes for everything, a few functions in an appropiately named namespace should be enough. In general I think we should use namespaces more in the framework, instead of relying on prepending long prefixes to the classes. e.g. I guess we could define these methods in the |
I agree with those statements, but not with the latest one. We should keep libraries independent one from each other, all inter-dependencies should be kept in There is no need for those methods to be in |
Yes, I misremembered, actually what exists is a optional dependance between |
Yes! Perhaps those pieces of code would better find the way to settle in In that sense it is clear that the Just fixed at rest-for-physics/rawlib#92 |
For drawing methods I agree that we should have a common classes directly inside the framework. Then, those methods would be inherit by the existing event types. We could have |
Some functions seems duplicated within TRestDetectorSignal and TRestRawSignal, for instance
GetSignalSmoothed
,GetBaseLine
andGetBaseLineSigma
.I propose de following:
rawlib
detectorlib
andconnectorslib
)The text was updated successfully, but these errors were encountered: