Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
StatsData.hpp
1 
4 #ifndef __STATS_DATA_HPP__
5 #define __STATS_DATA_HPP__
6 
8 class StatsData {
9 private:
10  static const size_t statSize = N_DSP_PAR - DSP_IO_BORDER;
11  static const size_t maxVsn = 14;
12 
13  double firstTime;
16 public:
17  static const pixie::word_t headerLength = 1;
18 
20  StatsData(void);
23 
29  void DoStatisticsBlock(pixie::word_t *buf, int vsn);
30 
33  double GetCurrTime(unsigned int id) const;
34 
38  double GetDiffPeaks(unsigned int id) const;
39 
43  double GetDiffTime(unsigned int id) const;
44 
47  double GetRealTime(unsigned int mod = 0) const;
48 };
49 
50 #endif
double GetCurrTime(unsigned int id) const
double GetDiffTime(unsigned int id) const
~StatsData()
Definition: StatsData.hpp:22
Class to store statistics data from data stream in original format.
Definition: StatsData.hpp:8
StatsData(void)
pixie::word_t data[maxVsn][statSize]
Definition: StatsData.hpp:15
static const size_t maxVsn
maximum value of the vsn
Definition: StatsData.hpp:11
static const size_t statSize
Size of the start.
Definition: StatsData.hpp:10
double GetRealTime(unsigned int mod=0) const
void DoStatisticsBlock(pixie::word_t *buf, int vsn)
pixie::word_t oldData[maxVsn][statSize]
Definition: StatsData.hpp:14
static const pixie::word_t headerLength
the header length
Definition: StatsData.hpp:17
double firstTime
Definition: StatsData.hpp:13
uint32_t word_t
a pixie word
Definition: Globals.hpp:31
double GetDiffPeaks(unsigned int id) const