CFEL - ASG Software Suite  2.5.0
CASS
Functions
cass::ACQIRIS::AchimCalibrator Namespace Reference

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 > &center, const vector< double > &scalefactors)
 shift the position More...
 
void shift_wLayer (double &w1, double &w2, const double w_offset)
 shift the w-layer More...
 

Function Documentation

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

Parameters
layerThe vector containing all the layers signals
centerThe center of the image in mm
scalefactorsThe scalefactors for the layers
Author
Achim Czasch
Lutz Foucar

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

Parameters
valuesThe values that need to be shifted
sumsThe sums that they need to be shifted by
Author
Achim Czasch
Lutz Foucar

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.

Parameters
w1The first signal on the w-layer
w2The second signal on the w-layer
w_offsetThe offset of the w-layer with respect to the u and v layers
Author
Achim Czasch
Lutz Foucar

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.

Parameters
sthe QSettings object that handles the sorter/calibrator .ini file
tsum_calibratorthe timesum calibrator that hold infomration about the timesum calibration data
scalefactor_calibratorthe scalefactor calibrator that holds information about the scalefactor calibration data.
Author
Lutz Foucar

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.

Parameters
sthe QSettings object that handles the .ini file
profilethe profile that whos stuff needs to be written to the .ini file
Author
Lutz Foucar

Definition at line 47 of file achimcalibrator_hex.cpp.

References QSettings::setArrayIndex(), QSettings::setValue(), and size.

Referenced by writeCalibData().