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

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

#include <algorithm>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include <string.h>
#include <stdlib.h>
#include <sstream>
#include <ctime>
#include <cmath>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include "poll2_core.h"
#include "poll2_socket.h"
#include "poll2_stats.h"
#include "CTerminal.h"
#include "PixieSupport.h"
#include "Utility.h"
#include "Display.h"
#include "MCA_ROOT.h"
#include "MCA_DAMM.h"
Include dependency graph for poll2_core.cpp:

Go to the source code of this file.

Macros

#define POLL_TRIES   100
 
#define MAX_FILE_SIZE   4294967296ll
 
#define PKT_HEAD_LEN   8
 
#define MAX_PKT_DATA   (MAX_ORPH_DATA - PKT_HEAD_LEN)
 

Functions

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

Variables

std::vector< std::string > chan_params
 
std::vector< std::string > mod_params
 

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.cpp.

Macro Definition Documentation

§ MAX_FILE_SIZE

#define MAX_FILE_SIZE   4294967296ll

Definition at line 53 of file poll2_core.cpp.

§ MAX_PKT_DATA

#define MAX_PKT_DATA   (MAX_ORPH_DATA - PKT_HEAD_LEN)

Definition at line 59 of file poll2_core.cpp.

§ PKT_HEAD_LEN

#define PKT_HEAD_LEN   8

Definition at line 56 of file poll2_core.cpp.

§ POLL_TRIES

#define POLL_TRIES   100

Definition at line 50 of file poll2_core.cpp.

Function Documentation

§ 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:

Variable Documentation

§ chan_params

std::vector<std::string> chan_params
Initial value:
= {"TRIGGER_RISETIME", "TRIGGER_FLATTOP", "TRIGGER_THRESHOLD", "ENERGY_RISETIME", "ENERGY_FLATTOP", "TAU", "TRACE_LENGTH",
"TRACE_DELAY", "VOFFSET", "XDT", "BASELINE_PERCENT", "EMIN", "BINFACTOR", "CHANNEL_CSRA", "CHANNEL_CSRB", "BLCUT",
"ExternDelayLen", "ExtTrigStretch", "ChanTrigStretch", "FtrigoutDelay", "FASTTRIGBACKLEN"}

Definition at line 77 of file poll2_core.cpp.

§ mod_params

std::vector<std::string> mod_params
Initial value:
= {"MODULE_CSRA", "MODULE_CSRB", "MODULE_FORMAT", "MAX_EVENTS", "SYNCH_WAIT", "IN_SYNCH", "SLOW_FILTER_RANGE",
"FAST_FILTER_RANGE", "MODULE_NUMBER", "TrigConfig0", "TrigConfig1", "TrigConfig2","TrigConfig3"}

Definition at line 81 of file poll2_core.cpp.