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.

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  }

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

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

◆ clear()

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

Definition at line 39 of file PixelClusterizerBase.h.

39  {
40  xmin = 16000;
41  ymin = 16000;
42  isize = 0;
43  charge = 0;
44  curr = 0;
45  }

References charge, curr, isize, xmin, and ymin.

Referenced by SiPixelDigisClustersFromSoA::produce().

◆ empty()

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

Definition at line 37 of file PixelClusterizerBase.h.

37 { return curr == isize; }

References curr, and isize.

Referenced by PixelThresholdClusterizer::make_cluster().

◆ pop()

void PixelClusterizerBase::AccretionCluster::pop ( )
inline

Definition at line 36 of file PixelClusterizerBase.h.

36 { ++curr; }

References curr.

Referenced by PixelThresholdClusterizer::make_cluster().

◆ top()

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

Definition at line 35 of file PixelClusterizerBase.h.

35 { return curr; }

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
staticconstexpr

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
PixelClusterizerBase::AccretionCluster::isize
unsigned int isize
Definition: PixelClusterizerBase.h:30
PixelClusterizerBase::AccretionCluster::adc
uint16_t adc[MAXSIZE]
Definition: PixelClusterizerBase.h:25
PixelClusterizerBase::AccretionCluster::ymin
uint16_t ymin
Definition: PixelClusterizerBase.h:29
PixelClusterizerBase::AccretionCluster::xmin
uint16_t xmin
Definition: PixelClusterizerBase.h:28
PixelClusterizerBase::AccretionCluster::x
uint16_t x[MAXSIZE]
Definition: PixelClusterizerBase.h:26
PixelClusterizerBase::AccretionCluster::charge
int charge
Definition: PixelClusterizerBase.h:31
PixelClusterizerBase::AccretionCluster::MAXSIZE
static constexpr uint16_t MAXSIZE
Definition: PixelClusterizerBase.h:24
PixelClusterizerBase::AccretionCluster::curr
unsigned int curr
Definition: PixelClusterizerBase.h:34
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
PixelClusterizerBase::AccretionCluster::y
uint16_t y[MAXSIZE]
Definition: PixelClusterizerBase.h:27