PAASS
Software suite to Acquire and Analyze Data from Pixie16
|
A program to convert a pixie16 binary .set file into a root file. More...
Go to the source code of this file.
Macros | |
#define | FILTER_CLOCK 8E-3 |
#define | ADC_CLOCK 4E-3 |
#define | READ_SIZE 1280 |
Functions | |
parameter * | findParameter (std::vector< parameter > ¶ms, const unsigned int &offset_) |
bool | readVarFile (std::vector< parameter > ¶ms, const char *var_filename_) |
int | readSetFile (std::vector< parameter > ¶ms, const char *set_filename_, const size_t &offset_, const size_t &len_=READ_SIZE) |
void | closeFile (std::ofstream &f_) |
void | help (char *prog_name_) |
int | main (int argc, char *argv[]) |
A program to convert a pixie16 binary .set file into a root file.
This program reads a pixie16 dsp variable file (.var) and a binary .set file and outputs a .root file containing the names of the pixie16 parameters and their values.
Definition in file set2root.cpp.
#define ADC_CLOCK 4E-3 |
Definition at line 23 of file set2root.cpp.
#define FILTER_CLOCK 8E-3 |
Definition at line 22 of file set2root.cpp.
#define READ_SIZE 1280 |
Definition at line 24 of file set2root.cpp.
void closeFile | ( | std::ofstream & | f_ | ) |
Find a parameter with a given file offset. This function returns NULL if a match was not found, and a returns a pointer to a parameter object upon success. param[in] params : Vector filled with parameter objects. param[in] offset_ : Set file offset to attempt to match.
Definition at line 85 of file set2root.cpp.
void help | ( | char * | prog_name_ | ) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
int readSetFile | ( | std::vector< parameter > & | params, |
const char * | set_filename_, | ||
const size_t & | offset_, | ||
const size_t & | len_ = READ_SIZE |
||
) |
Read a pixie16 .set file and store the integer values in a vector of parameter objects. This function returns -1 if an error occured, and the number of entries read upon success. param[in] params : Vector filled with parameter objects. param[in] set_filename_ : Filename of the .set file to read. param[in] offset_ : The number of words to skip at the beginning of the file. param[in] len_ : The number of words to read form the file.
Definition at line 136 of file set2root.cpp.
bool readVarFile | ( | std::vector< parameter > & | params, |
const char * | var_filename_ | ||
) |
Read a pixie16 .var dsp file and store the parameter names and offsets in a vector of parameter objects. This function returns false if an error occured, and true upon success. param[out] params : Vector to be filled with parameter objects. param[in] var_filename_ : Filename of the .var file to read.
Definition at line 98 of file set2root.cpp.