Belle II Software
release-08-01-10
|
Public Member Functions | |
def | __init__ (self, result_queue, log_file_name, parameters, path, random_seed=None, max_event=0) |
def | prepare (self) |
def | initialize_output (self) |
def | start_process (self) |
def | save_log (self) |
def | get_log (self) |
def | get (self, name) |
def | get_keys (self) |
Public Attributes | |
random_seed | |
Random seed to set. More... | |
path | |
Path to process. | |
max_event | |
The maximum number of events to process. More... | |
is_valid | |
Set is_valid to false to not show this process in any listings. | |
already_run | |
True if already started/run. More... | |
log_file_name | |
Name of the log file to use. | |
log_file_content | |
Saved log file content after the run. More... | |
result_queue | |
Result queue as a reference. | |
parameters | |
Parameters in process_parameter_space. | |
progress_queue_remote | |
Create the queue for the progress python module. | |
Overload implementation of the HEPProcess with the correct handling of the path calculation.
Definition at line 17 of file calculation_process.py.
def __init__ | ( | self, | |
result_queue, | |||
log_file_name, | |||
parameters, | |||
path, | |||
random_seed = None , |
|||
max_event = 0 |
|||
) |
Create a new basf2 calculation process.
Definition at line 23 of file calculation_process.py.
|
inherited |
Return an item from the result queue. Only gives a result if the calculation has finished. Use the Calculation for a better handling.
Definition at line 76 of file calculation_process.py.
|
inherited |
Return the names of all item from the result queue. Only gives a result if the calculation has finished. Use the Calculation for a better handling.
Definition at line 84 of file calculation_process.py.
|
inherited |
Return the log file content. Use the methods of the Calculation for a better handling.
Definition at line 65 of file calculation_process.py.
def initialize_output | ( | self | ) |
Make sure all output by python and or C is written to the same output file
Definition at line 50 of file calculation_process.py.
def prepare | ( | self | ) |
A function to prepare a path with the modules given in path.
Reimplemented from CalculationProcess.
Definition at line 35 of file calculation_process.py.
|
inherited |
Delete the log file and copy its content to the class.
Definition at line 56 of file calculation_process.py.
def start_process | ( | self | ) |
The function given to the process to start the calculation. Do not call by yourself. Resets the logging system, logs onto console and a file and sets the queues (the result queue and the process queue) correctly.
Reimplemented from CalculationProcess.
Definition at line 70 of file calculation_process.py.
|
inherited |
True if already started/run.
Create a new calculation process instance. The parameters here are the absolute standard. You probably have to redefine the constructor in your own class.
Definition at line 30 of file calculation_process.py.
|
inherited |
Saved log file content after the run.
Delete the log file and copy its content to the class.
Definition at line 36 of file calculation_process.py.
max_event |
The maximum number of events to process.
Leave 0 to process al events
Definition at line 30 of file calculation_process.py.
random_seed |