RdNoiseBinaryToROOTConverter.h
Go to the documentation of this file.
1 #ifndef __RdNoiseBinaryToROOTConverter_RdNoiseBinaryToROOTConverter_h_
2 #define __RdNoiseBinaryToROOTConverter_RdNoiseBinaryToROOTConverter_h_
3 
4 #include <string>
5 
6 namespace RdNoiseConverter {
7 
8  struct EventN {
9  int traceCh0[2048] = {0};
10  int traceCh1[2048] = {0};
11  int stationId = 0;
12  int sec = 0;
13  int nanosec = 0;
14  int evtno = 0;
15  };
16 
18 
19  public:
20 
21  bool IsNoiseTrace(const EventN& noiseEvent, const double meanCh0, const double meanCh1);
22  void ReadFromBinaryFile(const std::string fileName, const int maxTraces);
23 
24  };
25 
26 }
27 
28 
29 #endif
bool IsNoiseTrace(const EventN &noiseEvent, const double meanCh0, const double meanCh1)
void ReadFromBinaryFile(const std::string fileName, const int maxTraces)

, generated on Tue Sep 26 2023.