HPS-MC
 
Loading...
Searching...
No Matches
MG4 Class Reference

Run the MadGraph 4 event generator. More...

Inheritance diagram for MG4:
MG EventGenerator Component

Public Member Functions

 __init__ (self, name='ap', **kwargs)
 
 get_install_dir (self)
 Get installation directory of MadGraph4.
 
 setup (self)
 Setup MadGraph4 generator.
 
 execute (self, log_out, log_err)
 Execute MadGraph4 generator.
 
- Public Member Functions inherited from MG
 output_files (self)
 Generate output file name.
 
 set_parameters (self, params)
 Set parameters.
 
 required_parameters (self)
 Return required parameters.
 
 optional_parameters (self)
 Return optional parameters.
 
 make_run_card (self, run_card)
 Make run card.
 
 make_param_card (self, param_card)
 Make parameter card.
 
 cmd_args (self)
 Return command arguments.
 
- Public Member Functions inherited from Component
 cmd_line_str (self)
 
 cmd_exists (self)
 Check if the component's assigned command exists.
 
 cmd_args_str (self)
 Return list of arguments, making sure they are all converted to strings.
 
 cleanup (self)
 Perform post-job cleanup such as deleting temporary files.
 
 config_logging (self, parser)
 Configure the logging for a component.
 
 config (self, parser)
 Automatic configuration.
 
 required_config (self)
 Return a list of required configuration settings.
 
 check_config (self)
 Raise an exception on the first missing config setting for this component.
 
 input_files (self)
 Get a list of input files for this component.
 
 config_from_environ (self)
 Configure component from environment variables which are just upper case versions of the required config names set in the shell environment.
 

Public Attributes

 name
 
 event_dir
 
 command
 
 rundir
 
- Public Attributes inherited from MG
 madgraph_dir
 Install dir or user config will be used for this.
 
 param_card
 Default name of param card.
 
 apmass
 A-prime mass.
 
 map
 A-prime mass.
 
 Map
 A-prime mass.
 
 mpid
 dark pion mass
 
 mrhod
 dark rho mass
 
 mchi
 average dark fermion mass when running idm
 
 dmchi
 difference between dark fermion masses when running idm
 
 event_types
 event types: weighted or unweighted
 
 run_card
 
 nevents
 
 seed
 
 command
 
 name
 
- Public Attributes inherited from Component
 name
 
 command
 
 nevents
 
 seed
 
 inputs
 
 outputs
 
 append_tok
 
 output_ext
 
 ignore_job_params
 
 hpsmc_dir
 
 logger
 

Static Public Attributes

dict dir_map
 

Additional Inherited Members

- Protected Member Functions inherited from Component
 _inputs_to_outputs (self)
 This is the default method for automatically transforming input file names to outputs when output file names are not explicitly provided.
 

Detailed Description

Run the MadGraph 4 event generator.

Definition at line 334 of file generators.py.

Constructor & Destructor Documentation

◆ __init__()

__init__ (   self,
  name = 'ap',
**  kwargs 
)

Reimplemented from MG.

Definition at line 346 of file generators.py.

Member Function Documentation

◆ execute()

execute (   self,
  log_out,
  log_err 
)

Execute MadGraph4 generator.

Parameters
log_outname of log file for output
log_errname of log file for error
Returns
error code

Reimplemented from MG.

Definition at line 388 of file generators.py.

◆ get_install_dir()

get_install_dir (   self)

Get installation directory of MadGraph4.

Reimplemented from EventGenerator.

Definition at line 353 of file generators.py.

◆ setup()

setup (   self)

Setup MadGraph4 generator.

Reimplemented from MG.

Definition at line 357 of file generators.py.

Member Data Documentation

◆ command

command

Definition at line 371 of file generators.py.

◆ dir_map

dict dir_map
static
Initial value:
= {"BH": "BH/MG_mini_BH/apBH",
"RAD": "RAD/MG_mini_Rad/apRad",
"TM": "TM/MG_mini/ap",
"ap": "ap/MG_mini/ap",
"trigg": "trigg/MG_mini_Trigg/apTri",
"tritrig": "tritrig/MG_mini_Tri_W/apTri",
"wab": "wab/MG_mini_WAB/AP_6W_XSec2_HallB"}
Todo:
Put this information into a method in the MG superclass.

Definition at line 338 of file generators.py.

◆ event_dir

event_dir

Definition at line 367 of file generators.py.

◆ name

name

Definition at line 351 of file generators.py.

◆ rundir

rundir

Definition at line 400 of file generators.py.


The documentation for this class was generated from the following file: