9 #ifndef _MAPCREATORS_H_
10 #define _MAPCREATORS_H_
13 #include <tr1/functional>
99 std::tr1::function<Detector::frame_t::value_type(Detector::frame_t&, size_t, size_t)>
_calcOffset;
void operator()(const Frame &frame)
build map from frame
std::vector< Detector::frame_t > storage_t
the type of storage used
void loadSettings(CASSSettings &s)
load the settings of this creator
std::tr1::function< Detector::frame_t::value_type(Detector::frame_t &, size_t, size_t)> _calcOffset
the function that will calculate the offset
void train(const Frame &frame)
train the maps
void loadSettings(CASSSettings &s)
load the settings of this creator
bool _createMaps
flag to tell whether the maps should be created
contains base class for all correction map creators.
void controlCalibration(const std::string &unused)
start the training
bool _writeMaps
write maps flag
std::tr1::shared_ptr< CommonData > _commondata
the container with all the maps
Detector::pixel_t _aduThreshold
the adu threshold for identifying a potential hotpixel
float pixel_t
define a pixel of the pixel detector
void loadSettings(CASSSettings &s)
load the settings of this creator
storage_t _storage
the storage with all the frames from which the maps are calculated
size_t _trainingsize
how much frames should the training include
void operator()(const Frame &frame)
build map from frame
Creates maps from a fixed number of Frames.
char _hotpixThreshold
the nbr of consecutive frames that a hotpixel is high
storage_t _storage
the storage with all the frames from which the maps are calculated
std::tr1::function< void(const Frame &)> _createMap
the function object that will be called by the operator
float _alpha
how many frames should the memory go back
size_t _frameSave
after wich number of frames should the maps be written to file
size_t _minDisregarded
how many lowest values should be disregarded
std::tr1::shared_ptr< CommonData > _commondata
the container with all the maps
std::tr1::shared_ptr< CommonData > _commondata
the container with all the maps
size_t _framecounter
counter to keep track how many frames are collected
A Frame of an advance Pixel Detector.
void controlCalibration(const std::string &)
start accumulating the maps
float _multiplier
how much noise is allowed before disregarding pixel from list
size_t _maxDisregarded
how many highest values should be disregarded
Creates maps from the last number of maps.
size_t _nbrFrames
how many frames should be included to create the statistics
void updateMaps(const Frame &frame)
update the existing map with the incomming frame inforamtion
base class for all correction map creators
void operator()(const Frame &frame)
build map from frame
size_t _frameSave
after wich number of frames should the maps be written to file