SpectraPac 2.0(r200)
Evaluates PAC Measurements
Public Slots | Signals | Public Member Functions | Protected Member Functions

PacCoincidenceContainer Class Reference

Class holding a set of related PacCoincidenceSpectrum objects and supplying common information. More...

#include <PacCoincidenceContainer.h>

Inheritance diagram for PacCoincidenceContainer:

List of all members.

Public Slots

void receiveSpectra (const PacCoincidenceInput *input, const PacCoincidenceSearchResults &results, bool addendum, bool stillwritten, quint64 nextcppointerpos)
 Setter for results of a complete coincidence search run.
void setDeterminationMethodForAll (Pac::ParameterDeterminationMethod method)
 Updates spectra according to the settings emitted from PacCoincidenceSpectrum.
void setDeterminationMethodLock (bool locked)
void setT0FitCutterPositionForAll (double newpercent)
void setT0FitCutterPositionLock (bool locked)
void setBackgroundFitStartPositionForAll (double newstarttime, bool refit=true)
void setBackgroundFitStartPositionLock (bool locked)
void openParameterDialog ()
void updateRTSpectrum ()
void deactivateWatchdog ()

Signals

void receivedSpectrum (QWidget *w)
 Notifies the data handler that the evaluation run has finished.
void determinationMethodLockChanged (bool locked)
void t0FitCutterPositionLockChanged (bool locked)
void backgroundFitStartPositionLockChanged (bool locked)
void rTUpdateRequired (const PacRTInput *input)

Public Member Functions

 PacCoincidenceContainer (const PacBasicMeasurementInfo *basicinfo, QObject *parent=0)
virtual ~PacCoincidenceContainer ()
void reset ()
 (Re)creates child objects
QVector< qreal > spectrumX () const
 Returns the x values of the channels' central points.
QVector< qreal > leftEdgeSpectrumX () const
 Returns the x values of each channel's left edge.
const PacCoincidenceSpectrumspectrum (quint8 startidx, quint8 stopidx) const
qreal channelLength () const
quint32 channelIdxOfTimeOrigin () const
qreal zeroOffset () const
qreal minCoincidenceLength () const
qreal maxCoincidenceLength () const
quint32 numberOfChannels () const
virtual void appendWidgets (QTabWidget *tabwidget, QWidget *filetoolbox)
 Appends this container's widget(s) to the passed QTabWidget.
bool determinationMethodLock () const
bool t0FitCutterPositionLock () const
bool backgroundFitStartPositionLock () const
const PacCoincidenceInputgetInputObject () const
 Returns a copy of this container's current input object.

Protected Member Functions

virtual void csvInputHeaderAndData (QTextStream &s) const
virtual void saveDataInDom (QDomElement &top) const
virtual void loadDataFromDom (const QDomElement &top)

Detailed Description

Class holding a set of related PacCoincidenceSpectrum objects and supplying common information.

Author:
Matthias Nagl <mnagl@uni-goettingen.de>

Constructor & Destructor Documentation

PacCoincidenceContainer::PacCoincidenceContainer ( const PacBasicMeasurementInfo basicinfo,
QObject *  parent = 0 
)
PacCoincidenceContainer::~PacCoincidenceContainer ( ) [virtual]

Member Function Documentation

void PacCoincidenceContainer::appendWidgets ( QTabWidget *  tabwidget,
QWidget *  filetoolbox 
) [virtual]

Appends this container's widget(s) to the passed QTabWidget.

Implements PacAbstractContainer.

bool PacCoincidenceContainer::backgroundFitStartPositionLock ( ) const
void PacCoincidenceContainer::backgroundFitStartPositionLockChanged ( bool  locked) [signal]
quint32 PacCoincidenceContainer::channelIdxOfTimeOrigin ( ) const

Returns the channel containing the time origin (t=0)

Returns:
if the origin exactly meets a channel border the channel below is returned (it matches the upper border of the returned channel)
qreal PacCoincidenceContainer::channelLength ( ) const
Returns:
Channel length in nano seconds
void PacCoincidenceContainer::csvInputHeaderAndData ( QTextStream &  s) const [protected, virtual]

Implements PacAbstractContainer.

void PacCoincidenceContainer::deactivateWatchdog ( ) [slot]
bool PacCoincidenceContainer::determinationMethodLock ( ) const
void PacCoincidenceContainer::determinationMethodLockChanged ( bool  locked) [signal]
const PacCoincidenceInput * PacCoincidenceContainer::getInputObject ( ) const

Returns a copy of this container's current input object.

QVector< qreal > PacCoincidenceContainer::leftEdgeSpectrumX ( ) const

Returns the x values of each channel's left edge.

void PacCoincidenceContainer::loadDataFromDom ( const QDomElement &  top) [protected, virtual]

Implements PacAbstractContainer.

qreal PacCoincidenceContainer::maxCoincidenceLength ( ) const

Returns the maximal time between gammas for forward correlation search

Returns:
forward correlation search length in nanoseconds (as a positive number!)
qreal PacCoincidenceContainer::minCoincidenceLength ( ) const

Returns the maximal time between gammas for backward correlation search

Returns:
backward correlation search length in nanoseconds (as a positive number!)
quint32 PacCoincidenceContainer::numberOfChannels ( ) const
void PacCoincidenceContainer::openParameterDialog ( ) [slot]
void PacCoincidenceContainer::receivedSpectrum ( QWidget *  w) [signal]

Notifies the data handler that the evaluation run has finished.

Parameters:
wzero if no widget was created before, pointer to widget otherwise
void PacCoincidenceContainer::receiveSpectra ( const PacCoincidenceInput input,
const PacCoincidenceSearchResults results,
bool  addendum,
bool  stillwritten,
quint64  nextcppointerpos 
) [slot]

Setter for results of a complete coincidence search run.

void PacCoincidenceContainer::reset ( )

(Re)creates child objects

void PacCoincidenceContainer::rTUpdateRequired ( const PacRTInput input) [signal]
void PacCoincidenceContainer::saveDataInDom ( QDomElement &  top) const [protected, virtual]

Implements PacAbstractContainer.

void PacCoincidenceContainer::setBackgroundFitStartPositionForAll ( double  newstarttime,
bool  refit = true 
) [slot]
void PacCoincidenceContainer::setBackgroundFitStartPositionLock ( bool  locked) [slot]
void PacCoincidenceContainer::setDeterminationMethodForAll ( Pac::ParameterDeterminationMethod  method) [slot]

Updates spectra according to the settings emitted from PacCoincidenceSpectrum.

void PacCoincidenceContainer::setDeterminationMethodLock ( bool  locked) [slot]
void PacCoincidenceContainer::setT0FitCutterPositionForAll ( double  newpercent) [slot]
void PacCoincidenceContainer::setT0FitCutterPositionLock ( bool  locked) [slot]
const PacCoincidenceSpectrum * PacCoincidenceContainer::spectrum ( quint8  startidx,
quint8  stopidx 
) const
QVector< qreal > PacCoincidenceContainer::spectrumX ( ) const

Returns the x values of the channels' central points.

bool PacCoincidenceContainer::t0FitCutterPositionLock ( ) const
void PacCoincidenceContainer::t0FitCutterPositionLockChanged ( bool  locked) [signal]
void PacCoincidenceContainer::updateRTSpectrum ( ) [slot]
qreal PacCoincidenceContainer::zeroOffset ( ) const

Returns the difference between the center of the zero-containing channel and zero in ns.

Returns:
offset between zero-containing channel and zero. > 0 if real zero comes after the channel's center

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines