Skip to content
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

Is matching_order correctly determined? #322

Closed
felixhekhorn opened this issue Nov 7, 2023 · 8 comments · Fixed by #323
Closed

Is matching_order correctly determined? #322

felixhekhorn opened this issue Nov 7, 2023 · 8 comments · Fixed by #323
Labels
bug Something isn't working

Comments

@felixhekhorn
Copy link
Contributor

felixhekhorn commented Nov 7, 2023

Actually here I think we have introduced a bug.
matching_order follows PTO (ie is 2 for NNLO) so here we should subtract one, once doing the default, no?

Originally posted by @giacomomagni in #299 (comment)

@felixhekhorn felixhekhorn added the bug Something isn't working label Nov 7, 2023
@felixhekhorn
Copy link
Contributor Author

hmm? to me it seems the LHA benchmarks have passed, which should test the default - and also the N3LO benchmarks seemed alright, which should test the overwriting ... or do you mean we can no longer access the N3LO matching?

@niclaurenti
Copy link
Contributor

niclaurenti commented Nov 7, 2023

Hi @giacomomagni and @felixhekhorn , but looking at

matching_order must be 2 at NNLO:
It should be $\delta_{ij}$ at LO, $a_s A^{(1)}$ at NLO and $a_s^2 A^{(2)}$ at NNLO.

@giacomomagni
Copy link
Collaborator

Indeed, we matching_oder should have a shift wrt to order.
@felixhekhorn I think this bug affects only the "new runcards", while in the LH benchmarks run through the old format no ?

@felixhekhorn
Copy link
Contributor Author

Okay, so you are worried about this line specifically:

else tcard.order,

then maybe I agree with you, there is a bug - do you agree as well @niclaurenti ? When fixing this, we should provide also a unit test

@niclaurenti
Copy link
Contributor

Ok @giacomomagni you are right. Sorry for doubting.
Previously I did a test with the "old runcards" (via apfel_bench.py) and it was ok.
Now I did another one with the new ones and in build_ome we have matching_order=(3,0) at NNLO.

The point in which it must be changed is:

https://github.com/NNPDF/eko/blob/10f0733635c012ce7e1f0fd4cdfc497619292830/src/eko/evolution_operator/operator_matrix_element.py#L167C17-L167C17

@giacomomagni
Copy link
Collaborator

Ok @giacomomagni you are right. Sorry for doubting. Previously I did a test with the "old runcards" (via apfel_bench.py) and it was ok. Now I did another one with the new ones and in build_ome we have matching_order=(3,0) at NNLO.

The point in which it must be changed is:

https://github.com/NNPDF/eko/blob/10f0733635c012ce7e1f0fd4cdfc497619292830/src/eko/evolution_operator/operator_matrix_element.py#L167C17-L167C17

mmm wait, now I disagree. We should just adjust the lines modified in that PR.
In particular:

https://github.com/NNPDF/eko/blob/10f0733635c012ce7e1f0fd4cdfc497619292830/src/eko/runner/parts.py#L92C1-L93

@felixhekhorn
Copy link
Contributor Author

The point in which it must be changed is:

https://github.com/NNPDF/eko/blob/10f0733635c012ce7e1f0fd4cdfc497619292830/src/eko/evolution_operator/operator_matrix_element.py#L167C17-L167C17

I agree with @giacomomagni:

  1. we need to change there
  2. on top we should drop
    if new_theory.matching_order is not None
    else new_theory.order,
    because after
    new_theory, new_operator = runcards.update(theory_card, operators_card)
    new_theory has matching_order https://github.com/NNPDF/eko/blob/10f0733635c012ce7e1f0fd4cdfc497619292830/src/eko/io/runcards.py#L216C14-L216C28 (this is the reason why "old style" was working)

@niclaurenti
Copy link
Contributor

Yes I agree, I've read Felix's comment after posting mine

giacomomagni added a commit that referenced this issue Nov 7, 2023
@giacomomagni giacomomagni linked a pull request Nov 7, 2023 that will close this issue
felixhekhorn added a commit that referenced this issue Nov 7, 2023
giacomomagni added a commit that referenced this issue Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants