Project
Loading...
Searching...
No Matches
O2SimDeviceRunner.cxx File Reference
#include "O2SimDevice.h"
#include "SimSetup/SimSetup.h"
#include <SimConfig/SimConfig.h>
#include <Steer/O2MCApplication.h>
#include <TVirtualMC.h>
#include <thread>
#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
 

Function Documentation

◆ addCustomOptions()

void addCustomOptions ( bpo::options_description &  options)

Definition at line 84 of file O2SimDeviceRunner.cxx.

◆ CustomCleanup()

void CustomCleanup ( void *  data,
void *  hint 
)

Definition at line 88 of file O2SimDeviceRunner.cxx.

◆ getDevice() [1/2]

o2::devices::O2SimDevice * getDevice ( )

Definition at line 103 of file O2SimDeviceRunner.cxx.

◆ getDevice() [2/2]

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

Definition at line 114 of file O2SimDeviceRunner.cxx.

◆ initAndRunDevice()

int initAndRunDevice ( int  argc,
char *  argv[] 
)

Definition at line 119 of file O2SimDeviceRunner.cxx.

◆ initializeSim()

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

Definition at line 92 of file O2SimDeviceRunner.cxx.

◆ initSim()

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

Definition at line 157 of file O2SimDeviceRunner.cxx.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 264 of file O2SimDeviceRunner.cxx.

◆ pinToCPU()

void pinToCPU ( unsigned int  cpuid)

Definition at line 190 of file O2SimDeviceRunner.cxx.

◆ runSim()

int runSim ( KernelSetup  setup)

Definition at line 180 of file O2SimDeviceRunner.cxx.

◆ sigaction_handler()

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

Definition at line 46 of file O2SimDeviceRunner.cxx.

◆ waitForControlInput()

bool waitForControlInput ( int  workerID)

Definition at line 227 of file O2SimDeviceRunner.cxx.

Variable Documentation

◆ gChildProcesses

std::vector<int> gChildProcesses
Author
Sandro Wenzel

Definition at line 41 of file O2SimDeviceRunner.cxx.

◆ gDriverProcess

int gDriverProcess = -1

Definition at line 43 of file O2SimDeviceRunner.cxx.

◆ gMasterProcess

int gMasterProcess = -1

Definition at line 42 of file O2SimDeviceRunner.cxx.