21 #include "AliHLTTPCCAClusterData.h"
22 #include "AliHLTTPCCAMath.h"
24 void AliHLTTPCCAClusterData::readEvent(
const AliHLTTPCCAGBHit *hits,
int *offset,
int numberOfClusters,
int nRows8 )
26 fNumberOfClusters.reserve( nRows8 );
27 fRowOffset.reserve( nRows8 );
28 fData.reserve( CAMath::Min( 64, numberOfClusters / 64 ) );
30 fSlice = hits[*offset].ISlice();
31 fFirstRow = hits[*offset].IRow();
34 for (
int i = 0; i < row; ++i ) {
35 fNumberOfClusters.push_back( 0 );
36 fRowOffset.push_back( 0 );
38 fRowOffset.push_back( 0 );
39 for (
int &i = *offset; i < numberOfClusters; ++i ) {
41 if ( hit.ISlice() != fSlice ) {
45 while ( row < hit.IRow() ) {
46 fNumberOfClusters.push_back( fData.size() - fRowOffset.back() );
47 fRowOffset.push_back( fData.size() );
50 Data d = { hit.X(), hit.Y(), hit.Z(), hit.ID(), hit.IRow() };
53 fNumberOfClusters.push_back( fData.size() - fRowOffset.back() );