qavrg 0.0.28
qavrgacquisitionsimulated.h
Go to the documentation of this file.
00001 #ifndef QAVRGACQUISITIONSIMULATED_H
00002 #define QAVRGACQUISITIONSIMULATED_H
00003 
00004 #include "qavrgacquisitiondata.h"
00005 #include <QVector>
00006 
00007 class QavrgAcquisitionSimulated : public QavrgAcquisitionData
00008 {
00009   Q_OBJECT;
00010 
00011 public:
00012   QavrgAcquisitionSimulated(QavrgAcquisitionThread *acq, QavrgApplication *app, QObject *parent);
00013 
00014 protected:
00015 
00016   void simulatedConfigureAverager(AcquisitionMode mode);
00017   void simulatedStartAcquisition(int rep, int nrep);
00018   void simulatedWaitAcquisition(int rep, int nrep);
00019   void simulatedReadoutAcquisition(int rep, int nrep);
00020 
00021 private slots:
00022   void calculateSimulatedAcquisition(int rep, int nrep);
00023 
00024 private:
00025   double randomPoisson(double val) const;
00026 
00027 private:
00028   QavrgAcquisitionThread     *m_AcquisitionThread;
00029 };
00030 
00031 #endif // QAVRGACQUISITIONSIMULATED_H