![]() |
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, process_dir=MADGRAPH_GRIDPACK_LOCATION) | |
| 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) | |
| 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 87 of file MadGraphUtils.py.
Definition at line 93 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 820 of file MadGraphUtils.py.
| python.MadGraphUtils.add_madspin | ( | madspin_card = None, | |
| process_dir = MADGRAPH_GRIDPACK_LOCATION ) |
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 861 of file MadGraphUtils.py.
| python.MadGraphUtils.add_reweighting | ( | run_name, | |
| reweight_card = None, | |||
| process_dir = MADGRAPH_GRIDPACK_LOCATION ) |
Definition at line 1799 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 1002 of file MadGraphUtils.py.
| python.MadGraphUtils.check_reweight_card | ( | process_dir = MADGRAPH_GRIDPACK_LOCATION | ) |
Definition at line 1387 of file MadGraphUtils.py.
| python.MadGraphUtils.fix_fks_makefile | ( | process_dir | ) |
Definition at line 1821 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 131 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 382 of file MadGraphUtils.py.
| python.MadGraphUtils.generate_prep | ( | process_dir | ) |
Definition at line 48 of file MadGraphUtils.py.
| python.MadGraphUtils.get_cluster_type | ( | ) |
Definition at line 1789 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 110 of file MadGraphUtils.py.
| python.MadGraphUtils.get_expected_reweight_names | ( | reweight_card_loc | ) |
Definition at line 1297 of file MadGraphUtils.py.
| python.MadGraphUtils.get_expected_systematic_names | ( | syst_setting | ) |
Definition at line 1313 of file MadGraphUtils.py.
| python.MadGraphUtils.get_mg5_executable | ( | ) |
Definition at line 813 of file MadGraphUtils.py.
Return output TXT file path from runArgs or flags if available.
Definition at line 637 of file MadGraphUtils.py.
| python.MadGraphUtils.get_pdf_setting | ( | pdf_setting = None | ) |
Definition at line 103 of file MadGraphUtils.py.
| python.MadGraphUtils.get_reweight_card | ( | process_dir = MADGRAPH_GRIDPACK_LOCATION | ) |
Definition at line 1381 of file MadGraphUtils.py.
Return beam energy and random seed from runArgs or flags. Adding flags compatibility while clients migrate.
Definition at line 618 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 1581 of file MadGraphUtils.py.
| python.MadGraphUtils.ls_dir | ( | directory | ) |
Definition at line 1813 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 915 of file MadGraphUtils.py.
| python.MadGraphUtils.modify_config_card | ( | config_card_backup = None, | |
| process_dir = MADGRAPH_GRIDPACK_LOCATION, | |||
| settings = {}, | |||
| set_commented = True ) |
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 1729 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 ) |
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 1594 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 73 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 1536 of file MadGraphUtils.py.
| python.MadGraphUtils.print_cards_from_dir | ( | process_dir = MADGRAPH_GRIDPACK_LOCATION | ) |
Definition at line 1530 of file MadGraphUtils.py.
| python.MadGraphUtils.setNCores | ( | process_dir, | |
| Ncores = None ) |
Definition at line 795 of file MadGraphUtils.py.
| python.MadGraphUtils.setup_bias_module | ( | bias_module, | |
| process_dir ) |
Definition at line 1331 of file MadGraphUtils.py.
| python.MadGraphUtils.setup_pdf_and_systematic_weights | ( | the_base_fragment, | |
| extras, | |||
| isNLO ) |
Definition at line 1848 of file MadGraphUtils.py.
| python.MadGraphUtils.setupFastjet | ( | process_dir = None | ) |
Definition at line 587 of file MadGraphUtils.py.
Definition at line 648 of file MadGraphUtils.py.
| python.MadGraphUtils.stack_subprocess | ( | command, | |
| ** | kwargs ) |
Definition at line 43 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 1423 of file MadGraphUtils.py.
| bool python.MadGraphUtils.MADGRAPH_CATCH_ERRORS = True |
Definition at line 32 of file MadGraphUtils.py.
| list python.MadGraphUtils.MADGRAPH_COMMAND_STACK = [] |
Definition at line 33 of file MadGraphUtils.py.
| str python.MadGraphUtils.MADGRAPH_GRIDPACK_LOCATION = 'madevent' |
Definition at line 28 of file MadGraphUtils.py.
| str python.MadGraphUtils.MADGRAPH_RUN_NAME = 'run_01' |
Definition at line 30 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 26 of file MadGraphUtils.py.