ATLAS Offline Software
|
Base class for configurable objects in the jobOptions. More...
Public Member Functions | |
def | __init__ (self, runArgs=None, opts=None) |
def | generate (self, filter_name='', filter_args='') |
Run normal event generation. More... | |
def | generateRunCard (self) |
Initialise runcard with generic options. More... | |
def | generateEvents (self) |
Run normal event generation. More... | |
def | add_parameter (self, configurable_name, value, desc='', parameter=None) |
Register configurable parameter. More... | |
def | add_parameter_set (self, parameter_set, **kwargs) |
Alias to DecoratorFactory.decorate. More... | |
def | emit_heartbeat (self, duration) |
Output a heartbeat message. More... | |
def | fix_parameter (self, parameter, value=None, desc='') |
Register non-configurable parameter. More... | |
def | runProphecy (configurator) |
def | run_directory (self) |
Get run directory. More... | |
def | configurable_parameters (self) |
Get dictionary of configurable parameters. More... | |
def | fixed_parameters (self) |
Get list of non-configurable parameters. More... | |
def | logger (self) |
Get handle to logger. More... | |
def | output_events_file_name (self) |
Get output file name. More... | |
def | output_events_file_name (self, value) |
Set output file name. More... | |
def | prophecy_directory (self) |
Get Prophecy directory. More... | |
def | run_card_decorators (self) |
Get list of enabled run card decorators. More... | |
def | run_card_path (self) |
Get full path to runcard. More... | |
Public Attributes | |
nEvents | |
Add universal functionality. More... | |
random_seed | |
nEvents_weighted | |
running_process | |
Initialise timer. More... | |
Private Attributes | |
__output_events_file_name | |
This needs to be set so that Generate_trf finds an appropriate file format for showering. More... | |
__fixed_parameters | |
Set up lists of parameters and decorators. More... | |
__configurable_parameters | |
__run_card_decorators | |
__enable_reweighting | |
Finalise registered decorators. More... | |
Static Private Attributes | |
__run_directory = os.environ['PWD'] | |
__logger = Logging.logging.getLogger('ProphecyControl') | |
Setup athena-compatible logger. More... | |
string | _prophecy_executable = 'Prophecy4f' |
This must be defined by each derived class - don't change it in the jobOptions! For rel 21.6, no longer need to set explicit path because prophecy4f is in $PATH. More... | |
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.
def python.ProphecyConfig.ProphecyConfig.__init__ | ( | self, | |
runArgs = None , |
|||
opts = None |
|||
) |
Reimplemented in python.ProphecyPowhegDefault.ProphecyPowhegDefault.
Definition at line 22 of file ProphecyConfig.py.
def python.ProphecyConfig.ProphecyConfig.add_parameter | ( | self, | |
configurable_name, | |||
value, | |||
desc = '' , |
|||
parameter = None |
|||
) |
def python.ProphecyConfig.ProphecyConfig.add_parameter_set | ( | self, | |
parameter_set, | |||
** | kwargs | ||
) |
def python.ProphecyConfig.ProphecyConfig.configurable_parameters | ( | self | ) |
Get dictionary of configurable parameters.
Definition at line 207 of file ProphecyConfig.py.
def python.ProphecyConfig.ProphecyConfig.emit_heartbeat | ( | self, | |
duration | |||
) |
Output a heartbeat message.
Definition at line 159 of file ProphecyConfig.py.
def python.ProphecyConfig.ProphecyConfig.fix_parameter | ( | self, | |
parameter, | |||
value = None , |
|||
desc = '' |
|||
) |
def python.ProphecyConfig.ProphecyConfig.fixed_parameters | ( | self | ) |
Get list of non-configurable parameters.
Definition at line 213 of file ProphecyConfig.py.
def python.ProphecyConfig.ProphecyConfig.generate | ( | self, | |
filter_name = '' , |
|||
filter_args = '' |
|||
) |
def python.ProphecyConfig.ProphecyConfig.generateEvents | ( | self | ) |
Run normal event generation.
Definition at line 91 of file ProphecyConfig.py.
def python.ProphecyConfig.ProphecyConfig.generateRunCard | ( | self | ) |
Initialise runcard with generic options.
Definition at line 57 of file ProphecyConfig.py.
def python.ProphecyConfig.ProphecyConfig.logger | ( | self | ) |
Get handle to logger.
Definition at line 219 of file ProphecyConfig.py.
def python.ProphecyConfig.ProphecyConfig.output_events_file_name | ( | self | ) |
Get output file name.
Definition at line 225 of file ProphecyConfig.py.
def python.ProphecyConfig.ProphecyConfig.output_events_file_name | ( | self, | |
value | |||
) |
def python.ProphecyConfig.ProphecyConfig.prophecy_directory | ( | self | ) |
Get Prophecy directory.
Definition at line 236 of file ProphecyConfig.py.
def python.ProphecyConfig.ProphecyConfig.run_card_decorators | ( | self | ) |
Get list of enabled run card decorators.
Definition at line 242 of file ProphecyConfig.py.
def python.ProphecyConfig.ProphecyConfig.run_card_path | ( | self | ) |
def python.ProphecyConfig.ProphecyConfig.run_directory | ( | self | ) |
Get run directory.
Definition at line 201 of file ProphecyConfig.py.
def python.ProphecyConfig.ProphecyConfig.runProphecy | ( | configurator | ) |
Definition at line 177 of file ProphecyConfig.py.
|
private |
Definition at line 29 of file ProphecyConfig.py.
|
private |
Finalise registered decorators.
Print list of configurable parameters for users Add configurable parameters to fixed list Write out final runcard
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.
|
staticprivate |
This must be defined by each derived class - don't change it in the jobOptions! 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.nEvents |
Add universal functionality.
Initialise values from runArgs
Definition at line 41 of file ProphecyConfig.py.
python.ProphecyConfig.ProphecyConfig.nEvents_weighted |
Definition at line 47 of file ProphecyConfig.py.
python.ProphecyConfig.ProphecyConfig.random_seed |
Definition at line 43 of file ProphecyConfig.py.
python.ProphecyConfig.ProphecyConfig.running_process |
Initialise timer.
Setup heartbeat thread 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.