9 #ifndef _GAINCALIBRATION_H_
10 #define _GAINCALIBRATION_H_
13 #include <tr1/functional>
131 std::pair<Detector::frame_t::value_type,Detector::frame_t::value_type>
_range;
std::pair< int, double > statistics_t
define a conatiner for a statistics of a pixel
std::tr1::shared_ptr< CalculatorBase > shared_pointer
typedef the shared pointer of this
contains base class for all common mode calculators.
std::vector< statistics_t > _statistics
container for the statistics for each pixel
contains base class for all correction map creators.
commonmode::CalculatorBase::shared_pointer _commonModeCalculator
functor for calculating the common mode level
void loadSettings(CASSSettings &s)
load the settings of this creator
statistics_t::first_type _minPhotonCount
minimum nbr of photon seen by a pixel before the average will used
Creates a gain calibration.
std::tr1::shared_ptr< CommonData > _commondata
the container with all the maps
void controlCalibration(const std::string &unused)
start the gain calibration
int64_t _counter
counter to see how many frames have been processed
Detector::frame_t::value_type _constGain
the value that will be set when not enough statistics is present
void operator()(const Frame &frame)
generate gain map from frame
void generateCalibration(const Frame &frame)
generate gain calibration data
void doNothing(const Frame &)
a function that just returns and does nothing
A Frame of an advance Pixel Detector.
std::pair< Detector::frame_t::value_type, Detector::frame_t::value_type > _range
range of ADU values that are of interest
bool _writeFile
flag whether to write the gain calibration to file
base class for all correction map creators
statistics_t::first_type _minMedianCounts
the minimum nbr of photons that the median needs before the gain will calculated
std::tr1::function< void(const Frame &)> _createMap
the function object that will be called by the operator
int64_t _nFrames
how many frames should be processed