Definition at line 64 of file GlobalMethods.h.
std::string pdscalibdata::stringFromUint | ( | unsigned | number, | |
unsigned | width = 6 , |
|||
char | fillchar = '0' | |||
) |
Definition at line 59 of file GlobalMethods.cpp.
void pdscalibdata::printSizeOfTypes | ( | ) |
Definition at line 68 of file GlobalMethods.cpp.
float pdscalibdata::findCommonMode | ( | const double * | pars, | |
const int16_t * | sdata, | |||
const float * | peddata, | |||
const uint16_t * | pixStatus, | |||
unsigned | ssize, | |||
int | stride = 1 | |||
) |
Find common mode for an CsPad section.
Function will return UnknownCM value if the calculation cannot be performed (or need not be performed).
pars | array[3] of control parameters | |
sdata | pixel data | |
peddata | pedestal data, can be zero pointer | |
pixStatus | pixel status data, can be zero pointer | |
ssize | size of all above arrays | |
stride | increment for pixel indices |
Definition at line 124 of file GlobalMethods.cpp.
References PSQt::hist(), and UnknownCM.
std::string pdscalibdata::strTimeStamp | ( | const std::string & | format = std::string("%Y-%m-%d %H:%M:%S") |
) |
Definition at line 234 of file GlobalMethods.cpp.
Referenced by pdscalibdata::NDArrIOV1< TDATA, NDIM >::save_ndarray().
std::string pdscalibdata::strEnvVar | ( | const std::string & | str = std::string("LOGNAME") |
) |
Definition at line 245 of file GlobalMethods.cpp.
Referenced by pdscalibdata::NDArrIOV1< TDATA, NDIM >::save_ndarray().
std::string pdscalibdata::strOfDataTypeAndSize | ( | ) |
Definition at line 116 of file GlobalMethods.h.
DATA_TYPE pdscalibdata::enumDataTypeForString | ( | std::string | str_type | ) |
std::string pdscalibdata::strDataTypeForEnum | ( | DATA_TYPE | enum_type | ) |
DATA_TYPE pdscalibdata::enumDataType | ( | ) |
std::string pdscalibdata::strDataType | ( | ) |
void pdscalibdata::load_pars_from_file | ( | const std::string & | fname, | |
const std::string & | comment, | |||
const size_t | size, | |||
T * | pars, | |||
const unsigned | check_bits = 255 | |||
) |
Load parameters from file.
[in] | fname | - path to the file with parameters |
[in] | comment | - comment to print with messages |
[in] | size | - size of array with parameters; number of values to load from file |
[out] | pars | - pointer to array with parameters |
[in] | check_bits | - +1: check if input does not have enough data, +2: check if file has extra data |
Definition at line 171 of file GlobalMethods.h.
References GeometryAccess::msg.
const int pdscalibdata::UnknownCM = -10000 [static] |