CFEL - ASG Software Suite  2.5.0
CASS
Public Member Functions | Private Attributes | List of all members
cass::pixeldetector::SimpleCoalesce Class Reference

simple coalescing of pixels More...

#include <coalesce_simple.h>

+ Inheritance diagram for cass::pixeldetector::SimpleCoalesce:
+ Collaboration diagram for cass::pixeldetector::SimpleCoalesce:

Public Member Functions

 SimpleCoalesce ()
 constructor More...
 
hits_toperator() (const Frame &frame, pixels_t &pixels, hits_t &hits)
 coalesce the pixels More...
 
void loadSettings (CASSSettings &s)
 load the settings of this More...
 
- Public Member Functions inherited from cass::pixeldetector::CoalescingBase
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

- Public Types inherited from cass::pixeldetector::CoalescingBase
typedef std::tr1::shared_ptr< CoalescingBaseshared_pointer
 typedef the shared pointer of this More...
 
typedef std::vector< Hithits_t
 define the list of coalesced pixels More...
 
typedef std::vector< Pixelpixels_t
 
- Static Public Member Functions inherited from cass::pixeldetector::CoalescingBase
static shared_pointer instance (const std::string &type)
 create an instance of the requested functor More...
 

Detailed Description

simple coalescing of pixels

take the input pixel list and coalesce it to hits on the detector.

User definable Parameters:

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

Author
Lutz Foucar

Definition at line 43 of file coalesce_simple.h.

Constructor & Destructor Documentation

SimpleCoalesce::SimpleCoalesce ( )

constructor

Definition at line 289 of file coalesce_simple.cpp.

Member Function Documentation

void SimpleCoalesce::loadSettings ( CASSSettings s)
virtual

load the settings of this

Parameters
sthe 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().

SimpleCoalesce::hits_t & SimpleCoalesce::operator() ( const Frame frame,
pixels_t pixels,
hits_t hits 
)
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()

Returns
reference to the coalesced pixel list
Parameters
framethe frame containing the pixels of interest
pixelsthe list of pixels that should be coalesced
hitsThe 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().

Member Data Documentation

size_t cass::pixeldetector::SimpleCoalesce::_maxPixelListSize
private

the maximmum size of the incomming pixel list that we will still work on

Definition at line 71 of file coalesce_simple.h.

uint16_t cass::pixeldetector::SimpleCoalesce::_maxRecursionDepth
private

how many times is the recursion be allowe to call itselve

Definition at line 74 of file coalesce_simple.h.

float cass::pixeldetector::SimpleCoalesce::_mipThreshold
private

the threshold above which a pixel is identified as MIP signature

Definition at line 77 of file coalesce_simple.h.

bool cass::pixeldetector::SimpleCoalesce::_notCheckCoalesce
private

flag to show whether the pixels should be coalesced

Definition at line 80 of file coalesce_simple.h.


The documentation for this class was generated from the following files: