41 void add(
unsigned int cell,
float position,
float charge);
108 }
else if (cell ==
m_min) {
117 }
else if (cell ==
m_max) {
121 m_pos += charge * position;
Helper struct to collect information about the 1D projection of a Pixel cluster.
double m_maxCharge
Charge collected in the maximum row/column.
double getMinPos() const
Return the position of the minimum cell of the cluster.
double m_pos
Center of gravity of the cluster.
void add(unsigned int cell, float position, float charge)
Add Pixel information to the projection.
double getMaxCharge() const
Return the charge in the maximum cell of the cluster.
void finalize()
Finish calculation of center of gravity and set correct cluster size.
unsigned int getMinCell() const
Return the minimum cell part of the cluster.
unsigned int m_min
Minimum row or column of the cluster.
double getCharge() const
Return the total charge of the cluster.
unsigned int getMaxCell() const
Return the maximum cell part of the cluster.
ClusterProjection()
Constructor.
void setPos(double pos)
Set the position of the cluster.
double m_minPos
Position of the minimum row/column.
double getMinCharge() const
Return the charge in the minimum cell of the cluster.
unsigned int m_max
Maximum row or column of the cluster.
void setError(double error)
Set the error of the cluster.
double getError() const
Return the error of the cluster.
double m_minCharge
Charge collected in the minimum row/column.
double m_charge
Charge of the full cluster.
double m_error
Position error of the cluster.
double getMaxPos() const
Return the position of the maximum cell of the cluster.
double getPos() const
Return the projected position of the cluster.
double m_maxPos
Position of the maximum row/column.
unsigned int m_size
Projected size of the cluster.
double getCenterCharge() const
Return the center charge of the cluster, that is total charge minus minimum and maximum cell charge.
unsigned int getSize() const
Return the projected size of the cluster.
Abstract base class for different kinds of events.