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

Run the hps-java JobManager class. More...

Inheritance diagram for JobManager:
Component

Public Member Functions

 __init__ (self, steering=None, **kwargs)
 
 config (self, parser)
 Configure JobManager component.
 
 required_config (self)
 Return list of required configurations.
 
 setup (self)
 Setup JobManager component.
 
 cmd_args (self)
 Setup command arguments.
 
 required_parameters (self)
 Return list of required parameters.
 
 optional_parameters (self)
 Return list of optional parameters.
 
- Public Member Functions inherited from Component
 cmd_line_str (self)
 
 execute (self, log_out=sys.stdout, log_err=sys.stderr)
 Generic component execution method.
 
 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

 run_number
 
 nevents
 nevents
 
 detector
 detector name
 
 event_print_interval
 event print interval
 
 defs
 
 java_args
 java arguments
 
 logging_config_file
 file for config logging
 
 lcsim_cache_dir
 lcsim cache directory
 
 conditions_user
 no idea
 
 conditions_password
 no idea
 
 conditions_url
 no idea
 
 steering
 steering file
 
 hps_java_bin_jar
 location of hps-java installation?
 
 overlay_file
 
 append_tok
 
 name
 
 steering_files
 
 steering_file
 
- Public Attributes inherited from Component
 name
 
 command
 
 nevents
 
 seed
 
 inputs
 
 outputs
 
 append_tok
 
 output_ext
 
 ignore_job_params
 
 hpsmc_dir
 
 logger
 

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 hps-java JobManager class.

Input files have slcio format.

Required parameters are: steering_files
Optional parameters are: detector, run_number, defs

Definition at line 160 of file tools.py.

Constructor & Destructor Documentation

◆ __init__()

__init__ (   self,
  steering = None,
**  kwargs 
)

Reimplemented from Component.

Definition at line 170 of file tools.py.

Member Function Documentation

◆ cmd_args()

cmd_args (   self)

Setup command arguments.

Returns
list of arguments

Reimplemented from Component.

Definition at line 249 of file tools.py.

◆ config()

config (   self,
  parser 
)

Configure JobManager component.

Reimplemented from Component.

Definition at line 216 of file tools.py.

◆ optional_parameters()

optional_parameters (   self)

Return list of optional parameters.

Optional parameters are: detector, run_number, defs

Returns
list of optional parameters

Reimplemented from Component.

Definition at line 334 of file tools.py.

◆ required_config()

required_config (   self)

Return list of required configurations.

Required configurations are: hps_java_bin_jar @retun list of required configurations.

Reimplemented from Component.

Definition at line 231 of file tools.py.

◆ required_parameters()

required_parameters (   self)

Return list of required parameters.

Required parameters are: steering_files

Returns
list of required parameters

Reimplemented from Component.

Definition at line 325 of file tools.py.

◆ setup()

setup (   self)

Setup JobManager component.

Reimplemented from Component.

Definition at line 240 of file tools.py.

Member Data Documentation

◆ append_tok

append_tok

Definition at line 213 of file tools.py.

◆ conditions_password

conditions_password

no idea

Definition at line 191 of file tools.py.

◆ conditions_url

conditions_url

no idea

Definition at line 193 of file tools.py.

◆ conditions_user

conditions_user

no idea

Definition at line 189 of file tools.py.

◆ defs

defs
Todo:
what is this?

Definition at line 181 of file tools.py.

◆ detector

detector

detector name

Todo:
add event_print_interval to optional parameters?

Definition at line 177 of file tools.py.

◆ event_print_interval

event_print_interval

event print interval

Todo:
add event_print_interval to optional parameters?

Definition at line 179 of file tools.py.

◆ hps_java_bin_jar

hps_java_bin_jar

location of hps-java installation?

Definition at line 197 of file tools.py.

◆ java_args

java_args

java arguments

Definition at line 183 of file tools.py.

◆ lcsim_cache_dir

lcsim_cache_dir

lcsim cache directory

Definition at line 187 of file tools.py.

◆ logging_config_file

logging_config_file

file for config logging

Definition at line 185 of file tools.py.

◆ name

name

Definition at line 214 of file tools.py.

◆ nevents

nevents

nevents

Todo:
add event_print_interval to optional parameters?

Definition at line 175 of file tools.py.

◆ overlay_file

overlay_file
Todo:
add event_print_interval to optional parameters?

Definition at line 200 of file tools.py.

◆ run_number

run_number
Todo:
verify these definitions run number
Todo:
add event_print_interval to optional parameters?

Definition at line 173 of file tools.py.

◆ steering

steering

steering file

Definition at line 195 of file tools.py.

◆ steering_file

steering_file
Todo:
add event_print_interval to optional parameters?

Definition at line 247 of file tools.py.

◆ steering_files

steering_files

Definition at line 246 of file tools.py.


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