10 #define ERDRS4Source_H 16 #include "FairSource.h" 17 #include "FairRootManager.h" 19 #include "ERNeuRadRawEvent.h" 24 class FairRootManager;
45 unsigned short board_serial_number;
50 unsigned int event_serial_number;
55 unsigned short minute;
56 unsigned short second;
57 unsigned short millisecond;
63 unsigned short trigger_cell;
78 virtual Bool_t Init();
80 virtual Int_t ReadEvent(UInt_t=0);
86 virtual Source_Type GetSourceType(){
return kFILE;}
88 virtual void SetParUnpackers(){}
90 virtual Bool_t InitUnpackers(){
return kTRUE;}
92 virtual Bool_t ReInitUnpackers(){
return kTRUE;}
94 void SetFile(TString path){fPath = path;}
95 void SetNChanels(Int_t chanels){fNChanels = chanels;}
96 void SetNPoints(Int_t points){fNPoints = points;}
108 unsigned short voltage[1024];
109 double waveform[16][4][1024], time[16][4][1024];
110 float bin_width[16][4][1024];
111 int i, j, b, chn, n, chn_index, n_boards;
112 double t1, t2, t3, t4, dt, dt34;
117 double threshold, sumdt, sumdt2;
class for raw data obtained from measurements or simulations
task for reading raw data from binary files