NSCL DDAS 12.2-009
Support for XIA DDAS at FRIB
Functions
CPixieRunUtilities.cpp File Reference

Implementation of the run utilities class. More...

#include "CPixieRunUtilities.h"
#include <algorithm>
#include <chrono>
#include <cmath>
#include <iostream>
#include <sstream>
#include <thread>
#include <CXIAException.h>
#include <config.h>
#include <config_pixie16api.h>
#include "CDataGenerator.h"
#include "CPixieShimGuard.h"
Include dependency graph for CPixieRunUtilities.cpp:

Functions

CPixieRunUtilitiesCPixieRunUtilities_new ()
 Wrapper for the class constructor. More...
 
int CPixieRunUtilities_BeginHistogramRun (CPixieRunUtilities *utils, int mod, unsigned nchan)
 Wrapper to begin a list-mode histogram data run. More...
 
int CPixieRunUtilities_EndHistogramRun (CPixieRunUtilities *utils, int mod)
 Wrapper to end a list-mode histogram data run. More...
 
int CPixieRunUtilities_ReadHistogram (CPixieRunUtilities *utils, int mod, int chan)
 Wrapper to read histogram data. More...
 
int CPixieRunUtilities_BeginBaselineRun (CPixieRunUtilities *utils, int mod, unsigned nchan)
 Wrapper to begin a baseline data run. More...
 
int CPixieRunUtilities_EndBaselineRun (CPixieRunUtilities *utils, int mod)
 Wrapper to end a baseline data run. More...
 
int CPixieRunUtilities_ReadBaseline (CPixieRunUtilities *utils, int mod, int chan)
 Wrapper to read the baseline data. More...
 
int CPixieRunUtilities_ReadModuleStats (CPixieRunUtilities *utils, int mod)
 Wrapper to read run statistics from the module. More...
 
unsigned int * CPixieRunUtilities_GetHistogramData (CPixieRunUtilities *utils)
 Wrapper to marshall the histogram data; cannot throw, unguarded. More...
 
unsigned int * CPixieRunUtilities_GetBaselineData (CPixieRunUtilities *utils)
 Wrapper to marshall the baseline data; cannot throw, unguarded. More...
 
bool CPixieRunUtilities_GetRunActive (CPixieRunUtilities *utils)
 Wrapper to get the run active status. More...
 
void CPixieRunUtilities_SetUseGenerator (CPixieRunUtilities *utils, bool mode)
 Wrapper to setup the offline data generator; no return value, unguarded. More...
 
int CPixieRunUtilities_GetHistogramLength (CPixieRunUtilities *utils, int mod)
 Wrapper to get histogram length for a single module. More...
 
int CPixieRunUtilities_GetMaxBaselines (CPixieRunUtilities *utils, int mod)
 Wrapper to get the maximum number of baselines for a single module. More...
 
const char * CPixieRunUtilities_GetLastErrorMessage (CPixieRunUtilities *utils)
 Wrapper to get the last error message. Cannot throw; unguarded. More...
 
void CPixieRunUtilities_delete (CPixieRunUtilities *utils)
 Wrapper for the class destructor. More...
 

Detailed Description

Implementation of the run utilities class.

Function Documentation

◆ CPixieRunUtilities_BeginBaselineRun()

int CPixieRunUtilities_BeginBaselineRun ( CPixieRunUtilities utils,
int  mod,
unsigned  nchan 
)

Wrapper to begin a baseline data run.

◆ CPixieRunUtilities_BeginHistogramRun()

int CPixieRunUtilities_BeginHistogramRun ( CPixieRunUtilities utils,
int  mod,
unsigned  nchan 
)

Wrapper to begin a list-mode histogram data run.

◆ CPixieRunUtilities_delete()

void CPixieRunUtilities_delete ( CPixieRunUtilities utils)

Wrapper for the class destructor.

◆ CPixieRunUtilities_EndBaselineRun()

int CPixieRunUtilities_EndBaselineRun ( CPixieRunUtilities utils,
int  mod 
)

Wrapper to end a baseline data run.

◆ CPixieRunUtilities_EndHistogramRun()

int CPixieRunUtilities_EndHistogramRun ( CPixieRunUtilities utils,
int  mod 
)

Wrapper to end a list-mode histogram data run.

◆ CPixieRunUtilities_GetBaselineData()

unsigned int * CPixieRunUtilities_GetBaselineData ( CPixieRunUtilities utils)

Wrapper to marshall the baseline data; cannot throw, unguarded.

◆ CPixieRunUtilities_GetHistogramData()

unsigned int * CPixieRunUtilities_GetHistogramData ( CPixieRunUtilities utils)

Wrapper to marshall the histogram data; cannot throw, unguarded.

◆ CPixieRunUtilities_GetHistogramLength()

int CPixieRunUtilities_GetHistogramLength ( CPixieRunUtilities utils,
int  mod 
)

Wrapper to get histogram length for a single module.

◆ CPixieRunUtilities_GetLastErrorMessage()

const char * CPixieRunUtilities_GetLastErrorMessage ( CPixieRunUtilities utils)

Wrapper to get the last error message. Cannot throw; unguarded.

◆ CPixieRunUtilities_GetMaxBaselines()

int CPixieRunUtilities_GetMaxBaselines ( CPixieRunUtilities utils,
int  mod 
)

Wrapper to get the maximum number of baselines for a single module.

◆ CPixieRunUtilities_GetRunActive()

bool CPixieRunUtilities_GetRunActive ( CPixieRunUtilities utils)

Wrapper to get the run active status.

◆ CPixieRunUtilities_new()

CPixieRunUtilities * CPixieRunUtilities_new ( )

Wrapper for the class constructor.

◆ CPixieRunUtilities_ReadBaseline()

int CPixieRunUtilities_ReadBaseline ( CPixieRunUtilities utils,
int  mod,
int  chan 
)

Wrapper to read the baseline data.

◆ CPixieRunUtilities_ReadHistogram()

int CPixieRunUtilities_ReadHistogram ( CPixieRunUtilities utils,
int  mod,
int  chan 
)

Wrapper to read histogram data.

◆ CPixieRunUtilities_ReadModuleStats()

int CPixieRunUtilities_ReadModuleStats ( CPixieRunUtilities utils,
int  mod 
)

Wrapper to read run statistics from the module.

◆ CPixieRunUtilities_SetUseGenerator()

void CPixieRunUtilities_SetUseGenerator ( CPixieRunUtilities utils,
bool  mode 
)

Wrapper to setup the offline data generator; no return value, unguarded.