23#ifndef RestCore_TRestFEUDreamToSignalProcess
24#define RestCore_TRestFEUDreamToSignalProcess
52#include "TRestRawSignalEvent.h"
53#include "TRestRawToSignalProcess.h"
63 void ntohs_() { data = ntohs(data); };
64 bool is_final_trailer()
const {
return (((data)&0x7000) >> 12) == 7; }
65 bool is_end_of_event()
const {
return (((data)&0x7800) >> 11) == 0xF; }
66 bool is_data_trailer()
const {
return (((data)&0x6000) >> 13) == 2; }
67 bool is_first_line()
const {
return (((data)&0x7000) >> 12) == 3; }
68 bool is_data()
const {
return (((data)&0x7000) >> 12) == 0; }
69 bool is_data_zs()
const {
return (((data)&0x6000) >> 13) == 0; }
70 bool is_channel_ID()
const {
return (((data)&0x7000) >> 12) == 1; }
71 bool is_Feu_header()
const {
return (((data)&0x7000) >> 12) == 6; }
72 bool is_data_header()
const {
return (((data)&0x6000) >> 13) == 1; }
73 bool get_zs_mode()
const {
return (((data)&0x400) >> 10); }
74 int get_Feu_ID()
const {
return (((data)&0xFF)); }
75 long int get_finetstp()
const {
return (((data)&0x0007)); }
77 int get_sample_ID()
const {
return (((data)&0xFF8) >> 3); }
78 int get_channel_ID()
const {
return (((data)&0x3F)); }
79 int get_dream_ID()
const {
return (((data)&0xE00) >> 9); }
80 int get_dream_ID_ZS()
const {
return (((data)&0xE00) >> 6); }
81 int get_TimeStamp_Op()
const {
return (((data)&0x1FF)); }
82 int get_data()
const {
return (((data)&0xFFF)); }
83 unsigned short int data;
91 bool data_to_treat =
false;
92 bool event_completed =
false;
93 bool last_event =
false;
95 int FeuHeaderLine = 0;
96 int DataHeaderLine = 0;
97 int DataTrailerLine = 0;
105 int TriggerID_ISB = -1;
106 int TriggerID_LSB = -1;
109 long int Cell_ID = -1;
110 int Cell_ID_ISB = -1;
111 int Cell_ID_LSB = -1;
112 int Cell_ID_MSB = -1;
113 long int TimeStamp = -1;
114 long int TimeStamp_Op1 = -1;
115 long int TimeStamp_Op2 = -1;
116 long int TimeStamp_Op3 = -1;
117 long int FineTimeStamp = -1;
119 int isample_prev = -2;
120 bool zs_mode =
false;
125 FeuHeaderLoaded =
false;
127 event_completed =
false;
140 const int NstripMax = 64;
141 const int MaxPhysChannel = 512;
144 int Nevent, Nbadevent;
157 const char* GetProcessName()
const override {
return "DreamToSignal"; }
A base class for any REST event.
An process to read binary data from FEUDream electronics.
void Initialize() override
Making default settings.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
Process one event.
void InitProcess() override
To be executed at the beginning of the run (outside event loop)
A base class for any process reading a binary external file as input to REST.