CFEL - ASG Software Suite
2.5.0
CASS
|
Functions | |
void | writeProfileData (QSettings &s, profile_class &profile) |
write the profile part of calibration data into an ini file More... | |
void | writeCalibData (QSettings &s, shared_ptr< sum_walk_calibration_class > tsum_calibrator, shared_ptr< scalefactors_calibration_class > scalefactor_calibrator) |
write all calibration data into an ini file More... | |
void | shift_sum (vector< double > &values, const vector< pair< double, double > > &sums) |
shift the values so that the timesum peaks around 0 More... | |
void | shift_pos (vector< double > &layer, const pair< double, double > ¢er, const vector< double > &scalefactors) |
shift the position More... | |
void | shift_wLayer (double &w1, double &w2, const double w_offset) |
shift the w-layer More... | |
void cass::ACQIRIS::AchimCalibrator::shift_pos | ( | vector< double > & | layer, |
const pair< double, double > & | center, | ||
const vector< double > & | scalefactors | ||
) |
shift the position
when the image is not centered around 0 one can use this function to shift it to 0
layer | The vector containing all the layers signals |
center | The center of the image in mm |
scalefactors | The scalefactors for the layers |
Definition at line 145 of file achimcalibrator_hex.cpp.
References cass::HexCalibrator::u, cass::HexCalibrator::u1, cass::HexCalibrator::v, cass::HexCalibrator::v2, cass::HexCalibrator::w, cass::HexCalibrator::w1, and cass::HexCalibrator::w2.
Referenced by cass::HexCalibrator::process().
void cass::ACQIRIS::AchimCalibrator::shift_sum | ( | vector< double > & | values, |
const vector< pair< double, double > > & | sums | ||
) |
shift the values so that the timesum peaks around 0
values | The values that need to be shifted |
sums | The sums that they need to be shifted by |
Definition at line 119 of file achimcalibrator_hex.cpp.
References cass::HexCalibrator::u, cass::HexCalibrator::u1, cass::HexCalibrator::u2, cass::HexCalibrator::v, cass::HexCalibrator::v1, cass::HexCalibrator::v2, cass::HexCalibrator::w, cass::HexCalibrator::w1, and cass::HexCalibrator::w2.
Referenced by cass::HexCalibrator::process().
void cass::ACQIRIS::AchimCalibrator::shift_wLayer | ( | double & | w1, |
double & | w2, | ||
const double | w_offset | ||
) |
shift the w-layer
use this function to align the w-layer to the u and v layer.
w1 | The first signal on the w-layer |
w2 | The second signal on the w-layer |
w_offset | The offset of the w-layer with respect to the u and v layers |
Definition at line 176 of file achimcalibrator_hex.cpp.
Referenced by cass::HexCalibrator::process().
void cass::ACQIRIS::AchimCalibrator::writeCalibData | ( | QSettings & | s, |
shared_ptr< sum_walk_calibration_class > | tsum_calibrator, | ||
shared_ptr< scalefactors_calibration_class > | scalefactor_calibrator | ||
) |
write all calibration data into an ini file
use the calibrators to extract the calibration data and then write that into the .ini file that is handled by a QSettings Object.
First generate the time sum profiles and write the correction data that is contained in the profiles to the .ini file. Then use the created histogram of the detector to get the scalefactors and the w layer offset.
s | the QSettings object that handles the sorter/calibrator .ini file |
tsum_calibrator | the timesum calibrator that hold infomration about the timesum calibration data |
scalefactor_calibrator | the scalefactor calibrator that holds information about the scalefactor calibration data. |
Definition at line 81 of file achimcalibrator_hex.cpp.
References QSettings::beginWriteArray(), QSettings::endArray(), QSettings::setValue(), QSettings::value(), and writeProfileData().
Referenced by cass::HexCalibrator::process().
void cass::ACQIRIS::AchimCalibrator::writeProfileData | ( | QSettings & | s, |
profile_class & | profile | ||
) |
write the profile part of calibration data into an ini file
extract the calibration data from the calibrators and write them into the requested ini file which will be handled by the QSettings object
extract the profile data from the layer sum profiles, that later correct the timesum.
s | the QSettings object that handles the .ini file |
profile | the profile that whos stuff needs to be written to the .ini file |
Definition at line 47 of file achimcalibrator_hex.cpp.
References QSettings::setArrayIndex(), QSettings::setValue(), and size.
Referenced by writeCalibData().