Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
StatsData Class Reference

Class to store statistics data from data stream in original format. More...

#include <StatsData.hpp>

Collaboration diagram for StatsData:

Public Member Functions

 StatsData (void)
 
 ~StatsData ()
 
void DoStatisticsBlock (pixie::word_t *buf, int vsn)
 
double GetCurrTime (unsigned int id) const
 
double GetDiffPeaks (unsigned int id) const
 
double GetDiffTime (unsigned int id) const
 
double GetRealTime (unsigned int mod=0) const
 

Static Public Attributes

static const pixie::word_t headerLength = 1
 the header length
 

Private Attributes

double firstTime
 
pixie::word_t oldData [maxVsn][statSize]
 
pixie::word_t data [maxVsn][statSize]
 

Static Private Attributes

static const size_t statSize = N_DSP_PAR - DSP_IO_BORDER
 Size of the start.
 
static const size_t maxVsn = 14
 maximum value of the vsn
 

Detailed Description

Class to store statistics data from data stream in original format.

Constructor & Destructor Documentation

StatsData::StatsData ( void  )

Default Constructor that clears the data structures

StatsData::~StatsData ( )
inline

Default Destructor

Member Function Documentation

void StatsData::DoStatisticsBlock ( pixie::word_t buf,
int  vsn 
)

Copy the statistics data from the data stream to a memory block, preserving a copy of the old statistics data so that the incremental change can be determined

Parameters
[in]buf: the buffer to get the stats from
[in]vsn: the vsn of the buffer
double StatsData::GetCurrTime ( unsigned int  id) const
Returns
the most recent statistics live time for a given id
Parameters
[in]id: the id you want the time for
double StatsData::GetDiffPeaks ( unsigned int  id) const
Returns
the change in the number of fast peaks between the two most recent statistics blocks for a given id
Parameters
[in]id: the id you want the different peaks from
double StatsData::GetDiffTime ( unsigned int  id) const
Returns
the elapsed live time between the two most recent statistics blocks for a given channel.
Parameters
[in]id: the id you want the time diff for
double StatsData::GetRealTime ( unsigned int  mod = 0) const
Returns
run time from the statistics block for a given module
Parameters
[in]mod: the module you want the time for

Field Documentation

pixie::word_t StatsData::data[maxVsn][statSize]
private

Statistics data from each module

double StatsData::firstTime
private

Store the time of the first statistics block

pixie::word_t StatsData::oldData[maxVsn][statSize]
private

Older statistics data to calculate the change in statistics


The documentation for this class was generated from the following file: