-
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
Nkx111 patch 4 #244
Nkx111 patch 4 #244
Conversation
…gy, total hit energy will be updated
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.
Hi @nkx, perhaps we could create a dedicated data repository, where we place data files such as the one you are adding v2.2.30_hits.root
?
This would be something similar to https://github.com/rest-for-physics/axionlib-data/tree/36629372bcffddd6f95eb12a565c1b15475a64be
That we later make http accessible, and use at the pipelines using wget
.
What the |
/// for (auto h : hists) { fHist->Add(h); } | ||
/// | ||
template <class T> | ||
std::vector<T> GetParallelDataMembers(T* member_of_process) { |
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.
Where is this template used?
@@ -229,4 +259,9 @@ class TRestEventProcess : public TRestMetadata { | |||
|
|||
ClassDefOverride(TRestEventProcess, 3); // Base class for a REST process | |||
}; | |||
|
|||
#define _ApplyCut(evt) \ |
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.
Personally, I am not fan of macros. Also, I cannot see where this macro is used.
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.
It could used in for example in TRestRawSignalAnalysisProcess
, to replace the cut code.
if (ApplyCut()) return nullptr; return fSignalEvent;
--> _ApplyCut(fSignalEvent)
I think it is more clear to use this macro.
It sounds interesting. We also have several root files used in pipeline for process input, and generator files for NLDBD simulation. Those files are much larger than others. |
This method is used in another library repository which is not open-sourced yet. It can be useful when you have objects to fill during the process and to summarize after processing. For example we have a process that accumulates value A and B, and calculate C=A/B at the end. Then, in case of multi-thread environment, A, B and C are splited in to several parts, the calculation could be wrong. By using this method, in thread 0, we can retrieve A(B) from thread 1,2,3..., and merge them manually. Then we can correctly calculate C. |
Some bug fix and new features: