-
Notifications
You must be signed in to change notification settings - Fork 3
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
Channel manipulation in grids #149
Comments
Ok, this was simple. Done in 5f4902f. |
This will probably not do what you'd like: it only returns the first flavour combination, but discards the remaining flavour combinations and factors. |
I didn't understand... The function I put above is just to query which is the luminosity function of the given grid. It is just a read function, not one for manipulating... |
This line: 5f4902f#diff-1f7e3cc6363a7e6cbf795dc23874cf1e6c5d09b5b254ce0c8710e389f2f6badaR593 will return |
Ops, you're right... Just copied from here: But you're right of course, let me iterate even on that dimension. |
I just tested on a DIS grid, and even there it was working, but because in |
Madgraph5 doesn't and usually they're very non-trivial because we assume a diagonal CKM matrix. |
@cschwan check if now is more sensible (I checked is compiling and working, but again, on DIS; I'm going to check right now on |
That looks much better, but you're still throwing away the factors; without them the lumis are incomplete! |
I had another try :) |
See also #165, this would simplify any querying/manipulation of the lumi function. |
I don't remember any longer why this would have been useful... I still would like to be able to drop lumi channels (and consequently associated subgrids), and manipulate existing ones (i.e. manipulate/replace the content of a |
During the implementation of #199 I noticed that it's useful to have the following type of operation (and that should explain the question in #149 (comment)):
This allows to implement the following operations:
|
Another operation that we'll need is to change the factors of the luminosity function if we'd like to change the values of the CKM matrix, for instance. |
This can be done with with the |
In meantime we have quite a few operations on channels:
and also the general-purpose access methods:
which allow to change the channels arbitrarily. I'm closing this Issue, if more methods are required, please open a new Issue. |
We should expose in the Python interface a function to manipulate luminosity function (in the first place, we need such a function in the Rust library).
Of course complicate manipulation are useless, but I would add a couple of simple ones:
Both of them should not involve generating further subgrids (but possibly dropping them), since the luminosity function can already optimize for equal channels. So, they are mostly about manipulating the luminosity function itself, rather than subgrids.
Even before, I will:
Grid.lumi
in the Python interface.The text was updated successfully, but these errors were encountered: