Package madgraph :: Package interface :: Module amcatnlo_run_interface
[hide private]
[frames] | no frames]

Module amcatnlo_run_interface

source code

A user friendly command line interface to access MadGraph5_aMC@NLO features. Uses the cmd package for command interpretation and tab completion.

Classes [hide private]
  aMCatNLOError
expected error for wrong command
  CmdExtended
Particularisation of the cmd command for aMCatNLO
  HelpToCmd
The Series of help routine for the aMCatNLOCmd
  CheckValidForCmd
The Series of check routine for the aMCatNLOCmd
  CompleteForCmd
The Series of help routine for the MadGraphCmd
  aMCatNLOAlreadyRunning
  AskRunNLO
  aMCatNLOCmd
The command line processor of MadGraph
  aMCatNLOCmdShell
The command line processor of MadGraph
  MyOptParser
Functions [hide private]
 
compile_dir(*arguments)
compile the direcory p_dir arguments is the tuple (me_dir, p_dir, mode, options, tests, exe, run_mode) this function needs not to be a class method in order to do the compilation on multicore
source code
 
check_compiler(options, block=False)
check that the current fortran compiler is gfortran 4.6 or later.
source code
Variables [hide private]
  GNU_SPLITTING = False
  logger = logging.getLogger('madgraph.stdout')
  logger_stderr = logging.getLogger('madgraph.stderr')
  aMCatNLO = False
  _compile_usage = 'compile [MODE] [options]\n-- compiles aMC@NL...
  _compile_parser = misc.OptionParser(usage= _compile_usage)
  _launch_usage = 'launch [MODE] [options]\n-- execute aMC@NLO \...
  _launch_parser = misc.OptionParser(usage= _launch_usage)
  _generate_events_usage = 'generate_events [MODE] [options]\n--...
  _generate_events_parser = misc.OptionParser(usage= _generate_e...
  _calculate_xsect_usage = 'calculate_xsect [ORDER] [options]\n-...
  _calculate_xsect_parser = misc.OptionParser(usage= _calculate_...
  _shower_usage = 'shower run_name [options]\n-- do shower/hadro...
  _shower_parser = misc.OptionParser(usage= _shower_usage)
  root_path = '/Users/omattelaer/Documents/workspace/madgraph5/M...
  usage = "usage: %prog [options] [FILE] "
  parser = MyOptParser(usage= usage)
  parser_error = ''
  done = False
  args = ''
  level = eval('logging.'+ options.logging)
  i = args.index('--web')
  cmd_line = aMCatNLOCmdShell(me_dir= os.path.dirname(root_path)...
  __package__ = 'madgraph.interface'
Function Details [hide private]

check_compiler(options, block=False)

source code 

check that the current fortran compiler is gfortran 4.6 or later. If block, stops the execution, otherwise just print a warning


Variables Details [hide private]

_compile_usage

Value:
'''compile [MODE] [options]
-- compiles aMC@NLO 
   MODE can be either FO, for fixed-order computations, 
   or MC for matching with parton-shower monte-carlos. 
   (if omitted, it is set to MC)
'''

_launch_usage

Value:
'''launch [MODE] [options]
-- execute aMC@NLO 
   MODE can be either LO, NLO, aMC@NLO or aMC@LO (if omitted, it is as\
ked in a separate question)
     If mode is set to LO/NLO, no event generation will be performed, \
but only the 
     computation of the total cross section and the filling of parton-\
level histograms 
...

_generate_events_usage

Value:
'''generate_events [MODE] [options]
-- execute aMC@NLO 
   MODE can be either LO, NLO, aMC@NLO or aMC@LO (if omitted, it is as\
ked in a separate question)
     If mode is set to LO/NLO, no event generation will be performed, \
but only the 
     computation of the total cross section and the filling of parton-\
level histograms 
...

_generate_events_parser

Value:
misc.OptionParser(usage= _generate_events_usage)

_calculate_xsect_usage

Value:
'''calculate_xsect [ORDER] [options]
-- calculate cross section up to ORDER.
   ORDER can be either LO or NLO (if omitted, it is set to NLO). 
'''

_calculate_xsect_parser

Value:
misc.OptionParser(usage= _calculate_xsect_usage)

_shower_usage

Value:
'''shower run_name [options]
-- do shower/hadronization on parton-level file generated for run run_\
name
   all the information (e.g. number of events, MonteCarlo, ...
   are directly read from the header of the event file
'''

root_path

Value:
'/Users/omattelaer/Documents/workspace/madgraph5/MG5_aMC_v2_6_5'

cmd_line

Value:
aMCatNLOCmdShell(me_dir= os.path.dirname(root_path), force_run= True)