pxar
 All Classes Namespaces Functions Variables Typedefs Friends
Public Member Functions | Friends | List of all members
pxar::pixel Class Reference

#include <datatypes.h>

Public Member Functions

 pixel ()
 
 pixel (uint8_t roc_id, uint8_t column, uint8_t row, double value)
 
 pixel (uint32_t rawdata, uint8_t rocid, bool invertAddress=false)
 
uint8_t roc () const
 
void setRoc (uint8_t roc)
 
uint8_t column () const
 
void setColumn (uint8_t column)
 
uint8_t row () const
 
void setRow (uint8_t row)
 
double variance ()
 
void setVariance (double var)
 
double value ()
 
void setValue (double val)
 
bool operator== (const pixel &px)
 
bool operator< (const pixel &px) const
 

Friends

std::ostream & operator<< (std::ostream &out, pixel &px)
 

Detailed Description

Class for storing decoded pixel readout data

Definition at line 30 of file datatypes.h.

Constructor & Destructor Documentation

pxar::pixel::pixel ( )
inline

Default constructor for pixel objects, defaulting all member variables to zero

Definition at line 35 of file datatypes.h.

pxar::pixel::pixel ( uint8_t  roc_id,
uint8_t  column,
uint8_t  row,
double  value 
)
inline

Constructor for pixel objects with address and value initialization.

Definition at line 39 of file datatypes.h.

pxar::pixel::pixel ( uint32_t  rawdata,
uint8_t  rocid,
bool  invertAddress = false 
)
inline

Constructor for pixel objects with rawdata pixel address & value and ROC id initialization.

Definition at line 43 of file datatypes.h.

Member Function Documentation

uint8_t pxar::pixel::column ( ) const
inline

Getter function to return column id

Definition at line 55 of file datatypes.h.

bool pxar::pixel::operator< ( const pixel px) const
inline

Overloaded < operator

Definition at line 99 of file datatypes.h.

bool pxar::pixel::operator== ( const pixel px)
inline

Overloaded comparison operator

Definition at line 91 of file datatypes.h.

uint8_t pxar::pixel::roc ( ) const
inline

Getter function to return ROC ID

Definition at line 47 of file datatypes.h.

uint8_t pxar::pixel::row ( ) const
inline

Getter function to return row id

Definition at line 63 of file datatypes.h.

void pxar::pixel::setColumn ( uint8_t  column)
inline

Setter function to set the column id

Definition at line 59 of file datatypes.h.

void pxar::pixel::setRoc ( uint8_t  roc)
inline

Setter function to set the ROC id

Definition at line 51 of file datatypes.h.

void pxar::pixel::setRow ( uint8_t  row)
inline

Setter function to set the row id

Definition at line 67 of file datatypes.h.

void pxar::pixel::setValue ( double  val)
inline

Member function to get the value stored for this pixel hit

Definition at line 85 of file datatypes.h.

void pxar::pixel::setVariance ( double  var)
inline

Member function to set the signal variance for this pixel hit

Definition at line 75 of file datatypes.h.

double pxar::pixel::value ( )
inline

Member function to get the value stored for this pixel hit

Definition at line 79 of file datatypes.h.

double pxar::pixel::variance ( )
inline

Member function to get the signal variance for this pixel hit

Definition at line 71 of file datatypes.h.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
pixel px 
)
friend

Overloaded ostream operator for simple printing of pixel data

Definition at line 157 of file datatypes.h.


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