AnalysisPlugins 2.0(r200)
For the analysis of event energy and time
|
Base class for the transmission of plugin's intermediate data. More...
#include <PacWaveformBase.h>
Public Member Functions | |
PacWaveformDataBase (const PacWaveformBase *creator=0) | |
PacWaveformDataBase (const PacWaveformBase *creator, const QByteArray &serialized) | |
PacWaveformDataBase (const PacWaveformDataBase &original) | |
virtual void | clone (const WaveformDataInterface *original) |
virtual | ~PacWaveformDataBase () |
virtual void | setData (quint32 numsamples, const qint8 *dataArray, qulonglong triggertimestamp, qreal hpos, qint32 samplesbeforetrigger, qreal sampleinterval, qreal vgain, qreal voffset, qint8 polarity, qreal triggerlevel) |
qint32 | overflowSamples () const |
virtual QByteArray | serialize (const QByteArray &childrensdata=QByteArray()) const |
virtual QByteArray | deserialize (const QByteArray &serialized) |
virtual qreal | getCoulomb () const |
virtual qulonglong | getSignalOnset () const |
virtual bool | badWaveform () const |
virtual void | setNodeId (quint16 nodeid) |
virtual quint16 | nodeId () const |
virtual QString | toCSV () const |
Protected Member Functions | |
virtual void | analyze () const =0 |
Must fill in the fields 'coulomb', 'onsettime', and 'badwaveform'. | |
qreal | sampleInVolts (quint32 i) const |
use this instead of direct access to dataArray whenever possible!! | |
qreal | sampleTime (qint32 i) const |
qreal | digitizersUpperLimitInVolts () const |
return digitizer's current maximum voltage | |
qreal | digitizersLowerLimitInVolts () const |
return digitizer's current minimum voltage | |
qreal | timescaleLowerLimit () const |
returns the timescale's lower limit (considering possible shift due to hpos) | |
qreal | timescaleUpperLimit () const |
returns the timescale's upper limit (considering possible shift due to hpos) | |
Protected Attributes | |
quint32 | numsamples |
qint8 * | dataArray |
qulonglong | triggertimestamp |
qreal | autooffset |
qint32 | numoverflowsamples |
qreal | coulomb |
qulonglong | onsettime |
Charge the digitizer received during the whole event (in C) | |
bool | badwaveform |
Event's corrected onset time in ps since the aquisitions start. | |
qint32 | samplesbeforetrigger |
true if this waveform should be discarded | |
qreal | hpos |
qreal | sampleinterval |
qreal | vgain |
qreal | voffset |
qint8 | polarity |
qreal | triggerlevel |
-1 for negative and 1 for positive polarity | |
quint16 | nid |
Spannungsniveau des Triggers. | |
const PacWaveformBase * | creator |
Friends | |
void | PacWaveformBase::setWaveformData (WaveformDataInterface *data) |
Base class for the transmission of plugin's intermediate data.
This class and its subclasses is needed for PacMaster's waveform teaser to work
PacWaveformDataBase::PacWaveformDataBase | ( | const PacWaveformBase * | creator = 0 | ) |
PacWaveformDataBase::PacWaveformDataBase | ( | const PacWaveformBase * | creator, |
const QByteArray & | serialized | ||
) |
PacWaveformDataBase::PacWaveformDataBase | ( | const PacWaveformDataBase & | original | ) |
PacWaveformDataBase::~PacWaveformDataBase | ( | ) | [virtual] |
virtual void PacWaveformDataBase::analyze | ( | ) | const [protected, pure virtual] |
Must fill in the fields 'coulomb', 'onsettime', and 'badwaveform'.
virtual bool PacWaveformDataBase::badWaveform | ( | ) | const [inline, virtual] |
Implements WaveformDataInterface.
void PacWaveformDataBase::clone | ( | const WaveformDataInterface * | original | ) | [virtual] |
Implements WaveformDataInterface.
Reimplemented in PacWaveformDataDICF.
QByteArray PacWaveformDataBase::deserialize | ( | const QByteArray & | serialized | ) | [virtual] |
Implements WaveformDataInterface.
Reimplemented in PacWaveformDataDICF.
qreal PacWaveformDataBase::digitizersLowerLimitInVolts | ( | ) | const [inline, protected] |
return digitizer's current minimum voltage
qreal PacWaveformDataBase::digitizersUpperLimitInVolts | ( | ) | const [inline, protected] |
return digitizer's current maximum voltage
virtual qreal PacWaveformDataBase::getCoulomb | ( | ) | const [inline, virtual] |
Implements WaveformDataInterface.
virtual qulonglong PacWaveformDataBase::getSignalOnset | ( | ) | const [inline, virtual] |
Implements WaveformDataInterface.
virtual quint16 PacWaveformDataBase::nodeId | ( | ) | const [inline, virtual] |
Implements WaveformDataInterface.
qint32 PacWaveformDataBase::overflowSamples | ( | ) | const [virtual] |
Implements WaveformDataInterface.
qreal PacWaveformDataBase::sampleInVolts | ( | quint32 | i | ) | const [inline, protected] |
use this instead of direct access to dataArray whenever possible!!
qreal PacWaveformDataBase::sampleTime | ( | qint32 | i | ) | const [inline, protected] |
Time relative to hardware trigger in seconds
i | sample index from the interval [0, numsamples-1] |
QByteArray PacWaveformDataBase::serialize | ( | const QByteArray & | childrensdata = QByteArray() | ) | const [virtual] |
Implements WaveformDataInterface.
Reimplemented in PacWaveformDataDICF.
void PacWaveformDataBase::setData | ( | quint32 | numsamples, |
const qint8 * | dataArray, | ||
qulonglong | triggertimestamp, | ||
qreal | hpos, | ||
qint32 | samplesbeforetrigger, | ||
qreal | sampleinterval, | ||
qreal | vgain, | ||
qreal | voffset, | ||
qint8 | polarity, | ||
qreal | triggerlevel | ||
) | [virtual] |
Implements WaveformDataInterface.
Reimplemented in PacWaveformDataDICF.
virtual void PacWaveformDataBase::setNodeId | ( | quint16 | nodeid | ) | [inline, virtual] |
Implements WaveformDataInterface.
qreal PacWaveformDataBase::timescaleLowerLimit | ( | ) | const [inline, protected] |
returns the timescale's lower limit (considering possible shift due to hpos)
qreal PacWaveformDataBase::timescaleUpperLimit | ( | ) | const [inline, protected] |
returns the timescale's upper limit (considering possible shift due to hpos)
QString PacWaveformDataBase::toCSV | ( | ) | const [virtual] |
Implements WaveformDataInterface.
void PacWaveformBase::setWaveformData | ( | WaveformDataInterface * | data | ) | [friend] |
qreal PacWaveformDataBase::autooffset [mutable, protected] |
bool PacWaveformDataBase::badwaveform [mutable, protected] |
Event's corrected onset time in ps since the aquisitions start.
qreal PacWaveformDataBase::coulomb [mutable, protected] |
const PacWaveformBase* PacWaveformDataBase::creator [protected] |
qint8* PacWaveformDataBase::dataArray [protected] |
qreal PacWaveformDataBase::hpos [protected] |
quint16 PacWaveformDataBase::nid [protected] |
Spannungsniveau des Triggers.
qint32 PacWaveformDataBase::numoverflowsamples [mutable, protected] |
quint32 PacWaveformDataBase::numsamples [protected] |
qulonglong PacWaveformDataBase::onsettime [mutable, protected] |
Charge the digitizer received during the whole event (in C)
qint8 PacWaveformDataBase::polarity [protected] |
qreal PacWaveformDataBase::sampleinterval [protected] |
qint32 PacWaveformDataBase::samplesbeforetrigger [protected] |
true if this waveform should be discarded
qreal PacWaveformDataBase::triggerlevel [protected] |
-1 for negative and 1 for positive polarity
qulonglong PacWaveformDataBase::triggertimestamp [protected] |
qreal PacWaveformDataBase::vgain [protected] |
qreal PacWaveformDataBase::voffset [protected] |