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 | runHto4l (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 | 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 | |
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'] | |
Set up run directory and path to Hto4l. More... | |
__logger = Logging.logging.getLogger('Hto4lControl') | |
Setup athena-compatible logger. More... | |
string | _hto4l_executable = 'Hto4l' |
This must be defined by each derived class - don't change it in the jobOptions! _hto4l_executable = __hto4l_directory + '/Hto4l/Hto4l-v2.0/Hto4l' for local copy of Hto4l use: _hto4l_executable = __hto4l_directory + '/runGrid/Hto4l' For the lcg version of Hto4l use: _hto4l_executable = __hto4l_directory + '/Hto4l'. More... | |
Base class for configurable objects in the jobOptions.
All subprocesses inherit from this class
Definition at line 12 of file Hto4lConfig.py.
def python.Hto4lConfig.Hto4lConfig.__init__ | ( | self, | |
runArgs = None , |
|||
opts = None |
|||
) |
Reimplemented in python.Hto4lPowhegDefault.Hto4lPowhegDefault.
Definition at line 35 of file Hto4lConfig.py.
def python.Hto4lConfig.Hto4lConfig.add_parameter | ( | self, | |
configurable_name, | |||
value, | |||
desc = '' , |
|||
parameter = None |
|||
) |
def python.Hto4lConfig.Hto4lConfig.add_parameter_set | ( | self, | |
parameter_set, | |||
** | kwargs | ||
) |
def python.Hto4lConfig.Hto4lConfig.configurable_parameters | ( | self | ) |
Get dictionary of configurable parameters.
Definition at line 210 of file Hto4lConfig.py.
def python.Hto4lConfig.Hto4lConfig.emit_heartbeat | ( | self, | |
duration | |||
) |
Output a heartbeat message.
Definition at line 161 of file Hto4lConfig.py.
def python.Hto4lConfig.Hto4lConfig.fix_parameter | ( | self, | |
parameter, | |||
value = None , |
|||
desc = '' |
|||
) |
def python.Hto4lConfig.Hto4lConfig.fixed_parameters | ( | self | ) |
Get list of non-configurable parameters.
Definition at line 216 of file Hto4lConfig.py.
def python.Hto4lConfig.Hto4lConfig.generate | ( | self, | |
filter_name = '' , |
|||
filter_args = '' |
|||
) |
def python.Hto4lConfig.Hto4lConfig.generateEvents | ( | self | ) |
Run normal event generation.
Definition at line 104 of file Hto4lConfig.py.
def python.Hto4lConfig.Hto4lConfig.generateRunCard | ( | self | ) |
Initialise runcard with generic options.
Definition at line 67 of file Hto4lConfig.py.
def python.Hto4lConfig.Hto4lConfig.logger | ( | self | ) |
Get handle to logger.
Definition at line 221 of file Hto4lConfig.py.
def python.Hto4lConfig.Hto4lConfig.run_card_decorators | ( | self | ) |
Get list of enabled run card decorators.
Definition at line 232 of file Hto4lConfig.py.
def python.Hto4lConfig.Hto4lConfig.run_card_path | ( | self | ) |
Get full path to runcard.
Definition at line 238 of file Hto4lConfig.py.
def python.Hto4lConfig.Hto4lConfig.run_directory | ( | self | ) |
Get run directory.
Definition at line 204 of file Hto4lConfig.py.
def python.Hto4lConfig.Hto4lConfig.runHto4l | ( | configurator | ) |
Definition at line 180 of file Hto4lConfig.py.
|
private |
Definition at line 43 of file Hto4lConfig.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 93 of file Hto4lConfig.py.
|
private |
Set up lists of parameters and decorators.
Definition at line 41 of file Hto4lConfig.py.
|
staticprivate |
Setup athena-compatible logger.
Definition at line 23 of file Hto4lConfig.py.
|
private |
This needs to be set so that Generate_trf finds an appropriate file format for showering.
Definition at line 38 of file Hto4lConfig.py.
|
private |
Definition at line 44 of file Hto4lConfig.py.
|
staticprivate |
Set up run directory and path to Hto4l.
Definition at line 14 of file Hto4lConfig.py.
|
staticprivate |
This must be defined by each derived class - don't change it in the jobOptions! _hto4l_executable = __hto4l_directory + '/Hto4l/Hto4l-v2.0/Hto4l' for local copy of Hto4l use: _hto4l_executable = __hto4l_directory + '/runGrid/Hto4l' For the lcg version of Hto4l use: _hto4l_executable = __hto4l_directory + '/Hto4l'.
Definition at line 33 of file Hto4lConfig.py.
python.Hto4lConfig.Hto4lConfig.nEvents |
Add universal functionality.
Initialise values from runArgs
Definition at line 55 of file Hto4lConfig.py.
python.Hto4lConfig.Hto4lConfig.random_seed |
Definition at line 57 of file Hto4lConfig.py.
python.Hto4lConfig.Hto4lConfig.running_process |
Initialise timer.
Initialise generation process tracker
Definition at line 118 of file Hto4lConfig.py.