Skip to content

Conversation

marthaisabelhilton
Copy link
Collaborator

@marthaisabelhilton marthaisabelhilton commented Oct 4, 2021

  • Add CP-violation to Amp3Body_TD
  • CPV formalism is in terms of the variables delta x and delta y which define the mixing parameters differently for D0 and D0bar.
  • This compiles with cmake .. -DGOOFIT_DEVICE=OMP -DGOOFIT_EXAMPLES=OFF This needs work to work with the examples since in pipipi0 there is no CPV so throws an error.
  • Add charm tag observable to Amp3Body_TD
  • Add functions to Amp3Body_TD and python bindings (setD0Fraction, getD0Fraction)
  • Add getFractions() function which prints the fit fractions and interference fit fractions of the resonances in the amplitude model.

@marthaisabelhilton
Copy link
Collaborator Author

Hello @henryiii @danielsibemol I think the checks are failing because of the submodules? Please can you check?

@henryiii
Copy link
Member

henryiii commented Oct 4, 2021

Eigen was accidentally deleted this weekend (!), so that's a bit of a mess right now. Should come back online soon, they are working with GitLab to get it restored.

@henryiii henryiii closed this Oct 4, 2021
@henryiii henryiii reopened this Oct 4, 2021
@marthaisabelhilton
Copy link
Collaborator Author

marthaisabelhilton commented Oct 5, 2021

Ok thanks @henryiii so now the checks are failing as expected because the pipipi0 example doesn't work. So we need to either:

  • Change the pipipi0 example to include CPV or
  • make deltax and deltay optional parameters (I'm not sure how to do this)

Can someone comment on what we think is the best solution? @danielsibemol @FlorianReiss

@FlorianReiss
Copy link
Member

Ok thanks @henryiii so now the checks are failing as expected because the pipipi0 example doesn't work. So we need to either:

* Change the pipipi0 example to include CPV or

* make deltax and deltay optional parameters (I'm not sure how to do this)

Can someone comment on what we think is the best solution? @danielsibemol @FlorianReiss

to me the quickest solution seems to be to include CPV in the example. Maybe setting it constant to zero to recover the previous behaviour of the test

@danielsibemol
Copy link
Contributor

@marthaisabelhilton, @FlorianReiss, are deltax and deltay going to be fit? If that's the case, I suppose the easiest solution is to add them as fixed to 0 in the example as Florian suggested

@marthaisabelhilton
Copy link
Collaborator Author

Hi @danielsibemol @henryiii the tests are failing with a segmentation fault in the pipipi0 test please can you have a look? It seems to be failing when reading the data which shouldn't be affected by the changes on this MR?

@marthaisabelhilton
Copy link
Collaborator Author

Okay @danielsibemol @FlorianReiss this has been fixed now although I'm not sure it's a great solution. I have made the mistag and charmtag variables compulsory - not optional and changed the pipipi0 example to include these variables, set to zero.

@FlorianReiss
Copy link
Member

Okay @danielsibemol @FlorianReiss this has been fixed now although I'm not sure it's a great solution. I have made the mistag and charmtag variables compulsory - not optional and changed the pipipi0 example to include these variables, set to zero.

to me that seems like a pragmatic solution for the moment

@henryiii
Copy link
Member

This still has "WIP" in the title? Is it ready for review?

@marthaisabelhilton
Copy link
Collaborator Author

Hi @henryiii it is ready for review yes. I have included CP violation and changed the example so that it works with my changes. The only problem is that it would not be backwards compatible as any code which does not include CPV would not work with my proposed changes. Cheers.

@mdsokoloff mdsokoloff merged commit a956112 into master Apr 27, 2022
@mdsokoloff mdsokoloff deleted the martha_fix_cpv branch April 27, 2022 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants