CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Static Public Attributes
RPixTempCluster Class Reference

#include <RPixDetClusterizer.h>

Public Member Functions

bool addPixel (unsigned char myrow, unsigned char mycol, unsigned short const iadc)
 
bool empty ()
 
void pop ()
 
 RPixTempCluster ()
 
unsigned short top () const
 
 ~RPixTempCluster ()
 

Public Attributes

unsigned short adc [MAXSIZE]
 
uint8_t col [MAXSIZE]
 
unsigned short curr
 
unsigned short isize
 
uint8_t row [MAXSIZE]
 

Static Public Attributes

static unsigned short MAXSIZE = 256
 

Detailed Description

Definition at line 71 of file RPixDetClusterizer.h.

Constructor & Destructor Documentation

RPixTempCluster::RPixTempCluster ( )
inline

Definition at line 73 of file RPixDetClusterizer.h.

73  {
74  isize = 0;
75  curr = 0;
76  }
unsigned short isize
unsigned short curr
RPixTempCluster::~RPixTempCluster ( )
inline

Definition at line 77 of file RPixDetClusterizer.h.

77 {}

Member Function Documentation

bool RPixTempCluster::addPixel ( unsigned char  myrow,
unsigned char  mycol,
unsigned short const  iadc 
)
inline

Definition at line 91 of file RPixDetClusterizer.h.

Referenced by RPixDetClusterizer::make_cluster().

91  {
92  if (isize == MAXSIZE)
93  return false;
94  adc[isize] = iadc;
95  row[isize] = myrow;
96  col[isize++] = mycol;
97  return true;
98  }
unsigned short adc[MAXSIZE]
unsigned short isize
static unsigned short MAXSIZE
uint8_t row[MAXSIZE]
uint8_t col[MAXSIZE]
bool RPixTempCluster::empty ( void  )
inline

Definition at line 89 of file RPixDetClusterizer.h.

Referenced by RPixDetClusterizer::make_cluster().

89 { return curr == isize; }
unsigned short isize
unsigned short curr
void RPixTempCluster::pop ( )
inline

Definition at line 88 of file RPixDetClusterizer.h.

Referenced by RPixDetClusterizer::make_cluster().

88 { ++curr; }
unsigned short curr
unsigned short RPixTempCluster::top ( ) const
inline

Definition at line 87 of file RPixDetClusterizer.h.

Referenced by RPixDetClusterizer::make_cluster().

87 { return curr; }
unsigned short curr

Member Data Documentation

unsigned short RPixTempCluster::adc[MAXSIZE]

Definition at line 80 of file RPixDetClusterizer.h.

Referenced by RPixDetClusterizer::make_cluster().

uint8_t RPixTempCluster::col[MAXSIZE]
unsigned short RPixTempCluster::curr

Definition at line 84 of file RPixDetClusterizer.h.

unsigned short RPixTempCluster::isize

Definition at line 83 of file RPixDetClusterizer.h.

Referenced by RPixDetClusterizer::make_cluster().

unsigned short RPixTempCluster::MAXSIZE = 256
static

Definition at line 79 of file RPixDetClusterizer.h.

uint8_t RPixTempCluster::row[MAXSIZE]

Definition at line 81 of file RPixDetClusterizer.h.

Referenced by RPixDetClusterizer::make_cluster().