CFEL - ASG Software Suite
2.5.0
CASS
|
A Channel of an Acqiris Instrument. More...
#include <channel.hpp>
Public Types | |
typedef std::vector< int16_t > | waveform_t |
define the waveform More... | |
Public Member Functions | |
Channel () | |
constructor that will set the serialize version More... | |
Channel (SerializerBackend &in) | |
construct this from the stream More... | |
void | serialize (SerializerBackend &out) const |
will serialize this channel to the serializer More... | |
bool | deserialize (SerializerBackend &in) |
deserialize this channel from the serializer More... | |
double | fullscale () const |
getter More... | |
double & | horpos () |
setter More... | |
double & | offset () |
setter More... | |
double & | sampleInterval () |
setter More... | |
double & | gain () |
setter More... | |
waveform_t & | waveform () |
setter More... | |
size_t & | channelNbr () |
setter More... | |
double | horpos () const |
getter More... | |
double | offset () const |
getter More... | |
double | gain () const |
getter More... | |
double | sampleInterval () const |
getter More... | |
const waveform_t & | waveform () const |
getter More... | |
size_t | channelNbr () const |
getter More... | |
![]() | |
Serializable (uint16_t version) | |
constructor initializing the version More... | |
virtual | ~Serializable () |
virtual destructor to avoid warning with gcc 4.1.2 More... | |
uint16_t | ver () const |
retrieve the version of the serializer More... | |
virtual void | writeVersion (SerializerBackend &out) const |
write the version to the stream More... | |
virtual void | checkVersion (SerializerBackend &in) const |
check the version More... | |
Private Attributes | |
size_t | _chNbr |
This Channels Number in the Acqiris Instrument. More... | |
double | _horpos |
Horizontal position of first data point with respect to the trigger. More... | |
double | _offset |
the vertical offset of this channel (in V) More... | |
double | _gain |
Vertical gain in Volts/LSB. More... | |
double | _sampleInterval |
the time between two consecutive datapoints in seconds More... | |
waveform_t | _waveform |
the waveform of this channel More... | |
Additional Inherited Members | |
![]() | |
uint16_t | _version |
the version for de/serializing More... | |
A Channel of an Acqiris Instrument.
contains all information that an Acqiris instrument will provide about a channel
Definition at line 31 of file channel.hpp.
typedef std::vector<int16_t> cass::ACQIRIS::Channel::waveform_t |
define the waveform
Definition at line 35 of file channel.hpp.
|
inline |
constructor that will set the serialize version
Definition at line 38 of file channel.hpp.
|
inline |
construct this from the stream
in | the input stream to read this class from |
Definition at line 51 of file channel.hpp.
References deserialize().
|
inline |
setter
Definition at line 106 of file channel.hpp.
References _chNbr.
Referenced by cass::ACQIRIS::AGATStreamer::operator()(), cass::ACQIRIS::Converter::operator()(), and cass::HDF5FileInput::runthis().
|
inline |
|
inlinevirtual |
deserialize this channel from the serializer
in | the stream to serialze this class from |
read all variables and then the waveform from the input stream
read the length of the waveform
clear the wavefrom
Implements cass::Serializable.
Definition at line 81 of file channel.hpp.
References _gain, _horpos, _offset, _sampleInterval, _waveform, cass::Serializable::checkVersion(), and cass::SerializerBackend::retrieve().
Referenced by Channel().
|
inline |
getter
will calculate the fullscale from the gain value, provided by the instrument
Definition at line 123 of file channel.hpp.
References _gain.
|
inline |
setter
Definition at line 104 of file channel.hpp.
References _gain.
Referenced by cass::ACQIRIS::CoM(), cass::ACQIRIS::ConstantFraction::getcfd(), cass::ACQIRIS::CenterOfMass::getcom(), cass::ACQIRIS::getfwhm(), cass::ACQIRIS::getmaximum(), cass::ACQIRIS::Converter::operator()(), cass::HDF5FileInput::runthis(), and cass::ACQIRIS::startstop().
|
inline |
|
inline |
setter
Definition at line 101 of file channel.hpp.
References _horpos.
Referenced by cass::ACQIRIS::CoM(), cass::ACQIRIS::ConstantFraction::getcfd(), cass::ACQIRIS::LmaReader::operator()(), cass::ACQIRIS::Converter::operator()(), cass::HDF5FileInput::runthis(), and cass::ACQIRIS::startstop().
|
inline |
|
inline |
setter
Definition at line 102 of file channel.hpp.
References _offset.
Referenced by cass::ACQIRIS::CoM(), cass::ACQIRIS::ConstantFraction::getcfd(), cass::ACQIRIS::CenterOfMass::getcom(), cass::ACQIRIS::getfwhm(), cass::ACQIRIS::getmaximum(), cass::ACQIRIS::Converter::operator()(), cass::HDF5FileInput::runthis(), and cass::ACQIRIS::startstop().
|
inline |
|
inline |
setter
Definition at line 103 of file channel.hpp.
References _sampleInterval.
Referenced by cass::ACQIRIS::CoM(), cass::ACQIRIS::ConstantFraction::getcfd(), cass::ACQIRIS::Converter::operator()(), cass::ACQIRIS::LmaReader::readHeaderInfo(), cass::HDF5FileInput::runthis(), and cass::ACQIRIS::startstop().
|
inline |
|
inlinevirtual |
will serialize this channel to the serializer
out | the stream to serialze this class to |
output all variables obtained from the acqiris
write the length of the waveform
the waveform itselve
Implements cass::Serializable.
Definition at line 62 of file channel.hpp.
References _gain, _horpos, _offset, _sampleInterval, _waveform, cass::SerializerBackend::add(), and cass::Serializable::writeVersion().
|
inline |
setter
Definition at line 105 of file channel.hpp.
References _waveform.
Referenced by cass::ACQIRIS::CoM(), cass::ACQIRIS::ConstantFraction::getcfd(), cass::ACQIRIS::CenterOfMass::getcom(), cass::ACQIRIS::getfwhm(), cass::ACQIRIS::getmaximum(), cass::ACQIRIS::Converter::operator()(), cass::HDF5FileInput::runthis(), and cass::ACQIRIS::startstop().
|
inline |
|
private |
This Channels Number in the Acqiris Instrument.
Definition at line 127 of file channel.hpp.
Referenced by channelNbr().
|
private |
Vertical gain in Volts/LSB.
(V = vGain * data - vOffset)
Definition at line 136 of file channel.hpp.
Referenced by deserialize(), fullscale(), gain(), and serialize().
|
private |
Horizontal position of first data point with respect to the trigger.
Definition at line 130 of file channel.hpp.
Referenced by deserialize(), horpos(), and serialize().
|
private |
the vertical offset of this channel (in V)
Definition at line 133 of file channel.hpp.
Referenced by deserialize(), offset(), and serialize().
|
private |
the time between two consecutive datapoints in seconds
Definition at line 139 of file channel.hpp.
Referenced by deserialize(), sampleInterval(), and serialize().
|
private |
the waveform of this channel
Definition at line 142 of file channel.hpp.
Referenced by deserialize(), serialize(), and waveform().