CMS 3D CMS Logo

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

◆ add()

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

Definition at line 47 of file PixelClusterizerBase.h.

References adc, charge, isize, MAXSIZE, AlCaHLTBitMon_ParallelJobs::p, x, xmin, y, and ymin.

Referenced by PixelThresholdClusterizer::make_cluster(), SiPixelDigisClustersFromSoAT< TrackerTraits >::produce(), SiPixelDigisClustersFromSoAAlpaka< TrackerTraits >::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  }

◆ clear()

void PixelClusterizerBase::AccretionCluster::clear ( void  )
inline

◆ empty()

bool PixelClusterizerBase::AccretionCluster::empty ( void  )
inline

◆ pop()

void PixelClusterizerBase::AccretionCluster::pop ( )
inline

◆ top()

uint16_t PixelClusterizerBase::AccretionCluster::top ( ) const
inline

Definition at line 35 of file PixelClusterizerBase.h.

References curr.

Referenced by PixelThresholdClusterizer::make_cluster().

Member Data Documentation

◆ adc

uint16_t PixelClusterizerBase::AccretionCluster::adc[MAXSIZE]

Definition at line 25 of file PixelClusterizerBase.h.

Referenced by add(), and PixelThresholdClusterizer::make_cluster().

◆ charge

int PixelClusterizerBase::AccretionCluster::charge = 0

Definition at line 31 of file PixelClusterizerBase.h.

Referenced by add(), and clear().

◆ curr

unsigned int PixelClusterizerBase::AccretionCluster::curr = 0

Definition at line 34 of file PixelClusterizerBase.h.

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

◆ isize

unsigned int PixelClusterizerBase::AccretionCluster::isize = 0

Definition at line 30 of file PixelClusterizerBase.h.

Referenced by add(), clear(), empty(), and PixelThresholdClusterizer::make_cluster().

◆ MAXSIZE

constexpr uint16_t PixelClusterizerBase::AccretionCluster::MAXSIZE = 256
static

Definition at line 24 of file PixelClusterizerBase.h.

Referenced by add().

◆ x

uint16_t PixelClusterizerBase::AccretionCluster::x[MAXSIZE]

◆ xmin

uint16_t PixelClusterizerBase::AccretionCluster::xmin = 16000

◆ y

uint16_t PixelClusterizerBase::AccretionCluster::y[MAXSIZE]

◆ ymin

uint16_t PixelClusterizerBase::AccretionCluster::ymin = 16000