~maddevelopers/mg5amcnlo/2.6.6_bug_1813292

« back to all changes in this revision

Viewing changes to madgraph/madweight/write_MadWeight.py

  • Committer: olivier-mattelaer
  • Date: 2017-05-26 07:48:55 UTC
  • mfrom: (271.1.33 2.5.5)
  • Revision ID: olivier-mattelaer-20170526074855-r463wfxlom110fiu
passĀ theĀ 2.5.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
        data = []
165
165
        
166
166
        for part in self.prop_content:
167
 
            if part.mass:
 
167
            if part.mass and part.level > 0:
168
168
                mass = self.dict_Fmass[abs(part.pid)]
169
169
                width = self.dict_Fwidth[abs(part.pid)]
170
170
                content = [p.MG for p in get_all_child(part)]
 
171
                if 1 in content or 2 in content:
 
172
                    continue
171
173
                content.append(0)
172
174
                initcontent = "\n".join("""          content(%i) = %i""" % (a+1, b) for a,b in enumerate(content))
173
175
                if mass.lower() == 'zero' or width.lower() == 'zero':