19 for(
unsigned int i = 0; i <
numCards; i++){
27 for(
unsigned int i = 0; i <
numCards; i++){
60 for(
unsigned int i = 0; i <
numCards; i++){
80 std::cout <<
"Bad module " << mod <<
", numCards = " <<
numCards << std::endl;
84 std::cout <<
"Bad channel " << ch << std::endl;
128 char *message =
new char[msg_size];
132 memcpy(ptr, &
numCards, 4); ptr += 4;
134 memcpy(ptr, &dataRate, 8); ptr += 8;
135 for (
unsigned int i=0; i <
numCards; i++) {
165 for(
unsigned int i = 0; i <
numCards; i++){
void Close()
Close the socket.
double ** outputCountRate
The XIA Module output count rate.
double ** inputCountRate
The XIA Module input count rate.
Provides network connectivity for poll2.
double GetDataRate(size_t mod)
double GetTotalDataRate()
unsigned int ** nEventsTotal
void SetXiaRates(int mod, std::vector< std::pair< double, double >> *xiaRates)
Set the ICR and OCR from the XIA module.
bool Init(const char *address_, int port_)
StatsHandler(size_t nCards=1)
double GetEventRate(size_t mod)
int SendMessage(char *message_, size_t length_)
void Clear()
Clear the stats.
unsigned int ** nEventsDelta
void AddEvent(unsigned int mod, unsigned int ch, size_t size, int delta_=1)
bool AddTime(double dtime)
double GetTotalTime()
Return the total run time.