CFEL - ASG Software Suite  2.5.0
CASS
Public Types | Public Member Functions | Static Public Member Functions | List of all members
cass::pixeldetector::CoalescingBase Class Referenceabstract

base class for all coalescing functors More...

#include <coalescing_base.h>

+ Inheritance diagram for cass::pixeldetector::CoalescingBase:

Public Types

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
 

Public Member Functions

virtual ~CoalescingBase ()
 virtual destructor More...
 
virtual hits_toperator() (const Frame &frame, pixels_t &pixels, hits_t &hits)=0
 coalesce the pixels More...
 
virtual void loadSettings (CASSSettings &s)=0
 load the settings of this More...
 

Static Public Member Functions

static shared_pointer instance (const std::string &type)
 create an instance of the requested functor More...
 

Detailed Description

base class for all coalescing functors

coalscing function should coalesce pixels found in an analysis to form hits on a pixel detector.

Author
Lutz Foucar

Definition at line 34 of file coalescing_base.h.

Member Typedef Documentation

define the list of coalesced pixels

Definition at line 41 of file coalescing_base.h.

Definition at line 43 of file coalescing_base.h.

typedef the shared pointer of this

Definition at line 38 of file coalescing_base.h.

Constructor & Destructor Documentation

virtual cass::pixeldetector::CoalescingBase::~CoalescingBase ( )
inlinevirtual

virtual destructor

Definition at line 46 of file coalescing_base.h.

Member Function Documentation

CoalescingBase::shared_pointer CoalescingBase::instance ( const std::string &  type)
static

create an instance of the requested functor

Returns
a shared pointer to the requested type
Parameters
typethe reqested type

Definition at line 20 of file coalescing_base.cpp.

Referenced by cass::pixeldetector::AdvancedDetector::loadSettings().

virtual void cass::pixeldetector::CoalescingBase::loadSettings ( CASSSettings s)
pure virtual

load the settings of this

Parameters
sthe CASSSettings object to read the information from

Implemented in cass::pixeldetector::SimpleCoalesce.

virtual hits_t& cass::pixeldetector::CoalescingBase::operator() ( const Frame frame,
pixels_t pixels,
hits_t hits 
)
pure virtual

coalesce the pixels

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

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

Implemented in cass::pixeldetector::SimpleCoalesce.


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