CFEL - ASG Software Suite
2.5.0
CASS
|
Finds Signals in a waveform. More...
#include <tdc_extractor.h>
Public Member Functions | |
ACQIRIS::SignalProducer::signals_t & | operator() (ACQIRIS::SignalProducer::signals_t &sig) |
extract signals form the CASSEvent More... | |
void | associate (const CASSEvent &evt) |
associate the event with this extractor More... | |
void | loadSettings (CASSSettings &) |
load the settings of the extractor More... | |
![]() | |
virtual | ~SignalExtractor () |
virtual destructor More... | |
Private Attributes | |
std::vector< std::pair< double, double > > | _timeranges |
the ranges in which the real signals are in More... | |
uint32_t | _instrument |
the instrument id More... | |
size_t | _channelNumber |
the channel number More... | |
const Channel * | _chan |
pointer to the channel we are extracting the signals from More... | |
Additional Inherited Members | |
![]() | |
static std::tr1::shared_ptr< SignalExtractor > | instance (SignalExtractorType type) |
creates an instance of the requested extractor type More... | |
Finds Signals in a waveform.
Analyzes a waveform and find signals using a constant fraction algorithm. It then does all the further analysis of the identified Signal.
This class will work on waveforms with a depth of 8 Bits.
User settable parameters via CASS.ini:
One can set these parameters for each SignalProducer of the Detectortype. Therefore the settings will be for the the following signal producers:
.../TDCExtraction/{TDCInstrument}
Acqiris Instrument that this channel is in:
.../TDCExtraction/{ChannelNumber}
Channel within the instrument (starts counting from 0). Default is 0.
.../TDCExtraction/Timeranges/(0,1,...)/{LowerLimit|UpperLimit}
set of timeranges. One can set more than one range of interest. Default is no timerange, which will result in no signal will be found.
Definition at line 53 of file tdc_extractor.h.
|
virtual |
associate the event with this extractor
Extracts a pointer the channel for which we are there for from the event.
evt | The event from which we get the pointer to the channel. |
Implements cass::ACQIRIS::SignalExtractor.
Definition at line 65 of file tdc_extractor.cpp.
References cass::CASSEvent::devices(), and cass::toString().
|
virtual |
load the settings of the extractor
retrieve the timerange gates that the signals of the detector came in
s | the CASSSettings object to retrieve the information from |
Implements cass::ACQIRIS::SignalExtractor.
Definition at line 49 of file tdc_extractor.cpp.
References QSettings::beginGroup(), QSettings::beginReadArray(), QSettings::endArray(), QSettings::endGroup(), QSettings::setArrayIndex(), size, and QSettings::value().
|
virtual |
extract signals form the CASSEvent
Calls cfd to extract the Signal from _chan. For details how see cfd.
[in] | sig | this is the container for the results |
Implements cass::ACQIRIS::SignalExtractor.
Definition at line 22 of file tdc_extractor.cpp.
References hits, cass::ACQIRIS::isUsed, cass::ACQIRIS::NbrSignalDefinitions, and cass::ACQIRIS::time.
|
private |
pointer to the channel we are extracting the signals from
Definition at line 93 of file tdc_extractor.h.
|
private |
the channel number
Definition at line 90 of file tdc_extractor.h.
|
private |
the instrument id
Definition at line 87 of file tdc_extractor.h.
|
private |
the ranges in which the real signals are in
Definition at line 84 of file tdc_extractor.h.