PAASS
Software suite to Acquire and Analyze Data from Pixie16
poll2_core.h File Reference

Controls the poll2 command interpreter and data acquisition system. More...

#include <vector>
#include "PixieInterface.h"
#include "hribf_buffers.h"
Include dependency graph for poll2_core.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  MCA_args
 
struct  UDP_Packet
 
struct  data_pack
 
class  Poll
 

Macros

#define maxEventSize   4095
 
#define POLL2_CORE_VERSION   "1.4.14"
 
#define POLL2_CORE_DATE   "Aug. 17th, 2016"
 
#define MAX_ORPH_DATA   1464
 

Typedefs

typedef PixieInterface::word_t word_t
 
typedef word_t eventdata_t[maxEventSize]
 

Functions

bool IsNumeric (const std::string &input_, const std::string &prefix_="", const std::string &msg_="")
 
std::string humanReadable (double size)
 Convert a rate number to more useful form. More...
 
std::string pad_string (const std::string &input_, unsigned int length_)
 Pad a string with periods until it is the specified length_. More...
 
std::string yesno (bool value_)
 Return a string containing "yes" for value_==true and "no" for value_==false. More...
 

Detailed Description

Controls the poll2 command interpreter and data acquisition system.

The Poll class is used to control the command interpreter and data acqusition systems. Command input and the command line interface of poll2 are handled by the external library CTerminal. Pixie16 data acquisition is handled by interfacing with the PixieInterface library.

Author
Cory R. Thornsberry
Date
Oct. 6th, 2015
Version
1.3.10

Definition in file poll2_core.h.

Macro Definition Documentation

§ MAX_ORPH_DATA

#define MAX_ORPH_DATA   1464

Definition at line 31 of file poll2_core.h.

§ maxEventSize

#define maxEventSize   4095

Definition at line 25 of file poll2_core.h.

§ POLL2_CORE_DATE

#define POLL2_CORE_DATE   "Aug. 17th, 2016"

Definition at line 28 of file poll2_core.h.

§ POLL2_CORE_VERSION

#define POLL2_CORE_VERSION   "1.4.14"

Definition at line 27 of file poll2_core.h.

Typedef Documentation

§ eventdata_t

typedef word_t eventdata_t[maxEventSize]

Definition at line 34 of file poll2_core.h.

§ word_t

Definition at line 33 of file poll2_core.h.

Function Documentation

§ humanReadable()

std::string humanReadable ( double  size)

Convert a rate number to more useful form.

Here is the caller graph for this function:

§ IsNumeric()

bool IsNumeric ( const std::string &  input_,
const std::string &  prefix_,
const std::string &  msg_ 
)

IsNumeric: Check if an input string is strictly numeric.

Parameters
[in]input_String to check.
[in]prefix_String to print before the error message is printed.
[in]msg_Error message to print if the value is not numeric.
Returns
true if the string is strictly numeric and false otherwise.

Definition at line 67 of file poll2_core.cpp.

Here is the caller graph for this function:

§ pad_string()

std::string pad_string ( const std::string &  input_,
unsigned int  length_ 
)

Pad a string with periods until it is the specified length_.

Here is the caller graph for this function:

§ yesno()

std::string yesno ( bool  value_)

Return a string containing "yes" for value_==true and "no" for value_==false.

Here is the caller graph for this function: