SOLARIS_GTK4_DAQ/script.C

28 lines
515 B
C++
Raw Normal View History

2023-01-11 17:53:37 -05:00
#include "SolReader.h"
void script(){
SolReader * reader = new SolReader("haha_000.sol");
Event * evt = reader->evt;
reader->ScanNumBlock();
for( int i = 0; i < 2; i++){
printf("########### nBlock : %u\n", reader->GetNumBlock());
reader->ReadBlock();
evt->PrintAll();
reader->evt->PrintAllTrace();
}
//printf("reader traceLength : %lu \n", evt->traceLenght);
/*
for( int i = 0; i < evt->traceLenght; i++){
printf("%4d| %d\n", i, evt->analog_probes[0][i]);
}
*/
}