11#include <boost/python/list.hpp>
12#include <boost/python/dict.hpp>
14#include <framework/core/Module.h>
15#include <framework/core/Path.h>
16#include <framework/gearbox/Const.h>
133 static void setRealm(
const std::string& realm);
183 static std::string
findFile(
const std::string& filename,
const std::string& type,
bool ignore_errors =
false);
ERunType
Enum for identifying run type (beam or cosmic)
This class combines all subsystems of the framework, and exports the main interface to Python.
static boost::python::list getRegisteredModulesPython()
Returns a list of all registered modules.
static void writeSimulationSteps()
Function for writing the simulation steps of each event into csv files.
static std::string findFile(const std::string &filename, const std::string &type, bool ignore_errors=false)
Find a file.
static void setRunType(const Const::ERunType runType)
Function to set the run type (beam or cosmic)
static void setBeamRun()
Function to set that the script is running on beam data (by default it runs on beam data,...
static boost::python::list getModuleSearchPathsPython()
Returns a list of all module search paths known to the framework.
static void setNumberProcesses(int numProcesses)
Function to set number of worker processes for parallel processing.
static void exposePythonAPI()
Exposes methods of the Framework class to Python.
static void setCosmicRun()
Function to set that the script is running on cosmics data (by default it runs on beam data)
static void setRealm(const std::string &realm)
Function to set the execution realm.
static boost::python::dict getAvailableModulesPython()
Returns a dictionary containing the found modules and the filenames of the shared libraries in which ...
static void setStreamingObjects(const boost::python::list &streamingObjects)
Function to set streaming objects for Tx module.
static std::string getPicklePath()
Function to get the path to the file where the pickled path is stored.
static ModulePtr registerModule(const std::string &moduleName)
Registers a new module to the framework and returns a shared pointer.
static void setPicklePath(const std::string &path)
Function to set the path to the file where the pickled path is stored.
static void setExternalsPath(const std::string &path)
Sets the path in which the externals of the framework are located.
virtual ~Framework()
Destructor.
static int getNumberProcesses()
Function to get number of worker processes for parallel processing.
static void addModuleSearchPath(const std::string &path)
Adds a new filepath to the list of filepaths which are searched for modules.
static void process(PathPtr startPath, long maxEvent=0)
Processes up to maxEvent events by starting with the first module in the specified path.
std::shared_ptr< Path > PathPtr
Defines a pointer to a path object as a boost shared pointer.
std::shared_ptr< Module > ModulePtr
Defines a pointer to a module object as a boost shared pointer.
Abstract base class for different kinds of events.