CFEL - ASG Software Suite
2.5.0
CASS
|
base class for all common mode calculators More...
#include <commonmode_calculator_base.h>
Public Types | |
typedef std::tr1::shared_ptr< CalculatorBase > | shared_pointer |
typedef the shared pointer of this More... | |
Public Member Functions | |
virtual | ~CalculatorBase () |
virtual destructor More... | |
virtual Detector::pixel_t | operator() (Detector::frame_t::const_iterator pixel, size_t idx) const =0 |
determine the common mode value More... | |
virtual void | loadSettings (CASSSettings &s)=0 |
load the settings of this calculator 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... | |
Static Public Member Functions | |
static shared_pointer | instance (const std::string &type) |
create an instance of the requested functor More... | |
Protected Attributes | |
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... | |
base class for all common mode calculators
the calculators determine the common mode of the a user defined part of the row and return the value for correcting the frame.
PixelDetectors/%name%/HLLProcessing/CommonModeCorrection/{Width}
How many pixels shoudl be included in the common mode correction. The width of one Camex is 128 pixels. Sometimes it is better to to calculate the common mode from the entire quadrant in which case it should be 512. Default is 128.
PixelDetectors/%name%/HLLProcessing/CommonModeCorrection/{Multiplier}
When suppressing pixels in the common mode calculation that contain photons this is the multiplier that should be added to the noise before checking for photons. Default is 4
Definition at line 46 of file commonmode_calculator_base.h.
typedef std::tr1::shared_ptr<CalculatorBase> cass::pixeldetector::commonmode::CalculatorBase::shared_pointer |
typedef the shared pointer of this
Definition at line 50 of file commonmode_calculator_base.h.
|
inlinevirtual |
virtual destructor
Definition at line 53 of file commonmode_calculator_base.h.
|
static |
create an instance of the requested functor
type | the reqested type |
Definition at line 55 of file commonmode_calculator_base.cpp.
Referenced by cass::pixeldetector::HLLProcessor::loadSettings(), cass::pixeldetector::GainCalibration::loadSettings(), and cass::pixeldetector::OnlineFixedCreatorCommonMode::loadSettings().
void CalculatorBase::load | ( | CASSSettings & | s | ) |
load all common settings
s | the CASSSettings object to read the information from |
Definition at line 72 of file commonmode_calculator_base.cpp.
References QSettings::beginGroup(), QSettings::endGroup(), cass::pixeldetector::DetectorName::fromSettings(), cass::pixeldetector::CommonData::instance(), and QSettings::value().
|
pure virtual |
load the settings of this calculator
s | the CASSSettings object to read the information from |
Implemented in cass::pixeldetector::commonmode::MedianCalculator, cass::pixeldetector::commonmode::MeanCalculator, cass::pixeldetector::commonmode::SimpleMeanCalculator, and cass::pixeldetector::commonmode::NoCalc.
|
pure virtual |
determine the common mode value
calculate the common mode from the given index on.
pixel | the start pixel within the frame to start the common mode calculation |
idx | index where the pixel iterator is right now within the frame |
Implemented in cass::pixeldetector::commonmode::MedianCalculator, cass::pixeldetector::commonmode::MeanCalculator, cass::pixeldetector::commonmode::SimpleMeanCalculator, and cass::pixeldetector::commonmode::NoCalc.
|
inline |
retrieve the number of pixels (or the width of calculation
Definition at line 86 of file commonmode_calculator_base.h.
References _nbrPixels.
Referenced by cass::pixeldetector::OnlineFixedCreatorCommonMode::buildAndCalc().
|
protected |
the commonly used data container
Definition at line 90 of file commonmode_calculator_base.h.
|
protected |
the multiplier to identify pixels that contain information
Definition at line 96 of file commonmode_calculator_base.h.
|
protected |
how many pixels should be used for calculating the common mode
Definition at line 93 of file commonmode_calculator_base.h.
Referenced by width().