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

PacCoincidenceSpectrum Class Reference

Class encapsulating a single coincidence spectrum. More...

#include <PacCoincidenceSpectrum.h>

List of all members.

Public Slots

Evaluation setting modification methods
void setIgnoreThisSpectrum (bool ignore)
void setDeterminationMethod (Pac::ParameterDeterminationMethod m)
void setT0FitCutterPosition (double percent)
void setBackgroundFitStartPosition (double starttime, bool refit=true)
void setTimeOffset (double timeoffset)
void setBackgroundLevel (double counts)
void t0ParametersUpdated ()
void backgroundParametersUpdated ()
Auto estimators
void autoEstimateT0FitParameters ()
void autoEstimateBgFitParameters ()
Update fits
void restartFitting ()
void sendT0FunctionToFitThread (bool force=false)
void sendBackgroundFunctionToFitThread (bool force=false)
Misc
void setButton (QPushButton *button)

Signals

void timeOffsetChanged (double newtimeoffset)
void backgroundLevelChanged (double newcounts)
void updateRTSpectrum ()

Public Member Functions

 PacCoincidenceSpectrum (PacCoincidenceContainer *container, const PacBasicMeasurementInfo *basicinfo, QPair< quint8, quint8 > &detectoridxs)
 ~PacCoincidenceSpectrum ()
QWidget * plotWidget ()
QWidget * controlWidget ()
QWidget * parameterDialogWidget ()
void setSpectrum (const QVector< quint64 > &spectY, bool addendum)
void updateButtonBackground ()
 This method updates the associated spectrum selector button's background color according to the fit results.
void appendToDomNode (QDomElement &node) const
 Appends this object's current state to the passed DOM node.
void initializeFromDomNode (const QDomElement &node)
 Initializes this object's current state from the passed DOM node.
Spectrum properties
QVector< double > spectrumX () const
QVector< quint64 > spectrumY () const
QVector< double > doubleSpectrumY () const
quint64 maxY () const
quint32 maxIdx () const
double angle () const
quint8 startNodeId () const
quint8 stopNodeId () const
qreal timeResolutionFWHM () const
Evaluation settings
bool ignoreThisSpectrum () const
Pac::ParameterDeterminationMethod determinationMethod () const
qreal t0FitCutterPosition () const
qreal backgroundFitStartPosition () const
qreal timeOffset () const
qreal backgroundLevel () const
Communication methods
void receiveFitResult (const ROOT::Minuit2::ParametricFunction *fitfunc, const ROOT::Minuit2::FunctionMinimum &result)

Detailed Description

Class encapsulating a single coincidence spectrum.

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

Constructor & Destructor Documentation

PacCoincidenceSpectrum::PacCoincidenceSpectrum ( PacCoincidenceContainer container,
const PacBasicMeasurementInfo basicinfo,
QPair< quint8, quint8 > &  detectoridxs 
)
PacCoincidenceSpectrum::~PacCoincidenceSpectrum ( )

Member Function Documentation

double PacCoincidenceSpectrum::angle ( ) const
void PacCoincidenceSpectrum::appendToDomNode ( QDomElement &  node) const

Appends this object's current state to the passed DOM node.

This method expects the parent element where it shall append this object's information as a parameter

void PacCoincidenceSpectrum::autoEstimateBgFitParameters ( ) [slot]
void PacCoincidenceSpectrum::autoEstimateT0FitParameters ( ) [slot]
qreal PacCoincidenceSpectrum::backgroundFitStartPosition ( ) const
qreal PacCoincidenceSpectrum::backgroundLevel ( ) const
void PacCoincidenceSpectrum::backgroundLevelChanged ( double  newcounts) [signal]
void PacCoincidenceSpectrum::backgroundParametersUpdated ( ) [slot]
QWidget * PacCoincidenceSpectrum::controlWidget ( )
Pac::ParameterDeterminationMethod PacCoincidenceSpectrum::determinationMethod ( ) const
QVector< double > PacCoincidenceSpectrum::doubleSpectrumY ( ) const
bool PacCoincidenceSpectrum::ignoreThisSpectrum ( ) const
void PacCoincidenceSpectrum::initializeFromDomNode ( const QDomElement &  node)

Initializes this object's current state from the passed DOM node.

This method expects the parent element where it shall read this object's information from as a parameter

quint32 PacCoincidenceSpectrum::maxIdx ( ) const
quint64 PacCoincidenceSpectrum::maxY ( ) const
QWidget * PacCoincidenceSpectrum::parameterDialogWidget ( )
QWidget * PacCoincidenceSpectrum::plotWidget ( )
void PacCoincidenceSpectrum::receiveFitResult ( const ROOT::Minuit2::ParametricFunction *  fitfunc,
const ROOT::Minuit2::FunctionMinimum &  result 
)
void PacCoincidenceSpectrum::restartFitting ( ) [slot]
void PacCoincidenceSpectrum::sendBackgroundFunctionToFitThread ( bool  force = false) [slot]
void PacCoincidenceSpectrum::sendT0FunctionToFitThread ( bool  force = false) [slot]
void PacCoincidenceSpectrum::setBackgroundFitStartPosition ( double  starttime,
bool  refit = true 
) [slot]
void PacCoincidenceSpectrum::setBackgroundLevel ( double  counts) [slot]
void PacCoincidenceSpectrum::setButton ( QPushButton *  button) [slot]
void PacCoincidenceSpectrum::setDeterminationMethod ( Pac::ParameterDeterminationMethod  m) [slot]
void PacCoincidenceSpectrum::setIgnoreThisSpectrum ( bool  ignore) [slot]
void PacCoincidenceSpectrum::setSpectrum ( const QVector< quint64 > &  spectY,
bool  addendum 
)
void PacCoincidenceSpectrum::setT0FitCutterPosition ( double  percent) [slot]
void PacCoincidenceSpectrum::setTimeOffset ( double  timeoffset) [slot]
QVector< double > PacCoincidenceSpectrum::spectrumX ( ) const
QVector< quint64 > PacCoincidenceSpectrum::spectrumY ( ) const
quint8 PacCoincidenceSpectrum::startNodeId ( ) const
quint8 PacCoincidenceSpectrum::stopNodeId ( ) const
qreal PacCoincidenceSpectrum::t0FitCutterPosition ( ) const
void PacCoincidenceSpectrum::t0ParametersUpdated ( ) [slot]
qreal PacCoincidenceSpectrum::timeOffset ( ) const
void PacCoincidenceSpectrum::timeOffsetChanged ( double  newtimeoffset) [signal]
qreal PacCoincidenceSpectrum::timeResolutionFWHM ( ) const
void PacCoincidenceSpectrum::updateButtonBackground ( )

This method updates the associated spectrum selector button's background color according to the fit results.

void PacCoincidenceSpectrum::updateRTSpectrum ( ) [signal]

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