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

Base class for all detector analyzers. More...

#include <detector_analyzer_backend.h>

+ Inheritance diagram for cass::ACQIRIS::DetectorAnalyzerBackend:

Public Types

typedef std::tr1::shared_ptr< DetectorAnalyzerBackendshared_pointer
 typedef this as a shared pointer More...
 

Public Member Functions

virtual ~DetectorAnalyzerBackend ()
 virtual destructor More...
 
virtual detectorHits_toperator() (detectorHits_t &hits)=0
 retrieve detector hits from signals More...
 
virtual void loadSettings (CASSSettings &, DelaylineDetector &)=0
 load the settings of the analyzer More...
 

Static Public Member Functions

static shared_pointer instance (const DetectorAnalyzerType &type)
 create an instance of the right analyzer type More...
 

Detailed Description

Base class for all detector analyzers.

Todo:
rename this class, since its just the base class for all (sorters?).
Author
Lutz Foucar

Definition at line 33 of file detector_analyzer_backend.h.

Member Typedef Documentation

typedef this as a shared pointer

Definition at line 37 of file detector_analyzer_backend.h.

Constructor & Destructor Documentation

virtual cass::ACQIRIS::DetectorAnalyzerBackend::~DetectorAnalyzerBackend ( )
inlinevirtual

virtual destructor

Definition at line 40 of file detector_analyzer_backend.h.

Member Function Documentation

std::tr1::shared_ptr< DetectorAnalyzerBackend > DetectorAnalyzerBackend::instance ( const DetectorAnalyzerType type)
static

create an instance of the right analyzer type

this static member will create a instance of the requested type. If the requested type is unknown an invalid_argument exception will be thrown.

Returns
pointer to the instance of the requested type
Parameters
typethe requested analyzer type

Definition at line 24 of file detector_analyzer_backend.cpp.

References cass::ACQIRIS::AchimsRoutine, cass::ACQIRIS::DelaylineSimple, cass::ACQIRIS::NonSorting, and cass::toString().

Referenced by cass::ACQIRIS::DelaylineDetector::loadSettings().

virtual void cass::ACQIRIS::DetectorAnalyzerBackend::loadSettings ( CASSSettings ,
DelaylineDetector  
)
pure virtual

load the settings of the analyzer

load the settings from the .ini file. Needs to be implemented by the detector that inherits from this.

Parameters
sreference to the CASSSettings object
dthe detector object that we the analyzer belongs to

Implemented in cass::ACQIRIS::HexSorter, cass::ACQIRIS::DelaylineDetectorAnalyzerSimple, and cass::ACQIRIS::DelaylineNonSorting.

virtual detectorHits_t& cass::ACQIRIS::DetectorAnalyzerBackend::operator() ( detectorHits_t hits)
pure virtual

retrieve detector hits from signals

check the combination of signals to whether they belong together, since the orign from the same detectorhit. Needs to be implemented by the detectorhit finder (sorters?)

Returns
reference to the container containing the found hits
Parameters
[out]hitsthe container where the found hits will go

Implemented in cass::ACQIRIS::HexSorter, cass::ACQIRIS::DelaylineDetectorAnalyzerSimple, and cass::ACQIRIS::DelaylineNonSorting.


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