~madteam/mg5amcnlo/series2.0

« back to all changes in this revision

Viewing changes to madgraph/various/diagram_symmetry.py

  • Committer: olivier-mattelaer
  • Date: 2019-09-26 11:09:58 UTC
  • mfrom: (282.1.19 2.6.7)
  • mto: (283.1.18 2.7.0)
  • mto: This revision was merged to the branch mainline in revision 284.
  • Revision ID: olivier-mattelaer-20190926110958-38wrjh8hemq9zibw
merge with 2.6.7 + change L meaning for spin1 

Show diffs side-by-side

added added

removed removed

Lines of Context:
348
348
        interaction color, mass, width."""
349
349
 
350
350
        inter = model.get_interaction(vertex.get('id'))
351
 
                   
 
351
            
352
352
        if last_vertex:
353
353
            return (0,)
354
354
        else:
355
355
            part = model.get_particle(vertex.get('legs')[-1].get('id'))
 
356
            try:
 
357
                QCD = inter.get('orders')['QCD']
 
358
            except Exception, error:
 
359
                QCD = 0
 
360
 
356
361
            return ((part.get('color'),
357
 
                     part.get('mass'), part.get('width')),)
 
362
                     part.get('mass'), part.get('width'), QCD),)
358
363
 
359
364
def find_symmetry_subproc_group(subproc_group):
360
365
    """Find symmetric configs by directly comparing the configurations