Run the SLIC Geant4 simulation. More...
Public Member Functions | |
__init__ (self, **kwargs) | |
cmd_args (self) | |
Setup command arguments. | |
config (self, parser) | |
Configure SLIC component. | |
setup (self) | |
Setup SLIC component. | |
optional_parameters (self) | |
Return list of optional parameters. | |
required_parameters (self) | |
Return list of required parameters. | |
required_config (self) | |
Return list of required configurations. | |
execute (self, log_out, log_err) | |
Execute SLIC 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. | |
set_parameters (self, params) | |
Set class attributes for the component based on JSON parameters. | |
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. | |
output_files (self) | |
Return a list of output files created by 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 | |
macros | |
List of macros to run (optional) | |
run_number | |
Run number to set on output file (optional) | |
detector_dir | |
To be set from config or install dir. | |
disable_particle_table | |
Optionally disable loading of the particle table shipped with slic Note: This should not be used with a General Particle Source since the GPS in slic requires the particle table to function. | |
seed | |
nevents | |
detector | |
slic_dir | |
env_script | |
name | |
![]() | |
name | |
command | |
nevents | |
seed | |
inputs | |
outputs | |
append_tok | |
output_ext | |
ignore_job_params | |
hpsmc_dir | |
logger | |
Private Member Functions | |
__detector_file (self) | |
Return path to detector file. | |
__particle_tbl (self) | |
Return path to particle table. | |
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. | |
Run the SLIC Geant4 simulation.
Optional parameters are: nevents, macros, run_number, disable_particle_table
Required parameters are: detector
Required configurations are: slic_dir, detector_dir
|
private |
|
private |
cmd_args | ( | self | ) |
config | ( | self, | |
parser | |||
) |
execute | ( | self, | |
log_out, | |||
log_err | |||
) |
optional_parameters | ( | self | ) |
required_config | ( | self | ) |
required_parameters | ( | self | ) |
setup | ( | self | ) |
disable_particle_table |