PAASS
Software suite to Acquire and Analyze Data from Pixie16
|
#include <MCA_ROOT.h>
Data Structures | |
class | cerr_redirect |
A class to handle redirecting stderr. More... | |
Public Member Functions | |
MCA_ROOT (PixieInterface *pif, const char *basename) | |
Default constructor. More... | |
~MCA_ROOT () | |
Defaul destructor. More... | |
bool | StoreData (int mod, int ch) |
Abstract method describing how the MCA data is stored. More... | |
void | Flush () |
Flush the current memory to disk. More... | |
bool | OpenFile (const char *basename) |
Abstract method to open a storage file. More... | |
TH1F * | GetHistogram (int mod, int ch) |
void | Reset () |
![]() | |
MCA (PixieInterface *pif) | |
Default constructor. More... | |
virtual | ~MCA () |
Default destructor. More... | |
double | GetRunTime () |
Return the length of time the MCA has been running. More... | |
virtual bool | IsOpen () |
Check if the histogram construction was successful. More... | |
virtual void | Run (float duration, bool *stop=NULL) |
Start the MCA running. More... | |
virtual bool | Step () |
Update the MCA histograms. More... | |
Private Attributes | |
TFile * | _file |
std::map< int, TH1F * > | _histograms |
Additional Inherited Members | |
![]() | |
time_t | start_time |
Timers for the MCA object. More... | |
time_t | stop_time |
bool | _isOpen |
Flag indicating if histogram construction was successful. More... | |
PixieInterface * | _pif |
Pointer to the PixieInterface. More... | |
![]() | |
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... | |
Definition at line 11 of file MCA_ROOT.h.
MCA_ROOT::MCA_ROOT | ( | PixieInterface * | pif, |
const char * | basename | ||
) |
Default constructor.
Definition at line 8 of file MCA_ROOT.cpp.
MCA_ROOT::~MCA_ROOT | ( | ) |
Defaul destructor.
Definition at line 13 of file MCA_ROOT.cpp.
|
virtual |
Flush the current memory to disk.
Implements MCA.
Definition at line 81 of file MCA_ROOT.cpp.
TH1F * MCA_ROOT::GetHistogram | ( | int | mod, |
int | ch | ||
) |
|
virtual |
Abstract method to open a storage file.
Implements MCA.
Definition at line 21 of file MCA_ROOT.cpp.
void MCA_ROOT::Reset | ( | ) |
|
virtual |
Abstract method describing how the MCA data is stored.
Implements MCA.
Definition at line 61 of file MCA_ROOT.cpp.
|
private |
Definition at line 13 of file MCA_ROOT.h.
|
private |
Definition at line 14 of file MCA_ROOT.h.