Project
Loading...
Searching...
No Matches
O2SimDeviceRunner.cxx File Reference
#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::O2SimDevicegetDevice ()
 
fair::mq::DevicegetDevice (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< intgChildProcesses
 
int gMasterProcess = -1
 
int gDriverProcess = -1
 

Function Documentation

◆ addCustomOptions()

void addCustomOptions ( bpo::options_description &  options)

Definition at line 79 of file O2SimDeviceRunner.cxx.

◆ CustomCleanup()

void CustomCleanup ( void data,
void hint 
)

Definition at line 83 of file O2SimDeviceRunner.cxx.

◆ getDevice() [1/2]

o2::devices::O2SimDevice * getDevice ( )

Definition at line 98 of file O2SimDeviceRunner.cxx.

◆ getDevice() [2/2]

fair::mq::Device * getDevice ( const fair::mq::ProgOptions &  config)

Definition at line 109 of file O2SimDeviceRunner.cxx.

◆ initAndRunDevice()

int initAndRunDevice ( int  argc,
char argv[] 
)

Definition at line 114 of file O2SimDeviceRunner.cxx.

◆ initializeSim()

bool initializeSim ( std::string  transport,
std::string  address,
std::unique_ptr< FairRunSim > &  simptr 
)

Definition at line 87 of file O2SimDeviceRunner.cxx.

◆ initSim()

KernelSetup initSim ( std::string  transport,
std::string  primaddress,
std::string  primstatusaddress,
std::string  mergeraddress,
int  workerID 
)

Definition at line 152 of file O2SimDeviceRunner.cxx.

◆ main()

int main ( int  argc,
char argv[] 
)

Definition at line 259 of file O2SimDeviceRunner.cxx.

◆ pinToCPU()

void pinToCPU ( unsigned int  cpuid)

Definition at line 185 of file O2SimDeviceRunner.cxx.

◆ runSim()

int runSim ( KernelSetup  setup)

Definition at line 175 of file O2SimDeviceRunner.cxx.

◆ sigaction_handler()

void sigaction_handler ( int  signal,
siginfo_t *  signal_info,
void  
)

Definition at line 42 of file O2SimDeviceRunner.cxx.

◆ waitForControlInput()

bool waitForControlInput ( int  workerID)

Definition at line 222 of file O2SimDeviceRunner.cxx.

Variable Documentation

◆ gChildProcesses

std::vector<int> gChildProcesses
Author
Sandro Wenzel

Definition at line 37 of file O2SimDeviceRunner.cxx.

◆ gDriverProcess

int gDriverProcess = -1

Definition at line 39 of file O2SimDeviceRunner.cxx.

◆ gMasterProcess

int gMasterProcess = -1

Definition at line 38 of file O2SimDeviceRunner.cxx.