CFEL - ASG Software Suite
2.5.0
CASS
|
Creates the maps fast and simple. More...
#include <mapcreators_online.h>
Public Member Functions | |
void | operator() (const Frame &frame) |
the operator More... | |
void | controlCalibration (const std::string &unused) |
start accumulating the maps More... | |
void | loadSettings (CASSSettings &s) |
load the settings of this creator More... | |
![]() | |
virtual | ~MapCreatorBase () |
virtual destructor More... | |
Private Types | |
typedef std::vector< std::vector< Detector::pixel_t > > | specialstorage_t |
the special storage type of this class More... | |
Private Member Functions | |
void | doNothing (const Frame &) |
a function that just returns and does nothing More... | |
void | buildAndCalc (const Frame &frame) |
build up storage and then calculate the maps More... | |
Private Attributes | |
std::tr1::shared_ptr< CommonData > | _commondata |
the container with all the maps More... | |
std::tr1::function< void(const Frame &)> | _createMap |
the function object that will be called by the operator More... | |
specialstorage_t | _specialstorage |
storage where the pixels are already ordered More... | |
size_t | _nbrFrames |
how many frames should be collected before the maps are calculated More... | |
Detector::pixel_t | _multiplier |
the multiplier to define the max noise before the pixel is considered to contain a photon More... | |
bool | _writeMaps |
flag wether the create maps should be saved to file or just used More... | |
size_t | _framecounter |
counter to keep track how many frames are collected More... | |
Additional Inherited Members | |
![]() | |
typedef std::tr1::shared_ptr< MapCreatorBase > | shared_pointer |
typedef the shared pointer of this More... | |
typedef std::vector< Detector::frame_t > | storage_t |
the type of storage used More... | |
![]() | |
static shared_pointer | instance (const std::string &type) |
create an instance of the requested functor More... | |
Creates the maps fast and simple.
PixelDetectors/%name%/CorrectionMaps/FixedOnlineCreator/{Multiplier}
How much bigger does the pixel value have to be than the noise before The pixel is not taken into account when calculating the offset and noise of that pixel. Default is 4.
PixelDetectors/%name%/CorrectionMaps/FixedOnlineCreator/{NbrFrames}
The number of frames that should be collected for calculating the maps. Default is 200.
PixelDetectors/%name%/CorrectionMaps/FixedOnlineCreator/{StartInstantly}
Flag to tell whether the calculator should start instantly with collecting the frames and calculating the maps. If false it will wait until told by the program through the available GUI's. Default is false.
PixelDetectors/%name%/CorrectionMaps/FixedOnlineCreator/{WriteMaps}
Tell the creator to write the calulated maps once they have been calculated. For further infomration on how the files are written, see cass::pixeldetector::CommonData. Default is true.
Definition at line 54 of file mapcreators_online.h.
|
private |
the special storage type of this class
Definition at line 80 of file mapcreators_online.h.
|
private |
build up storage and then calculate the maps
frame | the frame to build up the storage and to calc the maps from |
as long as there are not enough frames collected build up the specail storage
calc noise and offset from all pixels
calc noise and offset from pixels that do not contain photon hits
write the maps to file if requested and recreate the correction map. then reset everything.
Definition at line 40 of file mapcreators_online.cpp.
References cass::Log::add(), cass::pixeldetector::Frame::columns, cass::pixeldetector::Frame::data, cass::Log::DEBUG0, doNothing(), QTime::elapsed(), cass::Log::INFO, noise, offset, cass::pixeldetector::Frame::rows, QTime::start(), cass::ACQIRIS::t, cass::toString(), and cass::Log::WARNING.
Referenced by controlCalibration(), and loadSettings().
|
virtual |
start accumulating the maps
unused | not used |
Reimplemented from cass::pixeldetector::MapCreatorBase.
Definition at line 33 of file mapcreators_online.cpp.
References cass::Log::add(), buildAndCalc(), cass::Log::INFO, and cass::toString().
|
inlineprivate |
a function that just returns and does nothing
unused | not used |
Definition at line 86 of file mapcreators_online.h.
Referenced by buildAndCalc(), and loadSettings().
|
virtual |
load the settings of this creator
s | the CASSSettings object to read the information from |
Reimplemented from cass::pixeldetector::MapCreatorBase.
Definition at line 132 of file mapcreators_online.cpp.
References cass::Log::add(), QSettings::beginGroup(), buildAndCalc(), doNothing(), QSettings::endGroup(), cass::pixeldetector::DetectorName::fromSettings(), cass::Log::INFO, cass::pixeldetector::CommonData::instance(), cass::toString(), and QSettings::value().
|
inlinevirtual |
the operator
just calls the function that creates the map. This function is exchanged depending on whether the frames should be calculated or not.
frame | the frame to check for |
Reimplemented from cass::pixeldetector::MapCreatorBase.
Definition at line 64 of file mapcreators_online.h.
References _createMap.
|
private |
the container with all the maps
Definition at line 95 of file mapcreators_online.h.
|
private |
the function object that will be called by the operator
Definition at line 98 of file mapcreators_online.h.
Referenced by operator()().
|
private |
counter to keep track how many frames are collected
Definition at line 113 of file mapcreators_online.h.
|
private |
the multiplier to define the max noise before the pixel is considered to contain a photon
Definition at line 107 of file mapcreators_online.h.
|
private |
how many frames should be collected before the maps are calculated
Definition at line 104 of file mapcreators_online.h.
|
private |
storage where the pixels are already ordered
Definition at line 101 of file mapcreators_online.h.
|
private |
flag wether the create maps should be saved to file or just used
Definition at line 110 of file mapcreators_online.h.