-
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 generic methods for signal analysis inside framework #379
base: master
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
I understand it is much cleaner to create this dedicated class, however, I still believe the right place for it is at the Only in rawlib it will make sense to calculate baselines, or does it make sense in any other existing or future library? Thus, I suggest to rename this class to |
If new types (other than Please, share in case that you foresee another use-case where you will need a library for raw signal processing that it is outside |
I think this topic is discussed on #353. |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…ysis, now a vector with the baseline substracted has to be provided
for more information, see https://pre-commit.ci
If I remember correctly you cannot write the implementation of the template methods separately in the cxx file, unless you |
As far as I know, template specializations can be defined in the source file https://stackoverflow.com/questions/115703/storing-c-template-function-definitions-in-a-cpp-file |
Note that the following submodule PR needs to be merged together with this one: |
/// | ||
|
||
template <typename T> | ||
std::vector<std::pair<Float_t, Float_t> > TRestPulseShapeAnalysis::GetPointsOverThreshold( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could return std::vector<std::pair<Int_t, T> >
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is related to rest-for-physics/rawlib#100 (comment)
I will try to implement a more generic method.
…std::pair<Int_t, Float_t>´
for more information, see https://pre-commit.ci
New namespace for generic signal analysis inside framework, it implements different methods:
Related PR: