My Project
|
Classes | |
struct | RegCalData |
struct | RegCalSlot |
Public Member Functions | |
RegCal (ArrayMap *arrayMap=NULL, bool archivedOnly=false) | |
RegCal (RegCal ®Cal) | |
virtual | ~RegCal () |
void | loadCalFile (std::string dir, std::string name, bool doThrow=true) |
void | loadCalStream (InputStream *stream, bool doThrow=true) |
void | calibrateRegData (RegisterSet *registerSet, RegRawData *raw) |
void | calibrateRegData (RegisterSet ®set, ArrayDataFrameManager &fm) |
void | calibrateRegData (RegSet *registerSet, ArrayDataFrameManager *fm) |
void | reset () |
void | printCalFactors (std::vector< RegDescription > ®s) |
RegCal::RegCalData * | calData () |
double * | getSlotPtr (unsigned iSlot) |
RegCal::RegCalSlot | getRegCalSlot (unsigned iSlot) |
RegCal::RegCal | ( | ArrayMap * | arrayMap = NULL , |
bool | archivedOnly = false |
||
) |
Constructor.
....................................................................... Create a new register calibration object from a given register map and a given register calibration file.
Input: regmap RegMap * The register map. Output: return RegCal * The new register calibration object, or NULL on error.
RegCal::RegCal | ( | RegCal & | regCal | ) |
Copy constructor
....................................................................... Copy constructor
|
virtual |
Destructor.
|
inline |
Get a pointer to the calibrated data
void RegCal::loadCalFile | ( | std::string | dir, |
std::string | name, | ||
bool | doThrow = true |
||
) |
Load calibration parameters from a file. Note that this is just a convenient wrapper around load_cal_stream() that creates a temporary input stream and attaches it to the specified file.
....................................................................... Load a calibration file and record the results in regcal->slots[].
void RegCal::loadCalStream | ( | InputStream * | stream, |
bool | doThrow = true |
||
) |
Load calibration parameters from an input stream.
void RegCal::printCalFactors | ( | std::vector< RegDescription > & | regs | ) |
Print cal factors for the requested register
....................................................................... Print cal factors for the requested register