10 #ifndef _COMMONMODECALCULATORBASE_H_
11 #define _COMMONMODECALCULATORBASE_H_
60 static shared_pointer
instance(
const std::string &type);
std::tr1::shared_ptr< CalculatorBase > shared_pointer
typedef the shared pointer of this
float pixel_t
define a pixel of the pixel detector
size_t _nbrPixels
how many pixels should be used for calculating the common mode
size_t width() const
retrieve the number of pixels (or the width of calculation
virtual void loadSettings(CASSSettings &s)=0
load the settings of this calculator
void load(CASSSettings &s)
load all common settings
float _multiplier
the multiplier to identify pixels that contain information
static shared_pointer instance(const std::string &type)
create an instance of the requested functor
contains container for simple pixel detector data
virtual Detector::pixel_t operator()(Detector::frame_t::const_iterator pixel, size_t idx) const =0
determine the common mode value
virtual ~CalculatorBase()
virtual destructor
int16_t pixel
define a pixel
base class for all common mode calculators
std::tr1::shared_ptr< CommonData > _commondata
the commonly used data container