CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Static Public Attributes
PixelClusterizerBase::AccretionCluster Struct Reference

#include <PixelClusterizerBase.h>

Public Member Functions

bool add (SiPixelCluster::PixelPos const &p, uint16_t const iadc)
 
void clear ()
 
bool empty ()
 
void pop ()
 
uint16_t top () const
 

Public Attributes

uint16_t adc [MAXSIZE]
 
int charge = 0
 
unsigned int curr = 0
 
unsigned int isize = 0
 
uint16_t x [MAXSIZE]
 
uint16_t xmin = 16000
 
uint16_t y [MAXSIZE]
 
uint16_t ymin = 16000
 

Static Public Attributes

static constexpr uint16_t MAXSIZE = 256
 

Detailed Description

Definition at line 23 of file PixelClusterizerBase.h.

Member Function Documentation

bool PixelClusterizerBase::AccretionCluster::add ( SiPixelCluster::PixelPos const &  p,
uint16_t const  iadc 
)
inline

Definition at line 47 of file PixelClusterizerBase.h.

References adc, charge, SiPixelCluster::PixelPos::col(), isize, MAXSIZE, SiPixelCluster::PixelPos::row(), x, xmin, y, and ymin.

Referenced by PixelThresholdClusterizer::make_cluster(), PixelThresholdClusterizerForBricked::make_cluster_bricked(), SiPixelDigisClustersFromSoA::produce(), and counter.Counter::register().

47  {
48  if (isize == MAXSIZE)
49  return false;
50  xmin = std::min<uint16_t>(xmin, p.row());
51  ymin = std::min<uint16_t>(ymin, p.col());
52  adc[isize] = iadc;
53  x[isize] = p.row();
54  y[isize++] = p.col();
55  charge += iadc;
56  return true;
57  }
void PixelClusterizerBase::AccretionCluster::clear ( void  )
inline
bool PixelClusterizerBase::AccretionCluster::empty ( void  )
inline
void PixelClusterizerBase::AccretionCluster::pop ( )
inline
uint16_t PixelClusterizerBase::AccretionCluster::top ( ) const
inline

Member Data Documentation

uint16_t PixelClusterizerBase::AccretionCluster::adc[MAXSIZE]
int PixelClusterizerBase::AccretionCluster::charge = 0

Definition at line 31 of file PixelClusterizerBase.h.

Referenced by add(), and clear().

unsigned int PixelClusterizerBase::AccretionCluster::curr = 0

Definition at line 34 of file PixelClusterizerBase.h.

Referenced by clear(), empty(), pop(), and top().

unsigned int PixelClusterizerBase::AccretionCluster::isize = 0
constexpr uint16_t PixelClusterizerBase::AccretionCluster::MAXSIZE = 256
static

Definition at line 24 of file PixelClusterizerBase.h.

Referenced by add().

uint16_t PixelClusterizerBase::AccretionCluster::x[MAXSIZE]
uint16_t PixelClusterizerBase::AccretionCluster::xmin = 16000
uint16_t PixelClusterizerBase::AccretionCluster::y[MAXSIZE]
uint16_t PixelClusterizerBase::AccretionCluster::ymin = 16000