PAASS
Software suite to Acquire and Analyze Data from Pixie16
MCA Class Referenceabstract

Abstract MCA class. More...

#include <MCA.h>

Inheritance diagram for MCA:
Collaboration diagram for MCA:

Public Member Functions

 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 StoreData (int mod, int ch)=0
 Abstract method describing how the MCA data is stored. More...
 
virtual bool OpenFile (const char *basename)=0
 Abstract method to open a storage file. More...
 
virtual void Flush ()=0
 Flush the current memory to disk. 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...
 

Protected Attributes

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 Protected Attributes

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...
 

Detailed Description

Abstract MCA class.

Definition at line 11 of file MCA.h.

Constructor & Destructor Documentation

§ MCA()

MCA::MCA ( PixieInterface pif)

Default constructor.

Definition at line 12 of file MCA.cpp.

§ ~MCA()

virtual MCA::~MCA ( )
inlinevirtual

Default destructor.

Definition at line 30 of file MCA.h.

Here is the call graph for this function:

Member Function Documentation

§ Flush()

virtual void MCA::Flush ( )
pure virtual

Flush the current memory to disk.

Implemented in MCA_ROOT, and MCA_DAMM.

Here is the caller graph for this function:

§ GetRunTime()

double MCA::GetRunTime ( )

Return the length of time the MCA has been running.

Definition at line 17 of file MCA.cpp.

Here is the caller graph for this function:

§ IsOpen()

virtual bool MCA::IsOpen ( )
inlinevirtual

Check if the histogram construction was successful.

Definition at line 40 of file MCA.h.

Here is the call graph for this function:
Here is the caller graph for this function:

§ OpenFile()

virtual bool MCA::OpenFile ( const char *  basename)
pure virtual

Abstract method to open a storage file.

Implemented in MCA_ROOT, and MCA_DAMM.

Here is the caller graph for this function:

§ 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]durationAmount of time to run the MCA.
[in]stopExternal boolean flag for stop run command.

Definition at line 30 of file MCA.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

§ Step()

bool MCA::Step ( )
virtual

Update the MCA histograms.

Definition at line 81 of file MCA.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

§ StoreData()

virtual bool MCA::StoreData ( int  mod,
int  ch 
)
pure virtual

Abstract method describing how the MCA data is stored.

Implemented in MCA_ROOT, and MCA_DAMM.

Here is the caller graph for this function:

Field Documentation

§ _isOpen

bool MCA::_isOpen
protected

Flag indicating if histogram construction was successful.

Definition at line 23 of file MCA.h.

§ _pif

PixieInterface* MCA::_pif
protected

Pointer to the PixieInterface.

Definition at line 25 of file MCA.h.

§ 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

time_t MCA::start_time
protected

Timers for the MCA object.

Definition at line 14 of file MCA.h.

§ stop_time

time_t MCA::stop_time
protected

Definition at line 15 of file MCA.h.


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