23#ifndef RestCore_TRestRawMemoryBufferToSignalProcess
24#define RestCore_TRestRawMemoryBufferToSignalProcess
26#include "TRestEventProcess.h"
27#include "TRestRawSignalEvent.h"
31 unsigned int dataReady;
34 unsigned int nSignals;
44 unsigned int maxSignals;
48 unsigned int maxSamples;
52 unsigned int bufferSize;
116 void LoadConfig(
const std::string& configFilename,
const std::string& name =
"");
129 const char*
GetProcessName()
const override {
return "sharedMemoryBufferToSignalEvent"; }
A base class for any REST event process.
void BeginPrintProcess()
[name, cut range]
A base class for any REST event.
void PrintMetadata() override
It prints out the process parameters stored in the metadata structure.
void SemaphoreRed(int id)
This method will increase the semaphore red level to protect shared memory regions.
TRestRawMemoryBufferToSignalProcess()
Default constructor.
void Initialize() override
Function to initialize input/output event members and define the section name.
void LoadDefaultConfig()
Function to load the default config in absence of RML input.
void BeginOfEventProcess(TRestEvent *inputEvent=nullptr) override
Function including required initialization before each event starts to process.
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
void InitFromConfigFile() override
Function reading input parameters from the RML TRestRawMemoryBufferToSignalProcess metadata section.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
The main processing event function.
unsigned short int * fShMem_Buffer
void LoadConfig(const std::string &configFilename, const std::string &name="")
Function to load the configuration from an external configuration file.
void SemaphoreGreen(int id)
This method will increase the semaphore green level to release shared memory regions.
int fSemaphoreId
It is used internally to control the semaphore.
void InitProcess() override
To be executed at the beginning of the run (outside event loop)
const char * GetProcessName() const override
Returns the name of this process.
TRestRawSignalEvent * fOutputRawSignalEvent
A pointer to the specific TRestRawSignalEvent input.
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
~TRestRawMemoryBufferToSignalProcess()
Default destructor.
TRestEventProcess * Maker()
Returns a new instance of this class.
An event container for time rawdata signals with fixed length.