#include <ShmemInputModule.h>
Inheritance diagram for PSShmemInput::ShmemInputModule:
Public Member Functions | |
ShmemInputModule (const std::string &name) | |
Constructor takes the name of the module. | |
virtual | ~ShmemInputModule () |
This class implements psana input module which reads XTC data from shared memory. Psana uses this module instead of regular XTC (or HDF5) input module when it encounters shmem keyword in the input dataset:
% psana -c config.cfg shmem=name.0
Required value for shmem keyword consists of the shared memory tag name and a client index (number) separated by dot, the meaning of these parameters is defined by the DAQ shared memory server and should be known to people who setup the infrastructure.
In addition to shmem keyword dataset specification can optionally contain stop keyword with a value that specifies stop condition. Possible values for this keyword are:
UnMap
transition occursUnConfigure
transition occursEndRun
transition occursEndCalibCycle
transition occursBy default if stop keyword is not specified then it is equivalent to stop=endrun and psana will stop at the end of run.
Example of starting non-stopping job:
% psana -c config.cfg shmem=name.0:stop=none
Definition at line 84 of file ShmemInputModule.h.
PSShmemInput::ShmemInputModule::ShmemInputModule | ( | const std::string & | name | ) |
PSShmemInput::ShmemInputModule::~ShmemInputModule | ( | ) | [virtual] |
Definition at line 52 of file ShmemInputModule.cpp.