Abstract MCA class.
More...
#include <MCA.h>
|
static const size_t | HIS_SIZE = 16384 |
| Default number of bins in histogram. More...
|
|
static const size_t | ADC_SIZE = 32768 |
| Default number of channels in ADC. More...
|
|
Abstract MCA class.
Definition at line 11 of file MCA.h.
§ MCA()
Default constructor.
Definition at line 12 of file MCA.cpp.
§ ~MCA()
Default destructor.
Definition at line 30 of file MCA.h.
§ Flush()
virtual void MCA::Flush |
( |
| ) |
|
|
pure virtual |
§ GetRunTime()
double MCA::GetRunTime |
( |
| ) |
|
Return the length of time the MCA has been running.
Definition at line 17 of file MCA.cpp.
§ IsOpen()
virtual bool MCA::IsOpen |
( |
| ) |
|
|
inlinevirtual |
Check if the histogram construction was successful.
Definition at line 40 of file MCA.h.
§ OpenFile()
virtual bool MCA::OpenFile |
( |
const char * |
basename | ) |
|
|
pure virtual |
§ Run()
void MCA::Run |
( |
float |
duration, |
|
|
bool * |
stop = NULL |
|
) |
| |
|
virtual |
Start the MCA running.
The MCA is initialized and run for the specified duration or until a stop command is received. At specific intervals the MCA output is updated via MCA::StoreData(). Will continue until external bool (stop) is set to false. If this pointer is set to NULL, will continue uninterrupted.
- Parameters
-
[in] | duration | Amount of time to run the MCA. |
[in] | stop | External boolean flag for stop run command. |
Definition at line 30 of file MCA.cpp.
§ Step()
Update the MCA histograms.
Definition at line 81 of file MCA.cpp.
§ StoreData()
virtual bool MCA::StoreData |
( |
int |
mod, |
|
|
int |
ch |
|
) |
| |
|
pure virtual |
§ _isOpen
Flag indicating if histogram construction was successful.
Definition at line 23 of file MCA.h.
§ _pif
§ ADC_SIZE
const size_t MCA::ADC_SIZE = 32768 |
|
staticprotected |
Default number of channels in ADC.
Definition at line 20 of file MCA.h.
§ HIS_SIZE
const size_t MCA::HIS_SIZE = 16384 |
|
staticprotected |
Default number of bins in histogram.
Definition at line 18 of file MCA.h.
§ start_time
Timers for the MCA object.
Definition at line 14 of file MCA.h.
§ stop_time
Definition at line 15 of file MCA.h.
The documentation for this class was generated from the following files: