CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes | Static Public Attributes
PixelClusterizerBase::AccretionCluster Struct Reference

#include <PixelClusterizerBase.h>

Public Types

typedef unsigned short UShort
 

Public Member Functions

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

Public Attributes

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

Static Public Attributes

static constexpr UShort MAXSIZE = 256
 

Detailed Description

Definition at line 22 of file PixelClusterizerBase.h.

Member Typedef Documentation

◆ UShort

Definition at line 23 of file PixelClusterizerBase.h.

Member Function Documentation

◆ add()

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

Definition at line 38 of file PixelClusterizerBase.h.

38  {
39  if (isize == MAXSIZE)
40  return false;
41  xmin = std::min(xmin, (unsigned short)(p.row()));
42  ymin = std::min(ymin, (unsigned short)(p.col()));
43  adc[isize] = iadc;
44  x[isize] = p.row();
45  y[isize++] = p.col();
46  return true;
47  }

References adc, isize, MAXSIZE, min(), AlCaHLTBitMon_ParallelJobs::p, x, xmin, y, and ymin.

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

◆ empty()

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

Definition at line 36 of file PixelClusterizerBase.h.

36 { return curr == isize; }

References curr, and isize.

Referenced by PixelThresholdClusterizer::make_cluster().

◆ pop()

void PixelClusterizerBase::AccretionCluster::pop ( )
inline

Definition at line 35 of file PixelClusterizerBase.h.

35 { ++curr; }

References curr.

Referenced by PixelThresholdClusterizer::make_cluster().

◆ top()

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

Definition at line 34 of file PixelClusterizerBase.h.

34 { return curr; }

References curr.

Referenced by PixelThresholdClusterizer::make_cluster().

Member Data Documentation

◆ adc

UShort PixelClusterizerBase::AccretionCluster::adc[MAXSIZE]

Definition at line 25 of file PixelClusterizerBase.h.

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

◆ curr

unsigned int PixelClusterizerBase::AccretionCluster::curr = 0

Definition at line 31 of file PixelClusterizerBase.h.

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

◆ isize

unsigned int PixelClusterizerBase::AccretionCluster::isize = 0

Definition at line 30 of file PixelClusterizerBase.h.

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

◆ MAXSIZE

constexpr UShort PixelClusterizerBase::AccretionCluster::MAXSIZE = 256
staticconstexpr

Definition at line 24 of file PixelClusterizerBase.h.

Referenced by add().

◆ x

UShort PixelClusterizerBase::AccretionCluster::x[MAXSIZE]

◆ xmin

UShort PixelClusterizerBase::AccretionCluster::xmin = 16000

◆ y

UShort PixelClusterizerBase::AccretionCluster::y[MAXSIZE]

◆ ymin

UShort PixelClusterizerBase::AccretionCluster::ymin = 16000
PixelClusterizerBase::AccretionCluster::MAXSIZE
static constexpr UShort MAXSIZE
Definition: PixelClusterizerBase.h:24
PixelClusterizerBase::AccretionCluster::isize
unsigned int isize
Definition: PixelClusterizerBase.h:30
PixelClusterizerBase::AccretionCluster::xmin
UShort xmin
Definition: PixelClusterizerBase.h:28
min
T min(T a, T b)
Definition: MathUtil.h:58
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
PixelClusterizerBase::AccretionCluster::adc
UShort adc[MAXSIZE]
Definition: PixelClusterizerBase.h:25
PixelClusterizerBase::AccretionCluster::curr
unsigned int curr
Definition: PixelClusterizerBase.h:31
PixelClusterizerBase::AccretionCluster::x
UShort x[MAXSIZE]
Definition: PixelClusterizerBase.h:26
PixelClusterizerBase::AccretionCluster::ymin
UShort ymin
Definition: PixelClusterizerBase.h:29
PixelClusterizerBase::AccretionCluster::y
UShort y[MAXSIZE]
Definition: PixelClusterizerBase.h:27