16 using namespace commonmode;
26 Detector::frame_t::iterator
pixel(frame.
data.begin());
27 Detector::frame_t::const_iterator
offset(_commondata->offsetMap.begin());
28 Detector::frame_t::const_iterator
correction(_commondata->correctionMap.begin());
30 float commonmodeLevel(0);
31 const size_t width(_commonModeCalculator->width());
32 const size_t parts(frame.
data.size() /
width);
33 for (
size_t part(0); part < parts; ++part)
35 commonmodeLevel = calcCommonMode(
pixel,idx);
38 *pixel = (*pixel - *offset - commonmodeLevel) * *correction;
49 string commonmodetype (s.
value(
"CommonModeCalculationType",
"none").toString().toStdString());
51 _commonModeCalculator->loadSettings(s);
contains hll correctionlike frame processor.
HLLProcessor()
constructor
static std::string fromSettings(const CASSSettings &s)
retrieve it from the casssettings
set up the common mode correction
value(const QString &key, const QVariant &defaultValue=QVariant()
static shared_pointer instance(const std::string &type)
create an instance of the requested functor
Frame & operator()(Frame &frame)
process the frame
A Frame of an advance Pixel Detector.
Detector::frame_t data
the frame data
file contains specialized class that do the settings for cass
static shared_pointer instance(const instancesmap_t::key_type &detector)
static function creating instance of this.
int16_t pixel
define a pixel
void loadSettings(CASSSettings &s)
load the settings of this processor
base class for all common mode calculators
beginGroup(const QString &prefix)