Allow different matching scale for the photon #1751
Conversation
Anyway, if no one has better suggestions, I would add these new theories to the |
From what I understand, a given theory will only have one matching scale. So if I have theory 523 I will have q_matching=100 GeV, right? So that information should be in the theory database. |
|
@scarlehoff You mean that we should add an entry |
|
Yes. But for now it should be added to the description so that the information is there. |
Yes this seems like a good idea.
I believe this still needs to be done. I.e. adding under "Comments" the matching scale. |
scarlehoff
left a comment
There was a problem hiding this comment.
It would be good to have theory 398 ready soonish in order to make sure these changes didn't break anything. Also because the tests should've told us that the photon was broken for the new versions of eko (but it didn't because there aren't of course)
RE this PR, from now on the input scale of the photon is read from eko and, since for one theory it will be fixed. But since we don't have that entry because it used to be just 100 GeV, the Q_in of the eko is written in the description. Is that correct?
Yes I'm working on it :)
Exactly, I have added three theories (524, 525, 526) that are identical to 523 but have a different Q_IN and it is spelled out in the description of the theory |
| # Apply EKO to PDFs | ||
| q2 = eko.mu2grid[0] | ||
| with eko.operator(q2) as elem: | ||
| for _, elem in eko.items(): |
There was a problem hiding this comment.
Using a for loop assuming that there is a single element is not the best style ever...
If you only care about the first one, you could use next(iter(eko)) to get the index you need.
Opening this PR to allow different matching scale for the photon. With matching scale here I mean the scale at which the photon is generated (that now is hardcoded to 100 GeV), and not the scale at which we change
nfin theVFNS(I know, it is a bit confusing).The matching scale will be read from the
eko_photon.tarso it will not be neither in the runcard, nor in the theory card.It means that there will be some copies of theory 523 that will change only for
eko_photon.tar.Honestly, I don't like very much the idea that in order to find out what the matching scale is for a given theory, one has to open
eko_photon.tarand readeko_photon.mu20so if you have better ideas please let me knowedit: in this PR i will also upgrade the photon branch to eko 0.13