![]() |
Belle II Software development
|
Public Member Functions | |
__init__ (self, result_queue, log_file_name, parameters, path, random_seed=None, max_event=0) | |
prepare (self) | |
initialize_output (self) | |
start_process (self) | |
save_log (self) | |
get_log (self) | |
get (self, name) | |
get_keys (self) | |
Public Attributes | |
random_seed = random_seed | |
Random seed to set. | |
path = path | |
Path to process. | |
max_event = max_event | |
The maximum number of events to process. | |
bool | already_run = False |
True if already started/run. | |
log_file_name = log_file_name | |
Name of the log file to use. | |
log_file_content = None | |
Saved log file content after the run. | |
result_queue = result_queue | |
Result queue as a reference. | |
parameters = parameters | |
Parameters in process_parameter_space. | |
progress_queue_local | |
Create the queue for the progress python module. | |
progress_queue_remote = Pipe() | |
Create the queue for the progress python module. | |
bool | is_valid = True |
Set to false, if you do not want this process to show up in the process bar calculations. | |
Overload implementation of the HEPProcess with the correct handling of the path calculation.
Definition at line 17 of file calculation_process.py.
__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.
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.
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.
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 |
Set to false, if you do not want this process to show up in the process bar calculations.
Definition at line 48 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.
|
inherited |
Name of the log file to use.
Delete the log file and copy its content to the class.
Return the log file content. Use the methods of the Calculation for a better handling.
Definition at line 33 of file calculation_process.py.
max_event = max_event |
The maximum number of events to process.
Leave 0 to process al events
Definition at line 30 of file calculation_process.py.
|
inherited |
Parameters in process_parameter_space.
Definition at line 42 of file calculation_process.py.
path = path |
Path to process.
Definition at line 28 of file calculation_process.py.
|
inherited |
Create the queue for the progress python module.
Definition at line 45 of file calculation_process.py.
|
inherited |
Create the queue for the progress python module.
Definition at line 45 of file calculation_process.py.
random_seed = random_seed |
|
inherited |
Result queue as a reference.
Definition at line 39 of file calculation_process.py.