Cannot reweight decay processes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MadGraph5_aMC@NLO |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi,
I cannot reweight simple decay processes with MG2.6.0. For example z>ee:
generate z > e- e+
output
using a reweight_card.dat with only one line:
launch
crashes with the following error:
Command "reweight /Users/
TypeError : 'numpy.int32' object is not iterable
Please report this bug on https:/
More information is found in '/Users/
Please attach this file to your report.
The log file is attached. t>bW has the same problem. Production processes seem to work fine.
Thank you,
Cen
Changed in mg5amcnlo: | |
status: | New → Confirmed |
Changed in mg5amcnlo: | |
status: | Fix Committed → Fix Released |
Hi Cen,
Thanks for the report,
Note that using the reweighting package for 1>2 seems a huge overkill to me.
For each hypothesis, the matrix-element is independent of the kinematic. So evaluating a single PS point is enough for doing a re-weighting. (fact which is obviously not used by the code).
Otherwise here is the patch to make it work:
=== modified file 'madgraph/ interface/ reweight_ interface. py' interface/ reweight_ interface. py 2018-01-18 12:34:20 +0000 interface/ reweight_ interface. py 2018-02-08 09:44:27 +0000
--- madgraph/
+++ madgraph/
@@ -1741,11 +1741,12 @@
for i,pdg in enumerate( all_pdgs) :
outgoing = pdg[1:]
else:
incoming = pdg[0:2]
outgoing = pdg[2:]
if self.is_decay:
- incoming = pdg[0]
+ incoming = [pdg[0]]