![]() |
ATLAS Offline Software
|
Functions | |
| stack_subprocess (command, **kwargs) | |
| generate_prep (process_dir) | |
| new_process (process='generate p p > t t~\noutput -f', plugin=None, keepJpegs=False, usePMGSettings=False, pdf_setting=None, devices=None, catch_errors=MADGRAPH_CATCH_ERRORS) | |
| _should_catch_errors () | |
| _write_run_card (runArgs=None, flags=None) | |
| get_pdf_setting (pdf_setting=None) | |
| get_default_runcard (process_dir=MADGRAPH_GRIDPACK_LOCATION) | |
| generate (process_dir='PROC_mssm_0', grid_pack=False, gridpack_compile=False, extlhapath=None, required_accuracy=0.01, runArgs=None, flags=None, bias_module=None, requirePMGSettings=False, pdf_setting=None) | |
| generate_from_gridpack (runArgs=None, flags=None, extlhapath=None, gridpack_compile=None, requirePMGSettings=False, pdf_setting=None) | |
| setupFastjet (process_dir=None) | |
| get_runArgs_info (runArgs=None, flags=None) | |
| get_output_txt_file (runArgs=None, flags=None) | |
| setupLHAPDF (process_dir=None, extlhapath=None, allow_links=True) | |
| setNCores (process_dir, Ncores=None) | |
| get_mg5_executable () | |
| add_lifetimes (process_dir, threshold=None) | |
| add_madspin (madspin_card=None) | |
| madspin_on_lhe (input_LHE, madspin_card, runArgs=None, keep_original=False) | |
| arrange_output (process_dir=MADGRAPH_GRIDPACK_LOCATION, lhe_version=None, saveProcDir=False, runArgs=None, flags=None, fixEventWeightsForBridgeMode=False, pdf_setting=None) | |
| get_expected_reweight_names (reweight_card_loc) | |
| get_expected_systematic_names (syst_setting) | |
| setup_bias_module (bias_module, process_dir) | |
| get_reweight_card (process_dir=MADGRAPH_GRIDPACK_LOCATION) | |
| check_reweight_card (process_dir=MADGRAPH_GRIDPACK_LOCATION) | |
| update_lhe_file (lhe_file_old, param_card_old=None, lhe_file_new=None, masses={}, delete_old_lhe=True) | |
| print_cards_from_dir (process_dir=MADGRAPH_GRIDPACK_LOCATION) | |
| print_cards (proc_card='proc_card_mg5.dat', run_card=None, param_card=None, madspin_card=None, reweight_card=None, warn_on_missing=True) | |
| is_gen_from_gridpack () | |
| modify_run_card (run_card_input=None, run_card_backup=None, process_dir=MADGRAPH_GRIDPACK_LOCATION, runArgs=None, flags=None, settings={}, skipBaseFragment=False, pdf_setting=None) | |
| modify_config_card (config_card_backup=None, process_dir=MADGRAPH_GRIDPACK_LOCATION, settings={}, set_commented=True) | |
| modify_param_card (param_card_input=None, param_card_backup=None, process_dir=MADGRAPH_GRIDPACK_LOCATION, params={}, output_location=None) | |
| get_cluster_type () | |
| add_reweighting (run_name, reweight_card=None, process_dir=MADGRAPH_GRIDPACK_LOCATION) | |
| ls_dir (directory) | |
| fix_fks_makefile (process_dir) | |
| setup_pdf_and_systematic_weights (the_base_fragment, extras, isNLO) | |
Variables | |
| mglog = Logging.logging.getLogger('MadGraphUtils') | |
| my_MGC_instance = None | |
| str | python = 'python' |
| str | MADGRAPH_GRIDPACK_LOCATION = 'madevent' |
| str | MADGRAPH_RUN_NAME = 'run_01' |
| bool | MADGRAPH_CATCH_ERRORS = True |
| list | MADGRAPH_COMMAND_STACK = [] |
|
protected |
Definition at line 86 of file MadGraphUtils.py.
Definition at line 92 of file MadGraphUtils.py.
| python.MadGraphUtils.add_lifetimes | ( | process_dir, | |
| threshold = None ) |
Add lifetimes to the generated LHE file. Should be called after generate_events is called.
Definition at line 806 of file MadGraphUtils.py.
| python.MadGraphUtils.add_madspin | ( | madspin_card = None | ) |
Run madspin on the generated LHE file. Should be run when you have inputGeneratorFile set. Only requires a simplified process with the same model that you are interested in (needed to set up a process directory for MG5_aMC)
Definition at line 847 of file MadGraphUtils.py.
| python.MadGraphUtils.add_reweighting | ( | run_name, | |
| reweight_card = None, | |||
| process_dir = MADGRAPH_GRIDPACK_LOCATION ) |
Definition at line 1633 of file MadGraphUtils.py.
| python.MadGraphUtils.arrange_output | ( | process_dir = MADGRAPH_GRIDPACK_LOCATION, | |
| lhe_version = None, | |||
| saveProcDir = False, | |||
| runArgs = None, | |||
| flags = None, | |||
| fixEventWeightsForBridgeMode = False, | |||
| pdf_setting = None ) |
Definition at line 989 of file MadGraphUtils.py.
| python.MadGraphUtils.check_reweight_card | ( | process_dir = MADGRAPH_GRIDPACK_LOCATION | ) |
Definition at line 1377 of file MadGraphUtils.py.
| python.MadGraphUtils.fix_fks_makefile | ( | process_dir | ) |
Definition at line 1655 of file MadGraphUtils.py.
| python.MadGraphUtils.generate | ( | process_dir = 'PROC_mssm_0', | |
| grid_pack = False, | |||
| gridpack_compile = False, | |||
| extlhapath = None, | |||
| required_accuracy = 0.01, | |||
| runArgs = None, | |||
| flags = None, | |||
| bias_module = None, | |||
| requirePMGSettings = False, | |||
| pdf_setting = None ) |
Definition at line 130 of file MadGraphUtils.py.
| python.MadGraphUtils.generate_from_gridpack | ( | runArgs = None, | |
| flags = None, | |||
| extlhapath = None, | |||
| gridpack_compile = None, | |||
| requirePMGSettings = False, | |||
| pdf_setting = None ) |
Definition at line 368 of file MadGraphUtils.py.
| python.MadGraphUtils.generate_prep | ( | process_dir | ) |
Definition at line 47 of file MadGraphUtils.py.
| python.MadGraphUtils.get_cluster_type | ( | ) |
Definition at line 1623 of file MadGraphUtils.py.
| python.MadGraphUtils.get_default_runcard | ( | process_dir = MADGRAPH_GRIDPACK_LOCATION | ) |
Copy the default runcard from one of several locations to a local file with name run_card.tmp.dat
Definition at line 109 of file MadGraphUtils.py.
| python.MadGraphUtils.get_expected_reweight_names | ( | reweight_card_loc | ) |
Definition at line 1287 of file MadGraphUtils.py.
| python.MadGraphUtils.get_expected_systematic_names | ( | syst_setting | ) |
Definition at line 1303 of file MadGraphUtils.py.
| python.MadGraphUtils.get_mg5_executable | ( | ) |
Definition at line 799 of file MadGraphUtils.py.
Return output TXT file path from runArgs or flags if available.
Definition at line 623 of file MadGraphUtils.py.
| python.MadGraphUtils.get_pdf_setting | ( | pdf_setting = None | ) |
Definition at line 102 of file MadGraphUtils.py.
| python.MadGraphUtils.get_reweight_card | ( | process_dir = MADGRAPH_GRIDPACK_LOCATION | ) |
Definition at line 1371 of file MadGraphUtils.py.
Return beam energy and random seed from runArgs or flags. Adding flags compatibility while clients migrate.
Definition at line 604 of file MadGraphUtils.py.
| python.MadGraphUtils.is_gen_from_gridpack | ( | ) |
Simple function for checking if there is a grid pack. Relies on the specific location of the unpacked gridpack (madevent) which is here set as a global variable. The gridpack is untarred by the transform (Gen_tf.py) and no sign is sent to the job itself that there is a gridpack in use except the file's existence
Definition at line 1571 of file MadGraphUtils.py.
| python.MadGraphUtils.ls_dir | ( | directory | ) |
Definition at line 1647 of file MadGraphUtils.py.
| python.MadGraphUtils.madspin_on_lhe | ( | input_LHE, | |
| madspin_card, | |||
| runArgs = None, | |||
| keep_original = False ) |
Run MadSpin on an input LHE file. Takes the process from the LHE file, so you don't need to have a process directory set up in advance. Runs MadSpin and packs the LHE file up appropriately Needs runArgs for the file handling
Definition at line 902 of file MadGraphUtils.py.
| python.MadGraphUtils.modify_config_card | ( | config_card_backup = None, | |
| process_dir = MADGRAPH_GRIDPACK_LOCATION, | |||
| settings = {}, | |||
| set_commented = True ) |
This is a legacy function, rather use the functions outlined in MGC.py Build a new configuration from an existing one. This function can get a fresh runcard from DATAPATH or start from the process directory. Settings is a dictionary of keys (no spaces needed) and values to replace.
Definition at line 1601 of file MadGraphUtils.py.
| python.MadGraphUtils.modify_param_card | ( | param_card_input = None, | |
| param_card_backup = None, | |||
| process_dir = MADGRAPH_GRIDPACK_LOCATION, | |||
| params = {}, | |||
| output_location = None ) |
This is a legacy function, rather use the functions outlined in MGC.py Build a new param_card.dat from an existing one. Params should be a dictionary of dictionaries. The first key is the block name, and the second in the param name. Keys can include MASS (for masses) and DECAY X (for decays of particle X)
Definition at line 1611 of file MadGraphUtils.py.
| python.MadGraphUtils.modify_run_card | ( | run_card_input = None, | |
| run_card_backup = None, | |||
| process_dir = MADGRAPH_GRIDPACK_LOCATION, | |||
| runArgs = None, | |||
| flags = None, | |||
| settings = {}, | |||
| skipBaseFragment = False, | |||
| pdf_setting = None ) |
This is a legacy function, rather use the functions outlined in MGC.py Build a new run_card.dat from an existing one. This function can get a fresh runcard from DATAPATH or start from the process directory. Settings is a dictionary of keys (no spaces needed) and values to replace.
Definition at line 1584 of file MadGraphUtils.py.
| python.MadGraphUtils.new_process | ( | process = 'generate p p > t t~\noutput -f', | |
| plugin = None, | |||
| keepJpegs = False, | |||
| usePMGSettings = False, | |||
| pdf_setting = None, | |||
| devices = None, | |||
| catch_errors = MADGRAPH_CATCH_ERRORS ) |
Definition at line 72 of file MadGraphUtils.py.
| python.MadGraphUtils.print_cards | ( | proc_card = 'proc_card_mg5.dat', | |
| run_card = None, | |||
| param_card = None, | |||
| madspin_card = None, | |||
| reweight_card = None, | |||
| warn_on_missing = True ) |
Definition at line 1526 of file MadGraphUtils.py.
| python.MadGraphUtils.print_cards_from_dir | ( | process_dir = MADGRAPH_GRIDPACK_LOCATION | ) |
Definition at line 1520 of file MadGraphUtils.py.
| python.MadGraphUtils.setNCores | ( | process_dir, | |
| Ncores = None ) |
Definition at line 781 of file MadGraphUtils.py.
| python.MadGraphUtils.setup_bias_module | ( | bias_module, | |
| process_dir ) |
Definition at line 1321 of file MadGraphUtils.py.
| python.MadGraphUtils.setup_pdf_and_systematic_weights | ( | the_base_fragment, | |
| extras, | |||
| isNLO ) |
Definition at line 1682 of file MadGraphUtils.py.
| python.MadGraphUtils.setupFastjet | ( | process_dir = None | ) |
Definition at line 573 of file MadGraphUtils.py.
Definition at line 634 of file MadGraphUtils.py.
| python.MadGraphUtils.stack_subprocess | ( | command, | |
| ** | kwargs ) |
Definition at line 42 of file MadGraphUtils.py.
| python.MadGraphUtils.update_lhe_file | ( | lhe_file_old, | |
| param_card_old = None, | |||
| lhe_file_new = None, | |||
| masses = {}, | |||
| delete_old_lhe = True ) |
Build a new LHE file from an old one and an updated param card. The masses of some particles can be changed via the masses dictionary. No particles that appear in the events may have their masses changed. If the param card is provided, the decay block in the LHE file will be replaced with the one in the param card. By default, the old LHE file is removed. If None is provided as a new LHE file name, the new file will replace the old one.
Definition at line 1413 of file MadGraphUtils.py.
| bool python.MadGraphUtils.MADGRAPH_CATCH_ERRORS = True |
Definition at line 31 of file MadGraphUtils.py.
| list python.MadGraphUtils.MADGRAPH_COMMAND_STACK = [] |
Definition at line 32 of file MadGraphUtils.py.
| str python.MadGraphUtils.MADGRAPH_GRIDPACK_LOCATION = 'madevent' |
Definition at line 27 of file MadGraphUtils.py.
| str python.MadGraphUtils.MADGRAPH_RUN_NAME = 'run_01' |
Definition at line 29 of file MadGraphUtils.py.
| python.MadGraphUtils.mglog = Logging.logging.getLogger('MadGraphUtils') |
Definition at line 19 of file MadGraphUtils.py.
| python.MadGraphUtils.my_MGC_instance = None |
Definition at line 20 of file MadGraphUtils.py.
| str python.MadGraphUtils.python = 'python' |
Definition at line 25 of file MadGraphUtils.py.