CFEL - ASG Software Suite
2.5.0
CASS
|
Calculate the common mode by taking mean of pixel values. More...
#include <commonmode_calculators.h>
Public Member Functions | |
SimpleMeanCalculator () | |
constructor More... | |
Detector::pixel_t | operator() (Detector::frame_t::const_iterator pixel, size_t idx) const |
the operation More... | |
void | loadSettings (CASSSettings &s) |
load the settings of this calculator More... | |
![]() | |
virtual | ~CalculatorBase () |
virtual destructor More... | |
void | load (CASSSettings &s) |
load all common settings More... | |
size_t | width () const |
retrieve the number of pixels (or the width of calculation More... | |
Private Attributes | |
size_t | _minNbrPixels |
mininmal number of pixels that should be present when calculating the mean More... | |
Additional Inherited Members | |
![]() | |
typedef std::tr1::shared_ptr< CalculatorBase > | shared_pointer |
typedef the shared pointer of this More... | |
![]() | |
static shared_pointer | instance (const std::string &type) |
create an instance of the requested functor More... | |
![]() | |
std::tr1::shared_ptr< CommonData > | _commondata |
the commonly used data container More... | |
size_t | _nbrPixels |
how many pixels should be used for calculating the common mode More... | |
float | _multiplier |
the multiplier to identify pixels that contain information More... | |
Calculate the common mode by taking mean of pixel values.
This functor calculates the mean value of the pixels. To create the list of pixels it will check whether the pixel might contain an event such as an photon. If so it will not be included in the mean. There must be a minimum number of pixels without an event before the common mode is calculated.
To calculate the mean a simple accumulating average is done.
Definition at line 41 of file commonmode_calculators.h.
|
inline |
constructor
Definition at line 45 of file commonmode_calculators.h.
|
virtual |
load the settings of this calculator
s | the CASSSettings object to read the information from |
Implements cass::pixeldetector::commonmode::CalculatorBase.
Definition at line 105 of file commonmode_calculators.cpp.
References QSettings::beginGroup(), QSettings::endGroup(), and QSettings::value().
|
virtual |
the operation
determine the common mode level and return it.
pixel | the start pixel within the frame to start the common mode calculation |
idx | index of the first pixel. |
Implements cass::pixeldetector::commonmode::CalculatorBase.
Definition at line 80 of file commonmode_calculators.cpp.
|
private |
mininmal number of pixels that should be present when calculating the mean
Definition at line 66 of file commonmode_calculators.h.