~madteam/mg5amcnlo/series2.0

« back to all changes in this revision

Viewing changes to madgraph/interface/master_interface.py

  • Committer: olivier Mattelaer
  • Date: 2015-03-05 00:14:16 UTC
  • mfrom: (258.1.9 2.3)
  • mto: (258.8.1 2.3)
  • mto: This revision was merged to the branch mainline in revision 259.
  • Revision ID: olivier.mattelaer@uclouvain.be-20150305001416-y9mzeykfzwnl9t0j
partial merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
206
206
                    self.change_principal_cmd('aMC@NLO')
207
207
                elif nlo_mode == 'virt' or nlo_mode == 'sqrvirt':
208
208
                    self.change_principal_cmd('MadLoop')
209
 
                    
210
 
        return self.cmd.do_add(self, line, *args, **opts)
 
209
                elif nlo_mode == 'noborn': 
 
210
                    self.change_principal_cmd('MadLoop')
 
211
                    self.cmd.validate_model(self, loop_type=nlo_mode,
 
212
                                                            coupling_type=orders)
 
213
                    self.change_principal_cmd('MadGraph')
 
214
                    return self.cmd.create_loop_induced(self, line, *args, **opts)
 
215
        try:
 
216
            return  self.cmd.do_add(self, line, *args, **opts)
 
217
        except fks_base.NoBornException:
 
218
            logger.info("No Born diagrams found. Now switching to loop-induced mode.", '$MG:color:BLACK')
 
219
            self.change_principal_cmd('MadGraph')
 
220
            return self.cmd.create_loop_induced(self, line, *args, **opts)
 
221
 
211
222
        
212
223
    def do_check(self, line, *args, **opts):
213
224