CFEL - ASG Software Suite
2.5.0
CASS
|
Base class for all Detectors attached to an Acqiris Instrument. More...
#include <detector_backend.h>
Public Types | |
typedef std::tr1::shared_ptr< DetectorBackend > | shared_pointer |
a shared pointer of this type More... | |
Public Member Functions | |
virtual | ~DetectorBackend () |
virtual destructor More... | |
virtual void | loadSettings (CASSSettings &s)=0 |
load the settings of the detector More... | |
virtual void | associate (const CASSEvent &evt)=0 |
associate the event with this detector More... | |
const std::string | name () const |
return the detector name More... | |
virtual DetectorType | type ()=0 |
retrieve what kind of detector this is More... | |
Static Public Member Functions | |
static shared_pointer | instance (const DetectorType &dettype, const std::string &detname) |
create an instance of the requested dectortype More... | |
Protected Member Functions | |
DetectorBackend (const std::string name) | |
constructor. More... | |
Protected Attributes | |
std::string | _name |
the name of the detector. More... | |
Private Member Functions | |
DetectorBackend () | |
default constructor should not be called therefore its privat More... | |
Base class for all Detectors attached to an Acqiris Instrument.
Definition at line 43 of file detector_backend.h.
typedef std::tr1::shared_ptr<DetectorBackend> cass::ACQIRIS::DetectorBackend::shared_pointer |
a shared pointer of this type
Definition at line 47 of file detector_backend.h.
|
inlineprotected |
constructor.
[in] | name | the name of the detector |
Definition at line 54 of file detector_backend.h.
|
inlinevirtual |
virtual destructor
Definition at line 60 of file detector_backend.h.
|
inlineprivate |
default constructor should not be called therefore its privat
Definition at line 102 of file detector_backend.h.
|
pure virtual |
associate the event with this detector
retrieve all necessary information for this detector from the event. Needs to be implemented by the detector inheriting from this.
evt | The event to take the data from |
Implemented in cass::ACQIRIS::DelaylineDetector, and cass::ACQIRIS::TofDetector.
|
static |
create an instance of the requested dectortype
if the requested detector type is not known an exception will be thrown
dettype | type that the detector should have |
detname | the name of the detector in the .ini file |
Definition at line 17 of file detector_backend.cpp.
References cass::ACQIRIS::Delayline, cass::ACQIRIS::ToF, and cass::toString().
Referenced by cass::ACQIRIS::HelperAcqirisDetectors::HelperAcqirisDetectors().
|
pure virtual |
load the settings of the detector
load the settings from the .ini file. Needs to be implemented by the detector that inherits from this.
s | reference to the CASSSettings object |
Implemented in cass::ACQIRIS::DelaylineDetector, and cass::ACQIRIS::TofDetector.
|
inline |
return the detector name
Definition at line 81 of file detector_backend.h.
References _name.
Referenced by cass::HexCalibrator::loadSettings(), and cass::ACQIRIS::HexSorter::loadSettings().
|
pure virtual |
retrieve what kind of detector this is
Implemented in cass::ACQIRIS::TofDetector.
|
protected |
the name of the detector.
used for casssettings group
Definition at line 98 of file detector_backend.h.
Referenced by name().