YAODAQ
Data.hpp
1 #pragma once
2 
3 #include "Config.hpp"
4 
5 #include <cstdio>
6 
8 {
9 public:
10  bool ContinuousPlot{false};
11  int RunHisto{1};
12  bool isNewEvent{false};
13 };
14 
15 class Data
16 {
17 public:
18  Data() {}
19  ~Data()
20  {
21  if(Event8 != nullptr) delete Event8;
22  if(Event16 != nullptr) delete Event16;
23  if(Event742 != nullptr) delete Event742;
24  }
25  CAEN_DGTZ_UINT16_EVENT_t* Event16{nullptr};
26  CAEN_DGTZ_UINT8_EVENT_t* Event8{nullptr};
27  CAEN_DGTZ_BoardInfo_t BoardInfo;
28  CAEN_DGTZ_EventInfo_t EventInfo;
29  CAEN_DGTZ_X742_EVENT_t* Event742{nullptr}; /* custom event struct with 8 bit data (only for 8 bit
30  digitizers) */
31  WaveDumpConfig_t WDcfg;
32  bool isTimeOut{false};
33  int NbrEvents{0};
34  WaveDumpRun_t WDrun;
35 };
Definition: Config.hpp:25
Definition: Data.hpp:7
Definition: Data.hpp:15