25 #include "AliHLTTPCCAGBHit.h"
28 #include "AliHLTTPCCAParameters.h"
30 class AliHLTTPCSpacePointData;
45 fSlice(0), fFirstRow(0), fLastRow(0), fNumberOfClusters(0), fRowOffset(0), fData(0)
47 readEvent( hits, offset, numberOfClusters, nRows8 );
50 AliHLTTPCCAClusterData(): fSlice(0), fFirstRow(0), fLastRow(0), fNumberOfClusters(0), fRowOffset(0), fData(0) {}
54 void readEvent(
const AliHLTTPCCAGBHit *hits,
int *offset,
int numberOfClusters,
int nRows8 );
59 void Merge(
int index1,
int index2 );
71 int Slice()
const {
return fSlice; }
91 int NumberOfClusters(
unsigned int rowIndex )
const {
return rowIndex < fNumberOfClusters.size() ? fNumberOfClusters[rowIndex] : 0; }
106 int RowOffset(
unsigned int rowIndex )
const {
return rowIndex < fRowOffset.size() ? fRowOffset[rowIndex] : fData.size(); }
111 float X(
int index )
const { assert( index < static_cast<int>( fData.size() ) );
return fData[index].fX; }
116 float Y(
int index )
const { assert( index < static_cast<int>( fData.size() ) );
return fData[index].fY; }
121 float Z(
int index )
const { assert( index < static_cast<int>( fData.size() ) );
return fData[index].fZ; }
126 int Id(
int index )
const { assert( index < static_cast<int>( fData.size() ) );
return fData[index].fId; }
131 int RowNumber(
int index )
const { assert( index < static_cast<int>( fData.size() ) );
return fData[index].fRow; }
145 std::vector<int> fNumberOfClusters;
146 std::vector<int> fRowOffset;
147 std::vector<Data> fData;
152 #endif // CLUSTERDATA_H
int RowOffset(unsigned int rowIndex) const
int RowNumber(int index) const
int NumberOfClusters(unsigned int rowIndex) const
void Merge(int index1, int index2)
AliHLTTPCCAClusterData(const AliHLTTPCCAGBHit *hits, int *offset, int numberOfClusters, int nRows8)
int NumberOfClusters() const