Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Flow modulated CS subtraction for heavy ions #30057
Flow modulated CS subtraction for heavy ions #30057
Changes from 9 commits
ab78b11
72a0a56
793ec3c
273940e
f18011b
84041f2
8c0db1b
d4b72a6
a0e1538
1839096
e6189c3
e865781
f2c6d16
daf657b
62a1138
c226d35
1f6f809
027d512
98d7ea0
5c8bc8e
922e835
c2b6c81
05f2e98
968daf9
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
use
std::array<double, 9>
(or,nParamVals
) instead to be more explicit about the sizeThere 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.
Sorry can't figure that out,
auto rhoFlowFitParamsOut = std::make_unique<std::array<double, nParamVals>>
not seem to workThere 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.
what was the error?
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.
Probably just doing something wrong
error: pointer to a function used in arithmetic [-Werror=pointer-arith] rhoFlowFitParamsOut[0] = 0; error: assignment of read-only location '**rhoFlowFitParamsOut' rhoFlowFitParamsOut[0] = 0;
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.
but this looks more like about
(*rhoFlowFitParamsOut)[0]
vsrhoFlowFitParamsOut[0]
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.
Adding the array to
StdDictionaries
gives an error during compilation:Error: It is not necessary to explicitly select class array<double,9>. I/O is supported for it transparently.
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.
The symptoms (ROOT saying it has a dictionary, framework that it has not) smell similar to #27861. I'll take a look.
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.
The cause is different from #27861, and may take some time to resolve. I opened an issue for it #30493.
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.
In case the resolution will take longer than ~today, I'm willing to accept the current vector solution for this product.
With an assumption/note that it can/should be updated once the framework has support for array.
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.
Almost certainly will take longer than today.
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 think that the histogram re-creation per event can be rather heavy.
Moving this to the module creation would be more practical, even considering that we need variants with 3 to 10 bins.
Please add the following to the instances
also, use unique_ptr instead of plain pointers.
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's not like that actually, it's
std::max(10, nFill / 30);
so not sure that we can avoid histogram re-creationThere 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.
Let's try to be more specific/practical then.
what's the current cost per event?
please get a timing measurement per event (TimeReport is good enough) and a profiler report for CPU https://twiki.cern.ch/twiki/bin/viewauth/CMS/RecoIntegration#Run_profiler_igprof
this should help to understand if something other than TH1 should be used or if TH1 is acceptable.
Thank you.
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.
That's time in seconds averaged over 10 events
hiPuRhoProducer 0.3736367 hiFJRhoFlowModulationProducer 0.001974513 CSJetProducer 0.630398
For profiler report,
hiFJRhoFlowModulationProducer
is mentioned a couple of times like:0.0 ......... 0.00 / 0.00 HiFJRhoFlowModulationProducer::produce(edm::Event&, edm::EventSetup const&) [11411]
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.
thank you.
please share the full report.
Also, please check/clarify what input data is used; it is important to have most events to pass
if (nFill >= 100 && eventPlane2 > -99) {
for this check to make senseThere 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.
profiler report link
time report link
10 out of 10 events have passed this check, but I'll take a look at a larger sample