-
Notifications
You must be signed in to change notification settings - Fork 58
Closed
Description
@pianonick411, we have discussed this in the past, but I'm opening an issue to avoid forgetting this.
The current handling of computeprop in MELAProbHelper.py is inconsistent:
- The variable
<Name>_propis always created ifcomputeprop==True[here] - at filling stage [here], this variable is filled only if
Prod==True or Dec==True
I still do not fully understand the logic of when computeprop should be legal - it looks like the elif MELA_computeprop: at L187 is now indented one level too much, because L188 should be executed if MELA_computeprop and MELA_ispm4l - right?
But even in this case, either of the following should happen:
probPropVec[iCand]should be used in both cases if the "nominal" probability variable is relevant in both cases, and the result ofgetXPropagatoris required as an additional variable to it- if the "nominal" probability variable is required only
if not ispm4land would not make sense otherwise, and you decide that it makes more sense to overwrite it with the result ofgetXPropagator, then the variable<Name>_propshould not be booked at all in this case (it will store a meaningless value otherwise, since it is booked but not filled).
But I think it would make more sense to always use the same variable for a given quantity, and not to change its meaning based on other flags.
Metadata
Metadata
Assignees
Labels
No labels