![]() |
ATLAS Offline Software
|
Base class for configurable objects in the jobOptions. More...
Public Member Functions | |
| __init__ (self, runArgs=None, opts=None) | |
| generate (self, filter_name='', filter_args='') | |
| Run normal event generation. | |
| generateRunCard (self) | |
| Initialise runcard with generic options. | |
| generateEvents (self) | |
| Run normal event generation. | |
| add_parameter (self, configurable_name, value, desc='', parameter=None) | |
| Register configurable parameter. | |
| add_parameter_set (self, parameter_set, **kwargs) | |
| Alias to DecoratorFactory.decorate. | |
| emit_heartbeat (self, duration) | |
| Output a heartbeat message. | |
| fix_parameter (self, parameter, value=None, desc='') | |
| Register non-configurable parameter. | |
| runProphecy (configurator) | |
| run_directory (self) | |
| Get run directory. | |
| configurable_parameters (self) | |
| Get dictionary of configurable parameters. | |
| fixed_parameters (self) | |
| Get list of non-configurable parameters. | |
| logger (self) | |
| Get handle to logger. | |
| output_events_file_name (self) | |
| Get output file name. | |
| output_events_file_name (self, value) | |
| Set output file name. | |
| prophecy_directory (self) | |
| Get Prophecy directory. | |
| run_card_decorators (self) | |
| Get list of enabled run card decorators. | |
| run_card_path (self) | |
| Get full path to runcard. | |
Public Attributes | |
| nEvents = int( 1.1 * runArgs.maxEvents + 0.5 ) | |
| Add universal functionality. | |
| random_seed = runArgs.randomSeed | |
| int | nEvents_weighted |
| Print final preparation message. | |
| run_card_decorators | |
| Finalise registered decorators. | |
| run_card_path | |
| Write out final runcard. | |
| fixed_parameters | |
| Write out final runcard. | |
| list | running_process = [] |
| Remove any existing .lhe files to avoid repeated events. | |
| output_events_file_name | |
| Move output to correctly named file. | |
| run_directory | |
Static Protected Attributes | |
| str | _prophecy_executable = 'Prophecy4f' |
| This must be defined by each derived class - don't change it in the jobOptions! | |
Private Attributes | |
| str | __output_events_file_name = 'ProphecyOTF._1.events' |
| This needs to be set so that Generate_trf finds an appropriate file format for showering. | |
| list | __fixed_parameters = [] |
| Set up lists of parameters and decorators. | |
| dict | __configurable_parameters = {} |
| list | __run_card_decorators = [] |
| bool | __enable_reweighting = True |
Static Private Attributes | |
| __run_directory = os.environ['PWD'] | |
| __logger = Logging.logging.getLogger('ProphecyControl') | |
| Setup athena-compatible logger. | |
Base class for configurable objects in the jobOptions.
All subprocesses inherit from this class
Set up run directory and path to Prophecy
Definition at line 12 of file ProphecyConfig.py.
Definition at line 22 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.add_parameter | ( | self, | |
| configurable_name, | |||
| value, | |||
| desc = '', | |||
| parameter = None ) |
Register configurable parameter.
Definition at line 147 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.add_parameter_set | ( | self, | |
| parameter_set, | |||
| ** | kwargs ) |
Alias to DecoratorFactory.decorate.
Definition at line 154 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.configurable_parameters | ( | self | ) |
Get dictionary of configurable parameters.
Definition at line 207 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.emit_heartbeat | ( | self, | |
| duration ) |
Output a heartbeat message.
Definition at line 159 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.fix_parameter | ( | self, | |
| parameter, | |||
| value = None, | |||
| desc = '' ) |
Register non-configurable parameter.
Definition at line 165 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.fixed_parameters | ( | self | ) |
Get list of non-configurable parameters.
Definition at line 213 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.generate | ( | self, | |
| filter_name = '', | |||
| filter_args = '' ) |
Run normal event generation.
Definition at line 52 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.generateEvents | ( | self | ) |
Run normal event generation.
Definition at line 91 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.generateRunCard | ( | self | ) |
Initialise runcard with generic options.
Definition at line 57 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.logger | ( | self | ) |
Get handle to logger.
Definition at line 219 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.output_events_file_name | ( | self | ) |
Get output file name.
Definition at line 225 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.output_events_file_name | ( | self, | |
| value ) |
Set output file name.
Definition at line 230 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.prophecy_directory | ( | self | ) |
Get Prophecy directory.
Definition at line 236 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.run_card_decorators | ( | self | ) |
Get list of enabled run card decorators.
Definition at line 242 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.run_card_path | ( | self | ) |
Get full path to runcard.
Definition at line 248 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.run_directory | ( | self | ) |
Get run directory.
Definition at line 201 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.runProphecy | ( | configurator | ) |
Definition at line 177 of file ProphecyConfig.py.
|
private |
Definition at line 29 of file ProphecyConfig.py.
|
private |
Definition at line 80 of file ProphecyConfig.py.
|
private |
Set up lists of parameters and decorators.
Definition at line 28 of file ProphecyConfig.py.
|
staticprivate |
Setup athena-compatible logger.
Definition at line 16 of file ProphecyConfig.py.
|
private |
This needs to be set so that Generate_trf finds an appropriate file format for showering.
Definition at line 25 of file ProphecyConfig.py.
|
private |
Definition at line 30 of file ProphecyConfig.py.
|
staticprivate |
Definition at line 13 of file ProphecyConfig.py.
|
staticprotected |
This must be defined by each derived class - don't change it in the jobOptions!
Print final preparation message.
For rel 21.6, no longer need to set explicit path because prophecy4f is in $PATH
Definition at line 20 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.fixed_parameters |
Write out final runcard.
Definition at line 75 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.nEvents = int( 1.1 * runArgs.maxEvents + 0.5 ) |
Add universal functionality.
Print final preparation message.
Initialise values from runArgs
Definition at line 41 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.nEvents_weighted |
Print final preparation message.
Definition at line 45 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.output_events_file_name |
Move output to correctly named file.
Definition at line 136 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.random_seed = runArgs.randomSeed |
Definition at line 43 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.run_card_decorators |
Finalise registered decorators.
Definition at line 60 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.run_card_path |
Write out final runcard.
Definition at line 73 of file ProphecyConfig.py.
| python.ProphecyConfig.ProphecyConfig.run_directory |
Definition at line 249 of file ProphecyConfig.py.
| list python.ProphecyConfig.ProphecyConfig.running_process = [] |
Remove any existing .lhe files to avoid repeated events.
The following is only needed for newer installation of prophecy?? RDS 2019/07 Create dirs UNWEIGHTEDEVENTS and HISTUNWEIGHTED
Initialise generation process tracker
Definition at line 116 of file ProphecyConfig.py.