![]() |
PandaRoot
|
#include <PndFTSCAClusterData.h>
Public Member Functions | |
PndFTSCAClusterData (const PndFTSCAGBHit *hits, int *offset, int numberOfClusters) | |
PndFTSCAClusterData () | |
void | readEvent (const PndFTSArray< PndFTSSpacePointData *> &clusters, int numberOfClusters, double ClusterZCut) |
void | readEvent (const PndFTSCAGBHit *hits, int *offset, int numberOfClusters) |
void | Merge (int index1, int index2) |
int | Slice () const |
int | FirstRow () const |
int | LastRow () const |
int | NumberOfClusters () const |
int | NumberOfClusters (unsigned int rowIndex) const |
int | RowOffset (unsigned int rowIndex) const |
float | X (int index) const |
float | Y (int index) const |
float | Z (int index) const |
int | Id (int index) const |
int | RowNumber (int index) const |
Cluster data which keeps history about changes
The algorithm doesn't work on this data. Instead the PndFTSCASliceData is created from this.
Definition at line 49 of file PndFTSCAClusterData.h.
|
inline |
Construct PndFTSCAClusterData object from GBHit array.
Definition at line 54 of file PndFTSCAClusterData.h.
References readEvent().
|
inline |
|
inline |
The first row index that contains a cluster.
Definition at line 81 of file PndFTSCAClusterData.h.
|
inline |
Return the global ID of the given cluster.
Definition at line 143 of file PndFTSCAClusterData.h.
|
inline |
The last row index that contains a cluster.
Definition at line 86 of file PndFTSCAClusterData.h.
void PndFTSCAClusterData::Merge | ( | int | index1, |
int | index2 | ||
) |
"remove" two clusters and "add" a new one, keeping history.
Referenced by PndFTSCAClusterData().
|
inline |
Return the number of clusters in this slice.
Definition at line 91 of file PndFTSCAClusterData.h.
|
inline |
Return the number of clusters in the given row, for this slice.
Definition at line 96 of file PndFTSCAClusterData.h.
void PndFTSCAClusterData::readEvent | ( | const PndFTSArray< PndFTSSpacePointData *> & | clusters, |
int | numberOfClusters, | ||
double | ClusterZCut | ||
) |
Referenced by PndFTSCAClusterData().
void PndFTSCAClusterData::readEvent | ( | const PndFTSCAGBHit * | hits, |
int * | offset, | ||
int | numberOfClusters | ||
) |
|
inline |
Return the row number/index of the given cluster.
Definition at line 152 of file PndFTSCAClusterData.h.
|
inline |
Return the index of the first cluster in the given row.
Supports calls with rowIndex greater than the available number of rows. In that case it returns NumberOfClusters.
To iterate over the clusters in one row do:
Definition at line 111 of file PndFTSCAClusterData.h.
|
inline |
"remove" one cluster and "add" two new ones, keeping history. The slice index this data belongs to
Definition at line 76 of file PndFTSCAClusterData.h.
|
inline |
Return the x coordinate of the given cluster.
Definition at line 116 of file PndFTSCAClusterData.h.
|
inline |
Return the y coordinate of the given cluster.
Definition at line 125 of file PndFTSCAClusterData.h.
|
inline |
Return the z coordinate of the given cluster.
Definition at line 134 of file PndFTSCAClusterData.h.