StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Public Member Functions | List of all members
AliHLTTPCCAClusterData Class Reference

#include <AliHLTTPCCAClusterData.h>

Public Member Functions

 AliHLTTPCCAClusterData (const AliHLTTPCCAGBHit *hits, int *offset, int numberOfClusters, int nRows8)
 
void readEvent (const AliHLTTPCCAGBHit *hits, int *offset, int numberOfClusters, int nRows8)
 
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
 

Detailed Description

Cluster data which keeps history about changes

The algorithm doesn't work on this data. Instead the AliHLTTPCCASliceData is created from this.

Definition at line 37 of file AliHLTTPCCAClusterData.h.

Constructor & Destructor Documentation

AliHLTTPCCAClusterData::AliHLTTPCCAClusterData ( const AliHLTTPCCAGBHit hits,
int *  offset,
int  numberOfClusters,
int  nRows8 
)
inline

Construct AliHLTTPCCAClusterData object from GBHit array.

Definition at line 44 of file AliHLTTPCCAClusterData.h.

Member Function Documentation

int AliHLTTPCCAClusterData::FirstRow ( ) const
inline

The first row index that contains a cluster.

Definition at line 76 of file AliHLTTPCCAClusterData.h.

Referenced by AliHLTTPCCASliceData::InitFromClusterData().

int AliHLTTPCCAClusterData::Id ( int  index) const
inline

Return the global ID of the given cluster.

Definition at line 126 of file AliHLTTPCCAClusterData.h.

int AliHLTTPCCAClusterData::LastRow ( ) const
inline

The last row index that contains a cluster.

Definition at line 81 of file AliHLTTPCCAClusterData.h.

Referenced by AliHLTTPCCASliceData::InitFromClusterData().

void AliHLTTPCCAClusterData::Merge ( int  index1,
int  index2 
)

"remove" two clusters and "add" a new one, keeping history.

int AliHLTTPCCAClusterData::NumberOfClusters ( ) const
inline

Return the number of clusters in this slice.

Definition at line 86 of file AliHLTTPCCAClusterData.h.

Referenced by AliHLTTPCCASliceData::InitFromClusterData().

int AliHLTTPCCAClusterData::NumberOfClusters ( unsigned int  rowIndex) const
inline

Return the number of clusters in the given row, for this slice.

Definition at line 91 of file AliHLTTPCCAClusterData.h.

int AliHLTTPCCAClusterData::RowNumber ( int  index) const
inline

Return the row number/index of the given cluster.

Definition at line 131 of file AliHLTTPCCAClusterData.h.

int AliHLTTPCCAClusterData::RowOffset ( unsigned int  rowIndex) const
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:

* const int lastClusterIndex = cd.RowOffset( rowIndex + 1 );
* for ( int hitIndex = cd.RowOffset( rowIndex ); hitIndex < lastClusterIndex; ++hitIndex )
*

Definition at line 106 of file AliHLTTPCCAClusterData.h.

Referenced by AliHLTTPCCASliceData::InitFromClusterData().

int AliHLTTPCCAClusterData::Slice ( ) const
inline

"remove" one cluster and "add" two new ones, keeping history. The slice index this data belongs to

Definition at line 71 of file AliHLTTPCCAClusterData.h.

Referenced by AliHLTTPCCAGBTracker::FindTracks().

float AliHLTTPCCAClusterData::X ( int  index) const
inline

Return the x coordinate of the given cluster.

Definition at line 111 of file AliHLTTPCCAClusterData.h.

float AliHLTTPCCAClusterData::Y ( int  index) const
inline

Return the y coordinate of the given cluster.

Definition at line 116 of file AliHLTTPCCAClusterData.h.

Referenced by AliHLTTPCCASliceData::InitFromClusterData().

float AliHLTTPCCAClusterData::Z ( int  index) const
inline

Return the z coordinate of the given cluster.

Definition at line 121 of file AliHLTTPCCAClusterData.h.

Referenced by AliHLTTPCCASliceData::InitFromClusterData().


The documentation for this class was generated from the following files: