FairRoot/PandaRoot
|
#include <PndFTSCAClusterData.h>
Classes | |
struct | Data |
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 |
Private Attributes | |
int | fSlice |
int | fFirstRow |
int | fLastRow |
std::vector< int > | fNumberOfClusters |
std::vector< int > | fRowOffset |
std::vector< Data > | fData |
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 44 of file PndFTSCAClusterData.h.
References readEvent().
|
inline |
Definition at line 48 of file PndFTSCAClusterData.h.
|
inline |
The first row index that contains a cluster.
Definition at line 74 of file PndFTSCAClusterData.h.
References fFirstRow.
|
inline |
Return the global ID of the given cluster.
Definition at line 124 of file PndFTSCAClusterData.h.
References fData.
|
inline |
The last row index that contains a cluster.
Definition at line 79 of file PndFTSCAClusterData.h.
References fLastRow.
void PndFTSCAClusterData::Merge | ( | int | index1, |
int | index2 | ||
) |
"remove" two clusters and "add" a new one, keeping history.
|
inline |
Return the number of clusters in this slice.
Definition at line 84 of file PndFTSCAClusterData.h.
References fData.
|
inline |
Return the number of clusters in the given row, for this slice.
Definition at line 89 of file PndFTSCAClusterData.h.
References fNumberOfClusters.
void PndFTSCAClusterData::readEvent | ( | const PndFTSArray< PndFTSSpacePointData * > & | clusters, |
int | numberOfClusters, | ||
double | ClusterZCut | ||
) |
Referenced by PndFTSCAClusterData().
void PndFTSCAClusterData::readEvent | ( | const PndFTSCAGBHit * | hits, |
int * | offset, | ||
int | numberOfClusters | ||
) |
Definition at line 24 of file PndFTSCAClusterData.cxx.
References d, fData, fFirstRow, fLastRow, fNumberOfClusters, fRowOffset, fSlice, hit, i, PndFTSCAGBHit::IRow(), CAMath::Min(), offset(), and row.
|
inline |
Return the row number/index of the given cluster.
Definition at line 129 of file PndFTSCAClusterData.h.
References fData.
|
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 104 of file PndFTSCAClusterData.h.
References fData, and fRowOffset.
|
inline |
"remove" one cluster and "add" two new ones, keeping history. The slice index this data belongs to
Definition at line 69 of file PndFTSCAClusterData.h.
References fSlice.
|
inline |
Return the x coordinate of the given cluster.
Definition at line 109 of file PndFTSCAClusterData.h.
References fData.
|
inline |
Return the y coordinate of the given cluster.
Definition at line 114 of file PndFTSCAClusterData.h.
References fData.
|
inline |
Return the z coordinate of the given cluster.
Definition at line 119 of file PndFTSCAClusterData.h.
References fData.
|
private |
Definition at line 145 of file PndFTSCAClusterData.h.
Referenced by Id(), NumberOfClusters(), readEvent(), RowNumber(), RowOffset(), X(), Y(), and Z().
|
private |
Definition at line 141 of file PndFTSCAClusterData.h.
Referenced by FirstRow(), and readEvent().
|
private |
Definition at line 142 of file PndFTSCAClusterData.h.
Referenced by LastRow(), and readEvent().
|
private |
Definition at line 143 of file PndFTSCAClusterData.h.
Referenced by NumberOfClusters(), and readEvent().
|
private |
Definition at line 144 of file PndFTSCAClusterData.h.
Referenced by readEvent(), and RowOffset().
|
private |
Definition at line 140 of file PndFTSCAClusterData.h.
Referenced by readEvent(), and Slice().