![]() |
Project
|
#include "O2SimDevice.h"#include "SimSetup/SimSetup.h"#include <fairmq/DeviceRunner.h>#include <boost/program_options.hpp>#include <memory>#include <string>#include <fairmq/Channel.h>#include <fairlogger/Logger.h>#include <fairmq/Parts.h>#include <fairmq/TransportFactory.h>#include <TStopwatch.h>#include <sys/wait.h>#include <pthread.h>#include <cmath>#include <csignal>#include <unistd.h>#include "SimPublishChannelHelper.h"#include "rapidjson/document.h"#include "rapidjson/stringbuffer.h"#include "rapidjson/filereadstream.h"Go to the source code of this file.
Classes | |
| struct | KernelSetup |
Functions | |
| void | sigaction_handler (int signal, siginfo_t *signal_info, void *) |
| void | addCustomOptions (bpo::options_description &options) |
| void | CustomCleanup (void *data, void *hint) |
| bool | initializeSim (std::string transport, std::string address, std::unique_ptr< FairRunSim > &simptr) |
| o2::devices::O2SimDevice * | getDevice () |
| fair::mq::Device * | getDevice (const fair::mq::ProgOptions &config) |
| int | initAndRunDevice (int argc, char *argv[]) |
| KernelSetup | initSim (std::string transport, std::string primaddress, std::string primstatusaddress, std::string mergeraddress, int workerID) |
| int | runSim (KernelSetup setup) |
| void | pinToCPU (unsigned int cpuid) |
| bool | waitForControlInput (int workerID) |
| int | main (int argc, char *argv[]) |
Variables | |
| std::vector< int > | gChildProcesses |
| int | gMasterProcess = -1 |
| int | gDriverProcess = -1 |
| void addCustomOptions | ( | bpo::options_description & | options | ) |
Definition at line 79 of file O2SimDeviceRunner.cxx.
Definition at line 83 of file O2SimDeviceRunner.cxx.
| o2::devices::O2SimDevice * getDevice | ( | ) |
Definition at line 98 of file O2SimDeviceRunner.cxx.
| fair::mq::Device * getDevice | ( | const fair::mq::ProgOptions & | config | ) |
Definition at line 109 of file O2SimDeviceRunner.cxx.
Definition at line 114 of file O2SimDeviceRunner.cxx.
| bool initializeSim | ( | std::string | transport, |
| std::string | address, | ||
| std::unique_ptr< FairRunSim > & | simptr | ||
| ) |
Definition at line 87 of file O2SimDeviceRunner.cxx.
| KernelSetup initSim | ( | std::string | transport, |
| std::string | primaddress, | ||
| std::string | primstatusaddress, | ||
| std::string | mergeraddress, | ||
| int | workerID | ||
| ) |
Definition at line 152 of file O2SimDeviceRunner.cxx.
Definition at line 259 of file O2SimDeviceRunner.cxx.
Definition at line 185 of file O2SimDeviceRunner.cxx.
| int runSim | ( | KernelSetup | setup | ) |
Definition at line 175 of file O2SimDeviceRunner.cxx.
Definition at line 42 of file O2SimDeviceRunner.cxx.
| bool waitForControlInput | ( | int | workerID | ) |
Definition at line 222 of file O2SimDeviceRunner.cxx.
| std::vector<int> gChildProcesses |
Definition at line 37 of file O2SimDeviceRunner.cxx.
| int gDriverProcess = -1 |
Definition at line 39 of file O2SimDeviceRunner.cxx.
| int gMasterProcess = -1 |
Definition at line 38 of file O2SimDeviceRunner.cxx.