~maddevelopers/mg5amcnlo/1.4.7

« back to all changes in this revision

Viewing changes to madgraph/core/diagram_generation.py

  • Committer: Johan Alwall
  • Date: 2012-06-23 04:33:29 UTC
  • Revision ID: johan@alwall.net-20120623043329-tkf7nxgfa1ubw1n5
Fixed problem with automatic finding of WEIGHTED orders for effective theories

Show diffs side-by-side

added added

removed removed

Lines of Context:
1478
1478
        fsids = [leg['ids'] for leg in \
1479
1479
                 filter(lambda leg: leg['state'] == True, process_definition['legs'])]
1480
1480
 
 
1481
        max_WEIGHTED_order = \
 
1482
                        (len(fsids + isids) - 2)*int(model.get_max_WEIGHTED())
 
1483
 
1481
1484
        # Run diagram generation with increasing max_order_now until
1482
1485
        # we manage to get diagrams
1483
 
        while max_order_now < len(fsids)*max(hierarchy):
 
1486
        while max_order_now < max_WEIGHTED_order:
1484
1487
 
1485
1488
            logger.info("Trying coupling order WEIGHTED=%d" % max_order_now)
1486
1489
 
1577
1580
            logger.setLevel(oldloglevel)
1578
1581
 
1579
1582
        # If no valid processes found with nfinal-1 couplings, return maximal
1580
 
        return {coupling: len(fsids)*max(hierarchy)}
 
1583
        return {coupling: max_order_now}
1581
1584
 
1582
1585
    @staticmethod
1583
1586
    def cross_amplitude(amplitude, process, org_perm, new_perm):