9 #ifndef ALIHLTTPCCAGBTRACKER_H
10 #define ALIHLTTPCCAGBTRACKER_H
12 #include "AliHLTTPCCADef.h"
13 #include "AliHLTTPCCATrackParam.h"
15 #include "AliHLTTPCCAGBHit.h"
16 #include "AliHLTTPCCAGBTrack.h"
17 #include "AliHLTTPCCATracker.h"
50 void SetNSlices(
int N );
51 void SetNHits(
int nHits );
61 int Ext2IntHitID(
int i )
const {
return fExt2IntHitID[i]; }
62 int NHits()
const {
return fNHits; }
63 int NSlices()
const {
return fNSlices; }
64 double Time()
const {
return fTime; }
65 double StatTime(
int iTimer )
const {
return fStatTime[iTimer]; }
66 int NTimers()
const {
return fNTimers; }
67 int StatNEvents()
const {
return fStatNEvents; }
68 int NTracks()
const {
return fNTracks; }
72 int *TrackHits()
const {
return fTrackHits; }
73 int *TrackHits() {
return fTrackHits; }
74 int TrackHit(
int i )
const {
return fTrackHits[i]; }
77 float &Alpha,
int hits[],
int &NTrackHits,
80 void WriteSettings( std::ostream &out )
const;
81 void ReadSettings( std::istream &in );
82 void WriteEvent( FILE *out )
const;
83 void ReadEvent( FILE *in );
84 void WriteTracks(
const string& prefix )
const;
85 void ReadTracks( std::istream &in );
87 void SaveHitsInFile(
string prefix )
const;
88 void SaveSettingsInFile(
string prefix )
const;
89 bool ReadHitsFromFile(
string prefix );
90 bool ReadSettingsFromFile(
string prefix );
92 double SliceTrackerTime()
const {
return fSliceTrackerTime; }
93 double SliceTrackerCpuTime()
const {
return fSliceTrackerCpuTime; }
94 const int *FirstSliceHit()
const {
return fFirstSliceHit; }
95 int FirstSliceHit(
int i)
const {
return fFirstSliceHit[i]; }
97 void StoreToFile(
const char *filename )
const;
98 void RestoreFromFile( FILE *f );
100 void SetHits(
const std::vector<AliHLTTPCCAGBHit> &hits);
102 void SetSettings(
const std::vector<AliHLTTPCCAParam>& settings );
103 int GetHitsSize()
const {
return fHits.
Size();}
123 static const int fNTimers = 25;
124 double fStatTime[fNTimers];
126 int fFirstSliceHit[100];
128 double fSliceTrackerTime;
129 double fSliceTrackerCpuTime;
friend class AliHLTTPCCAPerformance
Try to group close hits in row formed by one track. After sort hits.
void SetHits(const std::vector< AliHLTTPCCAGBHit > &hits)
Try to group close hits in row formed by one track. After sort hits.
bool FitTrack(AliHLTTPCCATrackParam &T, AliHLTTPCCATrackParam t0, float &Alpha, int hits[], int &NTrackHits, bool dir)