CMS 3D CMS Logo

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

#include <MTDClusterizerBase.h>

Public Types

typedef unsigned short UShort
 

Public Member Functions

bool add (FTLCluster::FTLHitPos const &p, float const ienergy, float const itime, float const itimeError)
 
bool empty ()
 
void pop ()
 
UShort top () const
 

Public Attributes

unsigned int curr = 0
 
std::array< float, MAXSIZEenergy
 
unsigned int isize = 0
 
std::array< float, MAXSIZEtime
 
std::array< float, MAXSIZEtimeError
 
std::array< UShort, MAXSIZEx
 
UShort xmin = 16000
 
std::array< UShort, MAXSIZEy
 
UShort ymin = 16000
 

Static Public Attributes

static constexpr UShort MAXSIZE = 256
 

Detailed Description

Definition at line 34 of file MTDClusterizerBase.h.

Member Typedef Documentation

◆ UShort

Definition at line 35 of file MTDClusterizerBase.h.

Member Function Documentation

◆ add()

bool MTDClusterizerBase::AccretionCluster::add ( FTLCluster::FTLHitPos const &  p,
float const  ienergy,
float const  itime,
float const  itimeError 
)
inline

Definition at line 54 of file MTDClusterizerBase.h.

54  {
55  if (isize == MAXSIZE)
56  return false;
57  xmin = std::min(xmin, (unsigned short)(p.row()));
58  ymin = std::min(ymin, (unsigned short)(p.col()));
59  energy[isize] = ienergy;
60  time[isize] = itime;
61  timeError[isize] = itimeError;
62  x[isize] = p.row();
63  y[isize] = p.col();
64  isize++;
65  return true;
66  }

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

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

◆ empty()

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

Definition at line 52 of file MTDClusterizerBase.h.

52 { return curr == isize; }

References curr, and isize.

Referenced by MTDThresholdClusterizer::make_cluster().

◆ pop()

void MTDClusterizerBase::AccretionCluster::pop ( )
inline

Definition at line 51 of file MTDClusterizerBase.h.

51 { ++curr; }

References curr.

Referenced by MTDThresholdClusterizer::make_cluster().

◆ top()

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

Definition at line 50 of file MTDClusterizerBase.h.

50 { return curr; }

References curr.

Referenced by MTDThresholdClusterizer::make_cluster().

Member Data Documentation

◆ curr

unsigned int MTDClusterizerBase::AccretionCluster::curr = 0

Definition at line 47 of file MTDClusterizerBase.h.

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

◆ energy

std::array<float, MAXSIZE> MTDClusterizerBase::AccretionCluster::energy

◆ isize

unsigned int MTDClusterizerBase::AccretionCluster::isize = 0

Definition at line 46 of file MTDClusterizerBase.h.

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

◆ MAXSIZE

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

Definition at line 36 of file MTDClusterizerBase.h.

Referenced by add().

◆ time

std::array<float, MAXSIZE> MTDClusterizerBase::AccretionCluster::time

Definition at line 39 of file MTDClusterizerBase.h.

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

◆ timeError

std::array<float, MAXSIZE> MTDClusterizerBase::AccretionCluster::timeError

Definition at line 40 of file MTDClusterizerBase.h.

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

◆ x

std::array<UShort, MAXSIZE> MTDClusterizerBase::AccretionCluster::x

◆ xmin

UShort MTDClusterizerBase::AccretionCluster::xmin = 16000

◆ y

std::array<UShort, MAXSIZE> MTDClusterizerBase::AccretionCluster::y

◆ ymin

UShort MTDClusterizerBase::AccretionCluster::ymin = 16000
MTDClusterizerBase::AccretionCluster::MAXSIZE
static constexpr UShort MAXSIZE
Definition: MTDClusterizerBase.h:36
MTDClusterizerBase::AccretionCluster::xmin
UShort xmin
Definition: MTDClusterizerBase.h:44
min
T min(T a, T b)
Definition: MathUtil.h:58
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
MTDClusterizerBase::AccretionCluster::x
std::array< UShort, MAXSIZE > x
Definition: MTDClusterizerBase.h:41
MTDClusterizerBase::AccretionCluster::y
std::array< UShort, MAXSIZE > y
Definition: MTDClusterizerBase.h:42
MTDClusterizerBase::AccretionCluster::timeError
std::array< float, MAXSIZE > timeError
Definition: MTDClusterizerBase.h:40
MTDClusterizerBase::AccretionCluster::time
std::array< float, MAXSIZE > time
Definition: MTDClusterizerBase.h:39
MTDClusterizerBase::AccretionCluster::ymin
UShort ymin
Definition: MTDClusterizerBase.h:45
MTDClusterizerBase::AccretionCluster::energy
std::array< float, MAXSIZE > energy
Definition: MTDClusterizerBase.h:38
MTDClusterizerBase::AccretionCluster::curr
unsigned int curr
Definition: MTDClusterizerBase.h:47
MTDClusterizerBase::AccretionCluster::isize
unsigned int isize
Definition: MTDClusterizerBase.h:46