1 #ifndef RecoLocalTracker_FTLClusterizer_MTDArrayBuffer_H 2 #define RecoLocalTracker_FTLClusterizer_MTDArrayBuffer_H 25 inline float energy(uint row, uint
col)
const;
27 inline float time(uint row, uint col)
const;
29 inline float time_error(uint row, uint col)
const;
35 inline bool inside(uint row, uint col)
const;
37 inline void clear(uint row, uint col) {
47 inline void set_energy(uint row, uint col,
float energy);
48 inline void set_energy(
const FTLCluster::FTLHitPos&,
float energy);
49 inline void add_energy(uint row, uint col,
float energy);
51 inline void set_time(uint row, uint col,
float time);
52 inline void set_time(
const FTLCluster::FTLHitPos&,
float time);
55 inline void set_time_error(
const FTLCluster::FTLHitPos&,
float time_error);
60 uint
index(uint row, uint col)
const {
return col *
nrows + row; }
61 uint
index(
const FTLCluster::FTLHitPos& pix)
const {
return index(pix.
row(), pix.
col()); }
float time_error(uint row, uint col) const
void set_energy(uint row, uint col, float energy)
std::vector< float > hitEnergy_vec
Class to store ADC counts and times during clustering.
float time(uint row, uint col) const
bool inside(uint row, uint col) const
void set_time(uint row, uint col, float time)
void clear(const FTLCluster::FTLHitPos &pos)
uint index(const FTLCluster::FTLHitPos &pix) const
constexpr int row() const
float energy(uint row, uint col) const
std::vector< float > hitTime_vec
uint index(uint row, uint col) const
Definition of indexing within the buffer.
void set(uint row, uint col, float energy, float time, float time_error)
constexpr int col() const
void clear(uint row, uint col)
std::vector< float > hitTimeError_vec
void add_energy(uint row, uint col, float energy)
void set_time_error(uint row, uint col, float time_error)
void setSize(uint rows, uint cols)