PAASS
Software suite to Acquire and Analyze Data from Pixie16
PixieInterface::Histogram Class Reference

#include <PixieInterface.h>

Public Types

enum  ErrorTypes { NO_ERROR, ERROR_SUBTRACT, ERROR_READ, ERROR_WRITE }
 

Public Member Functions

 Histogram ()
 
 Histogram (const Histogram &x)
 
const Histogramoperator= (const Histogram &right)
 
Histogram operator+ (const Histogram &right)
 
Histogram operator- (const Histogram &right)
 
const Histogramoperator+= (const Histogram &right)
 
const Histogramoperator-= (const Histogram &right)
 
ErrorTypes GetError (void) const
 
void ClearError (void)
 
bool Read (PixieInterface &pif, unsigned int mod, unsigned int ch)
 
bool Write (std::ofstream &file)
 

Private Attributes

word_t data [HISTO_SIZE]
 
ErrorTypes error
 

Detailed Description

Definition at line 68 of file PixieInterface.h.

Member Enumeration Documentation

§ ErrorTypes

Enumerator
NO_ERROR 
ERROR_SUBTRACT 
ERROR_READ 
ERROR_WRITE 

Definition at line 70 of file PixieInterface.h.

Constructor & Destructor Documentation

§ Histogram() [1/2]

PixieInterface::Histogram::Histogram ( )

Definition at line 26 of file PixieInterface.cpp.

§ Histogram() [2/2]

PixieInterface::Histogram::Histogram ( const Histogram x)

Definition at line 31 of file PixieInterface.cpp.

Member Function Documentation

§ ClearError()

void PixieInterface::Histogram::ClearError ( void  )
inline

Definition at line 81 of file PixieInterface.h.

Here is the call graph for this function:

§ GetError()

ErrorTypes PixieInterface::Histogram::GetError ( void  ) const
inline

Definition at line 80 of file PixieInterface.h.

§ operator+()

PixieInterface::Histogram PixieInterface::Histogram::operator+ ( const Histogram right)

Definition at line 43 of file PixieInterface.cpp.

§ operator+=()

const PixieInterface::Histogram & PixieInterface::Histogram::operator+= ( const Histogram right)

Definition at line 70 of file PixieInterface.cpp.

§ operator-()

PixieInterface::Histogram PixieInterface::Histogram::operator- ( const Histogram right)

Definition at line 54 of file PixieInterface.cpp.

§ operator-=()

const PixieInterface::Histogram & PixieInterface::Histogram::operator-= ( const Histogram right)

Definition at line 75 of file PixieInterface.cpp.

§ operator=()

const PixieInterface::Histogram & PixieInterface::Histogram::operator= ( const Histogram right)

Definition at line 36 of file PixieInterface.cpp.

§ Read()

bool PixieInterface::Histogram::Read ( PixieInterface pif,
unsigned int  mod,
unsigned int  ch 
)

Definition at line 80 of file PixieInterface.cpp.

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

§ Write()

bool PixieInterface::Histogram::Write ( std::ofstream &  file)

Definition at line 88 of file PixieInterface.cpp.

Here is the caller graph for this function:

Field Documentation

§ data

word_t PixieInterface::Histogram::data[HISTO_SIZE]
private

Definition at line 85 of file PixieInterface.h.

§ error

ErrorTypes PixieInterface::Histogram::error
private

Definition at line 86 of file PixieInterface.h.


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