coding convention
[u/mrichter/AliRoot.git] / HLT / comp / AliL3ClusterFitter.h
CommitLineData
3e87ef69 1// @(#) $Id$
2
6b8f6f6e 3#ifndef AliL3_ClusterFitter
4#define AliL3_ClusterFitter
5
6#include "AliL3RootTypes.h"
7#include "AliL3Modeller.h"
3e87ef69 8#include "AliL3Transform.h"
6b8f6f6e 9
10class AliL3ModelTrack;
3e87ef69 11class AliL3TrackArray;
12class AliL3SpacePointData;
6b8f6f6e 13
14class AliL3ClusterFitter : public AliL3Modeller {
15
16 private:
6b8f6f6e 17 Int_t fNmaxOverlaps;
3e87ef69 18 Int_t fRowMin;
19 Int_t fRowMax;
6b8f6f6e 20 Float_t fChiSqMax;
3e87ef69 21 Float_t fYInnerWidthFactor;
22 Float_t fZInnerWidthFactor;
23 Float_t fYOuterWidthFactor;
24 Float_t fZOuterWidthFactor;
25 Int_t fFitted;
26 Int_t fFailed;
27 static Int_t fBadFitError;
28 static Int_t fFitError;
29 static Int_t fResultError;
30 static Int_t fFitRangeError;
31 Bool_t fSeeding;
32 Int_t fNMaxClusters;
33 Int_t fNClusters;
34 AliL3TrackArray *fSeeds; //!
35 AliL3TrackArray *fProcessTracks; //!
36 AliL3SpacePointData *fClusters; //!
6b8f6f6e 37
3e87ef69 38 void FitClusters(AliL3ModelTrack *track,Int_t *padrange,Int_t *timerange);
39 Bool_t CheckCluster(Int_t trackindex);
40 Bool_t IsMaximum(Int_t pad,Int_t time);
41 Bool_t SetFitRange(AliL3ModelTrack *track,Int_t *padrange,Int_t *timerange);
42 void SetClusterfitFalse(AliL3ModelTrack *track);
43
6b8f6f6e 44 public:
45 AliL3ClusterFitter();
3e87ef69 46 AliL3ClusterFitter(Char_t *path);
6b8f6f6e 47 virtual ~AliL3ClusterFitter();
48
3e87ef69 49 void Init(Int_t slice,Int_t patch,Int_t *rowrange,AliL3TrackArray *tracks);
50 void Init(Int_t slice,Int_t patch);
51 void LoadSeeds(Int_t *rowrange,Bool_t offline=kTRUE);
6b8f6f6e 52 void FindClusters();
3e87ef69 53 void AddClusters();
54 void WriteClusters();
55 void WriteTracks();
6b8f6f6e 56 void SetNmaxOverlaps(Int_t i) {fNmaxOverlaps=i;}
3e87ef69 57 void SetChiSqMax(Float_t f) {fChiSqMax = f;}
58 void SetInnerWidthFactor(Float_t y,Float_t z) {fYInnerWidthFactor=y; fZInnerWidthFactor=z;}
59 void SetOuterWidthFactor(Float_t y,Float_t z) {fYOuterWidthFactor=y; fZOuterWidthFactor=z;}
60
61 Float_t GetYWidthFactor() {return fCurrentPadRow < AliL3Transform::GetLastRow(1) ? fYInnerWidthFactor : fYOuterWidthFactor;}
62 Float_t GetZWidthFactor() {return fCurrentPadRow < AliL3Transform::GetLastRow(1) ? fZInnerWidthFactor : fZOuterWidthFactor;}
63 AliL3TrackArray *GetSeeds() {return fSeeds;}
64
65
6b8f6f6e 66 ClassDef(AliL3ClusterFitter,1)
67
68};
69
70#endif