-
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
TRestEventRateAnalysisProcess: auto adjust under single/multi thread condition #171
Conversation
source/framework/analysis/src/TRestEventRateAnalysisProcess.cxx
Outdated
Show resolved
Hide resolved
What about this PR? Should be approved or closed? |
still waiting for approval |
if (fRateAnalysis) { | ||
RESTMetadata << "Rate analysis is on under single thread mode" << RESTendl; | ||
} | ||
else { | ||
RESTMetadata << "Rate analysis is off due to multi-thread" << RESTendl; | ||
} |
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.
if (fRateAnalysis) { | |
RESTMetadata << "Rate analysis is on under single thread mode" << RESTendl; | |
} | |
else { | |
RESTMetadata << "Rate analysis is off due to multi-thread" << RESTendl; | |
} | |
if (fRateAnalysis) { | |
RESTMetadata << "Rate analysis is on under single thread mode" << RESTendl; | |
} | |
else { | |
RESTMetadata << "Rate analysis is off due to multi-thread" << RESTendl; | |
} |
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.
Feel free to ignore the whitespace.
The observable
SecondsFromStart
andHoursFromStart
inTRestEventRateAnalysisProcess
are not single thread observables. We can preserve multi-thread run forTRestEventRateAnalysisProcess
if we don't need the rate observables.So this PR changes: if
TRestEventRateAnalysisProcess
detects that it is being running under multi-thread, it will turn off the observableEventTimeDelay
andMeanRate_InHz
automatically.