CFEL - ASG Software Suite  2.5.0
CASS
Public Member Functions | Private Attributes | List of all members
cass::ACQIRISTDC::TDCExtractor Class Reference

Finds Signals in a waveform. More...

#include <tdc_extractor.h>

+ Inheritance diagram for cass::ACQIRISTDC::TDCExtractor:
+ Collaboration diagram for cass::ACQIRISTDC::TDCExtractor:

Public Member Functions

ACQIRIS::SignalProducer::signals_toperator() (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...
 
- Public Member Functions inherited from cass::ACQIRIS::SignalExtractor
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 Public Member Functions inherited from cass::ACQIRIS::SignalExtractor
static std::tr1::shared_ptr< SignalExtractorinstance (SignalExtractorType type)
 creates an instance of the requested extractor type More...
 

Detailed Description

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:

User definable Parameters:

.../TDCExtraction/{TDCInstrument}
Acqiris Instrument that this channel is in:

  • 0: TDC in SXR-Hutch

.../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.

Author
Lutz Foucar

Definition at line 53 of file tdc_extractor.h.

Member Function Documentation

void ACQIRISTDC::TDCExtractor::associate ( const CASSEvent evt)
virtual

associate the event with this extractor

Extracts a pointer the channel for which we are there for from the event.

Parameters
evtThe 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().

void ACQIRISTDC::TDCExtractor::loadSettings ( CASSSettings s)
virtual

load the settings of the extractor

retrieve the timerange gates that the signals of the detector came in

Parameters
sthe 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().

ACQIRIS::SignalProducer::signals_t & ACQIRISTDC::TDCExtractor::operator() ( ACQIRIS::SignalProducer::signals_t sig)
virtual

extract signals form the CASSEvent

Calls cfd to extract the Signal from _chan. For details how see cfd.

Returns
reference of the input result container
Parameters
[in]sigthis 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.

Member Data Documentation

const Channel* cass::ACQIRISTDC::TDCExtractor::_chan
private

pointer to the channel we are extracting the signals from

Definition at line 93 of file tdc_extractor.h.

size_t cass::ACQIRISTDC::TDCExtractor::_channelNumber
private

the channel number

Definition at line 90 of file tdc_extractor.h.

uint32_t cass::ACQIRISTDC::TDCExtractor::_instrument
private

the instrument id

Definition at line 87 of file tdc_extractor.h.

std::vector<std::pair<double,double> > cass::ACQIRISTDC::TDCExtractor::_timeranges
private

the ranges in which the real signals are in

Definition at line 84 of file tdc_extractor.h.


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