CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
MTDArrayBuffer Class Reference

Class to store ADC counts and times during clustering. More...

#include <MTDArrayBuffer.h>

Public Types

typedef unsigned int uint
 

Public Member Functions

void add_energy (uint row, uint col, float energy)
 
void clear (uint row, uint col)
 
void clear (const FTLCluster::FTLHitPos &pos)
 
uint columns () const
 
float energy (uint row, uint col) const
 
float energy (const FTLCluster::FTLHitPos &) const
 
uint index (uint row, uint col) const
 Definition of indexing within the buffer. More...
 
uint index (const FTLCluster::FTLHitPos &pix) const
 
bool inside (uint row, uint col) const
 
LocalError local_error (uint row, uint col) const
 
LocalError local_error (const FTLCluster::FTLHitPos &) const
 
LocalPoint local_point (uint row, uint col) const
 
LocalPoint local_point (const FTLCluster::FTLHitPos &) const
 
 MTDArrayBuffer (uint rows, uint cols)
 
 MTDArrayBuffer ()
 
uint rows () const
 
void set (uint row, uint col, GeomDetEnumerators::Location subDet, float energy, float time, float time_error, const LocalError &local_error, const LocalPoint &local_point, float xpos)
 
void set (const FTLCluster::FTLHitPos &, GeomDetEnumerators::Location subDet, float energy, float time, float time_error, const LocalError &local_error, const LocalPoint &local_point, float xpos)
 
void set_energy (uint row, uint col, float energy)
 
void set_energy (const FTLCluster::FTLHitPos &, float energy)
 
void set_local_error (uint row, uint col, const LocalError &le)
 
void set_local_error (const FTLCluster::FTLHitPos &, const LocalError &le)
 
void set_local_point (uint row, uint col, const LocalPoint &lp)
 
void set_local_point (const FTLCluster::FTLHitPos &, const LocalPoint &lp)
 
void set_subDet (uint row, uint col, GeomDetEnumerators::Location subDet)
 
void set_subDet (const FTLCluster::FTLHitPos &, GeomDetEnumerators::Location subDet)
 
void set_time (uint row, uint col, float time)
 
void set_time (const FTLCluster::FTLHitPos &, float time)
 
void set_time_error (uint row, uint col, float time_error)
 
void set_time_error (const FTLCluster::FTLHitPos &, float time_error)
 
void set_xpos (uint row, uint col, float xpos)
 
void set_xpos (const FTLCluster::FTLHitPos &, float xpos)
 
void setSize (uint rows, uint cols)
 
uint size () const
 
GeomDetEnumerators::Location subDet (uint row, uint col) const
 Use subDet to identify whether the Hit is in BTL or ETL. More...
 
GeomDetEnumerators::Location subDet (const FTLCluster::FTLHitPos &) const
 
float time (uint row, uint col) const
 
float time (const FTLCluster::FTLHitPos &) const
 
float time_error (uint row, uint col) const
 
float time_error (const FTLCluster::FTLHitPos &) const
 
float xpos (uint row, uint col) const
 
float xpos (const FTLCluster::FTLHitPos &) const
 

Private Attributes

std::vector< float > hitEnergy_vec
 
std::vector< LocalPointhitGP_vec
 
std::vector< LocalErrorhitLE_vec
 
std::vector< GeomDetEnumerators::LocationhitSubDet_vec
 
std::vector< float > hitTime_vec
 
std::vector< float > hitTimeError_vec
 
uint ncols
 
uint nrows
 
std::vector< float > xpos_vec
 

Detailed Description

Class to store ADC counts and times during clustering.

Definition at line 20 of file MTDArrayBuffer.h.

Member Typedef Documentation

◆ uint

typedef unsigned int MTDArrayBuffer::uint

Definition at line 22 of file MTDArrayBuffer.h.

Constructor & Destructor Documentation

◆ MTDArrayBuffer() [1/2]

MTDArrayBuffer::MTDArrayBuffer ( uint  rows,
uint  cols 
)
inline

Definition at line 123 of file MTDArrayBuffer.h.

125  hitEnergy_vec(rows * cols, 0),
126  hitTime_vec(rows * cols, 0),
127  hitTimeError_vec(rows * cols, 0),
128  hitGP_vec(rows * cols),
129  hitLE_vec(rows * cols),
130  xpos_vec(rows * cols),
131  nrows(rows),
132  ncols(cols) {}
uint rows() const
std::vector< float > hitEnergy_vec
std::vector< float > xpos_vec
std::vector< LocalPoint > hitGP_vec
std::vector< GeomDetEnumerators::Location > hitSubDet_vec
std::vector< float > hitTime_vec
std::vector< float > hitTimeError_vec
std::vector< LocalError > hitLE_vec

◆ MTDArrayBuffer() [2/2]

MTDArrayBuffer::MTDArrayBuffer ( )
inline

Definition at line 25 of file MTDArrayBuffer.h.

25 {}

Member Function Documentation

◆ add_energy()

void MTDArrayBuffer::add_energy ( uint  row,
uint  col,
float  energy 
)
inline

Definition at line 207 of file MTDArrayBuffer.h.

References cuy::col, energy(), hitEnergy_vec, and index().

207 { hitEnergy_vec[index(row, col)] += energy; }
std::vector< float > hitEnergy_vec
float energy(uint row, uint col) const
uint index(uint row, uint col) const
Definition of indexing within the buffer.
col
Definition: cuy.py:1009

◆ clear() [1/2]

void MTDArrayBuffer::clear ( uint  row,
uint  col 
)
inline

Definition at line 52 of file MTDArrayBuffer.h.

References cuy::col, GeomDetEnumerators::invalidLoc, set_energy(), set_local_error(), set_local_point(), set_subDet(), set_time(), set_time_error(), and set_xpos().

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

52  {
53  LocalError le_n(0, 0, 0);
54  LocalPoint lp_n(0, 0, 0);
56  set_energy(row, col, 0.);
57  set_time(row, col, 0.);
58  set_time_error(row, col, 0.);
59  set_local_error(row, col, le_n);
60  set_local_point(row, col, lp_n);
61  set_xpos(row, col, 0.);
62  }
void set_energy(uint row, uint col, float energy)
void set_local_error(uint row, uint col, const LocalError &le)
void set_time(uint row, uint col, float time)
void set_local_point(uint row, uint col, const LocalPoint &lp)
void set_subDet(uint row, uint col, GeomDetEnumerators::Location subDet)
void set_xpos(uint row, uint col, float xpos)
col
Definition: cuy.py:1009
void set_time_error(uint row, uint col, float time_error)

◆ clear() [2/2]

void MTDArrayBuffer::clear ( const FTLCluster::FTLHitPos pos)
inline

Definition at line 63 of file MTDArrayBuffer.h.

References clear().

Referenced by clear().

63 { clear(pos.row(), pos.col()); }
void clear(uint row, uint col)

◆ columns()

uint MTDArrayBuffer::columns ( ) const
inline

Definition at line 48 of file MTDArrayBuffer.h.

References ncols.

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

48 { return ncols; }

◆ energy() [1/2]

float MTDArrayBuffer::energy ( uint  row,
uint  col 
) const
inline

Definition at line 152 of file MTDArrayBuffer.h.

References cuy::col, hitEnergy_vec, and index().

Referenced by add_energy(), MTDThresholdClusterizer::clusterize(), MTDThresholdClusterizer::make_cluster(), Jet.Jet::rawEnergy(), set(), and set_energy().

152 { return hitEnergy_vec[index(row, col)]; }
std::vector< float > hitEnergy_vec
uint index(uint row, uint col) const
Definition of indexing within the buffer.
col
Definition: cuy.py:1009

◆ energy() [2/2]

float MTDArrayBuffer::energy ( const FTLCluster::FTLHitPos pix) const
inline

Definition at line 153 of file MTDArrayBuffer.h.

References hitEnergy_vec, and index().

Referenced by Jet.Jet::rawEnergy().

153 { return hitEnergy_vec[index(pix)]; }
std::vector< float > hitEnergy_vec
uint index(uint row, uint col) const
Definition of indexing within the buffer.

◆ index() [1/2]

uint MTDArrayBuffer::index ( uint  row,
uint  col 
) const
inline

Definition of indexing within the buffer.

Definition at line 108 of file MTDArrayBuffer.h.

References cuy::col, and nrows.

Referenced by add_energy(), energy(), local_error(), local_point(), set(), set_energy(), set_local_error(), set_local_point(), set_subDet(), set_time(), set_time_error(), set_xpos(), subDet(), time(), time_error(), and xpos().

108 { return col * nrows + row; }
col
Definition: cuy.py:1009

◆ index() [2/2]

uint MTDArrayBuffer::index ( const FTLCluster::FTLHitPos pix) const
inline

Definition at line 109 of file MTDArrayBuffer.h.

References FTLCluster::FTLHitPos::col(), index(), and FTLCluster::FTLHitPos::row().

Referenced by index().

109 { return index(pix.row(), pix.col()); }
uint index(uint row, uint col) const
Definition of indexing within the buffer.
constexpr int row() const
Definition: FTLCluster.h:61
constexpr int col() const
Definition: FTLCluster.h:62

◆ inside()

bool MTDArrayBuffer::inside ( uint  row,
uint  col 
) const
inline

Definition at line 145 of file MTDArrayBuffer.h.

References cuy::col, ncols, and nrows.

145 { return (row < nrows && col < ncols); }
col
Definition: cuy.py:1009

◆ local_error() [1/2]

LocalError MTDArrayBuffer::local_error ( uint  row,
uint  col 
) const
inline

Definition at line 161 of file MTDArrayBuffer.h.

References cuy::col, hitLE_vec, and index().

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

161 { return hitLE_vec[index(row, col)]; }
uint index(uint row, uint col) const
Definition of indexing within the buffer.
col
Definition: cuy.py:1009
std::vector< LocalError > hitLE_vec

◆ local_error() [2/2]

LocalError MTDArrayBuffer::local_error ( const FTLCluster::FTLHitPos pix) const
inline

Definition at line 162 of file MTDArrayBuffer.h.

References hitLE_vec, and index().

162 { return hitLE_vec[index(pix)]; }
uint index(uint row, uint col) const
Definition of indexing within the buffer.
std::vector< LocalError > hitLE_vec

◆ local_point() [1/2]

LocalPoint MTDArrayBuffer::local_point ( uint  row,
uint  col 
) const
inline

Definition at line 164 of file MTDArrayBuffer.h.

References cuy::col, hitGP_vec, and index().

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

164 { return hitGP_vec[index(row, col)]; }
uint index(uint row, uint col) const
Definition of indexing within the buffer.
std::vector< LocalPoint > hitGP_vec
col
Definition: cuy.py:1009

◆ local_point() [2/2]

LocalPoint MTDArrayBuffer::local_point ( const FTLCluster::FTLHitPos pix) const
inline

Definition at line 165 of file MTDArrayBuffer.h.

References hitGP_vec, and index().

165 { return hitGP_vec[index(pix)]; }
uint index(uint row, uint col) const
Definition of indexing within the buffer.
std::vector< LocalPoint > hitGP_vec

◆ rows()

uint MTDArrayBuffer::rows ( ) const
inline

Definition at line 47 of file MTDArrayBuffer.h.

References nrows.

Referenced by MTDThresholdClusterizer::make_cluster(), setSize(), and MTDThresholdClusterizer::setup().

47 { return nrows; }

◆ set() [1/2]

void MTDArrayBuffer::set ( uint  row,
uint  col,
GeomDetEnumerators::Location  subDet,
float  energy,
float  time,
float  time_error,
const LocalError local_error,
const LocalPoint local_point,
float  xpos 
)
inline

Definition at line 170 of file MTDArrayBuffer.h.

References cuy::col, energy(), hitEnergy_vec, hitGP_vec, hitLE_vec, hitSubDet_vec, hitTime_vec, hitTimeError_vec, index(), local_error(), local_point(), subDet(), time(), time_error(), xpos(), and xpos_vec.

Referenced by MTDThresholdClusterizer::copy_to_buffer().

178  {
179  hitSubDet_vec[index(row, col)] = subDet;
180  hitEnergy_vec[index(row, col)] = energy;
181  hitTime_vec[index(row, col)] = time;
183  hitGP_vec[index(row, col)] = local_point;
184  hitLE_vec[index(row, col)] = local_error;
185  xpos_vec[index(row, col)] = xpos;
186 }
std::vector< float > hitEnergy_vec
float energy(uint row, uint col) const
float time(uint row, uint col) const
LocalError local_error(uint row, uint col) const
uint index(uint row, uint col) const
Definition of indexing within the buffer.
std::vector< float > xpos_vec
std::vector< LocalPoint > hitGP_vec
GeomDetEnumerators::Location subDet(uint row, uint col) const
Use subDet to identify whether the Hit is in BTL or ETL.
std::vector< GeomDetEnumerators::Location > hitSubDet_vec
float time_error(uint row, uint col) const
std::vector< float > hitTime_vec
float xpos(uint row, uint col) const
col
Definition: cuy.py:1009
LocalPoint local_point(uint row, uint col) const
std::vector< float > hitTimeError_vec
std::vector< LocalError > hitLE_vec

◆ set() [2/2]

void MTDArrayBuffer::set ( const FTLCluster::FTLHitPos pix,
GeomDetEnumerators::Location  subDet,
float  energy,
float  time,
float  time_error,
const LocalError local_error,
const LocalPoint local_point,
float  xpos 
)
inline

Definition at line 187 of file MTDArrayBuffer.h.

References FTLCluster::FTLHitPos::col(), energy(), local_error(), local_point(), FTLCluster::FTLHitPos::row(), subDet(), time(), time_error(), and xpos().

194  {
195  set(pix.row(), pix.col(), subDet, energy, time, time_error, local_error, local_point, xpos);
196 }
float energy(uint row, uint col) const
float time(uint row, uint col) const
LocalError local_error(uint row, uint col) const
GeomDetEnumerators::Location subDet(uint row, uint col) const
Use subDet to identify whether the Hit is in BTL or ETL.
float time_error(uint row, uint col) const
constexpr int row() const
Definition: FTLCluster.h:61
float xpos(uint row, uint col) const
constexpr int col() const
Definition: FTLCluster.h:62
LocalPoint local_point(uint row, uint col) const

◆ set_energy() [1/2]

void MTDArrayBuffer::set_energy ( uint  row,
uint  col,
float  energy 
)
inline

Definition at line 205 of file MTDArrayBuffer.h.

References cuy::col, energy(), hitEnergy_vec, and index().

Referenced by clear().

205 { hitEnergy_vec[index(row, col)] = energy; }
std::vector< float > hitEnergy_vec
float energy(uint row, uint col) const
uint index(uint row, uint col) const
Definition of indexing within the buffer.
col
Definition: cuy.py:1009

◆ set_energy() [2/2]

void MTDArrayBuffer::set_energy ( const FTLCluster::FTLHitPos pix,
float  energy 
)
inline

Definition at line 206 of file MTDArrayBuffer.h.

References energy(), hitEnergy_vec, and index().

206 { hitEnergy_vec[index(pix)] = energy; }
std::vector< float > hitEnergy_vec
float energy(uint row, uint col) const
uint index(uint row, uint col) const
Definition of indexing within the buffer.

◆ set_local_error() [1/2]

void MTDArrayBuffer::set_local_error ( uint  row,
uint  col,
const LocalError le 
)
inline

Definition at line 224 of file MTDArrayBuffer.h.

References cuy::col, hitLE_vec, and index().

Referenced by clear().

224 { hitLE_vec[index(row, col)] = le; }
uint index(uint row, uint col) const
Definition of indexing within the buffer.
col
Definition: cuy.py:1009
std::vector< LocalError > hitLE_vec

◆ set_local_error() [2/2]

void MTDArrayBuffer::set_local_error ( const FTLCluster::FTLHitPos pix,
const LocalError le 
)
inline

Definition at line 225 of file MTDArrayBuffer.h.

References hitLE_vec, and index().

225  {
226  hitLE_vec[index(pix)] = le;
227 }
uint index(uint row, uint col) const
Definition of indexing within the buffer.
std::vector< LocalError > hitLE_vec

◆ set_local_point() [1/2]

void MTDArrayBuffer::set_local_point ( uint  row,
uint  col,
const LocalPoint lp 
)
inline

Definition at line 219 of file MTDArrayBuffer.h.

References cuy::col, hitGP_vec, and index().

Referenced by clear().

219 { hitGP_vec[index(row, col)] = lp; }
uint index(uint row, uint col) const
Definition of indexing within the buffer.
std::vector< LocalPoint > hitGP_vec
col
Definition: cuy.py:1009

◆ set_local_point() [2/2]

void MTDArrayBuffer::set_local_point ( const FTLCluster::FTLHitPos pix,
const LocalPoint lp 
)
inline

Definition at line 220 of file MTDArrayBuffer.h.

References hitGP_vec, and index().

220  {
221  hitGP_vec[index(pix)] = lp;
222 }
uint index(uint row, uint col) const
Definition of indexing within the buffer.
std::vector< LocalPoint > hitGP_vec

◆ set_subDet() [1/2]

void MTDArrayBuffer::set_subDet ( uint  row,
uint  col,
GeomDetEnumerators::Location  subDet 
)
inline

Definition at line 198 of file MTDArrayBuffer.h.

References cuy::col, hitSubDet_vec, index(), and subDet().

Referenced by clear().

198  {
199  hitSubDet_vec[index(row, col)] = subDet;
200 }
uint index(uint row, uint col) const
Definition of indexing within the buffer.
GeomDetEnumerators::Location subDet(uint row, uint col) const
Use subDet to identify whether the Hit is in BTL or ETL.
std::vector< GeomDetEnumerators::Location > hitSubDet_vec
col
Definition: cuy.py:1009

◆ set_subDet() [2/2]

void MTDArrayBuffer::set_subDet ( const FTLCluster::FTLHitPos pix,
GeomDetEnumerators::Location  subDet 
)
inline

Definition at line 201 of file MTDArrayBuffer.h.

References hitSubDet_vec, index(), and subDet().

201  {
202  hitSubDet_vec[index(pix)] = subDet;
203 }
uint index(uint row, uint col) const
Definition of indexing within the buffer.
GeomDetEnumerators::Location subDet(uint row, uint col) const
Use subDet to identify whether the Hit is in BTL or ETL.
std::vector< GeomDetEnumerators::Location > hitSubDet_vec

◆ set_time() [1/2]

void MTDArrayBuffer::set_time ( uint  row,
uint  col,
float  time 
)
inline

Definition at line 209 of file MTDArrayBuffer.h.

References cuy::col, hitTime_vec, index(), and time().

Referenced by clear().

209 { hitTime_vec[index(row, col)] = time; }
float time(uint row, uint col) const
uint index(uint row, uint col) const
Definition of indexing within the buffer.
std::vector< float > hitTime_vec
col
Definition: cuy.py:1009

◆ set_time() [2/2]

void MTDArrayBuffer::set_time ( const FTLCluster::FTLHitPos pix,
float  time 
)
inline

Definition at line 210 of file MTDArrayBuffer.h.

References hitTime_vec, index(), and time().

210 { hitTime_vec[index(pix)] = time; }
float time(uint row, uint col) const
uint index(uint row, uint col) const
Definition of indexing within the buffer.
std::vector< float > hitTime_vec

◆ set_time_error() [1/2]

void MTDArrayBuffer::set_time_error ( uint  row,
uint  col,
float  time_error 
)
inline

Definition at line 212 of file MTDArrayBuffer.h.

References cuy::col, hitTimeError_vec, index(), and time_error().

Referenced by clear().

212  {
214 }
uint index(uint row, uint col) const
Definition of indexing within the buffer.
float time_error(uint row, uint col) const
col
Definition: cuy.py:1009
std::vector< float > hitTimeError_vec

◆ set_time_error() [2/2]

void MTDArrayBuffer::set_time_error ( const FTLCluster::FTLHitPos pix,
float  time_error 
)
inline

Definition at line 215 of file MTDArrayBuffer.h.

References hitTimeError_vec, index(), and time_error().

215  {
217 }
uint index(uint row, uint col) const
Definition of indexing within the buffer.
float time_error(uint row, uint col) const
std::vector< float > hitTimeError_vec

◆ set_xpos() [1/2]

void MTDArrayBuffer::set_xpos ( uint  row,
uint  col,
float  xpos 
)
inline

Definition at line 229 of file MTDArrayBuffer.h.

References cuy::col, index(), xpos(), and xpos_vec.

Referenced by clear().

229 { xpos_vec[index(row, col)] = xpos; }
uint index(uint row, uint col) const
Definition of indexing within the buffer.
std::vector< float > xpos_vec
float xpos(uint row, uint col) const
col
Definition: cuy.py:1009

◆ set_xpos() [2/2]

void MTDArrayBuffer::set_xpos ( const FTLCluster::FTLHitPos pix,
float  xpos 
)
inline

Definition at line 230 of file MTDArrayBuffer.h.

References index(), xpos(), and xpos_vec.

230 { xpos_vec[index(pix)] = xpos; }
uint index(uint row, uint col) const
Definition of indexing within the buffer.
std::vector< float > xpos_vec
float xpos(uint row, uint col) const

◆ setSize()

void MTDArrayBuffer::setSize ( uint  rows,
uint  cols 
)
inline

Definition at line 134 of file MTDArrayBuffer.h.

References hitEnergy_vec, hitGP_vec, hitLE_vec, hitSubDet_vec, hitTime_vec, hitTimeError_vec, GeomDetEnumerators::invalidLoc, ncols, nrows, rows(), and xpos_vec.

Referenced by MTDThresholdClusterizer::setup().

134  {
136  hitEnergy_vec.resize(rows * cols, 0);
137  hitTime_vec.resize(rows * cols, 0);
138  hitTimeError_vec.resize(rows * cols, 0);
139  hitGP_vec.resize(rows * cols);
140  hitLE_vec.resize(rows * cols);
141  xpos_vec.resize(rows * cols), nrows = rows;
142  ncols = cols;
143 }
uint rows() const
std::vector< float > hitEnergy_vec
std::vector< float > xpos_vec
std::vector< LocalPoint > hitGP_vec
std::vector< GeomDetEnumerators::Location > hitSubDet_vec
std::vector< float > hitTime_vec
std::vector< float > hitTimeError_vec
std::vector< LocalError > hitLE_vec

◆ size()

uint MTDArrayBuffer::size ( void  ) const
inline

Definition at line 105 of file MTDArrayBuffer.h.

References hitEnergy_vec.

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

105 { return hitEnergy_vec.size(); }
std::vector< float > hitEnergy_vec

◆ subDet() [1/2]

GeomDetEnumerators::Location MTDArrayBuffer::subDet ( uint  row,
uint  col 
) const
inline

Use subDet to identify whether the Hit is in BTL or ETL.

Definition at line 147 of file MTDArrayBuffer.h.

References cuy::col, hitSubDet_vec, and index().

Referenced by MTDThresholdClusterizer::make_cluster(), set(), and set_subDet().

147 { return hitSubDet_vec[index(row, col)]; }
uint index(uint row, uint col) const
Definition of indexing within the buffer.
std::vector< GeomDetEnumerators::Location > hitSubDet_vec
col
Definition: cuy.py:1009

◆ subDet() [2/2]

GeomDetEnumerators::Location MTDArrayBuffer::subDet ( const FTLCluster::FTLHitPos pix) const
inline

Definition at line 148 of file MTDArrayBuffer.h.

References hitSubDet_vec, and index().

148  {
149  return hitSubDet_vec[index(pix)];
150 }
uint index(uint row, uint col) const
Definition of indexing within the buffer.
std::vector< GeomDetEnumerators::Location > hitSubDet_vec

◆ time() [1/2]

float MTDArrayBuffer::time ( uint  row,
uint  col 
) const
inline

Definition at line 155 of file MTDArrayBuffer.h.

References cuy::col, hitTime_vec, and index().

Referenced by MTDThresholdClusterizer::make_cluster(), set(), and set_time().

155 { return hitTime_vec[index(row, col)]; }
uint index(uint row, uint col) const
Definition of indexing within the buffer.
std::vector< float > hitTime_vec
col
Definition: cuy.py:1009

◆ time() [2/2]

float MTDArrayBuffer::time ( const FTLCluster::FTLHitPos pix) const
inline

Definition at line 156 of file MTDArrayBuffer.h.

References hitTime_vec, and index().

156 { return hitTime_vec[index(pix)]; }
uint index(uint row, uint col) const
Definition of indexing within the buffer.
std::vector< float > hitTime_vec

◆ time_error() [1/2]

float MTDArrayBuffer::time_error ( uint  row,
uint  col 
) const
inline

Definition at line 158 of file MTDArrayBuffer.h.

References cuy::col, hitTimeError_vec, and index().

Referenced by MTDThresholdClusterizer::make_cluster(), set(), and set_time_error().

158 { return hitTimeError_vec[index(row, col)]; }
uint index(uint row, uint col) const
Definition of indexing within the buffer.
col
Definition: cuy.py:1009
std::vector< float > hitTimeError_vec

◆ time_error() [2/2]

float MTDArrayBuffer::time_error ( const FTLCluster::FTLHitPos pix) const
inline

Definition at line 159 of file MTDArrayBuffer.h.

References hitTimeError_vec, and index().

159 { return hitTimeError_vec[index(pix)]; }
uint index(uint row, uint col) const
Definition of indexing within the buffer.
std::vector< float > hitTimeError_vec

◆ xpos() [1/2]

float MTDArrayBuffer::xpos ( uint  row,
uint  col 
) const
inline

Definition at line 167 of file MTDArrayBuffer.h.

References cuy::col, index(), and xpos_vec.

Referenced by MTDThresholdClusterizer::make_cluster(), set(), and set_xpos().

167 { return xpos_vec[index(row, col)]; }
uint index(uint row, uint col) const
Definition of indexing within the buffer.
std::vector< float > xpos_vec
col
Definition: cuy.py:1009

◆ xpos() [2/2]

float MTDArrayBuffer::xpos ( const FTLCluster::FTLHitPos pix) const
inline

Definition at line 168 of file MTDArrayBuffer.h.

References index(), and xpos_vec.

168 { return xpos_vec[index(pix)]; }
uint index(uint row, uint col) const
Definition of indexing within the buffer.
std::vector< float > xpos_vec

Member Data Documentation

◆ hitEnergy_vec

std::vector<float> MTDArrayBuffer::hitEnergy_vec
private

Definition at line 113 of file MTDArrayBuffer.h.

Referenced by add_energy(), energy(), set(), set_energy(), setSize(), and size().

◆ hitGP_vec

std::vector<LocalPoint> MTDArrayBuffer::hitGP_vec
private

Definition at line 116 of file MTDArrayBuffer.h.

Referenced by local_point(), set(), set_local_point(), and setSize().

◆ hitLE_vec

std::vector<LocalError> MTDArrayBuffer::hitLE_vec
private

Definition at line 117 of file MTDArrayBuffer.h.

Referenced by local_error(), set(), set_local_error(), and setSize().

◆ hitSubDet_vec

std::vector<GeomDetEnumerators::Location> MTDArrayBuffer::hitSubDet_vec
private

Definition at line 112 of file MTDArrayBuffer.h.

Referenced by set(), set_subDet(), setSize(), and subDet().

◆ hitTime_vec

std::vector<float> MTDArrayBuffer::hitTime_vec
private

Definition at line 114 of file MTDArrayBuffer.h.

Referenced by set(), set_time(), setSize(), and time().

◆ hitTimeError_vec

std::vector<float> MTDArrayBuffer::hitTimeError_vec
private

Definition at line 115 of file MTDArrayBuffer.h.

Referenced by set(), set_time_error(), setSize(), and time_error().

◆ ncols

uint MTDArrayBuffer::ncols
private

Definition at line 120 of file MTDArrayBuffer.h.

Referenced by columns(), inside(), and setSize().

◆ nrows

uint MTDArrayBuffer::nrows
private

Definition at line 119 of file MTDArrayBuffer.h.

Referenced by index(), inside(), rows(), and setSize().

◆ xpos_vec

std::vector<float> MTDArrayBuffer::xpos_vec
private

Definition at line 118 of file MTDArrayBuffer.h.

Referenced by set(), set_xpos(), setSize(), and xpos().