qavrg 0.0.28
Public Slots | Signals | Public Member Functions | Protected Attributes | Private Attributes
QavrgAcquisitionData Class Reference

#include <qavrgacquisitiondata.h>

Inheritance diagram for QavrgAcquisitionData:
Inheritance graph
[legend]

List of all members.

Public Slots

QVector< double > get_RawData (int chan, int start, int nbins)
QVector< double > get_RawData (int chan)
double get_RawData (int chan, int bin)
QVector< double > get_ReferenceData (int chan, int start, int nbins)
QVector< double > get_ReferenceData (int chan)
double get_ReferenceData (int chan, int bin)
QVector< double > get_DarkData (int chan, int start, int nbins)
QVector< double > get_DarkData (int chan)
double get_DarkData (int chan, int bin)
QVector< double > get_FitData (int chan, int start, int nbins)
QVector< double > get_FitData (int chan)
double get_FitData (int chan, int bin)
void setReferenceData ()
void setDarkData ()

Signals

void new_RawData ()
void new_ReferenceData ()
void new_DarkData ()
void new_FitData ()
void new_FittingResults ()

Public Member Functions

 QavrgAcquisitionData (QavrgAcquisitionThread *acq, QavrgApplication *app, QObject *parent)
 ~QavrgAcquisitionData ()
void loadReferenceData ()
void saveReferenceData ()
void loadDarkData ()
void saveDarkData ()

Protected Attributes

QVector< QVector< double > > m_Accumulator
QMutex m_AccumulatorMutex
QAtomicInt m_AcquireCancel

Private Attributes

QMutex m_AcquisitionDataMutex

Detailed Description

Definition at line 10 of file qavrgacquisitiondata.h.


Constructor & Destructor Documentation

QavrgAcquisitionData::QavrgAcquisitionData ( QavrgAcquisitionThread acq,
QavrgApplication app,
QObject *  parent 
)

Definition at line 9 of file qavrgacquisitiondata.cpp.

QavrgAcquisitionData::~QavrgAcquisitionData ( )

Definition at line 15 of file qavrgacquisitiondata.cpp.

{
}

Member Function Documentation

QVector< double > QavrgAcquisitionData::get_DarkData ( int  chan,
int  start,
int  nbins 
) [slot]

Definition at line 122 of file qavrgacquisitiondata.cpp.

References QavrgAcquisitionParms::fitter(), and m_AcquisitionDataMutex.

Referenced by get_DarkData().

{
  QMutexLocker lock(&m_AcquisitionDataMutex);

  return fitter(chan) -> get_DarkData(start,nbins);
}
QVector< double > QavrgAcquisitionData::get_DarkData ( int  chan) [slot]

Definition at line 129 of file qavrgacquisitiondata.cpp.

References QavrgAcquisitionParms::fitter(), get_DarkData(), and m_AcquisitionDataMutex.

{
  QMutexLocker lock(&m_AcquisitionDataMutex);

  return fitter(chan) -> get_DarkData();
}
double QavrgAcquisitionData::get_DarkData ( int  chan,
int  bin 
) [slot]

Definition at line 136 of file qavrgacquisitiondata.cpp.

References QavrgAcquisitionParms::fitter(), get_DarkData(), and m_AcquisitionDataMutex.

{
  QMutexLocker lock(&m_AcquisitionDataMutex);

  return fitter(chan) -> get_DarkData(bin);
}
QVector< double > QavrgAcquisitionData::get_FitData ( int  chan,
int  start,
int  nbins 
) [slot]

Definition at line 150 of file qavrgacquisitiondata.cpp.

References QavrgAcquisitionParms::fitter(), and m_AcquisitionDataMutex.

Referenced by get_FitData().

{
  QMutexLocker lock(&m_AcquisitionDataMutex);

  return fitter(chan) -> get_FitData(start,nbins);
}
QVector< double > QavrgAcquisitionData::get_FitData ( int  chan) [slot]

Definition at line 157 of file qavrgacquisitiondata.cpp.

References QavrgAcquisitionParms::fitter(), get_FitData(), and m_AcquisitionDataMutex.

{
  QMutexLocker lock(&m_AcquisitionDataMutex);

  return fitter(chan) -> get_FitData();
}
double QavrgAcquisitionData::get_FitData ( int  chan,
int  bin 
) [slot]

Definition at line 164 of file qavrgacquisitiondata.cpp.

References QavrgAcquisitionParms::fitter(), get_FitData(), and m_AcquisitionDataMutex.

{
  QMutexLocker lock(&m_AcquisitionDataMutex);

  return fitter(chan) -> get_FitData(bin);
}
QVector< double > QavrgAcquisitionData::get_RawData ( int  chan) [slot]

Definition at line 35 of file qavrgacquisitiondata.cpp.

References QavrgAcquisitionParms::fitter(), get_RawData(), and m_AcquisitionDataMutex.

{
  QMutexLocker lock(&m_AcquisitionDataMutex);
//
//  return m_RawData.value(chan);

  return fitter(chan) -> get_RawData();
}
QVector< double > QavrgAcquisitionData::get_RawData ( int  chan,
int  start,
int  nbins 
) [slot]

Definition at line 26 of file qavrgacquisitiondata.cpp.

References QavrgAcquisitionParms::fitter(), and m_AcquisitionDataMutex.

Referenced by get_RawData().

{
  QMutexLocker lock(&m_AcquisitionDataMutex);
//
//  return m_RawData.value(chan).mid(start,nbins);

  return fitter(chan) -> get_RawData(start, nbins);
}
double QavrgAcquisitionData::get_RawData ( int  chan,
int  bin 
) [slot]

Definition at line 44 of file qavrgacquisitiondata.cpp.

References QavrgAcquisitionParms::fitter(), get_RawData(), and m_AcquisitionDataMutex.

{
  QMutexLocker lock(&m_AcquisitionDataMutex);

  return fitter(chan) -> get_RawData(bin);
}
QVector< double > QavrgAcquisitionData::get_ReferenceData ( int  chan,
int  start,
int  nbins 
) [slot]

Definition at line 94 of file qavrgacquisitiondata.cpp.

References QavrgAcquisitionParms::fitter(), and m_AcquisitionDataMutex.

Referenced by get_ReferenceData().

{
  QMutexLocker lock(&m_AcquisitionDataMutex);

  return fitter(chan) -> get_ReferenceData(start,nbins);
}
QVector< double > QavrgAcquisitionData::get_ReferenceData ( int  chan) [slot]

Definition at line 101 of file qavrgacquisitiondata.cpp.

References QavrgAcquisitionParms::fitter(), get_ReferenceData(), and m_AcquisitionDataMutex.

{
  QMutexLocker lock(&m_AcquisitionDataMutex);

  return fitter(chan) -> get_ReferenceData();
}
double QavrgAcquisitionData::get_ReferenceData ( int  chan,
int  bin 
) [slot]

Definition at line 108 of file qavrgacquisitiondata.cpp.

References QavrgAcquisitionParms::fitter(), get_ReferenceData(), and m_AcquisitionDataMutex.

{
  QMutexLocker lock(&m_AcquisitionDataMutex);

  return fitter(chan) -> get_ReferenceData(bin);
}
void QavrgAcquisitionData::loadDarkData ( )

Definition at line 209 of file qavrgacquisitiondata.cpp.

References QavrgAcquisitionParms::fitter().

Referenced by QavrgAcquisition::initialize().

{
  int nchan = get_NChannels();

  for (int i = 0; i<nchan; i++) {
    fitter(i) -> loadDarkData();
  }
}
void QavrgAcquisitionData::loadReferenceData ( )

Definition at line 190 of file qavrgacquisitiondata.cpp.

References QavrgAcquisitionParms::fitter().

Referenced by QavrgAcquisition::initialize().

{
  int nchan = get_NChannels();

  for (int i = 0; i<nchan; i++) {
    fitter(i) -> loadReferenceData();
  }
}
void QavrgAcquisitionData::new_DarkData ( ) [signal]
void QavrgAcquisitionData::new_FitData ( ) [signal]
void QavrgAcquisitionData::new_FittingResults ( ) [signal]
void QavrgAcquisitionData::new_RawData ( ) [signal]
void QavrgAcquisitionData::new_ReferenceData ( ) [signal]
void QavrgAcquisitionData::saveDarkData ( )

Definition at line 218 of file qavrgacquisitiondata.cpp.

References QavrgAcquisitionParms::fitter().

Referenced by QavrgAcquisition::acquireDark(), and setDarkData().

{
  int nchan = get_NChannels();

  for (int i = 0; i<nchan; i++) {
    fitter(i) -> saveDarkData();
  }
}
void QavrgAcquisitionData::saveReferenceData ( )

Definition at line 199 of file qavrgacquisitiondata.cpp.

References QavrgAcquisitionParms::fitter().

Referenced by QavrgAcquisition::acquireReference(), and setReferenceData().

{
  int nchan = get_NChannels();

  for (int i = 0; i<nchan; i++) {
    fitter(i) -> saveReferenceData();
  }
}
void QavrgAcquisitionData::setDarkData ( ) [slot]

Definition at line 64 of file qavrgacquisitiondata.cpp.

References QavrgAcquisitionParms::fitter(), new_DarkData(), and saveDarkData().

{
  int nchan = get_NChannels();

  for (int i=0; i<nchan; i++) {
    fitter(i) -> setDarkData();
  }

  saveDarkData();

  emit new_DarkData();
}
void QavrgAcquisitionData::setReferenceData ( ) [slot]

Definition at line 51 of file qavrgacquisitiondata.cpp.

References QavrgAcquisitionParms::fitter(), new_ReferenceData(), and saveReferenceData().

{
  int nchan = get_NChannels();

  for (int i=0; i<nchan; i++) {
    fitter(i) -> setReferenceData();
  }

  saveReferenceData();

  emit new_ReferenceData();
}

Member Data Documentation

QVector< QVector<double> > QavrgAcquisitionData::m_Accumulator [protected]
QMutex QavrgAcquisitionData::m_AccumulatorMutex [mutable, protected]
QAtomicInt QavrgAcquisitionData::m_AcquireCancel [protected]

Definition at line 87 of file qavrgacquisitiondata.h.

Referenced by get_DarkData(), get_FitData(), get_RawData(), and get_ReferenceData().


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