Belle II Software development
|
Helper struct to collect information about the 1D projection of a Pixel cluster. More...
#include <ClusterProjection.h>
Public Member Functions | |
ClusterProjection () | |
Constructor. | |
void | add (unsigned int cell, float position, float charge) |
Add Pixel information to the projection. | |
void | finalize () |
Finish calculation of center of gravity and set correct cluster size. | |
double | getPos () const |
Return the projected position of the cluster. | |
double | getError () const |
Return the error of the cluster. | |
unsigned int | getSize () const |
Return the projected size of the cluster. | |
unsigned int | getMinCell () const |
Return the minimum cell part of the cluster. | |
unsigned int | getMaxCell () const |
Return the maximum cell part of the cluster. | |
double | getCharge () const |
Return the total charge of the cluster. | |
double | getMinCharge () const |
Return the charge in the minimum cell of the cluster. | |
double | getMaxCharge () const |
Return the charge in the maximum cell of the cluster. | |
double | getCenterCharge () const |
Return the center charge of the cluster, that is total charge minus minimum and maximum cell charge. | |
double | getMinPos () const |
Return the position of the minimum cell of the cluster. | |
double | getMaxPos () const |
Return the position of the maximum cell of the cluster. | |
void | setPos (double pos) |
Set the position of the cluster. | |
void | setError (double error) |
Set the error of the cluster. | |
Private Attributes | |
double | m_pos |
Center of gravity of the cluster. | |
unsigned int | m_min |
Minimum row or column of the cluster. | |
unsigned int | m_max |
Maximum row or column of the cluster. | |
double | m_minCharge |
Charge collected in the minimum row/column. | |
double | m_maxCharge |
Charge collected in the maximum row/column. | |
double | m_minPos |
Position of the minimum row/column. | |
double | m_maxPos |
Position of the maximum row/column. | |
double | m_error |
Position error of the cluster. | |
double | m_charge |
Charge of the full cluster. | |
unsigned int | m_size |
Projected size of the cluster. | |
Helper struct to collect information about the 1D projection of a Pixel cluster.
This class just collects some information necessary to calculate the cluster position and errors: the minimum and maximum pixel row or column as well as the corresponding sensor position and charge in that row or column and the weighted (by charge) sum of positions for center of gravity determination
Definition at line 26 of file ClusterProjection.h.
|
inline |
Constructor.
Definition at line 29 of file ClusterProjection.h.
|
inline |
Add Pixel information to the projection.
This will adjust the minimal and maximal coordinates and the charge collected at these coordinates as well as increment the weighted position to calculate the center of gravity
cell | pixel coordinate |
position | pixel center position on the sensor |
charge | charge in that pixel |
Definition at line 101 of file ClusterProjection.h.
|
inline |
|
inline |
Return the center charge of the cluster, that is total charge minus minimum and maximum cell charge.
Definition at line 66 of file ClusterProjection.h.
|
inline |
|
inline |
|
inline |
|
inline |
Return the charge in the maximum cell of the cluster.
Definition at line 64 of file ClusterProjection.h.
|
inline |
Return the position of the maximum cell of the cluster.
Definition at line 70 of file ClusterProjection.h.
|
inline |
|
inline |
Return the charge in the minimum cell of the cluster.
Definition at line 62 of file ClusterProjection.h.
|
inline |
Return the position of the minimum cell of the cluster.
Definition at line 68 of file ClusterProjection.h.
|
inline |
Return the projected position of the cluster.
Should only be used after a call to finalize
Definition at line 50 of file ClusterProjection.h.
|
inline |
Return the projected size of the cluster.
Should only be used after a call to finalize
Definition at line 54 of file ClusterProjection.h.
|
inline |
Set the error of the cluster.
Definition at line 75 of file ClusterProjection.h.
|
inline |
Set the position of the cluster.
Should only be used after a call to finalize
Definition at line 73 of file ClusterProjection.h.
|
private |
Charge of the full cluster.
Definition at line 96 of file ClusterProjection.h.
|
private |
Position error of the cluster.
Definition at line 94 of file ClusterProjection.h.
|
private |
Maximum row or column of the cluster.
Definition at line 84 of file ClusterProjection.h.
|
private |
Charge collected in the maximum row/column.
Definition at line 88 of file ClusterProjection.h.
|
private |
Position of the maximum row/column.
Definition at line 92 of file ClusterProjection.h.
|
private |
Minimum row or column of the cluster.
Definition at line 82 of file ClusterProjection.h.
|
private |
Charge collected in the minimum row/column.
Definition at line 86 of file ClusterProjection.h.
|
private |
Position of the minimum row/column.
Definition at line 90 of file ClusterProjection.h.
|
private |
Center of gravity of the cluster.
Definition at line 80 of file ClusterProjection.h.
|
private |
Projected size of the cluster.
Definition at line 98 of file ClusterProjection.h.