CFEL - ASG Software Suite
2.5.0
CASS
|
simple coalescing of pixels More...
#include <coalesce_simple.h>
Public Member Functions | |
SimpleCoalesce () | |
constructor More... | |
hits_t & | operator() (const Frame &frame, pixels_t &pixels, hits_t &hits) |
coalesce the pixels More... | |
void | loadSettings (CASSSettings &s) |
load the settings of this More... | |
![]() | |
virtual | ~CoalescingBase () |
virtual destructor More... | |
Private Attributes | |
size_t | _maxPixelListSize |
the maximmum size of the incomming pixel list that we will still work on More... | |
uint16_t | _maxRecursionDepth |
how many times is the recursion be allowe to call itselve More... | |
float | _mipThreshold |
the threshold above which a pixel is identified as MIP signature More... | |
bool | _notCheckCoalesce |
flag to show whether the pixels should be coalesced More... | |
Additional Inherited Members | |
![]() | |
typedef std::tr1::shared_ptr< CoalescingBase > | shared_pointer |
typedef the shared pointer of this More... | |
typedef std::vector< Hit > | hits_t |
define the list of coalesced pixels More... | |
typedef std::vector< Pixel > | pixels_t |
![]() | |
static shared_pointer | instance (const std::string &type) |
create an instance of the requested functor More... | |
simple coalescing of pixels
take the input pixel list and coalesce it to hits on the detector.
PixelDetectors/%name%/SimpleCoalescing/{MaxPixelListSize}
Maximum size of the incomming pixel list that will be still treated by this functor. Default is 10000
PixelDetectors/%name%/SimpleCoalescing/{MipThreshold}
The threhold in ADU above which a pixel is regarded as part of a Ionizing Particle. Default is 1e6
PixelDetectors/%name%/SimpleCoalescing/{ShouldNotCheckCoalsescing}
Once a sublist of pixels that should be coalesced is found, usually the function checks whether it should be coalesced based on whether non of the sourrounding pixels is 0. This is bad when using this with detectors other than pnCCD. This flag when true will disable this check. Default is 'false'
PixelDetectors/%name%/SimpleCoalescing/{MaxRecursionDepth}
The maximum recursion depth whith which the recursive search for neighbouring pixels will be done. For details see cass::findNeighbours(). Default is 7
Definition at line 43 of file coalesce_simple.h.
SimpleCoalesce::SimpleCoalesce | ( | ) |
constructor
Definition at line 289 of file coalesce_simple.cpp.
|
virtual |
load the settings of this
s | the CASSSettings object to read the information from |
Implements cass::pixeldetector::CoalescingBase.
Definition at line 292 of file coalesce_simple.cpp.
References QSettings::beginGroup(), QSettings::endGroup(), and QSettings::value().
|
virtual |
coalesce the pixels
use a simple recursive algorithm to find pixels that are neighbours. See cass::findNeighbours(). After a check whether the pixels should be coalesced, see cass::shouldCoalescePixel(), coalesce the pixels to hits, see cass::coalesce()
frame | the frame containing the pixels of interest |
pixels | the list of pixels that should be coalesced |
hits | The list where the pixels that were coalesced to hits go in |
Implements cass::pixeldetector::CoalescingBase.
Definition at line 302 of file coalesce_simple.cpp.
References cass::pixeldetector::coalesce(), cass::pixeldetector::findNeighbours(), hit, hits, cass::pixeldetector::Direction::origin, and cass::pixeldetector::shouldCoalescePixel().
|
private |
the maximmum size of the incomming pixel list that we will still work on
Definition at line 71 of file coalesce_simple.h.
|
private |
how many times is the recursion be allowe to call itselve
Definition at line 74 of file coalesce_simple.h.
|
private |
the threshold above which a pixel is identified as MIP signature
Definition at line 77 of file coalesce_simple.h.
|
private |
flag to show whether the pixels should be coalesced
Definition at line 80 of file coalesce_simple.h.