CFEL - ASG Software Suite
2.5.0
CASS
|
Base class for classes that extract Signals from recorded data. More...
#include <signal_extractor.h>
Public Member Functions | |
virtual | ~SignalExtractor () |
virtual destructor More... | |
virtual SignalProducer::signals_t & | operator() (SignalProducer::signals_t &sig)=0 |
retrieve signals from data More... | |
virtual void | associate (const CASSEvent &evt)=0 |
associate the event with this analyzer More... | |
virtual void | loadSettings (CASSSettings &s)=0 |
load the settings of the extractor More... | |
Static Public Member Functions | |
static std::tr1::shared_ptr< SignalExtractor > | instance (SignalExtractorType type) |
creates an instance of the requested extractor type More... | |
Base class for classes that extract Signals from recorded data.
All classes that want to extract signals from the data, should inherit from this class. This classes operator will be called by the signal producers, that want to have theier singals extracted from the data.
Definition at line 33 of file signal_extractor.h.
|
inlinevirtual |
virtual destructor
Definition at line 37 of file signal_extractor.h.
|
pure virtual |
associate the event with this analyzer
retrieve all necessary information from the event to be able to later extract the signals from the data. Needs to be implemented by the class that implements the extractor method.
evt | the event the signals are extracted from |
Implemented in cass::ACQIRIS::CFD16Bit, cass::ACQIRIS::CoM16Bit, cass::ACQIRIS::CFD8Bit, cass::ACQIRIS::CoM8Bit, and cass::ACQIRISTDC::TDCExtractor.
|
static |
creates an instance of the requested extractor type
this static member will create an instance of the requested type, which is a class that inherits from this. If the requested type is unknown, an invalid_argument exception will be thrown.
type | The type of signal extractor that the user requests |
Definition at line 21 of file signal_extractor.cpp.
References cass::ACQIRIS::cfd16, cass::ACQIRIS::cfd8, cass::ACQIRIS::com16, cass::ACQIRIS::com8, cass::ACQIRIS::tdcextractor, and cass::toString().
Referenced by cass::ACQIRIS::SignalProducer::loadSettings().
|
pure virtual |
load the settings of the extractor
load the settings form the .ini file. Needs to be implementd by the class that implements the signal extractor.
s | the CASSSettings object to retrieve the information from. |
Implemented in cass::ACQIRIS::CFD16Bit, cass::ACQIRIS::CoM16Bit, cass::ACQIRIS::CFD8Bit, cass::ACQIRIS::CoM8Bit, and cass::ACQIRISTDC::TDCExtractor.
|
pure virtual |
retrieve signals from data
extract signals form the CASSEvent. Needs to be implemented by the classes that inerhit from this.
[in] | sig | this is the container for the results |
Implemented in cass::ACQIRIS::CFD16Bit, cass::ACQIRIS::CoM16Bit, cass::ACQIRIS::CFD8Bit, cass::ACQIRIS::CoM8Bit, and cass::ACQIRISTDC::TDCExtractor.