10 #ifndef ALIHLTTPCCAMERGEROUTPUT_H
11 #define ALIHLTTPCCAMERGEROUTPUT_H
13 #include "AliHLTTPCCADef.h"
14 #include "AliHLTTPCCAMergedTrack.h"
15 #include "AliHLTTPCCADataCompressor.h"
33 : fNTracks( 0 ), fNTrackClusters( 0 ), fTracks( 0 ), fClusterIDsrc( 0 ), fClusterPackedAmp( 0 ) {}
36 : fNTracks( 0 ), fNTrackClusters( 0 ), fTracks( 0 ), fClusterIDsrc( 0 ), fClusterPackedAmp( 0 ) {}
45 int NTracks()
const {
return fNTracks; }
46 int NTrackClusters()
const {
return fNTrackClusters; }
49 const DataCompressor::SliceRowCluster &ClusterIDsrc (
int i )
const {
return fClusterIDsrc[i]; }
50 UChar_t ClusterPackedAmp(
int i )
const {
return fClusterPackedAmp[i]; }
52 static int EstimateSize(
int nOfTracks,
int nOfTrackClusters );
55 void SetNTracks (
int v ) { fNTracks = v; }
56 void SetNTrackClusters(
int v ) { fNTrackClusters = v; }
59 void SetClusterIDsrc(
int i,
const DataCompressor::SliceRowCluster &v ) { fClusterIDsrc[i] = v; }
60 void SetClusterPackedAmp(
int i, UChar_t v ) { fClusterPackedAmp[i] = v; }
67 DataCompressor::SliceRowCluster *fClusterIDsrc;
68 UChar_t *fClusterPackedAmp;
74 inline int AliHLTTPCCAMergerOutput::EstimateSize(
int nOfTracks,
int nOfTrackClusters )
78 const int kClusterDataSize =
sizeof(
unsigned int ) +
sizeof( UChar_t );
84 inline void AliHLTTPCCAMergerOutput::SetPointers()
89 fClusterIDsrc = ( DataCompressor::SliceRowCluster* ) ( fTracks + fNTracks );
90 fClusterPackedAmp = ( UChar_t* ) ( fClusterIDsrc + fNTrackClusters );