23#ifndef RestCore_TRestRawUSTCToSignalProcess
24#define RestCore_TRestRawUSTCToSignalProcess
28#include "TRestRawToSignalProcess.h"
31#define V4_Readout_Format
34#ifdef V3_Readout_Format_Long
36#define DATA_OFFSET (DATA_SIZE - 512 * 2 - 4)
37#define PROTOCOL_SIZE 4
40#ifdef V3_Readout_Format_Short
42#define DATA_OFFSET (DATA_SIZE - 512 * 2 - 4)
43#define PROTOCOL_SIZE 4
46#ifdef V4_Readout_Format
51#define PROTOCOL_SIZE 4
92 std::vector<std::vector<USTCDataFrame>> fEventBuffer;
95 int fCurrentEvent = -1;
96 int fCurrentBuffer = 0;
97 int fLastBufferedId = 0;
98 std::vector<int> errorevents;
99 int unknownerrors = 0;
101 Long64_t fTimeOffset = 0;
102 std::set<int> fChannelOffset;
115 bool GetNextFrame(USTCDataFrame&);
117 bool OpenNextFile(USTCDataFrame&);
119 void FixToNextFrame(FILE* f);
121 bool ReadFrameData(USTCDataFrame& Frame);
123 bool AddBuffer(USTCDataFrame& Frame);
A base class for any REST event.
It defines a Short_t array with a physical parameter that evolves in time using a fixed time bin.
A base class for any process reading a binary external file as input to REST.
A process to read USTC electronic binary format files generated.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
Process one event.
void EndProcess() override
To be executed at the end of the run (outside event loop)
void InitProcess() override
To be executed at the beginning of the run (outside event loop)
void Initialize() override
Making default settings.