![]() |
Belle II Software development
|
Helper utils for path arithmetic needed in the pEventProcessor. More...
#include <PathUtils.h>
Static Public Member Functions | |
| static bool | isWorthParallelising (const Path &path) |
| Is a parallel section made up of these modules worth creating processes for? | |
| static std::tuple< PathPtr, PathPtr, PathPtr > | splitPath (const PathPtr &path) |
| Split the given part into the input, main and output path (in this order) by looking onto the parallel certificate of the modules. | |
| static ModulePtrList | preparePaths (PathPtr &inputPath, PathPtr &mainPath, PathPtr &outputPath) |
| Adds internal zmq modules to the paths. | |
| static ModulePtr | getHistogramManager (PathPtr &inputPath) |
| Find the histogram manager in the paths and return it. | |
| static ModulePtrList | getTerminateGloballyModules (const ModulePtrList &modules) |
| Return only modules which have the TerminateGlobally Module flag set. | |
| static void | prependModulesIfNotPresent (ModulePtrList *modules, const ModulePtrList &prependModules) |
| Prepend given 'prependModules' to 'modules', if they're not already present. | |
| static void | appendModule (PathPtr &path, const ModulePtr &module) |
| Append the given module to the path. | |
| static void | prependModules (PathPtr &path, const ModulePtrList &modules) |
| Prepend the given modules to the path, keeping their order. | |
Helper utils for path arithmetic needed in the pEventProcessor.
Definition at line 19 of file PathUtils.h.
Append the given module to the path.
Definition at line 211 of file PathUtils.cc.
Find the histogram manager in the paths and return it.
Definition at line 98 of file PathUtils.cc.
|
static |
Return only modules which have the TerminateGlobally Module flag set.
Definition at line 192 of file PathUtils.cc.
|
static |
Is a parallel section made up of these modules worth creating processes for?
False if every module in it is flagged Module::c_NoParallelWork, i.e. the section would fork three processes to run nothing but setup code. Such a section is merged back into the input path and the search for a parallel section continues after it.
That is what lets a module which is not parallel processing certified sit between the setup modules and the real work without forcing the whole job into a single process: otherwise the setup modules open a section that the uncertified module closes again on the very next module, and everything after it ends up in the output path.
Definition at line 16 of file PathUtils.cc.
|
static |
Adds internal zmq modules to the paths.
Definition at line 108 of file PathUtils.cc.
|
static |
Prepend the given modules to the path, keeping their order.
Definition at line 216 of file PathUtils.cc.
|
static |
Prepend given 'prependModules' to 'modules', if they're not already present.
Definition at line 202 of file PathUtils.cc.
Split the given part into the input, main and output path (in this order) by looking onto the parallel certificate of the modules.
Definition at line 24 of file PathUtils.cc.