Target processing and conversion of LHE files to StdHep using EGS5. More...
Public Member Functions | |
__init__ (self, name="lhe_v1", **kwargs) | |
config (self, parser) | |
Automatic configuration. | |
setup (self) | |
Setup egs5 generator. | |
execute (self, log_out, log_err) | |
Execute converter. | |
output_files (self) | |
Converts *.lhe.gz and *.lhe to *.stdhep files. | |
![]() | |
get_install_dir (self) | |
Get installation directory. | |
required_parameters (self) | |
Return required parameters. | |
optional_parameters (self) | |
Return optional parameters. | |
![]() | |
cmd_line_str (self) | |
cmd_exists (self) | |
Check if the component's assigned command exists. | |
cmd_args (self) | |
Return the command arguments of this component. | |
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. | |
set_parameters (self, params) | |
Set class attributes for the component based on JSON parameters. | |
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 | |
inputs | |
![]() | |
bunches | |
target_thickness | |
target thickness in $\mu$m, | |
egs5_dir | |
egs5 installation directory | |
beam_energy | |
beam energy in MeV | |
num_electrons | |
number of electrons | |
egs5_data_dir | |
data directory | |
egs5_config_dir | |
config directory | |
target_dz | |
![]() | |
name | |
command | |
nevents | |
seed | |
inputs | |
outputs | |
append_tok | |
output_ext | |
ignore_job_params | |
hpsmc_dir | |
logger | |
Additional Inherited Members | |
![]() | |
_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. | |
Target processing and conversion of LHE files to StdHep using EGS5.
Definition at line 135 of file generators.py.
__init__ | ( | self, | |
name = "lhe_v1" , |
|||
** | kwargs | ||
) |
Reimplemented from EGS5.
Definition at line 138 of file generators.py.
config | ( | self, | |
parser | |||
) |
Automatic configuration.
Automatically load attributes from config by reading in values from the section with the same name as the class in the config file and assigning them to class attributes with the same name.
parser | config parser |
Reimplemented from Component.
Definition at line 144 of file generators.py.
execute | ( | self, | |
log_out, | |||
log_err | |||
) |
Execute converter.
Calls egs5 generator.
log_out | name of log file for output |
log_err | name of log file for error |
Reimplemented from EGS5.
Definition at line 154 of file generators.py.
output_files | ( | self | ) |
Converts *.lhe.gz and *.lhe to *.stdhep files.
Reimplemented from EGS5.
Definition at line 174 of file generators.py.
setup | ( | self | ) |
Setup egs5 generator.
Throws exception if input LHE file is missing.
Reimplemented from EGS5.
Definition at line 147 of file generators.py.
inputs |
Definition at line 151 of file generators.py.
name |
Definition at line 142 of file generators.py.