Skip to content

Conversation

FlorianReiss
Copy link
Member

@FlorianReiss FlorianReiss commented May 14, 2021

try to fix two problems when using cached values in Amp3Body

  • the EventIndex used by the calculators always started at zero, so that it ran always over the events at the beginning of the event array when calculating the cached values. This is fixed by adding the option to define an offset in SetDataSize. The offset needs to be the number of preceding events when one tries to fit multiple samples.
  • the MEMCPY to cResonances overwrites the previous values if one has more instances of Amp3Body. This is fixed using the already existing cacheToUse as offset. Added the function resetCacheCounter to reset the counter used for the offset. This can be useful for plotting the results.
    The MR is made on top of other changes. For easier overlook of the changes, see here
  • update test for EventWeightedAddPdf

addresses #262 #263

@danielsibemol
Copy link
Contributor

@FlorianReiss, the OMP build test seems to be failing because of an error in src/goofit/FitManagerMinuit2.cpp. That looks a bit strange because as far as I can see there are no changes that should affect that piece of code. Would you have any idea of what would be causing it?

@FlorianReiss
Copy link
Member Author

@FlorianReiss, the OMP build test seems to be failing because of an error in src/goofit/FitManagerMinuit2.cpp. That looks a bit strange because as far as I can see there are no changes that should affect that piece of code. Would you have any idea of what would be causing it?

no, I can't think of anything that would cause this. The only explanation I have that I did not see this issue when compiling is that I picked up Minuit from my local ROOT installation, while this test uses the external one, which might be a different version

@henryiii henryiii closed this May 27, 2021
@henryiii henryiii reopened this May 27, 2021
@FlorianReiss FlorianReiss changed the title Draft: fix offsets used in Amp3Body for cached values fix offsets used in Amp3Body for cached values Jun 4, 2021
@FlorianReiss FlorianReiss marked this pull request as ready for review June 4, 2021 19:08
@FlorianReiss
Copy link
Member Author

@danielsibemol I merged with master and fixed the conflicts. I don't quite understand why the tests are still failing. Could you please have a look?

@danielsibemol
Copy link
Contributor

@danielsibemol I merged with master and fixed the conflicts. I don't quite understand why the tests are still failing. Could you please have a look?

It seems to be having problems getting the proper members from minuit. I'll take a look and try to understand why

…ooFit into freiss_fixAmp3BodyOffsets

Getting latest change from remote
@danielsibemol
Copy link
Contributor

@danielsibemol I merged with master and fixed the conflicts. I don't quite understand why the tests are still failing. Could you please have a look?

It seems to be having problems getting the proper members from minuit. I'll take a look and try to understand why

@FlorianReiss , I think think a small adjustment was necessary in the if conditions for minuit2 since our extern minuit2 was not updated yet. Let's see how the tests go.

@henryiii
Copy link
Member

If I put #269 in, @FlorianReiss are you okay if I do a rebase & force push, or would you rather I do a traditional merge to update this PR with the contents of #269?

@henryiii
Copy link
Member

With so many unsquashed commits, rebasing looked tricky - did a standard merge instead.

@FlorianReiss
Copy link
Member Author

@danielsibemol @henryiii sorry, I didn't realize that this MR was being hold up by a failing test. I modified the test for EventWeightedAddPdf to address this

@danielsibemol danielsibemol merged commit dce345d into GooFit:master Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants