~maddevelopers/mg5amcnlo/3.4.0

« back to all changes in this revision

Viewing changes to MadSpin/interface_madspin.py

  • Committer: olivier-mattelaer
  • Date: 2022-05-06 14:33:10 UTC
  • mfrom: (78.444.109 2.9.4)
  • mto: This revision was merged to the branch mainline in revision 1007.
  • Revision ID: olivier-mattelaer-20220506143310-8539p7zspd20oipd
pass to 2.9.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
249
249
                self.options['nb_sigma'] = N_sigma
250
250
            if self.options['BW_cut'] == -1:
251
251
                self.options['BW_cut'] = float(self.banner.get_detail('run_card', 'bwcutoff'))
 
252
                if self.options['BW_cut'] > 25:
 
253
                    logger.critical("value of bwcutoff set to %s from the input file. This is much too large value for Madspin and the validity of the Narrow-width-Approximation. Please ensure that you overwrite that value via \"set BW_cut X\"  to a smaller value (like X=10)", self.options['BW_cut'])
252
254
            
253
255
            if isinstance(run_card, banner.RunCardLO):
254
256
                run_card.update_system_parameter_for_include()
637
639
                logger.info("Nothing to decay ...")
638
640
                return
639
641
        
 
642
        if self.options['BW_cut'] > 100:
 
643
            raise Exception("BW_cut parameter is much too large (>100) for narrow width approximation. Please set it up to a smaller value in your madspin_card.dat")
640
644
 
641
645
        model_line = self.banner.get('proc_card', 'full_model_line')
642
646