~madteam/mg5amcnlo/series2.0

« back to all changes in this revision

Viewing changes to madgraph/interface/amcatnlo_interface.py

merge with 2.0.0beta4 revision 216

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
            if args[1] == 'virt':
68
68
                args[1] = 'loop' 
69
69
 
 
70
    def check_add(self, args):
 
71
        
 
72
        super(CheckFKS, self).check_add(args)        
 
73
        if '$' in args:
 
74
            raise self.InvalidCmd('$ syntax not valid for aMC@NLO. $$ syntax is on the other hand a valid syntax.')
 
75
 
70
76
    def check_tutorial(self, args):
71
77
        """check the validity of the line"""
72
78
        if len(args) == 0:
165
171
        if options['multicore'] and options['cluster']:
166
172
            raise self.InvalidCmd, 'options -m (--multicore) and -c (--cluster)' + \
167
173
                    ' are not compatible. Please choose one.'
168
 
        if options['noreweight'] and options['reweightonly']:
169
 
            raise self.InvalidCmd, 'options -R (--noreweight) and -R (--reweightonly)' + \
170
 
                    ' are not compatible. Please choose one.'
171
174
        if mode == 'NLO' and options['reweightonly']:
172
175
            raise self.InvalidCmd, 'option -r (--reweightonly) needs mode "aMC@NLO" or "aMC@LO"'
173
176
 
250
253
            out['Options'] = self.list_completion(text, opt, line)
251
254
        else:
252
255
 
253
 
            opt = ['-f', '-c', '-m', '-i', '-n', '-r', '-R', '-p',
 
256
            opt = ['-f', '-c', '-m', '-i', '-n', '-r', '-p', '-o',
254
257
                    '--force', '--cluster', '--multicore', '--interactive',
255
 
                    '--nocompile', '--reweightonly', '--noreweight', '--parton']
 
258
                    '--nocompile', '--reweightonly', '--parton', '--only_generation']
256
259
            out['Options'] = self.list_completion(text, opt, line)
257
260
        
258
261
 
396
399
        self.validate_model(proc_type[1])
397
400
 
398
401
        #now generate the amplitudes as usual
399
 
        self.options['group_subprocesses'] = 'False'
 
402
        #self.options['group_subprocesses'] = 'False'
400
403
        collect_mirror_procs = False
401
404
        ignore_six_quark_processes = self.options['ignore_six_quark_processes']
402
405
        if ',' in line:
646
649
_launch_parser.add_option("-r", "--reweightonly", default=False, action='store_true',
647
650
                            help="Skip integration and event generation, just run reweight on the" + \
648
651
                                 " latest generated event files (see list in SubProcesses/nevents_unweighted)")
649
 
_launch_parser.add_option("-R", "--noreweight", default=False, action='store_true',
650
 
                            help="Skip file reweighting")
651
652
_launch_parser.add_option("-p", "--parton", default=False, action='store_true',
652
653
                            help="Stop the run after the parton level file generation (you need " + \
653
654
                                    "to shower the file in order to get physical results)")
 
655
_launch_parser.add_option("-o", "--only_generation", default=False, action='store_true',
 
656
                            help="Skip grid set up, just generate events starting from " + \
 
657
                            "the last available results")
654
658