9 #ifndef ALIHLTTPCCATRACKLET_H
10 #define ALIHLTTPCCATRACKLET_H
12 #include "AliHLTTPCCADef.h"
13 #include "AliHLTTPCCATrackParam.h"
16 #include "AliHLTTPCCAParameters.h"
29 fNHits( tv.NHits()[i] ),
30 fFirstRow( tv.FirstRow()[i] ),
31 fLastRow( tv.LastRow()[i] ),
32 fParam( tv.Param(), i )
34 for (
int row = 0; row < AliHLTTPCCAParameters::MaxNumberOfRows8; ++row ) {
35 fRowHits[row] = tv.HitIndexAtRow( row )[i];
40 return fFirstRow < rhs.fFirstRow ||
41 ( fFirstRow == rhs.fFirstRow && ( fNHits < rhs.fNHits ||
42 ( fNHits == rhs.fNHits && fParam.Chi2() < rhs.fParam.Chi2() ) ) );
45 int NHits()
const {
return fNHits; }
46 int FirstRow()
const {
return fFirstRow; }
47 int LastRow()
const {
return fLastRow; }
49 short RowHit(
int i )
const {
return fRowHits[i]; }
51 void SetNHits(
int v ) { fNHits = v; }
52 void SetFirstRow(
int v ) { fFirstRow = v; }
53 void SetLastRow(
int v ) { fLastRow = v; }
55 void SetRowHit(
int irow,
short ih ) { fRowHits[irow] = ih; }
58 const short_v zero( Vc::Zero );
59 STATIC_ASSERT( AliHLTTPCCAParameters::MaxNumberOfRows8 % short_v::Size == 0, Size_of_fRowHits_array_needs_to_be_a_multiple_of_short_v__Size );
60 for (
int i = 0; i < AliHLTTPCCAParameters::MaxNumberOfRows8; i += short_v::Size ) {
61 zero.store( &fRowHits[i] );