![]() |
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 37 of file PndFTSCAClusterData.h.
|
inline |
Construct PndFTSCAClusterData object from GBHit array.
Definition at line 42 of file PndFTSCAClusterData.h.
References readEvent().
|
inline |
|
inline |
The first row index that contains a cluster.
Definition at line 69 of file PndFTSCAClusterData.h.
|
inline |
Return the global ID of the given cluster.
Definition at line 131 of file PndFTSCAClusterData.h.
|
inline |
The last row index that contains a cluster.
Definition at line 74 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 79 of file PndFTSCAClusterData.h.
|
inline |
Return the number of clusters in the given row, for this slice.
Definition at line 84 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 140 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 99 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 64 of file PndFTSCAClusterData.h.
|
inline |
Return the x coordinate of the given cluster.
Definition at line 104 of file PndFTSCAClusterData.h.
|
inline |
Return the y coordinate of the given cluster.
Definition at line 113 of file PndFTSCAClusterData.h.
|
inline |
Return the z coordinate of the given cluster.
Definition at line 122 of file PndFTSCAClusterData.h.