PAASS
Software suite to Acquire and Analyze Data from Pixie16
MCA_ROOT Class Reference

#include <MCA_ROOT.h>

Inheritance diagram for MCA_ROOT:
Collaboration diagram for MCA_ROOT:

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 ()
 
- Public Member Functions inherited from MCA
 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

- Protected Attributes inherited from MCA
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 inherited from MCA
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

Definition at line 11 of file MCA_ROOT.h.

Constructor & Destructor Documentation

§ MCA_ROOT()

MCA_ROOT::MCA_ROOT ( PixieInterface pif,
const char *  basename 
)

Default constructor.

Definition at line 8 of file MCA_ROOT.cpp.

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

§ ~MCA_ROOT()

MCA_ROOT::~MCA_ROOT ( )

Defaul destructor.

Definition at line 13 of file MCA_ROOT.cpp.

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

Member Function Documentation

§ Flush()

void MCA_ROOT::Flush ( )
virtual

Flush the current memory to disk.

Implements MCA.

Definition at line 81 of file MCA_ROOT.cpp.

Here is the caller graph for this function:

§ GetHistogram()

TH1F * MCA_ROOT::GetHistogram ( int  mod,
int  ch 
)

Definition at line 51 of file MCA_ROOT.cpp.

Here is the caller graph for this function:

§ OpenFile()

bool MCA_ROOT::OpenFile ( const char *  basename)
virtual

Abstract method to open a storage file.

Implements MCA.

Definition at line 21 of file MCA_ROOT.cpp.

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

§ Reset()

void MCA_ROOT::Reset ( )

Definition at line 77 of file MCA_ROOT.cpp.

Here is the caller graph for this function:

§ StoreData()

bool MCA_ROOT::StoreData ( int  mod,
int  ch 
)
virtual

Abstract method describing how the MCA data is stored.

Implements MCA.

Definition at line 61 of file MCA_ROOT.cpp.

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

Field Documentation

§ _file

TFile* MCA_ROOT::_file
private

Definition at line 13 of file MCA_ROOT.h.

§ _histograms

std::map<int,TH1F*> MCA_ROOT::_histograms
private

Definition at line 14 of file MCA_ROOT.h.


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