1 #ifndef RecoLocalTracker_FTLClusterizer_MTDArrayBuffer_H 2 #define RecoLocalTracker_FTLClusterizer_MTDArrayBuffer_H 26 inline float energy( uint row, uint
col)
const;
28 inline float time( uint row, uint col)
const;
30 inline float time_error( uint row, uint col)
const;
36 inline bool inside(uint row, uint col)
const;
38 inline void clear(uint row, uint col)
52 inline void set_energy( uint row, uint col,
float energy);
53 inline void set_energy(
const FTLCluster::FTLHitPos&,
float energy);
54 inline void add_energy( uint row, uint col,
float energy);
56 inline void set_time( uint row, uint col,
float time);
57 inline void set_time(
const FTLCluster::FTLHitPos&,
float time);
60 inline void set_time_error(
const FTLCluster::FTLHitPos&,
float time_error);
65 uint
index( uint row, uint col)
const {
return col*
nrows+row;}
66 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)