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 constexpr unsigned short MAXSIZE = 256
 

Detailed Description

Definition at line 70 of file RPixDetClusterizer.h.

Constructor & Destructor Documentation

◆ RPixTempCluster()

RPixTempCluster::RPixTempCluster ( )
inline

Definition at line 72 of file RPixDetClusterizer.h.

72  :
73  RPixTempCluster() {
74  isize = 0;
75  curr = 0;

References curr, and isize.

◆ ~RPixTempCluster()

RPixTempCluster::~RPixTempCluster ( )
inline

Definition at line 76 of file RPixDetClusterizer.h.

77 {}

Member Function Documentation

◆ addPixel()

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

Definition at line 90 of file RPixDetClusterizer.h.

91  {
92  if (isize == MAXSIZE)
93  return false;
94  adc[isize] = iadc;
95  row[isize] = myrow;
96  col[isize++] = mycol;
97  return true;

References adc, col, isize, MAXSIZE, and row.

Referenced by RPixDetClusterizer::make_cluster().

◆ empty()

bool RPixTempCluster::empty ( void  )
inline

Definition at line 88 of file RPixDetClusterizer.h.

88 { ++curr; }

References curr.

Referenced by RPixDetClusterizer::make_cluster().

◆ pop()

void RPixTempCluster::pop ( )
inline

Definition at line 87 of file RPixDetClusterizer.h.

87 { return curr; }

References curr.

Referenced by RPixDetClusterizer::make_cluster().

◆ top()

unsigned short RPixTempCluster::top ( ) const
inline

Definition at line 86 of file RPixDetClusterizer.h.

87 { return curr; }

Referenced by RPixDetClusterizer::make_cluster().

Member Data Documentation

◆ adc

unsigned short RPixTempCluster::adc[MAXSIZE]

Definition at line 79 of file RPixDetClusterizer.h.

Referenced by addPixel(), and RPixDetClusterizer::make_cluster().

◆ col

uint8_t RPixTempCluster::col[MAXSIZE]

◆ curr

unsigned short RPixTempCluster::curr

Definition at line 83 of file RPixDetClusterizer.h.

Referenced by empty(), pop(), and RPixTempCluster().

◆ isize

unsigned short RPixTempCluster::isize

◆ MAXSIZE

constexpr unsigned short RPixTempCluster::MAXSIZE = 256
staticconstexpr

Definition at line 78 of file RPixDetClusterizer.h.

Referenced by addPixel().

◆ row

uint8_t RPixTempCluster::row[MAXSIZE]

Definition at line 80 of file RPixDetClusterizer.h.

Referenced by addPixel(), and RPixDetClusterizer::make_cluster().

RPixTempCluster::RPixTempCluster
RPixTempCluster()
Definition: RPixDetClusterizer.h:72
RPixTempCluster::curr
unsigned short curr
Definition: RPixDetClusterizer.h:83
RPixTempCluster::col
uint8_t col[MAXSIZE]
Definition: RPixDetClusterizer.h:81
RPixTempCluster::row
uint8_t row[MAXSIZE]
Definition: RPixDetClusterizer.h:80
RPixTempCluster::MAXSIZE
static constexpr unsigned short MAXSIZE
Definition: RPixDetClusterizer.h:78
RPixTempCluster::adc
unsigned short adc[MAXSIZE]
Definition: RPixDetClusterizer.h:79
RPixTempCluster::isize
unsigned short isize
Definition: RPixDetClusterizer.h:82