23#ifndef RestCore_TRestRawToSignalProcess
24#define RestCore_TRestRawToSignalProcess
26#include <TRestEventProcess.h>
27#include <TRestRawSignalEvent.h>
34 unsigned int frameBits;
35 std::string fElectronicsType;
39 Long64_t totalbytesRead;
51 std::vector<FILE*> fInputFiles;
52 std::vector<std::string> fInputFileNames;
58 void LoadDefaultConfig();
65 fRunOrigin =
fRunInfo->GetRunNumber();
66 fSubRunOrigin =
fRunInfo->GetSubRunNumber();
73 inline void SetRunOrigin(Int_t runOrigin) { fRunOrigin = runOrigin; }
74 inline void SetSubRunOrigin(Int_t subRunOrigin) { fSubRunOrigin = subRunOrigin; }
76 void LoadConfig(
const std::string& configFilename,
const std::string& name =
"");
78 Bool_t OpenInputFiles(
const std::vector<std::string>& files)
override;
79 virtual Bool_t AddInputFile(
const std::string& file)
override;
81 Bool_t ResetEntry()
override;
85 virtual std::string GetElectronicsType()
const {
return fElectronicsType; }
87 Bool_t GoToNextFile();
A base class for any REST event process.
TRestRun * fRunInfo
< Pointer to TRestRun object where to find metadata.
A base class for any REST event.
An event container for time rawdata signals with fixed length.
A base class for any process reading a binary external file as input to REST.
virtual void InitProcess() override
To be executed at the beginning of the run (outside event loop)
void InitFromConfigFile() override
To make settings from rml file. This method must be implemented in the derived class.
Long64_t GetTotalBytes() const override
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
Int_t fShowSamples
true if need to open all raw files at the beginning
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
void Initialize() override
Making default settings.
Long64_t GetTotalBytesRead() const override
Interface to external file reading, get the read bytes. To be implemented in external processes.
virtual void PrintMetadata() override
Implemented it in the derived metadata class to print out specific metadata information.